:root {
  --ink: #173c38;
  --muted: #6d7d74;
  --line: #dce7dc;
  --paper: #fbfcf5;
  --white: #ffffff;
  --gold: #e0a62b;
  --coral: #c75a42;
  --teal: #157e74;
  --blue: #457f9c;
  --shadow: 0 18px 50px rgba(44, 73, 60, .12);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.site-header {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 210px; }
.brand-logo { display: block; width: 44px; height: 44px; flex: 0 0 auto; object-fit: contain; }
.brand-logo.small { width: 30px; height: 30px; margin-right: 7px; }
.brand strong { display: block; font-family: Georgia, "Songti SC", serif; font-size: 20px; letter-spacing: .04em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; letter-spacing: .16em; }
.main-nav { display: flex; gap: 35px; height: 100%; align-items: center; }
.nav-link { position: relative; color: var(--muted); font-size: 14px; }
.nav-link.active, .nav-link:hover { color: var(--ink); }
.nav-link.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -31px; height: 2px; background: var(--coral); }
.header-actions { display: flex; align-items: center; gap: 18px; min-width: 210px; justify-content: flex-end; }
.text-button { border: 0; background: none; color: var(--muted); padding: 8px 0; font-size: 13px; }
.text-button:hover { color: var(--coral); }
.icon-button { display: flex; gap: 5px; align-items: center; border: 0; background: none; color: var(--ink); font-size: 17px; padding: 8px; }
.icon-button b { min-width: 17px; font-size: 10px; font-weight: 600; }

#app { min-height: calc(100vh - 143px); }
.hero { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 82px 0 54px; display: grid; grid-template-columns: .84fr 1.16fr; gap: 70px; align-items: end; }
.kicker { display: flex; align-items: center; gap: 10px; color: var(--coral); font-size: 12px; letter-spacing: .14em; font-weight: 700; }
.kicker::before { content: ""; display: block; width: 34px; height: 2px; background: var(--coral); }
.hero h1 { margin: 20px 0 19px; font-family: Georgia, "Songti SC", serif; color: var(--ink); font-size: clamp(42px, 5.2vw, 73px); line-height: .99; font-weight: 500; letter-spacing: -.02em; }
.hero h1 em { color: var(--coral); font-style: normal; }
.hero-copy { max-width: 420px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 27px; color: var(--ink); font-size: 12px; }
.hero-note span { color: var(--gold); font-size: 16px; }

.map-stage { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin-left: auto; }
.map-column { display: flex; flex-direction: column; align-items: stretch; }
.map-stage::after { content: "德宏州"; position: absolute; right: -17px; top: 20px; color: #bbcbb9; font-family: Georgia, serif; font-size: 12px; letter-spacing: .18em; writing-mode: vertical-rl; }
.original-map { display: block; width: 100%; height: 100%; object-fit: contain; }
.map-hotspots { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-hotspot { display: block; }
.map-hotspot-edge { opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.map-hotspot polygon { fill: rgba(199, 90, 66, 0); stroke: transparent; stroke-width: 8; vector-effect: non-scaling-stroke; transition: fill .2s ease, stroke .2s ease; }
.map-hotspot:hover .map-hotspot-edge, .map-hotspot:focus-visible .map-hotspot-edge { opacity: 1; }
.map-hotspot:hover polygon, .map-hotspot:focus-visible polygon { fill: rgba(255, 255, 255, .04); stroke: transparent; outline: none; }
.map-caption { position: relative; z-index: 1; margin: 12px 0 0; text-align: center; color: #75977b; font-size: 11px; line-height: 1.5; letter-spacing: .12em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.section { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 38px 0 90px; }
.section-head { display: flex; justify-content: space-between; align-items: end; border-top: 1px solid var(--line); padding-top: 26px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-weight: 500; font-size: 28px; }
.section-head p { margin: 0; color: var(--muted); font-size: 12px; }
.region-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.region-card { position: relative; display: block; padding: 22px 17px 18px; min-height: 145px; color: inherit; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 2px; transition: transform .2s, border-color .2s; }
.region-card:hover { transform: translateY(-4px); border-color: #9cbda0; }
.region-card .card-index { color: var(--coral); font-size: 10px; letter-spacing: .12em; }
.region-card h3 { margin: 19px 0 6px; font-family: Georgia, "Songti SC", serif; font-size: 23px; font-weight: 500; }
.region-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.region-card .arrow { position: absolute; right: 16px; bottom: 18px; color: var(--coral); font-size: 19px; }

.detail-page { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 48px 0 90px; }
.back-link { display: inline-flex; gap: 8px; color: var(--muted); font-size: 12px; margin-bottom: 36px; }
.back-link:hover { color: var(--coral); }
.detail-heading { display: grid; grid-template-columns: .78fr 1.22fr; gap: 66px; align-items: center; padding-bottom: 57px; border-bottom: 1px solid var(--line); }
.detail-heading h1 { margin: 14px 0 9px; font-family: Georgia, "Songti SC", serif; font-size: clamp(48px, 7vw, 88px); font-weight: 500; line-height: .9; }
.detail-subtitle { margin: 0; color: var(--coral); font-family: Georgia, serif; font-size: 18px; }
.detail-intro { max-width: 490px; margin: 28px 0 0; color: var(--muted); line-height: 1.9; font-size: 15px; }
.detail-block-frame { min-height: 390px; display: grid; place-items: center; padding: 22px; background: #f7f5e9; border: 1px solid #eee4bf; overflow: hidden; }
.region-block-image { display: block; width: 100%; max-height: 450px; object-fit: contain; }
.region-feature { width: min(760px, 100%); margin: 32px auto 0; background: #fff; border: 1px solid var(--line); }
.region-feature > img { display: block; width: 100%; max-height: 420px; object-fit: cover; }
.group-buy-button { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 18px; background: #fff; color: var(--coral); font-size: 14px; text-decoration: none; }
.group-buy-button:hover { color: var(--ink); background: #fff8f1; }
.detail-content { display: grid; grid-template-columns: 1.18fr .82fr; gap: 70px; padding-top: 46px; }
.content-block h2 { margin: 0 0 25px; font-family: Georgia, "Songti SC", serif; font-weight: 500; font-size: 25px; }
.spot-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spot-item { padding: 17px; background: #fff; border: 1px solid var(--line); }
.spot-item span { display: block; color: var(--coral); font-size: 11px; margin-bottom: 11px; }
.spot-item strong { font-size: 14px; font-weight: 500; }
.culture-box { margin-top: 31px; padding: 24px 25px; background: #f2f5e7; border-left: 3px solid var(--gold); color: var(--ink); font-size: 13px; line-height: 1.9; }

.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 19px; border: 1px solid var(--coral); font-size: 12px; }
.primary-button { background: var(--coral); color: #fff; }
.secondary-button { background: transparent; color: var(--coral); }
.primary-button:hover { background: var(--ink); border-color: var(--ink); }
.secondary-button:hover { background: #fff2ec; }
.route-box { padding: 25px; background: var(--ink); color: #fff; }
.route-box h2 { color: #f0c05a; font-size: 20px; margin-bottom: 19px; }
.route-line { display: flex; gap: 13px; align-items: baseline; color: #e2eee3; font-size: 13px; line-height: 2; }
.route-line::before { content: "→"; color: #f0c05a; }
.info-list { margin-top: 22px; border-top: 1px solid var(--line); }
.info-row { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.info-row span { color: var(--muted); }

.simple-page { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 70px 0; }
.simple-page h1 { font-family: Georgia, "Songti SC", serif; font-size: 54px; font-weight: 500; margin: 0 0 10px; }
.simple-page > p { color: var(--muted); line-height: 1.8; }
.editor-wrap { margin-top: 36px; display: grid; grid-template-columns: 260px 1fr; gap: 22px; }
.editor-nav, .editor-panel { background: #fff; border: 1px solid var(--line); }
.editor-nav { padding: 13px; }
.editor-region { width: 100%; display: flex; justify-content: space-between; border: 0; border-bottom: 1px solid #edf2eb; background: none; padding: 15px 12px; color: var(--muted); text-align: left; }
.editor-region.active, .editor-region:hover { color: var(--coral); background: #fff8f1; }
.editor-panel { padding: 29px; }
.editor-panel h2 { font-size: 20px; font-weight: 500; margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: var(--muted); font-size: 11px; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid var(--line); padding: 12px; color: var(--ink); background: #fcfdf9; font: inherit; font-size: 13px; outline: none; }
.form-field textarea { min-height: 83px; resize: vertical; line-height: 1.7; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--coral); }
.form-actions { display: flex; justify-content: flex-end; margin-top: 25px; }

.site-footer { width: min(1240px, calc(100% - 64px)); margin: 0 auto; min-height: 61px; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--ink); font-size: 12px; }
.site-footer > div { display: flex; align-items: center; }
.footer-muted { color: var(--muted); margin-left: 18px; font-size: 11px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 5; padding: 12px 19px; background: var(--ink); color: #fff; font-size: 12px; transform: translate(-50%, 25px); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }

.memories-page { padding-top: 55px; }
.memories-page > h1 { color: var(--ink); }
.memory-intro { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 32px 0 25px; padding: 22px 24px; background: #f0f4e9; border-left: 3px solid var(--gold); }
.memory-intro > div { display: flex; flex-direction: column; gap: 7px; }
.memory-intro strong { font-family: Georgia, "Songti SC", serif; font-size: 19px; font-weight: 500; }
.memory-intro span, .form-field label span { color: var(--muted); font-size: 11px; }
.memory-tabs { display: flex; gap: 8px; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.memory-tab { min-height: 42px; padding: 0 17px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 13px; }
.memory-tab.active { color: var(--coral); border-bottom-color: var(--coral); }
.memory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.memory-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.memory-card > img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #edf1e9; }
.memory-card-body { padding: 13px 14px 12px; }
.memory-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--coral); font-size: 10px; }
.memory-meta span:last-child { color: var(--muted); }
.memory-card-body p { min-height: 36px; margin: 10px 0; color: var(--ink); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.memory-group-buy { display: inline-flex; align-items: center; margin: 0 0 10px; padding: 6px 11px; border-radius: 999px; color: #fff; background: var(--coral); font-size: 11px; }
.like-button { display: inline-flex; align-items: center; gap: 5px; padding: 3px 0; border: 0; background: transparent; color: var(--muted); font-size: 14px; }
.like-button.liked { color: var(--coral); }
.like-button:disabled { cursor: default; opacity: 1; }
.memory-comments { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 9px; font-size: 12px; }
.memory-comments summary { cursor: pointer; color: var(--teal); }
.comment-list p { margin: 8px 0; padding: 7px 8px; background: #f4f7f0; overflow-wrap: anywhere; }
.memory-comments form { display: flex; gap: 5px; margin-top: 10px; }
.memory-comments input { min-width: 0; flex: 1; padding: 7px; border: 1px solid var(--line); font: inherit; }
.memory-comments button { border: 1px solid var(--teal); background: var(--teal); color: #fff; font: inherit; }
.memory-empty { grid-column: 1 / -1; padding: 62px 15px; color: var(--muted); text-align: center; border: 1px dashed var(--line); }
.pagination { display: flex; justify-content: center; gap: 7px; margin-top: 27px; }
.page-button { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; color: var(--muted); }
.page-button.active { border-color: var(--coral); background: var(--coral); color: #fff; }
.memory-form-wrap:not([hidden]) { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(18, 44, 40, .42); }
.memory-form { width: min(600px, 100%); max-height: min(90vh, 760px); overflow-y: auto; padding: 25px 28px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.form-heading h2 { margin: 9px 0 0; font-family: Georgia, "Songti SC", serif; font-size: 23px; font-weight: 500; }
.close-form { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 22px; line-height: 1; }
.memory-form .form-grid { margin-top: 23px; }
.memory-form .form-field input[type="file"] { padding: 9px; background: #fff; }
.memory-form .form-field select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 13px; }
.memory-form .form-field small { color: var(--muted); font-size: 11px; }
.memory-form .char-count { text-align: right; }
.memory-form .form-actions { gap: 10px; }
.memory-form .form-actions button { cursor: pointer; }

@media (max-width: 900px) {
  .site-header, .hero, .section, .simple-page, .site-footer { width: min(100% - 38px, 680px); }
  .site-header { gap: 15px; }
  .main-nav { gap: 15px; }
  .header-actions { min-width: auto; }
  .header-actions .text-button { display: none; }
  .hero { grid-template-columns: 1fr; gap: 22px; padding-top: 55px; }
  .map-stage { width: min(100%, 510px); }
  .region-grid { grid-template-columns: repeat(3, 1fr); }
  .memory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-heading, .detail-content { grid-template-columns: 1fr; gap: 35px; }
  .editor-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-header { height: 70px; }
  .brand { min-width: auto; }
  .brand small, .main-nav { display: none; }
  .hero { padding-top: 45px; }
  .hero h1 { font-size: 50px; }
  .map-stage { width: 100%; margin-bottom: 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 9px; }
  .region-grid { grid-template-columns: 1fr 1fr; }
  .memory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .memory-intro { align-items: flex-start; flex-direction: column; padding: 18px; }
  .memory-tab { padding: 0 11px; }
  .memory-form { padding: 21px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .spot-list { grid-template-columns: 1fr; }
  .detail-page { width: min(100% - 38px, 680px); }
  .detail-heading h1 { font-size: 61px; }
  .simple-page h1 { font-size: 43px; }
  .site-footer { display: block; }
  .site-footer > div { margin-bottom: 10px; }
  .footer-muted { margin-left: 8px; }
}

