:root { color-scheme: light; --ink: #22302f; --muted: #66746f; --line: #e4eae7; --accent: #176b62; --soft: #eef5f2; --paper: #fff; --rose: #a35b52; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; color: var(--ink); background: #fff; font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
button, select { font: inherit; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: var(--accent); text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #b5d4cd; outline-offset: 3px; }
button:disabled { cursor: default; opacity: .35; }
svg { width: 19px; height: 19px; flex: 0 0 auto; stroke-width: 1.65; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 20; background: white; padding: 10px; }
.skip-link:focus { top: 10px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 254px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #fafcfb; padding: 30px 20px 20px; z-index: 4; }
.brand { display: flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; font-size: 25px; font-weight: 650; padding-left: 6px; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; background: var(--accent); color: white; border-radius: 6px; }
.brand-mark svg { width: 30px; height: 30px; }
.brand-sub { display: block; font-size: 11px; font-weight: 400; color: var(--muted); line-height: 1.8; }
.trip-meta { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); padding: 23px 6px 16px; }
.sidebar-rule { border-top: 1px solid var(--line); }
#days-nav { flex: 1; overflow-y: auto; scrollbar-width: thin; padding: 12px 0; }
.chapter-label { color: var(--muted); font-size: 10px; margin: 12px 10px 7px; display: flex; gap: 8px; align-items: center; }
.chapter-label:before { content: ""; height: 4px; width: 4px; background: #a6b8b1; border-radius: 50%; }
.day-link { display: grid; grid-template-columns: 37px minmax(0,1fr) 12px; gap: 8px; align-items: center; padding: 10px; min-height: 42px; border-left: 2px solid transparent; text-decoration: none; color: #6a7874; font-size: 12px; border-radius: 0 5px 5px 0; }
.day-link .nav-date { font-variant-numeric: tabular-nums; font-size: 11px; color: var(--muted); }
.day-link .nav-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-link svg { width: 12px; height: 12px; opacity: 0; }
.day-link:hover { background: #f0f4f2; }
.day-link[aria-current="page"] { background: #e8f1ed; color: #125f55; border-left-color: #176b62; font-weight: 600; }
.day-link[aria-current="page"] .nav-date { color: var(--accent); }
.day-link[aria-current="page"] svg { opacity: 1; }
.sidebar-foot { padding: 17px 6px 0; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); color: var(--accent); }
.sidebar-foot strong { font-size: 11px; font-weight: 550; }
.sidebar-foot small { display: block; font-size: 10px; color: var(--muted); }
.workspace { margin-left: 254px; }
.topbar { height: 77px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: white; }
.breadcrumb { display: flex; align-items: center; gap: 12px; font-size: 12px; white-space: nowrap; }
.breadcrumb span { color: var(--muted); }
.breadcrumb svg { color: #abb6b1; width: 13px; }
.breadcrumb strong { font-weight: 500; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.return-picker { display: flex; align-items: center; gap: 2px; margin-right: 14px; font-size: 11px; }
.return-picker > span { color: var(--muted); margin-right: 9px; }
.return-picker button { border: 0; background: #f4f6f5; border-radius: 3px; font-size: 11px; padding: 6px 9px; min-height: 32px; }
.return-picker button[aria-pressed="true"] { background: #e8f1ed; color: var(--accent); font-weight: 600; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 5px; background: white; flex: 0 0 auto; }
.icon-button:hover { background: var(--soft); }
.icon-button { text-decoration: none; }
.mobile-date { display: none; }
.plan-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 42px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f9fbfa; }
.plan-band > div { flex: 0 1 350px; min-width: 240px; }
.plan-label { display: block; font-size: 10px; color: var(--muted); margin-bottom: 6px; }
.plan-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.plan-picker button { min-height: 40px; padding: 7px 10px; border: 1px solid #d9e3de; border-radius: 4px; background: white; font-size: 11px; }
.plan-picker button span { margin-left: 8px; font-weight: 400; }
.plan-picker button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: #e8f1ed; font-weight: 600; }
#plan-summary { font-size: 11px; color: var(--muted); max-width: 410px; line-height: 1.8; }
.map-plan { margin-top: 14px; }
.map-plan .plan-picker button span { display: block; margin-left: 0; font-size: 10px; }
.map-plan #plan-summary { margin-top: 8px; font-size: 10px; }
.hero { position: relative; height: 316px; isolation: isolate; overflow: hidden; background: #456d6b; }
.hero > img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; display: block; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg,rgba(13,32,29,.73),transparent 80%); pointer-events: none; }
.hero-content { position: absolute; left: 42px; right: 40px; bottom: 38px; color: white; }
.eyebrow { display: flex; gap: 13px; align-items: center; font-size: 11px; margin-bottom: 9px; font-weight: 500; }
.eyebrow-line { width: 26px; height: 1px; background: #fff8; }
.hero h1 { font-family: "Songti SC", "Noto Serif CJK SC", "STSong", serif; font-size: 40px; line-height: 1.35; font-weight: 650; overflow-wrap: anywhere; }
.hero-content > p { font-size: 12px; margin-top: 12px; color: #edf6f1; }
.photo-credit { position: absolute; bottom: 12px; right: 16px; color: #fff; font-size: 10px; text-decoration: none; display: flex; align-items: center; gap: 5px; background: #1b302d80; border-radius: 3px; padding: 3px 6px; }
.photo-credit svg { width: 12px; height: 12px; }
.day-facts { display: grid; grid-template-columns: 1fr 1.1fr 1.3fr; border-bottom: 1px solid var(--line); padding: 22px 42px; gap: 26px; }
.fact { display: flex; gap: 12px; align-items: center; min-width: 0; }
.fact > svg { color: var(--accent); width: 21px; height: 21px; }
.fact small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.fact strong { display: block; font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.content-inner { max-width: 1300px; margin: 0 auto; padding: 34px 42px 26px; }
.day-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.section-kicker { color: var(--accent); font-size: 10px; font-weight: 650; }
.day-heading h2 { font-size: 23px; font-weight: 600; margin-top: 5px; line-height: 1.4; }
.status-label { flex: 0 0 auto; font-size: 11px; color: var(--accent); padding: 4px 0 4px 12px; border-left: 2px solid #a9c9be; }
.day-summary { font-size: 13px; color: #64726d; margin-top: 12px; max-width: 850px; line-height: 1.9; }
.notice { display: flex; gap: 10px; align-items: flex-start; background: #fbf4f0; border-left: 2px solid #cf9a86; margin: 20px 0 32px; padding: 12px 15px; }
.notice svg { width: 15px; height: 15px; color: #a45f49; margin-top: 3px; }
.notice p { font-size: 12px; line-height: 1.85; color: #845e51; }
.day-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: 44px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-heading h3 { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.section-heading h3 svg { width: 16px; height: 16px; color: var(--accent); }
.section-heading > span { color: var(--muted); font-size: 10px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 77px minmax(0,1fr); position: relative; gap: 20px; padding-bottom: 27px; }
.timeline li:before { content: ""; position: absolute; width: 1px; background: var(--line); top: 11px; bottom: -6px; left: 86px; }
.timeline li:last-child:before { display: none; }
.timeline time { color: var(--accent); font-size: 10px; font-weight: 600; padding-top: 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.timeline .event { position: relative; padding-left: 9px; }
.timeline .event:before { content: ""; position: absolute; left: -15px; top: 7px; height: 7px; width: 7px; border: 1.5px solid #8bb4a5; border-radius: 50%; background: #fff; }
.timeline li:first-child .event:before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px #eff5f1; }
.event h4 { font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.event p { font-size: 13px; color: var(--muted); line-height: 1.9; overflow-wrap: anywhere; }
.daily-aside { border-left: 1px solid var(--line); padding-left: 28px; }
.meal { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 12px; padding: 0 0 16px; }
.meal-label { font-size: 11px; color: var(--muted); padding-top: 2px; }
.meal p { font-size: 13px; line-height: 1.75; }
.meal small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.hotel-section, .check-section { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 11px; }
.hotel-name { font-size: 15px; line-height: 1.65; font-weight: 550; margin-bottom: 5px; overflow-wrap: anywhere; }
.hotel-area { font-size: 11px; color: var(--muted); }
.hotel-range { display: block; font-size: 13px; font-weight: 600; color: var(--accent); margin: 10px 0; }
.hotel-note { font-size: 12px; color: var(--muted); line-height: 1.85; }
.text-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 13px; }
.text-actions a { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; font-size: 11px; }
.text-actions svg { width: 13px; height: 13px; }
.check-label { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 11px; font-size: 12px; line-height: 1.8; cursor: pointer; }
.check-label input { accent-color: var(--accent); width: 14px; height: 14px; flex: 0 0 14px; margin: 4px 0 0; }
.check-label:has(input:checked) span { color: var(--muted); text-decoration: line-through; }
.details-section { margin-top: 26px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; list-style: none; font-size: 12px; font-weight: 500; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary > span { display: flex; gap: 10px; align-items: center; }
summary svg { height: 16px; width: 16px; color: #70847a; }
details[open] summary > svg { transform: rotate(45deg); }
.detail-content { padding: 0 0 20px 26px; font-size: 12px; line-height: 1.95; color: #66776e; overflow-wrap: anywhere; }
.detail-content ul { padding-left: 18px; }
.detail-content li { margin: 8px 0; }
.route-stops { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; margin-bottom: 15px; }
.route-stops a { font-size: 11px; text-decoration: none; border-bottom: 1px solid #bdd4ca; }
.route-stops svg { width: 12px; }
.small-note { color: var(--muted); font-size: 11px; }
.source-row { margin: 10px 0; }
.source-row small { display: block; color: var(--muted); }
.page-note { font-size: 10px; color: var(--muted); margin-top: 24px; }
.day-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); gap: 18px; }
.page-turn { display: flex; gap: 13px; align-items: center; border: 0; background: transparent; text-align: left; padding: 4px 0; min-height: 54px; max-width: 42%; }
.page-turn small { display: block; font-size: 10px; color: var(--muted); }
.page-turn strong { font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.next { text-align: right; }
#page-number { font-size: 10px; color: var(--muted); white-space: nowrap; }
dialog { width: min(1120px,calc(100% - 48px)); max-height: 88dvh; border: 1px solid #e2e9e4; border-radius: 8px; padding: 0; box-shadow: 0 24px 100px #182c3540; color: var(--ink); }
dialog::backdrop { background: #162b2866; backdrop-filter: blur(3px); }
.dialog-header { display: flex; justify-content: space-between; gap: 25px; align-items: center; padding: 25px 30px 20px; }
.dialog-header h2 { font-size: 23px; margin-top: 4px; }
.dialog-tabs { display: flex; gap: 24px; padding: 0 30px; border-bottom: 1px solid var(--line); }
.dialog-tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 12px 0; font-size: 12px; color: var(--muted); }
.dialog-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.dialog-panel { padding: 22px 30px 30px; font-size: 12px; }
.dialog-panel > p { margin-bottom: 16px; color: var(--muted); }
.table-scroll { max-width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 11px; min-width: 770px; }
th { font-weight: 500; text-align: left; color: var(--muted); background: #f3f6f4; }
th, td { padding: 13px 11px; border-bottom: 1px solid var(--line); vertical-align: top; }
td { color: #53665b; line-height: 1.8; }
td small { display: block; color: var(--muted); }
td:first-child { white-space: nowrap; }
.row-link { border: 0; background: transparent; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.dialog-note { border-left: 2px solid #aec9bc; padding-left: 15px; margin: 0 0 22px; }
.dialog-note h3 { font-size: 13px; margin-bottom: 5px; }
.dialog-note p { color: var(--muted); line-height: 1.9; }
.budget-total { margin: 20px 0; color: var(--accent); font-size: 16px; font-weight: 600; }
.dialog-panel details { margin-top: 10px; }
@media (min-width: 1700px) { .hero { height: 360px; } }
@media (max-width: 1100px) {
  .sidebar { width: 224px; padding-left: 15px; padding-right: 15px; }
  .workspace { margin-left: 224px; }
  .topbar { padding: 0 26px; }
  .content-inner { padding-left: 26px; padding-right: 26px; }
  .hero-content { left: 26px; }
  .day-facts { padding: 20px 26px; gap: 15px; }
  .day-grid { gap: 24px; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); }
  .daily-aside { padding-left: 20px; }
}
@media (max-width: 780px) {
  .plan-band { padding: 12px 20px; display: block; }
  .plan-band > div { min-width: 0; }
  .plan-band .plan-label { display: none; }
  .plan-band #plan-summary { margin-top: 7px; font-size: 10px; }
  .sidebar { display: none; }
  .workspace { margin: 0; }
  .topbar { height: 68px; padding: 0 20px; gap: 10px; }
  .return-picker { margin-right: 2px; }
  .return-picker > span { display: none; }
  .breadcrumb { gap: 6px; font-size: 11px; }
  .icon-button { width: 32px; height: 32px; }
  .top-actions { gap: 5px; }
  .mobile-date { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 11px 20px; border-top: 1px solid var(--line); background: #f9fbfa; }
  .mobile-date label { font-size: 10px; color: var(--muted); white-space: nowrap; }
  .mobile-date select { border: 0; background: transparent; color: var(--accent); font-size: 12px; padding: 6px 0; min-width: 0; max-width: 80%; text-align: right; }
  .hero { height: 272px; }
  .hero-content { left: 23px; right: 23px; bottom: 38px; }
  .hero h1 { font-size: 32px; }
  .hero-content > p { font-size: 11px; }
  .day-facts { padding: 17px 20px; grid-template-columns: 1fr 1fr; gap: 16px; }
  .fact:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 13px; }
  .fact strong { font-size: 11px; }
  .fact { gap: 9px; }
  .content-inner { padding: 26px 22px; }
  .day-grid { grid-template-columns: 1fr; gap: 12px; }
  .daily-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 22px; }
  .day-heading { align-items: flex-start; }
  .day-heading h2 { font-size: 21px; }
  .status-label { font-size: 9px; margin-top: 9px; max-width: 120px; }
  .timeline li { grid-template-columns: 74px minmax(0,1fr); }
  .timeline li:before { left: 83px; }
  .notice { margin-bottom: 27px; }
  .day-summary { font-size: 12px; }
  .details-section { margin-top: 22px; }
  .detail-content { padding-left: 0; }
  dialog { width: calc(100% - 20px); max-height: 92dvh; }
  .dialog-header { padding: 22px 18px 15px; }
  .dialog-header h2 { font-size: 20px; }
  .dialog-tabs { padding: 0 18px; gap: 21px; }
  .dialog-panel { padding: 18px; }
  .page-turn strong { font-size: 11px; }
}
@media (max-width: 360px) {
  .topbar { padding: 0 13px; }
  .return-picker button { padding: 5px 6px; font-size: 10px; white-space: nowrap; }
  #prep-top-button { display: none; }
  .icon-button { width: 30px; height: 30px; }
  .breadcrumb > span, .breadcrumb > svg { display: none; }
  .content-inner { padding-left: 17px; padding-right: 17px; }
}
@media (min-width: 361px) and (max-width: 440px) { .breadcrumb > span, .breadcrumb > svg { display: none; } }
@media (prefers-reduced-motion: no-preference) { .hero-content { animation: arrive .28s ease-out; } @keyframes arrive { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: none; } } }
@media print {
  .sidebar, .topbar, .mobile-date, .day-footer, dialog, .page-note, .skip-link, .photo-credit { display: none !important; }
  .workspace { margin: 0; }
  .hero { height: 170px; }
  .hero-content { bottom: 20px; }
  .hero h1 { font-size: 26px; }
  .content-inner { padding: 20px 0; }
  .day-facts { padding: 15px 0; }
  .day-grid { display: block; }
  .daily-aside { padding: 0; border: 0; }
  .timeline li, .meal, .hotel-section, .check-section { break-inside: avoid; }
  .notice { margin-bottom: 20px; }
  .detail-content { font-size: 10px; }
}
/* 行前准备、倒计时、日出日落与“现在”标记 */
.prep-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 6px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; color: var(--ink); }
.prep-link:hover { background: #f0f4f2; }
.prep-link > span { flex: 1; min-width: 0; }
.prep-link strong { display: block; font-size: 12px; font-weight: 550; }
.prep-link small { display: block; font-size: 10px; color: var(--muted); }
.prep-link svg { color: var(--accent); }
.prep-link svg:last-child { width: 13px; height: 13px; color: #a6b8b1; }
.icon-button.is-done { color: var(--accent); border-color: #a9c9be; }
.day-link.is-today .nav-date:after { content: "今"; margin-left: 4px; font-size: 9px; color: white; background: var(--rose); border-radius: 3px; padding: 0 3px; }
.mobile-date label span { color: var(--accent); }
.hero > img.is-fresh { animation: hero-in .4s ease-out; }
@keyframes hero-in { from { opacity: .35; } to { opacity: 1; } }
.day-facts { grid-template-columns: 1fr 1.1fr 1.2fr 1.2fr; }
.timeline li.now .event:before { background: var(--rose); border-color: var(--rose); box-shadow: 0 0 0 4px #f6ebe8; }
.timeline li.now time { color: var(--rose); }
.now-badge { margin-left: 8px; font-size: 9px; font-weight: 600; color: white; background: var(--rose); border-radius: 3px; padding: 1px 5px; vertical-align: 2px; }
.prep-stage { border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px 8px; margin-bottom: 14px; background: #fbfcfb; }
.prep-stage-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.prep-stage-head h3 { font-size: 13px; font-weight: 600; }
.prep-stage-head span { font-size: 11px; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.prep-hint { font-size: 11px; color: var(--muted); margin: 4px 0 12px; }
.prep-stage .check-label { font-size: 12px; }
.prep-heading { font-size: 14px; font-weight: 600; margin: 26px 0 12px; }
.prep-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; }
.prep-table { min-width: 0; }
.prep-table th { white-space: nowrap; width: 72px; }
.prep-table td.prep-region { white-space: normal; font-weight: 500; color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.contact { border: 1px solid var(--line); border-radius: 5px; padding: 10px 12px; }
.contact strong { display: block; font-size: 15px; color: var(--accent); font-variant-numeric: tabular-nums; }
.contact small { color: var(--muted); font-size: 10px; }
@media (max-width: 1100px) { .day-facts { grid-template-columns: 1fr 1fr; } .fact:last-child { grid-column: auto; border-top: 0; padding-top: 0; } }
@media (max-width: 780px) {
  .day-facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 13px; }
  .fact:last-child { grid-column: auto; }
  .prep-notes { grid-template-columns: 1fr; }
  .prep-stage { padding: 14px 14px 6px; }
}
@media print { .prep-link, .now-badge { display: none !important; } .day-facts { grid-template-columns: repeat(4, 1fr); } }
