/* ════════════════════════════════════════════
   赤壁海外仓 CHIBI Overseas Warehouse
   品牌色取自 logo：藏青 #032551 + 橙 #F97316
   中性色统一带一点蓝偏，和藏青是一家人
   ════════════════════════════════════════════ */

:root {
  /* --red / --red-dark 是历史变量名，现在装的是橙色。
     沿用旧名是为了不改动下面几百行选择器。 */
  --red: #F97316;
  --red-dark: #DC5F08;

  --navy: #032551;
  --navy-2: #0A356E;

  --ink: #0C1B2E;
  --ink-2: #2C3E55;
  --slate: #5A6B80;
  --line: #DFE4EB;
  --bg: #FFFFFF;
  --bg-alt: #F4F6F9;

  --wrap: 1180px;
  --r: 10px;
  --shadow: 0 1px 2px rgba(6,20,40,.05), 0 8px 24px rgba(6,20,40,.06);
  --shadow-lg: 0 2px 4px rgba(6,20,40,.06), 0 18px 48px rgba(6,20,40,.10);

  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

/* <picture> 只是格式选择器，不参与布局 —— 让内部 img 直接受父容器规则约束 */
picture { display: contents; }
a { color: inherit; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--red); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ══ 排版 ══ */
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 1.1rem + 2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.06rem; font-weight: 650; }
p  { margin: 0 0 1em; }

.kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red); margin: 0 0 .6em;
}
.eyebrow {
  font-size: .74rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.82); margin: 0 0 1rem;
}

/* ══ 按钮 ══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px; border-radius: var(--r);
  font-size: .96rem; font-weight: 650; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--red); font-weight: 650; text-decoration: none; font-size: .93rem;
}
.link-arrow span { transition: transform .18s; }
.link-arrow:hover span { transform: translateX(4px); }

/* ══ 页头 ══ */
/* 页头用不透明纯白，不要半透明 + 毛玻璃。
   半透明会让页头颜色随背后内容变化 —— 首页压在大图上被染成蓝灰、
   报价页压在浅灰上近乎白，而且毛玻璃在元素上边缘取不到背景，
   会出现一条更浅的渐变带。手机浏览器据此给工具栏上色，就和页头
   之间显出一条缝，且 theme-color 无论取什么值都对不准。
   固定成一个确定的颜色后，各页表现一致，theme-color 也能精确匹配。 */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 1px 12px rgba(6,20,40,.06); }

.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand img { width: auto; height: 34px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.06rem; font-weight: 750; letter-spacing: .02em; }
.brand-text em {
  font-style: normal; font-size: .58rem; font-weight: 600;
  letter-spacing: .14em; color: var(--slate);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px; border-radius: 8px; text-decoration: none;
  font-size: .92rem; font-weight: 550; color: var(--ink-2);
  transition: background .16s, color .16s;
}
.nav a:hover { background: var(--bg-alt); color: var(--ink); }
.nav .nav-cta {
  background: var(--red); color: #fff; margin-left: 8px; font-weight: 650;
}
.nav .nav-cta:hover { background: var(--red-dark); color: #fff; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 9px; background: #fff; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4.5px;
}
.nav-toggle span { display: block; width: 17px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.3px) rotate(-45deg); }

/* ══ HERO ══ */
.hero { position: relative; color: #fff; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(3,20,44,.62) 0%, rgba(3,20,44,.42) 45%, rgba(3,20,44,.80) 100%),
    linear-gradient(90deg, rgba(3,20,44,.55) 0%, rgba(3,20,44,.05) 70%);
}

.hero-inner {
  position: relative;
  padding: clamp(140px, 17vh, 210px) 0 clamp(64px, 9vh, 104px);
}

.hero h1 {
  font-size: clamp(2.4rem, 1.2rem + 4.6vw, 4.1rem);
  font-weight: 800; letter-spacing: .01em; margin-bottom: .5rem;
}
.hero-en {
  display: block; margin-top: .5rem;
  font-size: clamp(.72rem, .5rem + .7vw, 1rem);
  font-weight: 600; letter-spacing: .26em; color: rgba(255,255,255,.78);
}
.hero-lede {
  font-size: clamp(1.15rem, .9rem + .9vw, 1.6rem);
  font-weight: 600; margin: 1.4rem 0 .4rem; color: #fff;
}
.hero-sub {
  color: rgba(255,255,255,.82); font-size: .98rem; margin-bottom: 2.2rem;
  display: flex; flex-wrap: wrap; gap: 6px 20px;
}
.hero-sub span { white-space: nowrap; position: relative; }
.hero-sub span + span::before {
  content: "·"; position: absolute; left: -12px; color: rgba(255,255,255,.5);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero 数据条 */
.hero-stats {
  position: relative;
  background: rgba(3,20,44,.58);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.14);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat {
  background: transparent; padding: 26px 20px; text-align: center;
  position: relative;
}
.stats-grid .stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 1px; background: rgba(255,255,255,.18);
}
.stat b {
  display: block; font-size: clamp(1.25rem, .9rem + 1.1vw, 1.85rem);
  font-weight: 750; letter-spacing: -.01em; line-height: 1.2;
}
.stat span { display: block; margin-top: 5px; font-size: .82rem; color: rgba(255,255,255,.78); }

/* ══ 区块 ══ */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark .kicker { color: #FFA05C; }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.section-head h2 { margin-bottom: .6rem; }
.section-lede { color: var(--slate); font-size: 1.02rem; margin: 0; }
.section-dark .section-lede { color: rgba(255,255,255,.72); }

/* ══ 关于 ══ */
.about-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 68px); align-items: center;
}
.about-copy h2 { margin-bottom: 1.1rem; }
.about-copy p { color: var(--slate); font-size: 1.02rem; }
.about-copy strong { color: var(--ink); font-weight: 650; }

.about-figure { margin: 0; }
.about-figure img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r); box-shadow: var(--shadow-lg);
}
.about-figure figcaption {
  margin-top: 12px; font-size: .84rem; color: var(--slate); text-align: center;
}

/* ══ 服务卡片 ══ */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 26px 28px; position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #D4D8DE; }
.card-num {
  display: block; font-size: .78rem; font-weight: 750; letter-spacing: .14em;
  color: var(--red); margin-bottom: 14px;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--slate); font-size: .94rem; margin: 0; }

.card-cta {
  background: var(--navy); border-color: var(--navy); color: #fff;
  display: flex; flex-direction: column; justify-content: center;
}
.card-cta p { color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.card-cta .link-arrow { color: #FFA05C; }

/* 承运商 */
.carriers { margin-top: clamp(38px, 5vw, 56px); text-align: center; }
.carriers-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--slate); margin-bottom: 1rem;
}
.carriers-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.carriers-list li {
  padding: 9px 22px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-weight: 650; font-size: .92rem; color: var(--ink-2);
}

/* ══ 流程 ══ */
.flow {
  list-style: none; margin: 0 0 clamp(40px, 5vw, 56px); padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  counter-reset: none;
}
.flow-step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px 24px;
}
.flow-step::after {
  content: ""; position: absolute; right: -12px; top: 50%;
  width: 8px; height: 8px; margin-top: -4px;
  border-top: 1.8px solid #C9CFD6; border-right: 1.8px solid #C9CFD6;
  transform: rotate(45deg);
}
.flow-step:last-child::after { display: none; }
.flow-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--red); color: #fff;
  font-size: .8rem; font-weight: 750; letter-spacing: .04em; margin-bottom: 14px;
}
.flow-step h3 { margin-bottom: .25rem; }
.flow-step p { color: var(--slate); font-size: .92rem; margin: 0; }

.goals {
  background: var(--bg-alt); border-radius: var(--r);
  padding: clamp(26px, 3.5vw, 38px);
}
.goals-title {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red); margin-bottom: 1rem;
}
.goals-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 32px;
}
.goals-list li {
  position: relative; padding-left: 26px; color: var(--slate); font-size: .95rem;
}
.goals-list li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
}
.goals-list strong { display: block; color: var(--ink); font-weight: 650; }

/* ══ 系统 ══ */
.system-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 5vw, 72px); align-items: center;
}
.system-copy h2 { margin-bottom: 1.1rem; }
.system-copy p { color: rgba(255,255,255,.74); font-size: 1.02rem; }

.system-grid-modules {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.system-grid-modules li {
  background: var(--navy-2); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r); padding: 22px 16px; text-align: center;
  transition: border-color .18s, background .18s;
}
.system-grid-modules li:hover { border-color: rgba(249,115,22,.5); background: #12447F; }
.system-grid-modules b {
  display: block; font-size: 1.02rem; font-weight: 750;
  letter-spacing: .06em; color: #FFA05C;
}
.system-grid-modules span {
  display: block; margin-top: 4px; font-size: .82rem; color: rgba(255,255,255,.68);
}

/* ══ 相册 ══ */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.g-item { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; background: #EDEFF2; }
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 3 / 2; transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.g-wide { grid-column: span 2; }
.g-wide img { aspect-ratio: 3 / 2; }
.g-item:hover img { transform: scale(1.04); }
.g-item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 26px 18px 14px; font-size: .85rem; font-weight: 550; color: #fff;
  background: linear-gradient(180deg, rgba(3,20,44,0), rgba(3,20,44,.78));
}

/* ══ 联系 ══ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 5vw, 68px); align-items: start;
}
.contact-copy h2 { margin-bottom: .6rem; }

.contact-list { margin: 2rem 0 0; display: grid; gap: 20px; }
.contact-list dt {
  font-size: .76rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--slate); margin-bottom: 5px;
}
.contact-list dd { margin: 0; font-size: 1rem; color: var(--ink); }
.contact-list dd a { color: var(--red); text-decoration: none; font-weight: 600; }
.contact-list dd a:hover { text-decoration: underline; }
.contact-list dd .link-arrow { display: flex; width: fit-content; margin-top: 10px; }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(26px, 3.4vw, 36px); box-shadow: var(--shadow);
  display: grid; gap: 15px;
}
.form-title { font-weight: 700; font-size: 1.06rem; margin: 0 0 .3rem; }
.contact-form label {
  display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--ink-2);
}
.contact-form input,
.contact-form textarea {
  font: inherit; font-size: .95rem; font-weight: 400;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); transition: border-color .16s, box-shadow .16s;
}
.contact-form textarea { resize: vertical; line-height: 1.6; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(249,115,22,.18);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9BA3AD; }
.form-note { margin: 0; font-size: .86rem; min-height: 1.4em; }
.form-note.ok { color: #1B7F4B; }
.form-note.err { color: var(--red); }

/* ══ 页脚 ══ */
.site-footer { background: var(--navy); color: rgba(255,255,255,.62); padding: 48px 0 40px; }
.footer-inner { display: grid; gap: 14px; justify-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.footer-brand img { width: auto; height: 30px; object-fit: contain; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.footer-brand strong { font-size: 1rem; font-weight: 700; }
.footer-brand span { font-size: .56rem; letter-spacing: .14em; color: rgba(255,255,255,.55); }
.footer-addr, .footer-copy { margin: 0; font-size: .85rem; }
.footer-copy { color: rgba(255,255,255,.42); font-size: .8rem; }

/* ══ 响应式 ══ */
@media (max-width: 980px) {
  .about-grid, .system-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-figure { order: -1; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step:nth-child(2)::after { display: none; }
  .goals-list { grid-template-columns: 1fr; gap: 16px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .g-wide { grid-column: span 2; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  .wrap { width: calc(100% - 36px); }

  .eyebrow { letter-spacing: .12em; font-size: .68rem; }
  /* 窄屏两行时分隔点会掉到行首，直接去掉 */
  .hero-sub { gap: 2px 0; }
  .hero-sub span + span::before { content: none; }

  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 18px 20px; box-shadow: var(--shadow-lg);
    transform: translateY(-140%); transition: transform .28s cubic-bezier(.3,.8,.4,1);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 12px; font-size: 1rem; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .nav-toggle { display: flex; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat + .stat::before { display: none; }
  .stat { padding: 20px 12px; }

  .flow { grid-template-columns: 1fr; }
  .flow-step::after { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .g-wide { grid-column: span 1; }
  .system-grid-modules { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ══ 表单补充 ══ */
.contact-form label .opt { font-weight: 400; color: var(--slate); }

/* 蜜罐：对人不可见，但对机器人是个正常字段。
   不用 display:none —— 有些爬虫会跳过被隐藏的字段。 */
.hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.contact-form button[type="submit"]:disabled { opacity: .6; cursor: not-allowed; }
