/* Gtrip — Inbound China Travel · responsive magazine style
   palette: cinnabar 朱砂 / ink 墨 / porcelain 瓷白 / jade 玉 / indigo 靛 / gold 金
*/
:root {
  --cinnabar: #B91C1C;
  --cinnabar-dark: #7F1D1D;
  --ink: #1F2937;
  --ink-soft: #4B5563;
  --porcelain: #FAFAF7;
  --jade: #0D9488;
  --indigo: #1E3A8A;
  --gold: #CA8A04;
  --line: #E5E7EB;
  --shadow: 0 10px 40px -10px rgba(31, 41, 55, .18);
  --radius: 4px;
  --serif: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
  --sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--porcelain);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: min(1200px, 92vw); margin: 0 auto; }
.serif { font-family: var(--serif); }
.eyebrow {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cinnabar);
  font-weight: 600;
}

/* ============== Nav ============== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 247, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  letter-spacing: -.01em;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--cinnabar);
  display: grid; place-items: center;
  color: var(--porcelain); font-weight: 700;
  font-family: var(--serif);
}
.brand small {
  display: block; font-size: 10px; letter-spacing: .18em;
  color: var(--ink-soft); text-transform: uppercase; font-weight: 500;
  font-family: var(--sans); margin-top: -2px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink); }
.nav-links a:hover { color: var(--cinnabar); }
.lang-toggle {
  border: 1px solid var(--line); padding: 6px 12px;
  font-size: 12px; font-weight: 600; border-radius: var(--radius);
  display: inline-flex; gap: 6px; align-items: center;
}
.lang-toggle:hover { background: var(--ink); color: var(--porcelain); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: 14px; letter-spacing: .02em;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--cinnabar); color: var(--porcelain); }
.btn-primary:hover { background: var(--cinnabar-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--porcelain); }
.btn-light { background: var(--porcelain); color: var(--ink); }
.btn-light:hover { background: #fff; }

.nav-toggle { display: none; }

/* ============== Hero ============== */
.hero {
  position: relative; min-height: 88vh;
  display: grid; align-items: end;
  color: var(--porcelain);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,41,55,.25) 0%, rgba(31,41,55,.55) 60%, rgba(31,41,55,.85) 100%);
}
.hero-content { padding: 60px 0 80px; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(40px, 6vw, 84px);
  line-height: 1.02; font-weight: 700; max-width: 900px;
  letter-spacing: -.02em;
}
.hero h1 em { color: #FCA5A5; font-style: italic; }
.hero-sub {
  margin-top: 24px; font-size: clamp(16px, 1.5vw, 19px);
  max-width: 560px; color: rgba(250,250,247,.92);
}
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 32px; margin-top: 56px; flex-wrap: wrap;
  font-size: 13px; color: rgba(250,250,247,.78);
}
.hero-meta strong { color: var(--porcelain); font-weight: 600; font-size: 22px; font-family: var(--serif); display: block; }

/* ============== Section ============== */
section { padding: 96px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px; gap: 24px; flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--serif); font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1; font-weight: 700; max-width: 700px;
  letter-spacing: -.015em;
}
.section-head p { color: var(--ink-soft); max-width: 380px; font-size: 15px; }
.section-head .eyebrow { margin-bottom: 12px; display: block; }

/* ============== Pillars (value props) ============== */
.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.pillar {
  padding: 36px 28px; border-right: 1px solid var(--line);
}
.pillar:last-child { border-right: none; }
.pillar .icon {
  font-size: 28px; margin-bottom: 16px;
}
.pillar h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 8px; }
.pillar p { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }

/* ============== Theme cards ============== */
.theme-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.theme-card {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  border-radius: var(--radius); display: flex; align-items: flex-end;
  color: var(--porcelain); transition: transform .25s ease;
  cursor: pointer;
}
.theme-card:hover { transform: translateY(-4px); }
.theme-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .4s ease;
}
.theme-card:hover img { transform: scale(1.05); }
.theme-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.7) 100%);
}
.theme-card .body {
  position: relative; z-index: 1; padding: 24px;
}
.theme-card .body small {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.theme-card h3 { font-family: var(--serif); font-size: 26px; margin: 6px 0 8px; }
.theme-card p { font-size: 13px; color: rgba(255,255,255,.9); margin-bottom: 14px; }
.theme-card .duration {
  display: inline-block; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.18); padding: 4px 10px;
  border-radius: 999px; backdrop-filter: blur(6px);
}

/* ============== Destination cards ============== */
.dest-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.dest-card {
  border-radius: var(--radius); overflow: hidden; background: #fff;
  border: 1px solid var(--line); transition: box-shadow .2s ease, transform .2s ease;
  cursor: pointer;
}
.dest-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.dest-card .img {
  aspect-ratio: 4/3; overflow: hidden;
}
.dest-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.dest-card:hover .img img { transform: scale(1.06); }
.dest-card .body { padding: 18px; }
.dest-card .tagline {
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--cinnabar); font-weight: 600;
}
.dest-card h3 { font-family: var(--serif); font-size: 22px; margin: 4px 0 8px; }
.dest-card .summary { font-size: 13px; color: var(--ink-soft); line-height: 1.55; }
.dest-card .meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-soft);
}

/* ============== CTA band ============== */
.cta-band {
  background: var(--ink); color: var(--porcelain);
  padding: 80px 0; text-align: center;
}
.cta-band h2 {
  font-family: var(--serif); font-size: clamp(28px, 4vw, 44px);
  max-width: 760px; margin: 0 auto 24px; line-height: 1.1;
}
.cta-band p { color: rgba(250,250,247,.7); max-width: 540px; margin: 0 auto 32px; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============== Footer ============== */
footer {
  background: #111518; color: rgba(250,250,247,.6);
  padding: 64px 0 28px; font-size: 14px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.foot-grid h5 { color: var(--porcelain); font-size: 13px; font-weight: 600; margin-bottom: 16px; letter-spacing: .1em; text-transform: uppercase; }
.foot-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-grid a:hover { color: var(--porcelain); }
.foot-brand .brand { color: var(--porcelain); margin-bottom: 16px; }
.foot-brand p { max-width: 320px; line-height: 1.6; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: rgba(250,250,247,.45);
}

/* ============== DIY tool ============== */
.diy-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.diy-builder { display: flex; flex-direction: column; gap: 24px; }
.city-block {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff;
}
.city-block header {
  padding: 16px 20px; display: flex; justify-content: space-between; align-items: center;
  background: #fff; border-bottom: 1px solid var(--line);
}
.city-block header h3 { font-family: var(--serif); font-size: 20px; }
.city-block header .stay { font-size: 12px; color: var(--ink-soft); }
.day-list { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.day-item {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 16px;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--radius);
  align-items: center; cursor: pointer; transition: all .15s ease;
  background: #fff;
}
.day-item:hover { border-color: var(--cinnabar); }
.day-item.selected { border-color: var(--cinnabar); background: #FEF2F2; }
.day-item img { width: 80px; height: 60px; object-fit: cover; border-radius: 2px; }
.day-item .info h4 { font-size: 14px; margin-bottom: 4px; }
.day-item .info p { font-size: 12px; color: var(--ink-soft); line-height: 1.4; }
.day-item .price { font-weight: 700; font-size: 14px; color: var(--cinnabar); }
.day-item .add-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--porcelain);
  display: grid; place-items: center; font-size: 18px; line-height: 1;
}
.day-item.selected .add-btn { background: var(--cinnabar); }

.summary-panel {
  position: sticky; top: 88px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 24px;
}
.summary-panel h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 6px; }
.summary-panel .empty { color: var(--ink-soft); font-size: 14px; padding: 32px 0; text-align: center; }
.summary-list { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.summary-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 12px; background: var(--porcelain); border-radius: 2px;
  font-size: 13px;
}
.summary-row .reorder { display: flex; gap: 6px; font-size: 12px; color: var(--ink-soft); }
.summary-row .reorder button { padding: 0 4px; font-size: 14px; }
.summary-row .reorder button:hover { color: var(--cinnabar); }
.summary-row .remove { color: var(--cinnabar); font-size: 12px; }
.summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 16px; border-top: 1px solid var(--line); margin-top: 8px;
}
.summary-total .label { font-size: 13px; color: var(--ink-soft); }
.summary-total .price { font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--ink); }
.summary-total .price small { font-size: 14px; color: var(--ink-soft); margin-left: 4px; }
.summary-note { font-size: 12px; color: var(--ink-soft); margin-top: 10px; line-height: 1.5; }
.summary-cta { width: 100%; margin-top: 18px; justify-content: center; }

/* ============== Guide grid ============== */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guide-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; background: #fff; transition: all .2s ease;
}
.guide-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--cinnabar); }
.guide-card .icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--porcelain); display: grid; place-items: center;
  font-size: 22px; margin-bottom: 18px;
}
.guide-card h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; }
.guide-card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.55; }
.guide-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.guide-card ul li::before { content: '→ '; color: var(--cinnabar); }

/* ============== Forms ============== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: 15px; background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--cinnabar);
}

/* ============== About / Story ============== */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.story-img { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 16px 0 24px; }
.story p { color: var(--ink-soft); margin-bottom: 16px; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.values div { padding: 16px; border-left: 2px solid var(--cinnabar); background: rgba(185, 28, 28, .04); }
.values div h4 { font-family: var(--serif); font-size: 16px; margin-bottom: 4px; }
.values div p { font-size: 13px; margin: 0; }

/* ============== Page header ============== */
.page-hero {
  padding: 80px 0 48px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--porcelain));
}
.page-hero h1 { font-family: var(--serif); font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -.02em; }
.page-hero p { color: var(--ink-soft); max-width: 600px; margin-top: 16px; font-size: 16px; }

/* ============== Responsive ============== */
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; gap: 16px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; flex-direction: column; gap: 4px; padding: 8px; }
  .nav-toggle span { width: 22px; height: 2px; background: var(--ink); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2) { border-right: none; }
  .pillar:nth-child(1), .pillar:nth-child(2) { border-bottom: 1px solid var(--line); }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .diy-layout { grid-template-columns: 1fr; }
  .summary-panel { position: static; }
  .guide-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; gap: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  section { padding: 64px 0; }
  .hero { min-height: 70vh; }
  .hero-content { padding: 40px 0 56px; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--line); }
  .theme-grid, .dest-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
