@charset "UTF-8";
/* ============================================================================
   铝气雾罐 / 铝瓶包装 B2B 外贸站 —— 公共样式表 (style.css)
   全站共用：设计变量 / 基础排版 / 顶部条 / 导航 / 页脚 / 按钮 / 表单 / 通用板块
   ---------------------------------------------------------------------------
   修改配色请只改第 1 节的 CSS 变量，全站自动生效。
   ========================================================================== */

/* ==========================================================================
   1. 设计变量（改这里就能换全站配色与尺寸）
   ========================================================================== */
:root {
  /* --- 主色 --- */
  --navy: #0B2A4A;          /* 深蓝：标题、导航、主按钮 */
  --navy-deep: #071B31;     /* 更深的蓝：页脚、按钮 hover */
  --blue: #1769AA;          /* 次强调：链接、图标、悬停 */
  --steel: #5B6673;         /* 正文文字（金属灰） */
  --steel-light: #8A949F;   /* 辅助文字 */
  --line: #E2E6EC;          /* 描边与分隔线 */
  --bg-soft: #F4F6F9;       /* 浅灰板块底色 */
  --white: #FFFFFF;
  --metal: linear-gradient(135deg, #F7F8FA, #E6EAEF); /* 金属灰渐变 */

  /* --- 尺寸 --- */
  --container: 1200px;      /* 内容区最大宽度 */
  --gut: 24px;              /* 左右留白 */
  --header-h: 74px;         /* 导航高度 */
  --sec-y: 80px;            /* 板块上下间距 */
  --r-card: 6px;
  --r-btn: 4px;
  --shadow: 0 6px 20px rgba(11, 42, 74, .08);

  /* --- 字体（系统字体栈，不加载外部字体） --- */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ==========================================================================
   2. 基础重置与排版
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px); /* 锚点跳转不被导航遮挡 */
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--steel);
  background: var(--white);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* 通用文字样式 */
.h1 { font-size: 44px; line-height: 1.18; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.h2 { font-size: 32px; line-height: 1.25; font-weight: 700; color: var(--navy); }
.h3 { font-size: 20px; line-height: 1.35; font-weight: 600; color: var(--navy); }
.lead { font-size: 17px; line-height: 1.75; }
.muted { color: var(--steel-light); font-size: 14px; }
.text-center { text-align: center; }

/* 容器 */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gut);
}

/* ==========================================================================
   3. 板块与板块标题
   ========================================================================== */
.section { padding: var(--sec-y) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #C6D2E0; }
.section--navy .h1,
.section--navy .h2,
.section--navy .h3 { color: var(--white); }
.section--navy .muted { color: #8FA2B8; }
.section--tight { padding-top: 0; }

.sec-head { max-width: 780px; margin-bottom: 42px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { margin-top: 14px; }
.sec-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  max-width: none;
}
.sec-head--row .sec-head__txt { max-width: 720px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section--navy .eyebrow { color: #6FB2E8; }

/* ==========================================================================
   4. 按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.btn svg { width: 15px; height: 15px; }

.btn--primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }

.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); }

.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: #E7EDF4; border-color: #E7EDF4; }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .48); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { width: 100%; }

/* 文字箭头链接 */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--blue);
}
.link-arrow svg { width: 14px; height: 14px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ==========================================================================
   5. 顶部信息条
   ========================================================================== */
.topbar {
  background: var(--navy-deep);
  color: #B8C6D6;
  font-size: 13.5px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
}
.topbar__left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; flex: none; }
.topbar__right { display: flex; align-items: center; gap: 20px; }
.topbar__wa { color: #fff; font-weight: 600; }

/* ==========================================================================
   6. 主导航
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-stuck { box-shadow: 0 3px 16px rgba(11, 42, 74, .08); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}
.logo { flex: none; display: block; }
.logo img { height: 42px; width: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__list > li { position: relative; }
.nav__list > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  /* 阿语/西语等译文明显长于英文（الأسئلة الشائعة / Preguntas frecuentes），
     不锁单行会被挤成两行、把页头高度撑成两倍 */
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav__list > li > a:hover { color: var(--blue); background: var(--bg-soft); }

/* ---------------------------------------------------------------------------
   桌面端页头密度收紧。
   为什么需要：导航有 7 个顶层项，译文又明显长于英文（俄语「Часто задаваемые
   вопросы」25 字符、西语「Preguntas frecuentes」20 字符）。内容区实际可用宽度
   只有 1200 − 24×2 = 1152px（--container 1200、--gut 24）。
   而每个导航链接都设了 white-space: nowrap（不锁单行会被挤成两行），CSS 里也没有
   允许 .nav 收缩的余地，一旦总宽超出就直接变成页头横向溢出。
   这里只收紧内边距（14px → 9px）与列表间距（4px → 2px），
   **不改文字、不改顺序、不改字号**；≤1024px 走汉堡菜单，完全不受影响。
   ⚠ 这是基于静态估算的保险措施，最终仍应以浏览器实测为准。
   --------------------------------------------------------------------------- */
@media (min-width: 1025px) {
  .header__inner { gap: 16px; }
  .nav__list { gap: 2px; }
  .nav__list > li > a { padding-left: 9px; padding-right: 9px; }
  /* 下划线是用 left/right:14px 定位的，要跟着内边距一起收，否则会超出文字范围 */
  .nav__list > li > a.is-active::after { left: 9px; right: 9px; }
}
.nav__list > li > a.is-active { color: var(--blue); }
.nav__list > li > a.is-active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 3px;
  height: 2px;
  background: var(--blue);
}
.caret { width: 11px; height: 11px; flex: none; transition: transform .2s; }
.nav__list > li:hover > a .caret { transform: rotate(180deg); }

/* 下拉子菜单（桌面） */
.nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 262px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__list > li:hover > .nav__sub,
.nav__list > li:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub a {
  display: block;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--steel);
  transition: background .18s, color .18s;
}
.nav__sub a:hover { background: var(--bg-soft); color: var(--navy); }

/* 汉堡按钮（仅移动端显示） */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: auto;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .22s, opacity .22s;
}
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端遮罩（由 main.js 自动插入） */
.nav-backdrop {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  top: var(--header-h);
  z-index: 50;
  background: rgba(11, 42, 74, .38);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

/* ==========================================================================
   7. 页脚
   ========================================================================== */
.site-footer { background: var(--navy-deep); color: #A9B8CA; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding: 64px 0 48px;
}
.footer__logo { height: 40px; width: auto; margin-bottom: 18px; }
.footer__col h3 { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 18px; }
.footer__col p { font-size: 14.5px; line-height: 1.75; }

.footer__links li { margin-bottom: 11px; }
.footer__links a { font-size: 14.5px; transition: color .2s; }
.footer__links a:hover { color: #fff; }

.footer__contact li { display: flex; gap: 10px; margin-bottom: 13px; font-size: 14.5px; line-height: 1.6; }
.footer__contact svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: #6FB2E8; }
.footer__contact a:hover { color: #fff; }

.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #C6D2E0;
  transition: background .2s, color .2s, border-color .2s;
}
.footer__social a:hover { background: #fff; color: var(--navy); border-color: #fff; }
.footer__social svg { width: 16px; height: 16px; }

.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  font-size: 13.5px;
}
.footer__bottom ul { display: flex; gap: 22px; }
.footer__bottom a:hover { color: #fff; }

/* ==========================================================================
   8. 内页顶部 Banner + 面包屑
   ========================================================================== */
.page-banner {
  position: relative;
  padding: 56px 0 52px;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--metal);
  opacity: .07;
  pointer-events: none;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { font-size: 36px; line-height: 1.2; font-weight: 700; color: #fff; margin-top: 4px; }
.page-banner p { margin-top: 14px; max-width: 720px; color: #B8C6D6; font-size: 15.5px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: #9FB0C4; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: '/'; color: #566B85; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; }

/* ==========================================================================
   9. 表单
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid--1 { grid-template-columns: 1fr; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.field .req { color: #C0392B; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: #fff;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 122px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, .12);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #C0392B; }
.field__err { display: none; font-size: 12.5px; color: #C0392B; }
.field.has-error .field__err { display: block; }
.field--full { grid-column: 1 / -1; }

.form-note { margin-top: 12px; font-size: 12.5px; color: var(--steel-light); }
.form-success {
  display: none;
  padding: 16px 18px;
  border: 1px solid #BFE0C8;
  border-radius: var(--r-card);
  background: #F0F9F2;
  color: #276B3A;
  font-size: 14.5px;
}
.form-success.is-visible { display: block; }
/* 提交失败提示：由 main.js 在需要时动态插入，结构与 .form-success 对称 */
.form-error {
  display: none;
  padding: 16px 18px;
  border: 1px solid #E3B9B2;
  border-radius: var(--r-card);
  background: #FDF1EF;
  color: #96291B;
  font-size: 14.5px;
}
.form-error.is-visible { display: block; }
.section--navy .field label { color: #fff; }
.section--navy .form-note { color: #8FA2B8; }

/* ==========================================================================
   10. 悬浮按钮（WhatsApp / 回到顶部）
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, .38);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 26px; height: 26px; }

.to-top {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--navy-deep); }
.to-top svg { width: 18px; height: 18px; }

/* ==========================================================================
   11. 通用小工具类
   ========================================================================== */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 卡片通用外观 */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #CFD8E2; }

/* ==========================================================================
   12. 响应式（断点：1024 / 768 / 480）
   ========================================================================== */

/* ---------- 平板及以下：切换为移动导航 ---------- */
@media (max-width: 1024px) {
  :root { --sec-y: 60px; }

  .h1 { font-size: 34px; }
  .h2 { font-size: 26px; }
  .page-banner h1 { font-size: 29px; }

  .burger { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    z-index: 55;
    width: min(360px, 86vw);
    margin: 0;
    padding: 10px 20px 40px;
    background: #fff;
    overflow-y: auto;
    transform: translateX(102%);
    transition: transform .28s ease;
    box-shadow: -8px 0 30px rgba(11, 42, 74, .14);
  }
  body.nav-open .nav { transform: translateX(0); }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__list > li > a {
    justify-content: space-between;
    padding: 15px 4px;
    font-size: 16px;
    border-radius: 0;
  }
  .nav__list > li > a:hover { background: transparent; }
  .nav__list > li > a.is-active::after { display: none; }

  /* 移动端子菜单改为可折叠 */
  .nav__sub {
    position: static;
    min-width: 0;
    padding: 0 0 10px 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .nav__list > li.is-open > .nav__sub { display: block; }
  .nav__sub a { padding: 11px 10px; }

  .header__cta { display: none; } /* 移动端 CTA 收进菜单，避免挤压 */

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; padding: 48px 0 36px; }
  .footer__col--brand { grid-column: 1 / -1; }

  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--5 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 手机 ---------- */
@media (max-width: 768px) {
  :root { --sec-y: 44px; --gut: 18px; --header-h: 64px; }

  .topbar__left li:nth-child(2) { display: none; } /* 手机上只留一个联系方式 */
  .topbar { font-size: 12.5px; }
  .topbar__inner { min-height: 38px; }

  .logo img { height: 34px; }
  .h1 { font-size: 27px; }
  .h2 { font-size: 22px; }
  .h3 { font-size: 18px; }
  .lead { font-size: 15.5px; }
  .page-banner { padding: 38px 0 34px; }
  .page-banner h1 { font-size: 23px; }

  .sec-head { margin-bottom: 28px; }
  .sec-head--row { flex-direction: column; align-items: flex-start; gap: 20px; }

  .grid { gap: 18px; }
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }

  .form-grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 30px; padding: 40px 0 32px; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; }

  .whatsapp-float { width: 48px; height: 48px; right: 14px; bottom: 14px; }
  .to-top { width: 40px; height: 40px; right: 14px; bottom: 72px; }
}

@media (max-width: 480px) {
  .btn { padding: 13px 20px; font-size: 14.5px; }
  .btn--lg { padding: 14px 22px; font-size: 15px; }
}
