/* ==========================================================
   宜锋（杭州）科技有限公司 · 企业官网样式
   Style: 商务专业（Business Professional）
   ========================================================== */

:root {
  --brand-900: #0A2540;
  --brand-800: #102E52;
  --brand-700: #1F3864;
  --brand-500: #1F6FEB;
  --brand-300: #6FA8FF;
  --brand-050: #EAF1FB;
  --accent:    #F5A623;
  --bg:        #FFFFFF;
  --bg-soft:   #F5F7FA;
  --bg-mute:   #EDF1F7;
  --text:      #0A2540;
  --text-2:    #3F4A5A;
  --text-3:    #6B7686;
  --border:    #E1E7EF;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow:    0 6px 24px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 20px 48px rgba(10, 37, 64, 0.14);
  --radius:    12px;
  --radius-lg: 18px;
  --max-w:     1200px;
  --header-h:  72px;
  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-zh), var(--font-en);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[lang="en"] body { font-family: var(--font-en), var(--font-zh); }

img { max-width: 100%; display: block; }
a { color: var(--brand-500); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-700); }

h1, h2, h3, h4 { color: var(--brand-900); line-height: 1.3; margin: 0 0 16px; font-weight: 700; }
h1 { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -0.5px; }
h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.3px; }
h3 { font-size: 20px; }
p  { margin: 0 0 16px; color: var(--text-2); }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; color: var(--brand-900); font-size: 18px; letter-spacing: .2px;
}
.logo:hover { color: var(--brand-900); }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-en); font-weight: 800; font-size: 15px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(31,111,235,.35);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text small { font-size: 11px; color: var(--text-3); font-weight: 500; letter-spacing: .5px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 10px 14px; border-radius: 8px;
  color: var(--text-2); font-weight: 500; font-size: 15px;
  transition: all .2s ease;
}
.nav a:hover { color: var(--brand-700); background: var(--brand-050); }
.nav a.active { color: var(--brand-700); background: var(--brand-050); font-weight: 600; }

.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: var(--bg-mute); border: 1px solid var(--border);
}
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 12px; font-size: 13px; font-weight: 600;
  color: var(--text-3); border-radius: 999px;
  font-family: var(--font-en); letter-spacing: .3px;
  transition: all .2s ease;
}
.lang-switch button.active {
  background: #fff; color: var(--brand-700);
  box-shadow: var(--shadow-sm);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  color: #fff;
  box-shadow: 0 8px 22px rgba(31,111,235,.32);
}
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(31,111,235,.42); }
.btn-ghost {
  background: #fff; color: var(--brand-700);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--brand-050); color: var(--brand-700); }
.btn-light {
  background: rgba(255,255,255,.14); color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
}
.btn-light:hover { background: rgba(255,255,255,.22); color: #fff; }

.menu-toggle {
  display: none; background: transparent; border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; cursor: pointer;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px; background: var(--brand-900); margin: 3px 0;
  border-radius: 2px;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  color: #fff;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(31,111,235,.55), transparent 60%),
    radial-gradient(900px 500px at 100% 10%, rgba(111,168,255,.35), transparent 60%),
    linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 55%, #164A8A 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 20%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, #000 30%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24);
  font-size: 13px; letter-spacing: .5px; margin-bottom: 22px;
  color: #DCE7FA;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 4px rgba(74,222,128,.18); }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero-lead { color: #C7D6EC; font-size: 18px; max-width: 620px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.hero-card h3 { color: #fff; margin-bottom: 14px; font-size: 17px; letter-spacing: .3px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 14px 16px;
}
.stat b { display: block; font-family: var(--font-en); font-size: 26px; color: #fff; font-weight: 800; letter-spacing: -0.5px; }
.stat span { font-size: 12px; color: #B9C9E2; letter-spacing: .3px; }

/* ---------------- Sections ---------------- */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--brand-050); color: var(--brand-700);
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px; margin-bottom: 14px;
  text-transform: uppercase;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--text-3); font-size: 17px; }

.bg-soft { background: var(--bg-soft); }

/* Cards grid */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #C6D5EE; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-050), #fff);
  border: 1px solid var(--border);
  display: grid; place-items: center; margin-bottom: 18px;
  color: var(--brand-700);
}
.card h3 { margin-bottom: 10px; font-size: 18px; }
.card p { margin: 0; color: var(--text-3); font-size: 14.5px; line-height: 1.75; }

/* Category card (products) */
.cat-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-cover {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative; overflow: hidden;
}
.cat-cover-smart { background-color: #1F3864; background-image: url('../img/cat-smart.jpg'); }
.cat-cover-play  { background-color: #0F5132; background-image: url('../img/cat-play.jpg'); }
.cat-cover-wear  { background-color: #7B2C3B; background-image: url('../img/cat-wear.jpg'); }
.cat-cover::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,37,64,.30), rgba(10,37,64,0) 42%, rgba(10,37,64,.12));
}
.cat-cover .cat-tag {
  position: absolute; top: 18px; left: 18px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  color: #fff; font-size: 12px; letter-spacing: .8px; text-transform: uppercase;
  font-family: var(--font-en); font-weight: 600;
}
.cat-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.cat-body h3 { margin-bottom: 8px; }
.cat-body p { color: var(--text-3); font-size: 14.5px; }
.cat-list { margin: 14px 0 0; padding: 0; list-style: none; }
.cat-list li {
  padding: 6px 0; font-size: 14px; color: var(--text-2);
  border-top: 1px dashed var(--border);
  display: flex; align-items: flex-start; gap: 8px;
}
.cat-list li:first-child { border-top: 0; }
.cat-list li::before { content: "▸"; color: var(--brand-500); font-size: 12px; margin-top: 3px; }

/* Feature strip */
.strip {
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
  color: #fff; padding: 60px 0; border-radius: 0;
}
.strip .grid-4 { gap: 20px; }
.strip-item { text-align: center; }
.strip-item b {
  display: block; font-family: var(--font-en); font-size: 40px; font-weight: 800;
  color: #fff; letter-spacing: -1px; margin-bottom: 6px;
}
.strip-item span { color: #B9C9E2; font-size: 14px; letter-spacing: .3px; }

/* Timeline */
.timeline { position: relative; margin-top: 40px; padding-left: 32px; }
.timeline::before {
  content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(180deg, var(--brand-500), var(--brand-050));
  border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 26px 12px; }
.tl-item::before {
  content: ""; position: absolute; left: -28px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand-500);
  box-shadow: 0 0 0 4px rgba(31,111,235,.14);
}
.tl-item h4 { margin: 0 0 6px; color: var(--brand-900); font-size: 17px; }
.tl-item .year {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--brand-050); color: var(--brand-700);
  font-family: var(--font-en); font-weight: 700; font-size: 12px; letter-spacing: 1px;
  margin-bottom: 8px;
}
.tl-item p { margin: 0; color: var(--text-3); font-size: 14.5px; }

/* Values */
.value-card { padding: 26px 24px; }
.value-card .num {
  font-family: var(--font-en); font-size: 32px; font-weight: 800;
  color: var(--brand-050); letter-spacing: -1px; margin-bottom: 6px;
  -webkit-text-stroke: 1.5px var(--brand-300);
}

/* Product detail table */
.spec-table {
  width: 100%; border-collapse: collapse; margin-top: 12px;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.spec-table th, .spec-table td {
  padding: 14px 18px; text-align: left; font-size: 14.5px;
  border-bottom: 1px solid var(--border); vertical-align: top;
}
.spec-table th { background: var(--bg-mute); color: var(--brand-900); font-weight: 600; width: 200px; }
.spec-table tr:last-child td, .spec-table tr:last-child th { border-bottom: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; }
.contact-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.contact-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--border); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .ci-icon {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 10px;
  background: var(--brand-050); color: var(--brand-700);
  display: grid; place-items: center;
}
.contact-item h4 { margin: 0 0 4px; font-size: 15px; color: var(--brand-900); }
.contact-item p { margin: 0; font-size: 14.5px; color: var(--text-3); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { margin-bottom: 14px; }
.form-field label {
  display: block; font-size: 13px; font-weight: 600; color: var(--text-2);
  margin-bottom: 6px; letter-spacing: .3px;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 11px 14px; border-radius: 8px;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  font-size: 14.5px; font-family: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: 0; border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(31,111,235,.14);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12.5px; color: var(--text-3); margin-top: 10px; }
.form-ok {
  display: none; margin-top: 12px; padding: 12px 14px; border-radius: 8px;
  background: #EAF7EE; color: #1F6E36; border: 1px solid #C7E8D0; font-size: 14px;
}
.form-ok.show { display: block; }

/* CTA banner */
.cta-banner {
  background:
    radial-gradient(800px 300px at 10% 0%, rgba(31,111,235,.4), transparent 60%),
    linear-gradient(135deg, var(--brand-900), var(--brand-700));
  color: #fff; border-radius: var(--radius-lg);
  padding: 48px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: #C7D6EC; margin: 0; }

/* Page header (inner pages) */
.page-header {
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 300px at 90% 0%, rgba(31,111,235,.35), transparent 60%),
    linear-gradient(135deg, var(--brand-900), var(--brand-700));
  color: #fff;
}
.page-header h1 { color: #fff; margin-bottom: 10px; }
.page-header p { color: #C7D6EC; margin: 0; max-width: 720px; }
.breadcrumb { font-size: 13px; color: #B9C9E2; margin-bottom: 18px; letter-spacing: .5px; }
.breadcrumb a { color: #B9C9E2; }
.breadcrumb a:hover { color: #fff; }

/* Footer */
.site-footer {
  background: #061A2E; color: #A9B9D1; padding: 60px 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 40px;
}
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .3px; }
.site-footer a { color: #A9B9D1; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 5px 0; }
.footer-brand p { font-size: 14px; line-height: 1.75; margin: 12px 0 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: #7C8DA8; gap: 12px; flex-wrap: wrap;
}
.footer-bottom .icp a { color: #7C8DA8; }

/* Utility */
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.hidden { display: none !important; }

/* Animations */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hero { padding: 72px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  section { padding: 56px 0; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; border-radius: 6px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .spec-table th { width: 130px; }
  .strip-item b { font-size: 30px; }
  .hero-lead { font-size: 16px; }
}
