/* =========================================================
   Your Company Name — 外贸官网样式表
   想换网站主色？只改下面 :root 里的变量即可：
   --navy 深蓝（导航/页脚/首屏）  --accent 橙色（按钮/高亮）
   ========================================================= */

:root {
  --navy: #0e2a47;
  --navy-2: #164a7c;
  --accent: #ff7a1a;        /* 主强调色：按钮、深色背景上的高亮 */
  --accent-dark: #e96a0c;   /* 按钮悬停 */
  --accent-ink: #c2570a;    /* 浅色背景上的小号文字/链接（保证对比度） */
  --ink: #1c2b3a;
  --muted: #5d6d7e;
  --line: #e2e9f1;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(14, 42, 71, .06);
  --shadow-md: 0 14px 40px rgba(14, 42, 71, .12);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

section[id] { scroll-margin-top: 84px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(255, 122, 26, .35); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .2px; color: var(--navy); }
.logo-mark { width: 30px; height: 30px; color: var(--accent); flex: none; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav > a:not(.nav-cta) { font-size: 15px; font-weight: 600; color: var(--ink); position: relative; padding: 6px 0; }
.main-nav > a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent); transition: right .22s ease;
}
.main-nav > a:not(.nav-cta):hover::after { right: 0; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- 首屏 Hero ---------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #0b2340 0%, var(--navy) 45%, var(--navy-2) 100%);
  padding: 168px 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1.1px, transparent 1.1px);
  background-size: 28px 28px; opacity: .55;
}
.hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -180px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 122, 26, .28) 0%, rgba(255, 122, 26, 0) 68%);
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase;
  color: #ffc48f; border: 1px solid rgba(255, 196, 143, .4); border-radius: 999px;
  padding: 8px 16px; margin-bottom: 26px;
}
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.14; font-weight: 800; letter-spacing: -.5px; margin-bottom: 22px; }
.hero h1 .hl { color: var(--accent); }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: rgba(255, 255, 255, .82); max-width: 640px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 60px; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 34px; }
.hero-stats strong { display: block; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: #fff; }
.hero-stats span { font-size: 14px; color: rgba(255, 255, 255, .68); }

/* ---------------- 通用区块 ---------------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
.section h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.25; font-weight: 800; color: var(--navy); letter-spacing: -.3px; }
.section h2 .hl { color: var(--accent-dark); }
.section-desc { color: var(--muted); margin-top: 14px; font-size: 16.5px; }

/* ---------------- 关于我们 ---------------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--muted); margin-bottom: 16px; font-size: 16.5px; }
.check-list { margin: 24px 0 30px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; font-weight: 600; color: var(--ink); }
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 122, 26, .15); color: var(--accent-ink);
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.about-media {
  aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, #eaf1f9, #dbe7f3);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: #7e93aa; box-shadow: var(--shadow-sm);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-media svg { width: 74px; height: 74px; opacity: .85; }
.about-media span { font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* ---------------- 产品展示 ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(255, 122, 26, .45); }
.product-media {
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #eef3f9, #e0e9f4);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: #7e93aa; overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media svg { width: 56px; height: 56px; }
.product-media span { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.product-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3 { font-size: 19px; font-weight: 800; color: var(--navy); }
.product-body p { color: var(--muted); font-size: 15px; flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--accent-ink); }
.card-link svg { width: 15px; height: 15px; transition: transform .18s ease; }
.product-card:hover .card-link svg { transform: translateX(4px); }
.products-note { text-align: center; margin-top: 44px; color: var(--muted); }
.products-note a { color: var(--accent-ink); font-weight: 700; border-bottom: 1px solid rgba(194, 87, 10, .4); }

/* ---------------- 为什么选择我们 ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(255, 122, 26, .12); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------------- 行动号召横幅 ---------------- */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 8px; }
.cta-inner p { color: rgba(255, 255, 255, .8); }

/* ---------------- 联系我们 ---------------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.info-card {
  display: flex; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.info-card:hover { border-color: rgba(255, 122, 26, .5); box-shadow: var(--shadow-sm); }
.info-card .ic {
  width: 46px; height: 46px; flex: none; border-radius: 12px;
  background: rgba(14, 42, 71, .06); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.info-card .ic svg { width: 22px; height: 22px; }
.info-card .label { font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.info-card .value { font-weight: 700; color: var(--navy); word-break: break-all; }
.info-card a.value:hover { color: var(--accent-dark); }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow-sm); }
.contact-form h3 { font-size: 21px; font-weight: 800; color: var(--navy); margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fbfcfe;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 122, 26, .14);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); text-align: center; }
.form-note.error { color: #d4380d; font-weight: 700; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #0b2340; color: rgba(255, 255, 255, .75); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 44px; padding: 64px 0 48px; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 15px; max-width: 340px; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a, .footer-col span { display: block; font-size: 15px; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0; font-size: 13.5px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------------- 返回顶部 ---------------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; font-size: 19px; line-height: 1;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
}
.to-top:hover { background: var(--accent); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------------- WhatsApp 悬浮按钮 ---------------- */
.whatsapp-float {
  position: fixed; left: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 28px rgba(37, 211, 102, .5); }
.whatsapp-float svg { width: 27px; height: 27px; }

/* ---------------- 滚动显现动画 ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------------- 响应式（手机 / 平板） ---------------- */
@media (max-width: 1020px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 40px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 20px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav > a:not(.nav-cta) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav .nav-cta { margin-top: 14px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; max-width: 520px; }
  .hero { padding: 140px 0 80px; }
}
@media (max-width: 620px) {
  .section { padding: 68px 0; }
  .product-grid, .feature-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .contact-form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* 尊重系统「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.visible { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
