/* =====================================================
   新时瑞供应链 XSR — 美国海外仓官网样式
   主题：红（品牌色 #e11d2e）× 黑 × 白，参考华人行红色系
   ===================================================== */

:root {
  --red: #e11d2e;
  --red-dark: #a3101f;
  --gold: #c8a45c;
  --gold-soft: #e8d9b5;
  --dark: #0e1726;
  --black: #17181c;
  --text: #333;
  --muted: #777;
  --bg: #fff;
  --bg-alt: #f7f8fa;
  --radius: 16px;
  --shadow: 0 14px 40px rgba(23, 24, 28, .10);
  --shadow-lg: 0 26px 60px rgba(14, 23, 38, .18);
  --gradient-gold: linear-gradient(135deg, #e8c878 0%, #c8a45c 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(200, 164, 92, .3); color: #1a1a1a; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.nowrap { white-space: nowrap; }

.container { width: min(1120px, 92%); margin: 0 auto; }
.container-narrow { width: min(860px, 92%); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 3px solid var(--red);
  border-bottom: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}
.brand img { height: 44px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.nav-link {
  font-size: 15px; color: var(--text); position: relative; padding: 6px 0;
}
.nav-link:hover { color: var(--red); }
.nav-link.active { color: var(--red); font-weight: 600; }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--red); border-radius: 2px;
}

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--black);
  margin: 5px 0; border-radius: 2px; transition: .25s;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; font-size: 15px;
  padding: 10px 22px; border-radius: 999px; font-weight: 600;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.btn-gold { background: var(--gradient-gold); color: #4a3410; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(120deg, rgba(14,23,38,.94) 0%, rgba(20,32,52,.90) 45%, rgba(42,20,24,.90) 100%),
    url("../img/warehouse-dock.jpg") center/cover no-repeat;
  padding: 96px 0 80px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 380px at 80% 16%, rgba(200,164,92,.22), transparent 70%),
    radial-gradient(520px 320px at 10% 90%, rgba(225,29,46,.16), transparent 70%);
}
.hero-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
  position: relative; z-index: 1;
}
.hero h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.35; margin-bottom: 10px; }
.hero-sub { font-size: clamp(17px, 2vw, 22px); margin-bottom: 26px; color: var(--gold-soft); }
.hero-sub strong { color: var(--gold); }
.hero-list { list-style: none; display: grid; gap: 12px; }
.hero-list li { padding-left: 30px; position: relative; font-size: 16px; }
.hero-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: #27c24c; color: #fff; font-size: 13px;
  display: flex; align-items: center; justify-content: center; margin-top: 4px;
}

.hero-qr { justify-self: center; }
.qr-card {
  background: #fff; color: var(--text); border: 0; cursor: pointer;
  border-radius: var(--radius); padding: 18px 22px; text-align: center;
  display: grid; justify-items: center; gap: 6px;
  box-shadow: 0 12px 34px rgba(0,0,0,.25);
}
.qr-card img { border-radius: 8px; }
.qr-title { font-weight: 700; font-size: 16px; color: var(--black); }
.qr-sub { font-size: 12.5px; color: var(--muted); }

/* ---------- 数据条 ---------- */
.stats { background: var(--dark); color: #fff; padding: 28px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stat strong { display: block; font-size: 32px; color: var(--gold); line-height: 1.2; font-weight: 800; }
.stat span { font-size: 13.5px; color: #c9ccd4; }

/* ---------- 通用 Section ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: grid; justify-items: center; gap: 10px; margin-bottom: 48px; }
.section-head .bar { width: 44px; height: 4px; background: var(--gradient-gold); border-radius: 2px; }
.section-head h2 { font-size: 30px; color: var(--black); letter-spacing: 3px; font-weight: 700; }

/* ---------- 产品卡片 ---------- */
.product-card {
  display: grid; grid-template-columns: 420px 1fr; gap: 40px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 34px; margin-bottom: 34px; align-items: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card.reverse { grid-template-columns: 1fr 420px; }
.product-card.reverse .product-media { order: 2; }
.product-card.reverse .product-copy { order: 1; }

.product-media { position: relative; }
.product-media img { width: 100%; height: 280px; object-fit: cover; border-radius: 10px; transition: transform .4s ease; }
.product-card:hover .product-media img { transform: scale(1.04); }
.media-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(190, 20, 45, .92));
  color: #fff; text-align: center; padding: 26px 10px 12px;
  border-radius: 0 0 10px 10px; font-size: 14.5px; font-weight: 600;
}
.product-no {
  font-size: 52px; font-weight: 800; color: rgba(200, 164, 92, .18);
  float: right; line-height: 1;
}
.product-copy h3 { font-size: 22px; color: var(--black); margin: 4px 0 2px; }
.product-copy h3::before {
  content: ""; display: inline-block; width: 4px; height: 18px;
  background: var(--red); margin-right: 10px; border-radius: 2px; vertical-align: -2px;
}
.product-tag { color: var(--red); font-weight: 600; font-size: 14.5px; margin-bottom: 10px; }
.product-copy p:last-child { color: #555; font-size: 15px; }

/* ---------- 合作横幅 ---------- */
.banner { position: relative; overflow: hidden; }
.banner > img { width: 100%; height: 320px; object-fit: cover; filter: brightness(.55); }
.banner-text {
  position: absolute; inset: 0; display: grid; place-content: center;
  justify-items: center; gap: 12px; color: #fff; text-align: center; padding: 0 5%;
}
.banner-text h2 { font-size: clamp(24px, 3vw, 36px); letter-spacing: 4px; }
.banner-text p { color: #d9dbe0; }
.partner-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 720px; }
.partner-chips span {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  padding: 6px 16px; border-radius: 999px; font-size: 13.5px; backdrop-filter: blur(2px);
}

/* ---------- 客户反馈 ---------- */
/* 客户反馈 - 横向滑动 */
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 44px; }
.block-head .section-head { margin-bottom: 0; }
.slider-nav { display: flex; gap: 10px; flex: 0 0 auto; }
.slider-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid #e3e3ea; background: #fff; color: var(--black);
  font-size: 22px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow);
}
.slider-arrow:hover:not(:disabled) { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }
.slider-arrow:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.testimonial-slider { position: relative; }
.testimonial-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: 10px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.testimonial-track::-webkit-scrollbar { height: 6px; }
.testimonial-track::-webkit-scrollbar-thumb { background: #d9dbe2; border-radius: 3px; }
.testimonial {
  flex: 0 0 360px; max-width: 360px; scroll-snap-align: start;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; display: grid; gap: 18px; align-content: space-between;
  transition: transform .25s ease, box-shadow .25s ease;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial blockquote {
  font-size: 15px; color: #444; position: relative; padding-top: 18px;
}
.testimonial blockquote::before {
  content: "\201C"; position: absolute; top: -8px; left: -4px;
  font-size: 52px; color: rgba(200, 164, 92, .28); line-height: 1;
}
.testimonial figcaption { border-top: 1px solid #eee; padding-top: 14px; display: grid; gap: 2px; }
.testimonial figcaption strong { color: var(--black); font-size: 15px; }
.testimonial figcaption span { color: var(--muted); font-size: 13px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: #fff; border: 1px solid #ececf0; border-radius: 12px;
  overflow: hidden; transition: box-shadow .2s;
}
.faq-item[open] { box-shadow: var(--shadow); border-color: rgba(225,29,46,.35); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px;
  font-weight: 600; color: var(--black); font-size: 16px; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--red); font-weight: 400; transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--red); }
.faq-answer { padding: 0 20px 18px; color: #555; font-size: 15px; border-top: 1px dashed #eee; padding-top: 14px; }


/* 关于我们 - 顶部文案 */
.about-copy {
  max-width: 860px; margin: 0 auto 4px; text-align: center;
}
.about-copy p { color: #555; font-size: 15.5px; line-height: 1.8; }
.about-copy p + p { margin-top: 12px; }

/* 关于我们 - 横向全宽图片画廊（桌面端 3 张一行） */
.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.about-fig {
  position: relative; margin: 0;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: #fff;
}
.about-fig img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.about-fig:hover img { transform: scale(1.05); }
.about-fig figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(14,23,38,.86));
  color: #fff; text-align: center; padding: 28px 10px 12px;
  font-size: 14px; font-weight: 600; letter-spacing: 1px;
}

/* 关于我们 - 企业详情面板 */
.about-detail {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.detail-block {
  background: #fff; border: 1px solid #ececf0; border-top: 3px solid var(--gold);
  border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.detail-block:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.10); }
.detail-block h3 {
  font-size: 19px; color: var(--black); margin-bottom: 14px;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.detail-block h3 .en { font-size: 12px; color: var(--red); letter-spacing: 1px; font-weight: 600; }
.detail-lead { color: #444; font-size: 15.5px; line-height: 1.7; margin-bottom: 8px; }
.detail-note { color: #8a8f99; font-size: 13.5px; line-height: 1.6; }

/* 操作流程 步骤 */
.process-steps { list-style: none; counter-reset: none; display: grid; gap: 14px; }
.process-steps li { display: flex; gap: 14px; align-items: flex-start; }
.process-steps .step-no {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
}
.process-steps li div strong { color: var(--black); font-size: 15.5px; }
.process-steps li div p { color: #666; font-size: 14px; line-height: 1.6; margin-top: 3px; }

/* 优势 / 海外仓服务 列表 */
.adv-list { list-style: none; display: grid; gap: 11px; }
.adv-list li { position: relative; padding-left: 18px; color: #555; font-size: 14.5px; line-height: 1.6; }
.adv-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px;
  border-radius: 2px; background: var(--red);
}
.adv-list li strong { color: var(--black); }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; align-items: stretch; }
.contact-card {
  background: var(--bg-alt); border-radius: var(--radius); padding: 30px;
  border: 1px solid #ececf0; display: grid; align-content: start; gap: 12px;
}
.contact-card h3 { color: var(--black); font-size: 18px; }
.contact-card p { font-size: 15px; color: #555; display: flex; align-items: baseline; gap: 10px; }
.contact-card a { color: var(--red); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #b9bec9; flex: 0 0 auto; transform: translateY(-2px); }
.dot-red { background: var(--red); }
.contact-qr { background: none; border: 0; padding: 0; text-align: center; }
.qr-item {
  margin: 0; background: #fff; border: 1px solid #ececf0; border-radius: var(--radius);
  padding: 18px 20px; display: grid; gap: 6px; justify-items: center; align-content: start;
  cursor: pointer; transition: box-shadow .2s, transform .2s;
}
.qr-item:hover, .qr-item:focus-visible { box-shadow: var(--shadow); transform: translateY(-2px); outline: none; }
.qr-item img { border-radius: 8px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--black); color: #9aa0ab; padding: 34px 0; }
.footer-inner { display: grid; justify-items: center; gap: 14px; text-align: center; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-nav a:hover { color: #fff; }
.copyright { font-size: 13px; }

/* ---------- 二维码弹窗 ---------- */
.qr-dialog {
  border: 0; border-radius: var(--radius); padding: 30px 34px;
  text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.qr-dialog::backdrop { background: rgba(0,0,0,.55); }
.qr-dialog img { border-radius: 10px; margin: 0 auto 12px; }
.dialog-close {
  position: absolute; top: 8px; right: 14px; background: none; border: 0;
  font-size: 26px; cursor: pointer; color: #999; line-height: 1;
}
.dialog-close:hover { color: var(--red); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-qr { justify-self: start; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .product-card, .product-card.reverse { grid-template-columns: 1fr; padding: 24px; }
  .product-card.reverse .product-media { order: 0; }
  .product-card.reverse .product-copy { order: 0; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .about-gallery { grid-template-columns: 1fr; gap: 16px; }
  .about-detail { grid-template-columns: 1fr; gap: 18px; margin-top: 38px; }
  .testimonial { flex: 0 0 82%; max-width: 82%; }
  .block-head { flex-wrap: wrap; gap: 12px; }
  .contact-grid { grid-template-columns: 1fr; }

  /* 移动端抽屉导航 */
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 18px 6% 24px; gap: 16px; box-shadow: 0 14px 24px rgba(0,0,0,.12);
    transform: translateY(-140%); transition: transform .28s ease; z-index: 99;
  }
  .site-nav.open { transform: translateY(0); }
  body.nav-locked { overflow: hidden; }
}

@media (max-width: 560px) {
  .hero { padding: 60px 0 52px; }
  .section { padding: 52px 0; }
  .product-media img { height: 220px; }
  .banner > img { height: 260px; }
}
