:root {
  --ink: #0E1A24;
  --ink-2: #2E3B48;
  --muted: #55606B;
  --faint: #7A8590;
  --paper: #F4F1EC;
  --card: #FFFFFF;
  --line: #E6E1D8;
  --line-2: #EEEAE3;
  --sand: #E8E3DA;
  --hot: #B23A0A;
  --hot-soft: #FBF3EC;
  --hot-ink: #8A2C06;
  --arai: #B23A0A;
  --seki: #1C4E80;
  --madarao: #0B6470;
  --nozawa: #4C2FA8;
  --shadow: 0 1px 2px rgba(14, 26, 36, 0.06), 0 6px 20px rgba(14, 26, 36, 0.07);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --num: "DIN Condensed", "Barlow Condensed", "Roboto Condensed", "Arial Narrow", var(--sans);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
p, span, li, dd, figcaption, label { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(76px + env(safe-area-inset-bottom)); background: var(--paper); }
.view[hidden] { display: none !important; }
.serif { font-family: var(--serif); font-weight: 900; }
.num { font-family: var(--num); font-weight: 700; letter-spacing: 0.3px; }
.muted { color: var(--muted); }
.wrap { padding: 0 16px; }
.stack { display: flex; flex-direction: column; }
.card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.h2 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 900; }
.section { display: flex; flex-direction: column; gap: 12px; }
.main { display: flex; flex-direction: column; gap: 30px; padding: 28px 16px 28px; }

/* 首页封面 */
.hero { position: relative; height: 420px; overflow: hidden; background: var(--ink); color: #fff; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.hero-in { position: relative; padding: 20px 20px 0; display: flex; flex-direction: column; gap: 22px; }
.hero-top { display: flex; justify-content: space-between; align-items: center; }
.team { font-size: 14px; letter-spacing: 3px; color: #DCE6EF; font-weight: 600; }
.chip-offline { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(14, 26, 36, 0.55); color: #E6EEF5; font-size: 12px; }
.chip-offline[data-state="pending"] { opacity: 0.75; }
.hero-kicker { font-size: 13px; letter-spacing: 4px; color: #C9D6E2; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: 44px; font-weight: 900; letter-spacing: 2px; line-height: 1.15; }
.hero p { margin: 0; font-size: 15px; color: #DCE6EF; }
.datebar { position: relative; margin: -56px 16px 0; background: var(--ink); color: #fff; border-radius: 22px; padding: 18px; display: flex; justify-content: space-between; align-items: flex-end; box-shadow: 0 12px 32px rgba(14, 26, 36, 0.28); }
.datebar .dates { font-size: 38px; line-height: 1; }
.datebar .dates i { font-style: normal; color: #F08A4B; padding: 0 6px; }
.datebar .count { font-size: 12px; color: #AFC2D3; margin-top: 6px; }
.datebar .nights { display: flex; align-items: baseline; gap: 2px; color: #F08A4B; font-weight: 700; }
.datebar .nights b { font-family: var(--num); font-size: 34px; line-height: 1; }
.datebar .nights b + span + b { margin-left: 4px; }

/* 雪场卡 */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rcard .ph { position: relative; height: 112px; }
.rcard .ph > img { width: 100%; height: 112px; object-fit: cover; }
.logo-chip { position: absolute; left: 8px; top: 8px; padding: 4px 7px; border-radius: 8px; background: #fff; display: flex; }
.logo-chip.dark { background: #3A3F45; }
.logo-chip img { height: 14px; width: auto; }
.rcard .tx { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.rcard .tx b { font-size: 15px; }
.rcard .tx span { font-size: 12px; font-weight: 700; }
.link-more { font-size: 13px; color: var(--muted); min-height: 44px; display: flex; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; }

/* 每日行程 */
.daycard { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); }
.daycard .thumb { width: 68px; height: 68px; flex-shrink: 0; border-radius: 14px; object-fit: cover; background: var(--sand); display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.daycard .thumb.hot { background: #FBE7DA; color: var(--hot); }
.daycard .tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.daycard .k { font-family: var(--num); font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: 0.4px; }
.daycard .t { font-size: 16px; font-weight: 700; line-height: 1.35; }
.daycard .n { font-size: 13px; color: var(--muted); line-height: 1.5; }
.skiblock { display: flex; flex-direction: column; gap: 12px; background: var(--ink); color: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.skiblock .k { font-family: var(--num); font-size: 15px; font-weight: 700; color: #F08A4B; }
.skiblock .t { font-size: 17px; font-weight: 700; line-height: 1.4; }
.skiblock .imgs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.skiblock .imgs img { width: 100%; height: 52px; border-radius: 10px; object-fit: cover; }

/* 民宿 */
.house-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding-top: 3px; }
.house-strip img { width: 100%; height: 76px; object-fit: cover; }
.house-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; padding-top: 3px; }
.house-grid img { width: 100%; height: 118px; object-fit: cover; }
.pad { padding: 14px 16px 16px; }

/* 航班 */
.flightrow { display: flex; gap: 12px; align-items: center; padding: 14px 0; }
.flightrow + .flightrow { border-top: 1px solid var(--line-2); }
.tag { padding: 3px 8px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.flightrow .r { font-size: 21px; line-height: 1.1; }
.flightrow sup { font-size: 12px; color: var(--hot); }
.fcard .head { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: #fff; }
.fcard .head span:first-child { font-size: 13px; font-weight: 700; }
.fcard .head span:last-child { font-family: var(--num); font-size: 16px; color: #C5D3E0; }
.fcard .body { padding: 18px 16px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.fcard .end { display: flex; flex-direction: column; gap: 4px; }
.fcard .end.r { align-items: flex-end; text-align: right; }
.fcard .time { font-family: var(--num); font-weight: 700; font-size: 40px; line-height: 1; }
.fcard .ap { font-size: 14px; font-weight: 700; }
.fcard .d { font-size: 12px; color: var(--muted); }
.fcard .d.hot { color: var(--hot); font-weight: 700; }
.fcard .tip { margin: 0 16px; border-top: 1px dashed #DCD5CA; padding: 12px 0 16px; font-size: 13px; line-height: 1.7; color: var(--ink-2); }

/* 页面顶栏 */
.pagehead { padding: 22px 16px 12px; display: flex; flex-direction: column; gap: 14px; }
.pagehead h1 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 900; }
.subbar { background: #fff; border-bottom: 1px solid var(--line); padding: 10px 8px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 5; }
.subbar a { display: flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 8px; font-size: 15px; font-weight: 500; }
.subbar .num { font-size: 19px; letter-spacing: 1px; }

.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--sand); border-radius: 14px; }
.seg button { min-height: 44px; border: 0; border-radius: 11px; font-size: 14px; background: transparent; color: var(--muted); font-weight: 500; }
.seg button[aria-current="true"] { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(14, 26, 36, 0.12); }
.seg-wrap { position: sticky; top: 0; z-index: 6; background: var(--paper); padding: 12px 16px 10px; }
[data-part] { scroll-margin-top: 84px; }

/* 时间线 */
.timeline { padding: 8px 16px; }
.step { display: grid; grid-template-columns: 70px 20px minmax(0, 1fr); column-gap: 10px; padding: 12px 0; }
.step .when { display: flex; flex-direction: column; }
.step .when small { font-size: 11px; font-weight: 700; color: var(--ink-2); }
.step .when b { font-size: 15px; color: var(--ink-2); line-height: 1.3; }
.step .rail { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.step .dot { width: 12px; height: 12px; border-radius: 999px; border: 3px solid var(--ink-2); background: #fff; margin-top: 5px; }
.step .line { width: 2px; flex: 1; background: var(--line); }
.step.hot .dot { border-color: var(--hot); }
.step.hot .when small { color: var(--hot); }
.step .what { display: flex; flex-direction: column; gap: 4px; }
.step .what b { font-size: 16px; line-height: 1.4; }
.step .what span { font-size: 14px; color: var(--muted); line-height: 1.6; }
.note { display: flex; flex-direction: column; gap: 10px; background: var(--hot-soft); border-radius: 20px; padding: 16px; }
.note h2 { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 900; color: var(--hot-ink); }
.note ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.7; color: #3B2410; }
.pills2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pills2 span { background: #fff; border-radius: 14px; padding: 12px; font-size: 14px; font-weight: 500; box-shadow: 0 1px 2px rgba(14, 26, 36, 0.06); }
.btn-dark { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; border: 0; }
.banner { width: 100%; height: 200px; object-fit: cover; object-position: 50% 65%; }

/* 信息 */
dl.kv { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
dl.kv dt { font-size: 12px; color: var(--muted); }
dl.kv dd { margin: 0; font-size: 15px; font-weight: 700; }
dl.kv .span2 { grid-column: span 2; }
.callout { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--hot-soft); color: var(--hot-ink); font-size: 14px; font-weight: 700; }
.iconbox { width: 48px; height: 48px; border-radius: 14px; background: var(--sand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }

/* 雪场 */
.rtabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.rtabs button { min-height: 56px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 6px 2px; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.rtabs button b { font-size: 14px; }
.rtabs button small { font-size: 11px; }
.rtabs button[aria-selected="true"] { color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(14, 26, 36, 0.18); }
.rtabs button[data-r="arai"][aria-selected="true"] { background: var(--arai); }
.rtabs button[data-r="seki"][aria-selected="true"] { background: var(--seki); }
.rtabs button[data-r="madarao"][aria-selected="true"] { background: var(--madarao); }
.rtabs button[data-r="nozawa"][aria-selected="true"] { background: var(--nozawa); }
.resort { border-radius: 22px; }
.resort .ph { position: relative; height: 190px; }
.resort .ph > img { width: 100%; height: 190px; object-fit: cover; }
.resort .logo-chip { left: 12px; top: 12px; padding: 5px 8px; border-radius: 9px; }
.resort .logo-chip img { height: 18px; }
.resort .name { padding: 16px 16px 4px; display: flex; flex-direction: column; gap: 4px; }
.resort .name small { font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.resort .name h2 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 900; }
.resort .name span { font-family: var(--num); font-size: 16px; color: var(--muted); letter-spacing: 1px; }
.mapfig { margin: 12px 16px 0; display: flex; flex-direction: column; gap: 8px; }
.mapbtn { position: relative; padding: 0; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #fff; display: block; width: 100%; }
.mapbtn img { width: 100%; height: auto; }
.mapbtn .overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapbtn .zoom { position: absolute; right: 8px; bottom: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(14, 26, 36, 0.78); color: #fff; font-size: 12px; font-weight: 700; }
.mapfig figcaption { font-size: 12px; color: var(--faint); }
.resort dl.kv { padding: 14px 16px; }
.feature { margin: 0 16px 16px; padding: 14px; border-radius: 14px; display: flex; flex-direction: column; gap: 4px; }
.feature b { font-size: 13px; }
.feature p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.c-arai { color: var(--arai); } .bg-arai { background: #FBF3EC; }
.c-seki { color: var(--seki); } .bg-seki { background: #EEF3F8; }
.c-madarao { color: var(--madarao); } .bg-madarao { background: #EBF5F4; }
.c-nozawa { color: var(--nozawa); } .bg-nozawa { background: #F1EEFA; }
.whereis { padding: 14px; display: flex; flex-direction: column; gap: 10px; border-radius: 22px; }
.whereis svg { width: 100%; height: auto; }

/* 清单 */
.listhead { background: var(--ink); color: #fff; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.listhead h1 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 900; }
.listhead .prog { height: 8px; border-radius: 999px; background: #1E2D3B; overflow: hidden; }
.listhead .prog i { display: block; height: 8px; background: #D9480F; border-radius: 999px; transition: width 0.25s; }
.listhead .cnt b { font-family: var(--num); font-size: 48px; line-height: 1; }
.listhead .cnt span { font-family: var(--num); font-size: 24px; color: #8FA3B6; }
.btn-ghost { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid #3A4B5C; background: transparent; color: #DCE6EF; font-size: 13px; }
.group { display: flex; flex-direction: column; gap: 8px; }
.group h2 { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 900; }
.group .box { background: #fff; border-radius: 18px; padding: 0 14px; box-shadow: var(--shadow); }
.item { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; }
.item + .item { border-top: 1px solid var(--line-2); }
.item input { width: 22px; height: 22px; margin: 0; accent-color: #D9480F; flex-shrink: 0; }
.item span { flex: 1; font-size: 15px; line-height: 1.4; }
.item input:checked + span { color: #8494A3; text-decoration: line-through; }
.item em { font-style: normal; padding: 2px 8px; border-radius: 999px; background: #FFE8DC; color: var(--hot-ink); font-size: 12px; font-weight: 700; }

/* 底部导航 */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line); padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); }
.tabbar .in { max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; min-height: 44px; color: var(--muted); font-size: 12px; }
.tabbar a[aria-current="page"] { color: var(--hot); font-weight: 700; }

/* 看大图 */
.viewer { position: fixed; inset: 0; z-index: 50; background: rgba(8, 12, 16, 0.96); display: flex; flex-direction: column; }
.viewer[hidden] { display: none; }
.viewer .bar { display: flex; justify-content: space-between; align-items: center; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; color: #fff; font-size: 14px; }
.viewer .bar button { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid #3A4B5C; background: transparent; color: #fff; font-size: 14px; }
.viewer .scroller { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; }
.viewer .scroller .canvas { position: relative; width: 200%; }
.viewer .scroller img { width: 100%; height: auto; }
.viewer .scroller .overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.viewer .hint { color: #8FA3B6; font-size: 12px; text-align: center; padding: 8px 0 calc(10px + env(safe-area-inset-bottom)); }
