/* ==========================================================================
   nzsm.cn 全站基础样式  base.css
   风格：旅行套装风 · 浅灰 + 纯白 + 卡其
   说明：本文件为全站共享设计系统。各页面通过 css/页面名.css 叠加专属样式，
         不得在本文件外重复定义导航/页脚/按钮等公共组件。
   技术：纯 CSS3，无框架，无第三方依赖。
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 旅行套装主色板：浅灰 / 纯白 / 卡其 */
  --paper: #ffffff;            /* 纯白 */
  --mist: #f4f3ee;             /* 浅灰（页面底色） */
  --fog: #ebe9e1;              /* 中浅灰 */
  --sand: #f1ece0;             /* 浅卡其底 */
  --khaki-100: #efe9da;        /* 浅卡其 */
  --khaki-200: #e3d9c2;        /* 卡其米 */
  --khaki-300: #d5c6a2;        /* 卡其中 */
  --khaki-400: #c3b089;        /* 主卡其 */
  --khaki-500: #a9956b;        /* 深卡其 */
  --khaki-600: #8a7a57;        /* 深卡其棕 */
  --khaki-800: #5f543c;        /* 最深卡其 */
  --stamp: #b25a33;            /* 邮戳赭（点缀色，用量克制） */
  --ink: #332f27;              /* 主文字 */
  --ink-soft: #5d5749;         /* 次级文字 */
  --ink-faint: #8b8474;        /* 弱文字 */
  --line: #ddd7c8;             /* 分隔线 */
  --line-strong: #c9c1ac;

  /* 字体 */
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", system-ui, sans-serif;
  --font-serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --font-mono: "Courier New", Consolas, monospace;

  /* 尺寸节奏 */
  --container: 1200px;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --shadow-s: 0 2px 10px rgba(78, 68, 45, .08);
  --shadow-m: 0 10px 30px rgba(78, 68, 45, .12);
  --shadow-l: 0 24px 60px rgba(78, 68, 45, .16);

  /* 动效 */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .45s;
}

/* ---------- 2. 重置与基础 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
ul, ol { list-style: none; }
button { font-family: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input, select, textarea {
  font-family: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid var(--line-strong); background: var(--paper);
  border-radius: var(--radius-s); padding: 11px 14px; width: 100%;
  outline: none; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--khaki-500); box-shadow: 0 0 0 3px rgba(169, 149, 107, .18);
}
textarea { resize: vertical; min-height: 110px; }
::placeholder { color: var(--ink-faint); }

h1, h2, h3, h4, h5 { line-height: 1.35; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
h1 { font-size: clamp(30px, 4.2vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
h4 { font-size: 17px; }
p  { margin-bottom: 12px; }

.container { width: min(var(--container), 92%); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 3. 排版小件 ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(30px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .22em; color: var(--khaki-600);
  text-transform: uppercase; margin-bottom: 14px; font-weight: 600;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--khaki-400); }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 1px; background: var(--khaki-400); }
.lead { font-size: 16.5px; color: var(--ink-soft); }

/* 旅行套装小件 */
.ticket-divider {
  position: relative; height: 24px; margin: 30px 0; overflow: hidden;
}
.ticket-divider::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 2px dashed var(--khaki-300);
}
.ticket-divider::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 26px; background: var(--mist);
  border: 2px dashed var(--khaki-300); border-radius: 50%;
}
.stamp {
  display: inline-flex; align-items: center; gap: 6px;
  border: 2px solid var(--stamp); color: var(--stamp);
  border-radius: 50px; padding: 4px 16px; font-size: 12px;
  letter-spacing: .18em; font-weight: 700; text-transform: uppercase;
  transform: rotate(-2deg); opacity: .92;
}
.stamp svg { width: 14px; height: 14px; }
.luggage-tag {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: 26px 24px 22px;
  box-shadow: var(--shadow-s);
}
.luggage-tag::before {
  content: ""; position: absolute; left: 50%; top: -1px; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--mist); border: 1px solid var(--line);
  box-shadow: inset 0 0 0 5px var(--paper);
}
.luggage-tag .tag-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.luggage-tag .tag-title { font-size: 16px; font-weight: 700; letter-spacing: .05em; }
.luggage-tag .tag-no { font-family: var(--font-mono); font-size: 12px; color: var(--khaki-600); letter-spacing: .12em; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 50px; font-size: 15px; font-weight: 600;
  letter-spacing: .04em; background: var(--khaki-600); color: #fff;
  box-shadow: 0 6px 18px rgba(138, 122, 87, .35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(138, 122, 87, .42); background: var(--khaki-800); }
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.25) 50%, transparent 60%);
  transform: translateX(-120%); transition: transform .6s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn-line {
  background: transparent; color: var(--khaki-800);
  border: 1.5px solid var(--khaki-400); box-shadow: none;
}
.btn-line:hover { background: var(--khaki-100); box-shadow: none; }
.btn-light { background: var(--paper); color: var(--khaki-800); box-shadow: 0 8px 22px rgba(30, 26, 18, .18); }
.btn-light:hover { background: #faf9f5; box-shadow: 0 12px 30px rgba(30, 26, 18, .24); }
.btn-sm { padding: 9px 20px; font-size: 13.5px; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- 4. 顶部导航 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.header-inner {
  width: min(var(--container), 94%); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; transition: height .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .96); box-shadow: 0 6px 24px rgba(78, 68, 45, .1);
  backdrop-filter: blur(10px);
}
.site-header.is-scrolled .header-inner { height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-word { font-size: 21px; font-weight: 800; letter-spacing: .1em; color: #fff; line-height: 1.1; transition: color .35s var(--ease); }
.brand-sub { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .34em; color: rgba(255,255,255,.85); transition: color .35s var(--ease); }
.site-header.is-scrolled .brand-word { color: var(--khaki-800); }
.site-header.is-scrolled .brand-sub { color: var(--khaki-600); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 14px; font-size: 14.5px; font-weight: 600; letter-spacing: .03em;
  color: rgba(255,255,255,.94); border-radius: 8px;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.site-header.is-scrolled .nav-link { color: var(--ink-soft); }
.nav-link:hover { color: var(--khaki-400); }
.site-header.is-scrolled .nav-link:hover { color: var(--khaki-800); background: var(--khaki-100); }
.nav-link.active { color: var(--khaki-200); }
.site-header.is-scrolled .nav-link.active { color: var(--khaki-800); background: var(--khaki-100); }
.nav-link .caret { width: 9px; height: 9px; transition: transform .3s var(--ease); }
.has-drop:hover .caret, .has-drop:focus-within .caret { transform: rotate(180deg); }
.nav-hot {
  margin-left: 10px; background: var(--stamp); color: #fff !important;
  padding: 10px 22px; border-radius: 50px; box-shadow: 0 6px 16px rgba(178, 90, 51, .35);
}
.nav-hot:hover { background: #9c4b29; }

/* 下拉菜单 */
.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow-m); padding: 14px 10px; min-width: 260px;
  opacity: 0; visibility: hidden; transition: all .3s var(--ease); z-index: 95;
}
.has-drop::before {
  content: ""; position: absolute; top: calc(100% - 10px); left: 0; right: 0; height: 22px;
}
.has-drop:hover .drop, .has-drop:focus-within .drop,
.has-drop.open .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.drop-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.drop a {
  display: block; padding: 8px 14px; font-size: 14px; color: var(--ink-soft);
  border-radius: 6px; transition: all .2s var(--ease); white-space: nowrap;
}
.drop a:hover { background: var(--khaki-100); color: var(--khaki-800); padding-left: 18px; }
.drop .drop-head {
  grid-column: 1 / -1; font-size: 11px; letter-spacing: .2em; color: var(--ink-faint);
  text-transform: uppercase; padding: 6px 14px 4px;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border-radius: 10px; align-items: center;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
}
.nav-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: all .35s var(--ease); }
.site-header.is-scrolled .nav-toggle { background: var(--khaki-100); border-color: var(--line); }
.site-header.is-scrolled .nav-toggle span { background: var(--khaki-800); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. 页脚 ---------- */
.site-footer { background: #343129; color: #cbc5b6; margin-top: 0; }
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding: clamp(48px, 6vw, 72px) 0 40px;
}
.f-about .brand-word { color: #f4f1e8; }
.f-about .brand-sub { color: var(--khaki-300); }
.f-desc { font-size: 14px; color: #a9a293; margin: 16px 0 18px; line-height: 1.9; }
.f-contact-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(227, 217, 194, .3); border-radius: 50px;
  padding: 7px 16px; font-size: 13.5px; color: #e9e3d3; margin: 0 8px 8px 0;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.f-contact-chip:hover { border-color: var(--khaki-400); color: #fff; }
.f-contact-chip svg { width: 15px; height: 15px; color: var(--khaki-400); }
.site-footer h4 {
  color: #f4f1e8; font-size: 14.5px; letter-spacing: .14em; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.site-footer h4::before { content: ""; width: 18px; height: 1px; background: var(--khaki-400); }
.f-links li { margin-bottom: 10px; }
.f-links a { font-size: 14px; color: #a9a293; transition: all .25s var(--ease); }
.f-links a:hover { color: var(--khaki-300); padding-left: 6px; }
.f-contact-list li {
  display: flex; gap: 10px; font-size: 14px; color: #a9a293; margin-bottom: 12px; line-height: 1.7;
}
.f-contact-list svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--khaki-400); }
.f-contact-list a { color: #d9d2c1; }
.f-contact-list a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(203, 197, 182, .16);
  padding: 18px 0; display: flex; flex-wrap: wrap; gap: 8px 30px;
  justify-content: space-between; font-size: 13px; color: #8f897b;
}
.footer-bottom .icp a { color: #a9a293; }
.footer-bottom .icp a:hover { color: var(--khaki-300); }

/* ---------- 6. 浮动联系条 / 返回顶部 ---------- */
.float-bar {
  position: fixed; right: 18px; bottom: 26px; z-index: 80;
  display: flex; flex-direction: column; gap: 10px;
}
.float-btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--khaki-600); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-m); transition: all .3s var(--ease);
}
.float-btn svg { width: 20px; height: 20px; }
.float-btn:hover { background: var(--khaki-800); transform: translateY(-3px); }
.float-btn.totop { background: var(--paper); color: var(--khaki-600); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(12px); }
.float-btn.totop.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- 7. 滚动渐入动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .4s; }

/* 时间轴基础原语：每行 = grid 三列（时间/轴/内容），轴线由行本身贯通（含行间距，不会断）
   用法：页面在专属 css 中写
   .页面容器 .tl-row { --tw: <时间列宽>; --aw: <轴线列宽>; }   */
.tl-row {
  --tw: 88px; --aw: 48px;
  display: grid; grid-template-columns: var(--tw) var(--aw) 1fr;
  position: relative;
}
.tl-row::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 2px;
  left: calc(var(--tw) + var(--aw) / 2); transform: translateX(-50%);
  background: var(--khaki-300);
}
.tl-time, .tl-axis, .tl-body { min-width: 0; }
.tl-axis { position: relative; }
.tl-node {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 2; display: grid; place-items: center;
}

/* 节点浮动呼吸动画 */
@keyframes nodeFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, -56%); }
}
.tl-node.anim { animation: nodeFloat 3.2s ease-in-out infinite; }
@keyframes softPulse {
  0% { box-shadow: 0 0 0 0 rgba(178, 90, 51, .35); }
  70% { box-shadow: 0 0 0 14px rgba(178, 90, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(178, 90, 51, 0); }
}
.pulse { animation: softPulse 2.6s ease-out infinite; }

/* 通用卡片悬浮 */
.card-lift { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }

/* 表格显式列宽 */
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th, td { padding: 12px 14px; text-align: left; font-size: 14.5px; }

/* 表单 */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
.form-field label i { color: var(--stamp); font-style: normal; }
.form-tip { font-size: 12.5px; color: var(--ink-faint); margin-top: 8px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(80px);
  background: var(--khaki-800); color: #fff; font-size: 14px;
  padding: 13px 26px; border-radius: 50px; box-shadow: var(--shadow-l);
  opacity: 0; transition: all .4s var(--ease); z-index: 200; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* FAQ 手风琴 */
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; transition: box-shadow .3s var(--ease); }
.faq-item + .faq-item { margin-top: 12px; }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 18px 20px; font-size: 15.5px; font-weight: 600; color: var(--ink);
}
.faq-q .q-mark {
  flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--khaki-100); color: var(--khaki-600); font-weight: 800; font-size: 14px;
}
.faq-q .q-caret { margin-left: auto; width: 16px; height: 16px; transition: transform .35s var(--ease); color: var(--khaki-500); }
.faq-item.open .q-caret { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a-inner { padding: 0 20px 20px 62px; font-size: 14.5px; color: var(--ink-soft); }

/* 面包屑 */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-faint); }
.crumbs a { color: var(--khaki-600); }
.crumbs a:hover { color: var(--khaki-800); }
.crumbs .sep { color: var(--line-strong); }

/* ---------- 8. 响应式 ---------- */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed; inset: 0 0 auto 0; top: 0;
    background: rgba(255,255,255,.98); flex-direction: column; align-items: stretch;
    padding: 90px 24px 30px; gap: 2px;
    transform: translateY(-102%); transition: transform .45s var(--ease);
    box-shadow: var(--shadow-l); max-height: 100vh; overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .nav-link { color: var(--ink-soft) !important; padding: 13px 12px; font-size: 15px; border-bottom: 1px dashed var(--line); border-radius: 0; justify-content: space-between; }
  .nav-link.active { color: var(--khaki-800) !important; background: var(--khaki-100); }
  .nav-hot { margin: 14px 0 0; justify-content: center; border: 0; }
  .has-drop { position: static; }
  .drop {
    position: static; transform: none; opacity: 1; visibility: hidden;
    max-height: 0; padding: 0; overflow: hidden; min-width: 0;
    box-shadow: none; border: 0; background: transparent; transition: max-height .4s var(--ease), padding .4s var(--ease);
  }
  .has-drop.open .drop, .has-drop:hover .drop { opacity: 1; visibility: visible; transform: none; max-height: 420px; padding: 6px 0 14px; }
  .drop-col { grid-template-columns: 1fr 1fr; }
  .drop a { padding: 9px 12px; color: var(--ink-soft); }
  .nav-toggle { display: flex; position: relative; z-index: 100; }
  .form-row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .float-bar { right: 12px; bottom: 20px; }
}

@media (max-width: 520px) {
  .drop-col { grid-template-columns: 1fr; }
}

/* 无障碍：减弱动效 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
