/* ============================================================
   Apex Sourcing Agent - 重构版公共样式
   ------------------------------------------------------------
   - 语义化类名，见名知意
   - 设计变量集中在 :root，改配色只需改这里
   - 移动优先 + 响应式
   ============================================================ */

/* ---------- 1. 设计变量 ---------- */
:root {
  --color-primary: #5baece;        /* 主色：天蓝（按钮/强调） */
  --color-primary-dark: #4a96b4;   /* 主色加深（hover） */
  --color-primary-light: #eaf5fa;  /* 主色浅底 */
  --color-text: #1f2733;           /* 正文深色 */
  --color-text-muted: #6b7280;     /* 次要文字 */
  --color-heading: #10151c;        /* 标题近黑 */
  --color-bg: #ffffff;             /* 页面背景 */
  --color-bg-soft: #f5f6f8;        /* 浅灰区块 */
  --color-border: #e5e7eb;         /* 边框 */
  --color-white: #ffffff;

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

  --container: 1180px;             /* 内容最大宽度 */
  --radius: 10px;                  /* 卡片圆角 */
  --radius-pill: 999px;            /* 胶囊按钮 */
  --shadow-soft: 0 12px 40px rgba(17, 24, 39, 0.10);
  --shadow-card: 0 8px 28px rgba(17, 24, 39, 0.08);

  --space-section: 88px;           /* 区块上下间距 */
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--color-heading); line-height: 1.2; margin: 0 0 16px; }
p { margin: 0 0 16px; }

/* ---------- 3. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: var(--space-section) 0; }
.section--soft { background: var(--color-bg-soft); }

/* ---------- 4. 通用组件 ---------- */

/* 小标签（如 "APEX SOURCING AGENT"） */
.eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* 区块标题 */
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 48px;
}

/* 标题下方的小绿叶装饰（原站风格） */
.title-decor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--color-primary);
  font-size: 14px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn--primary { background: var(--color-primary); color: var(--color-white); }
.btn--primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.btn--outline { border: 1px solid var(--color-primary); color: var(--color-primary); background: transparent; }
.btn--outline:hover { background: var(--color-primary-light); }
.btn__dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--color-primary);
}

/* ---------- 5. 页头 / 导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: inline-flex; align-items: baseline; gap: 6px; }
.brand__name { font-size: 30px; font-weight: 800; letter-spacing: -1px; color: #0b0d10; }
.brand__sub { font-size: 10px; color: var(--color-text-muted); line-height: 1; }
.nav__list { display: flex; align-items: center; gap: 30px; }
.nav__link { font-size: 14px; font-weight: 500; color: var(--color-text); }
.nav__link:hover, .nav__link.is-active { color: var(--color-primary); }
.nav__item--has-child { position: relative; }
.nav__caret { font-size: 9px; margin-left: 4px; }
/* 下拉菜单 */
.nav__dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--color-border); border-radius: 8px;
  box-shadow: var(--shadow-card); padding: 8px 0; min-width: 220px;
  opacity: 0; visibility: hidden; transition: .2s ease;
}
.nav__item--has-child:hover .nav__dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__dropdown a { display: block; padding: 9px 18px; font-size: 13px; white-space: nowrap; }
.nav__dropdown a:hover { background: var(--color-primary-light); color: var(--color-primary); }
.nav__toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* ---------- 6. Hero 区 ---------- */
.hero {
  position: relative;
  padding: 80px 0;
  background: var(--color-bg-soft);
  overflow: hidden;
}
.hero--image {
  background-size: cover; background-position: center;
}
.hero__panel {
  background: rgba(255, 255, 255, 0.94);
  padding: 40px 44px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  max-width: 750px;
}
.hero__title { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; margin-bottom: 18px; }
.hero__desc { font-size: 16px; color: var(--color-text); margin-bottom: 26px; }
.hero__note { font-size: 13px; color: var(--color-text-muted); margin-top: 16px; margin-bottom: 0; }

/* ---------- 7. 服务卡片（左右交错图文） ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row__media { position: relative; }
.feature-row__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.feature-row--reverse .feature-row__media { order: 2; }
.feature-row--reverse .feature-row__card { order: 1; }
.feature-row__card {
  background: #fff;
  padding: 38px 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border-bottom: 3px solid var(--color-primary);
}
.feature-row__title { font-size: 24px; font-weight: 800; margin-bottom: 18px; }
.feature-row__text { color: var(--color-text-muted); font-size: 15px; }
.feature-row__rule { width: 60px; height: 2px; background: var(--color-primary); margin: 18px 0; }

/* ---------- 8. 网格卡片（分类/步骤/团队） ---------- */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: 22px 20px; }
.card__title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card__text { font-size: 14px; color: var(--color-text-muted); }

/* 纯文字卡片（步骤/流程） */
.card--plain { padding: 30px 26px; text-align: center; box-shadow: var(--shadow-card); }
.card--plain .card__num {
  width: 46px; height: 46px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--color-primary-light); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}

/* ---------- 9. 数据 / 统计 ---------- */
.stat { text-align: center; }
.stat__num { font-size: 40px; font-weight: 800; color: var(--color-primary); }
.stat__label { font-size: 14px; color: var(--color-text-muted); }

/* ---------- 10. FAQ 手风琴 ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__q {
  width: 100%; text-align: left; padding: 18px 0;
  font-size: 16px; font-weight: 600; color: var(--color-heading);
  background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq__q::after { content: "+"; font-size: 22px; color: var(--color-primary); }
.faq__item.is-open .faq__q::after { content: "\2212"; }
.faq__a { display: none; padding: 0 0 18px; color: var(--color-text-muted); }
.faq__item.is-open .faq__a { display: block; }

/* ---------- 11. 客户评价 ---------- */
.testimonial { max-width: 760px; margin: 0 auto; text-align: center; }
.testimonial__text { font-size: 19px; font-style: italic; color: var(--color-text); }
.testimonial__author { margin-top: 18px; font-weight: 600; color: var(--color-primary); }

/* ---------- 12. 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-method {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; background: var(--color-bg-soft); border-radius: var(--radius);
  margin-bottom: 16px;
}
.contact-method__icon { font-size: 22px; }
.contact-method__label { font-size: 12px; color: var(--color-primary); font-weight: 700; }
.contact-method__value { font-size: 16px; font-weight: 600; }
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.qr-grid img { width: 100%; border-radius: 8px; box-shadow: var(--shadow-card); }
.qr-grid figcaption { text-align: center; font-size: 13px; color: var(--color-text-muted); margin-top: 8px; }

/* 简单的表单 */
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-border);
  border-radius: 8px; font-family: inherit; font-size: 14px;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--color-primary); }

/* ---------- 13. CTA 区 ---------- */
.cta { text-align: center; }
.cta__title { font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; margin-bottom: 18px; }

/* ---------- 14. 页脚 ---------- */
.site-footer {
  background: #fff; border-top: 1px solid var(--color-border);
  padding: 40px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; }
.footer-links a:hover { color: var(--color-primary); }
.footer-copy { font-size: 13px; color: var(--color-text-muted); }
.footer-brand .brand__name { font-size: 26px; }

/* ---------- 14.5 Banner 背景幻灯 ---------- */
.hero--slider { position: relative; padding: 60px 0; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .9s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide::after {           /* 半透明遮罩，保证文字可读 */
  content: ""; position: absolute; inset: 0;
  /* background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.86) 48%, rgba(255,255,255,.35) 100%); */
}
.hero--slider .container { position: relative; z-index: 1; }
.hero__panel--glass {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
}
.hero__dots { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 2; }
.hero__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(0,0,0,.25); border: none; cursor: pointer; padding: 0;
  transition: background .2s, width .2s;
}
.hero__dot.is-active { background: var(--color-primary); width: 26px; border-radius: 6px; }

/* ---------- 14.6 评价星级与头像 ---------- */
.rating { display: flex; align-items: center; gap: 2px; margin: 12px 0; }
.rating__star { color: #f5a623; font-size: 15px; line-height: 1; }
.rating__star--half {
  background: linear-gradient(90deg, #f5a623 50%, #d1d5db 50%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rating__score { font-size: 12px; color: var(--color-text-muted); margin-left: 6px; }
.testimonial { text-align: left; }
.testimonial__author-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.testimonial__avatar {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.testimonial__author { margin: 0; font-size: 13px; }

/* ---------- 14.7 图片轮播（客户实拍） ---------- */
.carousel { position: relative; padding: 0 8px; }
.carousel__viewport { overflow: hidden; }
.carousel__track {
  display: flex; gap: 20px;
  transition: transform .6s ease;
  will-change: transform;
}
.carousel__slide { flex: 0 0 auto; }
.carousel__slide img {
  height: 240px; width: auto; max-width: 300px;
  object-fit: cover; border-radius: 8px;
}
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card); cursor: pointer; z-index: 2;
  font-size: 20px; line-height: 1; color: var(--color-text);
}
.carousel__arrow:hover { color: var(--color-primary); }
.carousel__arrow--prev { left: -14px; }
.carousel__arrow--next { right: -14px; }

/* ---------- 14.8 标签切换面板（Sourcing Trip 行程分组） ---------- */
.tabs {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 1000px;
  margin: 32px auto 0;
}
.tabs__nav { display: flex; flex-direction: column; }
.tabs__tab {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 18px 22px;
  background: var(--color-bg-soft);
  border: none;
  font-family: inherit; font-size: 15px; font-weight: 700;
  color: var(--color-text); text-align: left; line-height: 1.35;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.tabs__tab:first-child { border-radius: 8px 8px 0 0; }
.tabs__tab:last-child  { border-radius: 0 0 8px 8px; }
.tabs__tab + .tabs__tab { border-top: 1px solid #fff; }
.tabs__tab:hover { background: var(--color-primary-light); }
.tabs__tab.is-active { background: var(--color-primary); color: #fff; }
.tabs__tab.is-active::after {
  content: ""; position: absolute; right: -9px; top: 50%;
  transform: translateY(-50%);
  border: 9px solid transparent; border-left-color: var(--color-primary); border-right: 0;
  z-index: 1;
}
.tabs__icon { width: 20px; height: 20px; flex-shrink: 0; color: currentColor; }
.tabs__panel {
  display: none;
  background: var(--color-primary-light);
  padding: 30px 38px;
  border-radius: 8px;
}
.tabs__panel.is-active { display: block; }
.tabs__list { margin: 0; padding-left: 22px; }
.tabs__list li {
  font-size: 16px; line-height: 1.7; color: var(--color-text);
  margin-bottom: 14px;
}
.tabs__list li:last-child { margin-bottom: 0; }
.tabs__list strong { font-weight: 700; color: var(--color-heading); }

/* ---------- 14.9 左图右文两列说明（物流流程） ---------- */
.split-media {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr;
  gap: 56px;
  align-items: start;
}
.split-media__media { margin: 0; }
.split-media__media img {
  width: 100%; height: 100%;
  max-height: 720px; object-fit: cover;
  border-radius: 6px;
}
.split-media__content { padding-top: 4px; }
.split-media__title {
  text-align: left;
  margin-bottom: 44px;
}
.process-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  row-gap: 36px;
}
.process-list__item h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 12px;
}
.process-list__item p {
  font-size: 15px; line-height: 1.75;
  color: var(--color-text-muted); margin: 0;
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 900px) {
  :root { --space-section: 64px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-row--reverse .feature-row__media { order: 0; }
  .feature-row--reverse .feature-row__card { order: 0; }
  .tabs { grid-template-columns: 1fr; }
  .split-media { grid-template-columns: 1fr; gap: 32px; }
  .split-media__media img { max-height: 460px; }
  .process-list { column-gap: 28px; row-gap: 28px; }
  .tabs__nav { flex-direction: row; }
  .tabs__tab { justify-content: center; text-align: center; border-radius: 0; }
  .tabs__tab:first-child { border-radius: 8px 0 0 8px; }
  .tabs__tab:last-child  { border-radius: 0 8px 8px 0; }
  .tabs__tab + .tabs__tab { border-top: 0; border-left: 1px solid #fff; }
  .tabs__tab.is-active::after { display: none; }
}
@media (max-width: 640px) {
  .nav__list { display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 16px 24px; gap: 4px; border-bottom: 1px solid var(--color-border); }
  .nav__list.is-open { display: flex; }
  .nav__toggle { display: block; }
  .nav__dropdown { position: static; transform: none; box-shadow: none; opacity: 1; visibility: visible; display: none; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0; }
  .hero__panel { padding: 28px 24px; }
  .qr-grid { grid-template-columns: 1fr; }
  .hero--slider { padding: 60px 0; }
  .carousel__slide img { height: 190px; }
  .testimonial { text-align: left; }
  .tabs__nav { flex-direction: column; }
  .tabs__tab { justify-content: flex-start; text-align: left; border-radius: 0; }
  .tabs__tab:first-child { border-radius: 8px 8px 0 0; }
  .tabs__tab:last-child  { border-radius: 0 0 8px 8px; }
  .tabs__tab + .tabs__tab { border-top: 1px solid #fff; border-left: 0; }
  .tabs__panel { padding: 22px 20px; }
  .tabs__list li { font-size: 15px; }
  .process-list { grid-template-columns: 1fr; row-gap: 24px; }
  .split-media__title { margin-bottom: 28px; }
}
