/* ========== Reset & Base ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #1a56c4;
  --primary-dark: #0f3d8a;
  --primary-light: #e8f0fe;
  --accent: #e87d00;
  --text-dark: #1a1a2e;
  --text-body: #4a4a5a;
  --text-muted: #8a8a9a;
  --bg-light: #f7f8fa;
  --bg-card: #ffffff;
  --border: #e6e8eb;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
  --shadow-hover: 0 8px 30px rgba(26,86,196,.12);
  --radius: 8px;
  --transition: .3s ease;
  --max-width: 1200px;
  --header-h: 72px;
}
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-body);
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ========== Header ========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: box-shadow var(--transition), height var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); height: 64px; }
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 800; color: var(--text-dark); }
.logo-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; font-weight: 700;
  flex-shrink: 0;
}
.logo-text small { display: block; font-size: .65rem; font-weight: 400; color: var(--text-muted); letter-spacing: .5px; }

.nav-toggle { display: none; font-size: 1.5rem; background: none; border: none; cursor: pointer; color: var(--text-dark); }
.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-menu a {
  padding: 8px 16px; font-size: .95rem; font-weight: 500; color: var(--text-body);
  border-radius: var(--radius); position: relative;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); background: var(--primary-light); }
.nav-menu a.active::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 3px; background: var(--primary); border-radius: 2px;
}
.nav-cta {
  background: var(--primary) !important; color: #fff !important;
  padding: 8px 22px !important; border-radius: 24px !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }
.nav-cta::after { display: none !important; }

/* ========== Hero ========== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0f3d8a 0%, #1a56c4 50%, #2a6dd4 100%);
  color: #fff; text-align: center; padding: var(--header-h) 20px 60px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(232,125,0,.15) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; line-height: 1.3; }
.hero h1 .highlight { color: var(--accent); }
.hero p { font-size: 1.15rem; opacity: .9; margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 36px; border-radius: 30px; font-weight: 600;
  font-size: .95rem; transition: all var(--transition); cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #d47000; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,125,0,.3); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); transform: translateY(-2px); }

/* hero floating icons */
.hero-icons { position: absolute; bottom: 40px; left: 0; right: 0; display: flex; justify-content: center; gap: 40px; z-index: 1; }
.hero-icon { text-align: center; font-size: 2rem; }
.hero-icon small { display: block; font-size: .8rem; margin-top: 4px; opacity: .8; }

/* ========== Sections ========== */
.section { padding: 70px 0; }
.section-light { background: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.2rem; font-weight: 800; color: var(--text-dark); margin-bottom: 12px; }
.section-title p { font-size: 1rem; color: var(--text-muted); }
.section-title .accent-bar { width: 50px; height: 4px; background: var(--primary); margin: 16px auto 0; border-radius: 2px; }

/* ========== Stats ========== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item .stat-num { font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.stat-item .stat-label { font-size: .9rem; color: var(--text-muted); margin-top: 4px; }

/* ========== Product Categories ========== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all var(--transition); border: 1px solid var(--border);
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-6px); }
.product-card .product-img {
  width: 100%; height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; background: linear-gradient(135deg, var(--primary-light), #f0f5ff);
  border-bottom: 1px solid var(--border);
}
.product-card .product-info { padding: 20px; }
.product-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.product-card p { font-size: .85rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.6; }
.product-card .product-link { color: var(--primary); font-weight: 600; font-size: .88rem; }
.product-card .product-link:hover { color: var(--primary-dark); }

/* ========== Features ========== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { text-align: center; padding: 30px 20px; }
.feature-icon {
  width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--primary);
}
.feature-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.feature-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.7; }

/* ========== CTA Band ========== */
.cta-band {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; text-align: center; padding: 60px 20px; border-radius: 16px;
  margin: 50px 0;
}
.cta-band h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.cta-band p { opacity: .9; margin-bottom: 28px; }
.cta-band .btn-primary { background: var(--accent); }

/* ========== Page Banner ========== */
.page-banner {
  padding: calc(var(--header-h) + 60px) 20px 50px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; text-align: center;
}
.page-banner h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 10px; }
.page-banner p { opacity: .9; font-size: 1rem; }
.breadcrumb { margin-top: 16px; font-size: .85rem; opacity: .7; }
.breadcrumb a { color: #fff; text-decoration: underline; }
.breadcrumb span { margin: 0 8px; opacity: .5; }

/* ========== About ========== */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text h2 { font-size: 1.8rem; font-weight: 800; color: var(--text-dark); margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; font-size: .95rem; line-height: 1.8; }
.about-image {
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--primary-light), #e0e8f5);
  min-height: 300px; display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: var(--primary);
}
.timeline { margin-top: 40px; }
.timeline-item { display: flex; gap: 20px; margin-bottom: 24px; }
.timeline-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.timeline-content h4 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.timeline-content p { font-size: .88rem; color: var(--text-muted); }

/* ========== News ========== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all var(--transition); border: 1px solid var(--border); }
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.news-card .news-img { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; background: linear-gradient(135deg, var(--primary-light), #f0f5ff); border-bottom: 1px solid var(--border); }
.news-card .news-body { padding: 20px; }
.news-card .news-date { font-size: .8rem; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.news-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; line-height: 1.5; }
.news-card p { font-size: .85rem; color: var(--text-muted); }
.news-card .news-more { display: inline-block; margin-top: 12px; color: var(--primary); font-weight: 600; font-size: .85rem; }

/* ========== Contact ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-card { padding: 24px; background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.contact-info-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.contact-info-item { display: flex; gap: 12px; margin-bottom: 16px; }
.contact-info-item .icon { width: 36px; height: 36px; border-radius: 8px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; color: var(--primary); }
.contact-info-item .label { font-size: .85rem; color: var(--text-muted); }
.contact-info-item .value { font-size: .95rem; color: var(--text-dark); font-weight: 500; }

.contact-form { padding: 30px; background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.contact-form h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .92rem; font-family: inherit; transition: border-color var(--transition); background: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,196,.1); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-msg { margin-top: 12px; padding: 12px; border-radius: var(--radius); font-size: .88rem; display: none; }
.form-msg.show { display: block; }
.form-msg.success { background: #e6f7ed; color: #1a7d3c; border: 1px solid #b5e4c4; }

/* ========== Footer ========== */
.site-footer { background: #111827; color: #9ca3af; padding: 50px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: .85rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; font-size: .88rem; margin-bottom: 10px; color: #9ca3af; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #374151; padding: 20px 0; text-align: center; font-size: .8rem; color: #6b7280; }

/* ========== Back to Top ========== */
.back-top {
  position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px;
  background: var(--primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  cursor: pointer; border: none; opacity: 0; pointer-events: none;
  transition: all var(--transition); z-index: 999; box-shadow: 0 4px 16px rgba(26,86,196,.3);
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ========== Responsive ========== */
@media (max-width: 992px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 16px; transform: translateX(100%);
    transition: transform var(--transition); box-shadow: var(--shadow);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu a { padding: 14px 16px; border-radius: var(--radius); font-size: 1rem; border-bottom: 1px solid var(--border); }
  .nav-menu a:hover, .nav-menu a.active { background: var(--primary-light); }
  .nav-menu a.active::after { display: none; }
  .nav-cta { text-align: center; margin-top: 8px; }

  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-icons { gap: 20px; }
  .hero-icon { font-size: 1.5rem; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-item .stat-num { font-size: 2rem; }

  .section { padding: 50px 0; }
  .section-title h2 { font-size: 1.6rem; }

  .about-content { grid-template-columns: 1fr; }
  .about-image { min-height: 200px; font-size: 3rem; }

  .news-grid, .product-grid, .features { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { margin: 30px 0; padding: 40px 20px; }
  .cta-band h2 { font-size: 1.4rem; }

  .back-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}
