/* styles/base.css
   ChinaRoute RU — 宣纸底 + 水墨灰 + 暗金色系
   高级中国水墨旅游落地页视觉基底
*/

:root {
  --paper: #f9f7f3;
  --paper-warm: #f4efe6;
  --paper-deep: #ebe2d3;
  --ink: #2c2c2c;
  --ink-soft: rgba(44, 44, 44, .65);
  --brown: #5c4a3d;
  --brown-soft: rgba(92, 74, 61, .68);
  --gold: #b4975a;
  --gold-deep: #8f7447;
  --line: rgba(180, 160, 140, .28);
  --line-strong: rgba(92, 74, 61, .14);
  --card: rgba(255, 255, 255, .82);
  --card-strong: rgba(255, 255, 255, .92);
  --shadow: 0 12px 36px rgba(70, 54, 36, .06);
  --shadow-hover: 0 18px 48px rgba(70, 54, 36, .10);
  --radius: 10px;
  --radius-lg: 18px;
  --max: 1200px;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", "Times New Roman", serif;
  --sans: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  background:
    linear-gradient(90deg, rgba(92, 74, 61, .028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(92, 74, 61, .025) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.95) 0%, rgba(249,247,243,.70) 48%, rgba(237,229,216,.55) 100%),
    var(--paper);
  background-size: 48px 48px, 48px 48px, auto, auto;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 12%, rgba(180, 151, 90, .10), transparent 26%),
    radial-gradient(circle at 86% 18%, rgba(92, 74, 61, .08), transparent 28%),
    radial-gradient(circle at 50% 76%, rgba(180, 151, 90, .06), transparent 32%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a,
.paper-card {
  transition: color .28s ease, background .28s ease, border-color .28s ease, box-shadow .28s ease, opacity .28s ease;
}

button,
a,
[role="button"],
input,
textarea,
select {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  position: relative;
  z-index: 1;
}

@media (hover: none) and (pointer: coarse) {
  button:active,
  a.btn:active,
  .telegram-pill:active,
  .lang-switch:active {
    opacity: .80;
  }

  .paper-card:hover {
    transform: none;
    box-shadow: var(--shadow);
  }
}

img,
svg {
  max-width: 100%;
  shape-rendering: geometricPrecision;
}

main {
  position: relative;
  z-index: 1;
}

/* ===== 导航栏 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: rgba(249, 247, 243, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(180, 160, 140, .18);
}

.nav-shell {
  width: min(var(--max), calc(100% - 48px));
  max-width: 100%;
  height: 60px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr 300px;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.brand-text {
  display: grid;
  gap: 0;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .02em;
  line-height: 1.15;
  color: var(--ink);
}

.brand-text small {
  color: var(--brown-soft);
  font-size: 11px;
  letter-spacing: .06em;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 14px;
  color: var(--brown);
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    color: var(--gold-deep);
  }
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.lang-switch,
.telegram-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  color: var(--brown);
  padding: 7px 16px;
  font-size: 13px;
  line-height: 1;
}

.telegram-pill {
  background: linear-gradient(135deg, rgba(92, 74, 61, .08), rgba(180, 151, 90, .08));
  border-color: rgba(180, 151, 90, .30);
}

@media (hover: hover) and (pointer: fine) {
  .lang-switch:hover,
  .telegram-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(70, 54, 36, .08);
    border-color: rgba(180, 151, 90, .40);
  }
}

/* ===== 卡片系统 ===== */
.paper-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.paper-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(180, 151, 90, .38);
}

@media (hover: hover) and (pointer: fine) {
  .paper-card:hover {
    transform: translateY(-2px);
  }
}

/* ===== 按钮系统 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 26px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--line);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #3a322c, #5c4a3d);
  border-color: rgba(44,44,44,.12);
  box-shadow: 0 10px 24px rgba(92, 74, 61, .14);
}

.btn-secondary {
  color: var(--brown);
  background: rgba(255,255,255,.58);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
  }
}

/* ===== 内容区块通用宽度 ===== */
.feature-grid,
.hotel-section,
.faq-section,
.city-ai-grid,
.taxi-flow,
.final-cta {
  width: min(var(--max), calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

/* ===== 功能模块双列 ===== */
.feature-grid {
  display: grid;
  grid-template-columns: 1.15fr .92fr;
  gap: 18px;
  margin-top: 20px;
}

.assistant-panel {
  min-height: 300px;
  display: grid;
  grid-template-columns: 160px 1fr;
}

.assistant-sidebar {
  padding: 20px 14px;
  border-right: 1px solid var(--line);
  background: rgba(244,239,230,.55);
}

.assistant-sidebar h2 {
  font-size: 14px;
  margin: 0 0 16px;
  color: var(--ink);
}

.assistant-sidebar a {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  color: var(--brown);
  font-size: 13px;
}

.assistant-sidebar a.active {
  background: rgba(180, 151, 90, .14);
  color: var(--ink);
  font-weight: 600;
}

.assistant-main {
  padding: 24px;
}

.assistant-main small {
  color: var(--brown-soft);
  font-size: 12px;
}

.assistant-main h3 {
  margin: 6px 0 18px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: .15em;
}

.mini-tools {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.mini-tools button,
.action-row button,
.city-tabs button,
.benefit-card button,
.city-card button,
.ai-card button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.68);
  color: var(--brown);
  padding: 8px 10px;
  font-size: 13px;
}

.mini-tools button {
  display: grid;
  gap: 5px;
  min-height: 64px;
  place-items: center;
  font-size: 12px;
}

@media (hover: hover) and (pointer: fine) {
  .mini-tools button:hover,
  .action-row button:hover,
  .city-tabs button:hover,
  .benefit-card button:hover,
  .city-card button:hover,
  .ai-card button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(70, 54, 36, .08);
  }
}

.mock-input {
  margin-top: 16px;
  background: rgba(244,239,230,.85);
  border: 1px solid var(--line);
  min-height: 38px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--brown-soft);
  padding: 0 12px;
  font-size: 13px;
}

.reply-card {
  width: min(400px, 100%);
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.68);
}

.reply-card p {
  margin: 0 0 10px;
  color: var(--brown);
  font-size: 13px;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.thumb-row span {
  height: 52px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(44,44,44,.03), rgba(92,74,61,.06)),
    radial-gradient(circle at 70% 40%, rgba(180,151,90,.14), transparent 50%),
    linear-gradient(120deg, rgba(183,197,189,.30), rgba(244,239,230,.85));
  border: 1px solid rgba(180, 160, 140, .18);
}

/* ===== 为什么选择 ===== */
.why-card {
  min-height: 300px;
  padding: 36px 32px;
}

.why-card h2,
.section-title h2,
.intro-card h2,
.city-card h2,
.ai-card h2,
.final-cta h2 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .06em;
}

.why-card h2 {
  margin: 0 0 28px;
  font-size: 26px;
}

.why-list {
  display: grid;
  gap: 20px;
}

.why-list div {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 14px;
  align-items: center;
}

.why-list span {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(180,151,90,.13);
  color: var(--gold-deep);
  border: 1px solid var(--line);
  font-size: 14px;
}

.why-list strong {
  font-size: 16px;
  color: var(--ink);
}

.why-list p {
  margin: 2px 0 0;
  color: var(--brown-soft);
  font-size: 13px;
}

.section-watermark {
  position: absolute;
  inset: auto -16px -28px auto;
  width: 200px;
  height: 220px;
  opacity: .14;
  background:
    linear-gradient(120deg, transparent 42%, rgba(92,74,61,.20) 43%, transparent 45%),
    linear-gradient(40deg, transparent 40%, rgba(92,74,61,.14) 41%, transparent 43%);
}

/* ===== 打车流程 ===== */
.taxi-flow {
  margin-top: 18px;
  padding: 28px;
  min-height: 180px;
}

.scenic-card {
  background:
    linear-gradient(90deg, rgba(255,255,255,.85), rgba(255,255,255,.62)),
    radial-gradient(circle at 88% 48%, rgba(180,151,90,.12), transparent 32%);
}

.section-title h2 {
  margin: 0;
  font-size: 26px;
}

.section-title p {
  margin: 4px 0 20px;
  color: var(--brown-soft);
  font-size: 14px;
}

.flow-steps {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr minmax(0, 200px);
  gap: 10px;
  align-items: center;
}

.flow-steps article {
  min-height: 110px;
  padding: 16px;
  background: rgba(255,255,255,.68);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.flow-steps b {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
}

.flow-steps h3 {
  margin: 10px 0 6px;
  font-size: 14px;
}

.address-box {
  display: grid;
  gap: 3px;
  background: rgba(244,239,230,.65);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.address-box small {
  color: var(--brown-soft);
  font-size: 12px;
}

.address-box button {
  justify-self: start;
  margin-top: 6px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
}

.flow-arrow {
  color: var(--gold-deep);
  font-size: 28px;
  opacity: .45;
}

.car-line {
  align-self: end;
  opacity: .55;
  width: 100%;
  max-width: 200px;
  justify-self: end;
}

/* ===== 酒店 & FAQ 网格 ===== */
.hotel-section,
.faq-section {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.hotel-section {
  grid-template-columns: 1.15fr repeat(4, 1fr);
}

.faq-section {
  grid-template-columns: 1.15fr repeat(5, 1fr);
}

.intro-card,
.benefit-card,
.faq-card,
.city-card,
.ai-card {
  padding: 22px;
}

.intro-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.intro-card p,
.benefit-card p,
.faq-card p,
.city-card p,
.ai-card p {
  color: var(--brown-soft);
  font-size: 13px;
}

.benefit-card h3,
.faq-card h3 {
  margin-top: 0;
  font-family: var(--serif);
  letter-spacing: .05em;
  font-size: 15px;
}

.benefit-card button,
.city-card button,
.ai-card button {
  margin-top: 10px;
  background: var(--gold-deep);
  color: #fff;
  border-color: transparent;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
}

.circle-icons {
  display: flex;
  gap: 8px;
  margin: 12px 0 6px;
}

.circle-icons span,
.faq-card span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244,239,230,.85);
  color: var(--gold-deep);
  font-size: 13px;
}

/* ===== 城市攻略 + AI ===== */
.city-ai-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1.25fr;
  gap: 16px;
  margin-top: 18px;
}

.city-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.city-tabs button.active {
  color: #fff;
  background: var(--gold-deep);
}

.city-card ul {
  padding-left: 16px;
  color: var(--brown);
  font-size: 13px;
}

.route-map {
  padding: 14px;
}

.route-map svg {
  border-radius: 12px;
  border: 1px solid var(--line);
  height: 100%;
  min-height: 240px;
}

.map-labels text {
  font: 16px var(--sans);
  fill: #5c4a3d;
  font-weight: 600;
}

.ai-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ai-columns > div {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.62);
  border: 1px solid var(--line);
}

.ai-columns h3 {
  font-size: 14px;
  margin: 0 0 6px;
}

.ai-columns strong {
  font-size: 13px;
}

.ai-columns ol {
  padding-left: 16px;
  font-size: 13px;
  color: var(--brown);
}

.ai-columns small {
  color: var(--brown-soft);
  font-size: 12px;
}

.input-bubble,
.output-bubble {
  padding: 10px;
  border-radius: 10px;
  background: rgba(244,239,230,.68);
  font-size: 13px;
  margin: 8px 0;
}

/* ===== 底部 CTA ===== */
.final-cta {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  margin-top: 22px;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.68);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 36px 20px;
}

.cta-ink {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.final-cta > *:not(svg) {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  margin: 0;
}

.final-cta p {
  color: var(--brown);
  margin: 8px 0 16px;
  font-size: 15px;
}

.cta-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.cta-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  padding: 8px 20px;
  color: var(--brown);
  font-size: 14px;
}

/* ===== 页脚 ===== */
.site-footer {
  text-align: center;
  color: var(--brown-soft);
  font-size: 13px;
  padding: 14px 16px 28px;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  background: rgba(44,44,44,.90);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: all .28s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式：1160px ===== */
@media (max-width: 1160px) {
  .nav-shell {
    grid-template-columns: 220px 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    justify-content: flex-end;
  }

  .feature-grid,
  .hotel-section,
  .faq-section,
  .city-ai-grid {
    grid-template-columns: 1fr 1fr;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .flow-arrow,
  .car-line {
    display: none;
  }

  .hotel-section .intro-card,
  .faq-section .intro-card {
    grid-column: 1 / -1;
  }

  .ai-card {
    grid-column: 1 / -1;
  }
}

/* ===== 响应式：760px ===== */
@media (max-width: 760px) {
  .nav-shell,
  .feature-grid,
  .hotel-section,
  .faq-section,
  .city-ai-grid,
  .taxi-flow,
  .final-cta {
    width: min(calc(100% - 24px), var(--max));
  }

  .nav-shell {
    height: auto;
    padding: 10px 0;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .nav-actions {
    justify-content: start;
    flex-wrap: wrap;
  }

  .feature-grid,
  .hotel-section,
  .faq-section,
  .city-ai-grid,
  .flow-steps {
    grid-template-columns: 1fr;
  }

  .assistant-panel {
    grid-template-columns: 1fr;
  }

  .assistant-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mini-tools,
  .ai-columns {
    grid-template-columns: 1fr 1fr;
  }

  .taxi-flow {
    padding: 18px;
  }

  .section-title h2,
  .intro-card h2,
  .why-card h2,
  .city-card h2,
  .ai-card h2 {
    font-size: 20px;
    letter-spacing: .04em;
  }

  .why-card {
    padding: 24px 18px;
  }

  .intro-card,
  .benefit-card,
  .faq-card,
  .city-card,
  .ai-card,
  .taxi-flow {
    padding: 16px;
  }

  .final-cta {
    padding: 28px 14px;
  }

  .final-cta h2 {
    font-size: clamp(22px, 6vw, 28px);
  }

  .assistant-main h3 {
    font-size: 18px;
    letter-spacing: .06em;
  }

  .why-list strong {
    font-size: 15px;
  }

  .btn {
    min-height: 40px;
    padding: 0 20px;
    font-size: 14px;
  }

  .toast {
    left: 14px;
    right: 14px;
    bottom: 14px;
    text-align: center;
  }
}

/* ===== 响应式：640px ===== */
@media (max-width: 640px) {
  .nav-shell,
  .feature-grid,
  .hotel-section,
  .faq-section,
  .city-ai-grid,
  .taxi-flow,
  .final-cta {
    width: min(calc(100% - 20px), var(--max));
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .lang-switch,
  .telegram-pill {
    padding: 6px 12px;
    font-size: 12px;
  }

  .mini-tools button {
    min-height: 56px;
    font-size: 12px;
  }

  .flow-steps article {
    min-height: auto;
    padding: 12px;
  }

  .address-box button,
  .action-row button {
    width: 100%;
  }

  .action-row {
    display: grid;
    gap: 6px;
  }
}
