@import url('/shared.css');
/* 视觉基调与小程序一致：宣纸米白 + 中国红 + 水墨山河（参见 prototype/） */
:root{color-scheme:light;--red:#b3262a;--red-deep:#8e1b1d;--ink:#2b211c;--text:#3f332b;--muted:#8a7c70;--line:#eee2d0;--bg:#f6efe4;--card:#fffaf3;--tile:#f8efe2;--beige:#f3e4cd;--serif:"STKaiti","KaiTi","Kaiti SC","STSong","Songti SC","Noto Serif SC",serif;--shadow:0 4px 13px rgba(122,82,44,.08)}
*{box-sizing:border-box}
body{margin:0;background:#ece3d5;color:var(--text);font-family:"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.65;-webkit-font-smoothing:antialiased}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
button,a{cursor:pointer}
button{font-family:inherit;color:inherit;font-size:inherit}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--red);outline-offset:3px}
button:disabled{opacity:.45;cursor:not-allowed}
.serif{font-family:var(--serif)}

/* 手机宽度的应用外壳，桌面端居中展示 */
.shell{position:relative;max-width:480px;min-height:100vh;margin:0 auto;background:var(--bg);box-shadow:0 0 40px rgba(90,60,30,.12);padding-bottom:76px}
main{min-height:calc(100vh - 76px)}

/* 首屏：山河图 + 楷体大标题 */
.hero{position:relative;height:280px;overflow:hidden}
.hero.small{height:180px}
.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-copy{position:relative;z-index:1;padding:26px 0 0 24px}
.hero.small .hero-copy{padding:18px 48px 0;text-align:center}
.hero-title{font-family:var(--serif);font-size:42px;line-height:1.2;font-weight:700;letter-spacing:3px;color:#a81f22;margin:0;text-shadow:0 1px 0 rgba(255,248,236,.8)}
.hero.small .hero-title{font-size:26px;letter-spacing:4px}
.hero-sub{margin:7px 0 0;font-size:14px;letter-spacing:5px;color:var(--red-deep)}
.hero.small .hero-sub{font-size:12.5px;letter-spacing:5px;color:#5b4f47}
.hero-rule{width:23px;height:2px;background:var(--red-deep);margin:12px 0 9px}
.hero-lines{font-size:11.5px;line-height:1.8;letter-spacing:3px;color:#5b4f47;margin:0}
.back{position:absolute;left:4px;top:14px;z-index:2;width:44px;height:44px;border:0;background:none;display:grid;place-items:center}
.back:before{content:"";width:12px;height:12px;border-left:2px solid var(--red-deep);border-bottom:2px solid var(--red-deep);transform:rotate(45deg);margin-left:5px}
.content{position:relative;z-index:2;margin-top:-65px;padding:0 12px 24px}
.content.tight{margin-top:-20px}

/* 红色主按钮 */
.cta{position:relative;display:flex;width:100%;align-items:center;justify-content:center;gap:11px;height:54px;border:0;border-radius:8px;overflow:hidden;background:url(/assets/cta.svg) center/cover,#b12a27;box-shadow:0 6px 15px rgba(142,27,29,.28);margin:0 0 12px;transition:transform .15s}
.cta:hover{transform:translateY(-1px)}
.cta-text{font-family:var(--serif);font-size:22px;letter-spacing:4px;color:#fbe5c3;font-weight:600}
.cta-arrow{width:23px;height:23px;line-height:21px;text-align:center;border-radius:50%;background:#f7dcaf;color:var(--red);font-size:18px;font-weight:700}

/* 面板 */
.panel{position:relative;background:var(--card);border:1px solid #f1e5d3;border-radius:10px;padding:14px 12px;margin-bottom:11px;box-shadow:var(--shadow);overflow:hidden}
.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}
.panel-title{position:relative;padding-left:11px;font-size:18px;font-weight:700;color:var(--ink);letter-spacing:1px;font-family:var(--serif);margin:0}
.panel-title:before{content:"";position:absolute;left:0;top:5px;bottom:5px;width:4px;border-radius:2px;background:var(--red)}
.panel-more{font-size:12px;color:var(--muted);border:0;background:none;padding:0}
.hills{position:absolute;right:0;bottom:0;width:180px;height:60px;background:url(/assets/hills.svg) no-repeat right bottom/cover;opacity:.8;pointer-events:none}

/* 入口宫格 */
.tile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.tile{position:relative;display:flex;align-items:center;gap:9px;background:var(--tile);border:0;border-radius:7px;padding:13px 9px 13px 10px;overflow:hidden;text-align:left;transition:background .15s}
.tile:hover{background:#f4e7d6}
.tile .ico{width:38px;height:38px;flex:none;color:var(--red)}
.tile-copy{flex:1;min-width:0;position:relative}
.tile-title{display:block;font-family:var(--serif);font-size:16px;font-weight:700;color:var(--ink)}
.tile-sub{display:block;font-size:11.5px;color:var(--muted)}
.chev{color:#6f6259;font-size:18px;line-height:1;position:relative}
.ico{display:inline-block;width:22px;height:22px;flex:none;color:var(--red)}

/* 通用 */
.row{display:flex;align-items:center;justify-content:space-between;gap:9px}
.muted{color:var(--muted)}
.small{font-size:12px}
.red{color:var(--red)}
.spaced{margin-top:12px}
.full{width:100%}
.eyebrow{font-size:11px;color:var(--muted);letter-spacing:3px}
.badge{display:inline-block;color:#fff6ea;background:var(--red);padding:2px 8px;font-size:11px;border-radius:4px;line-height:1.6;white-space:nowrap}
.badge.line{background:#fbeee6;color:var(--red-deep);border:1px solid #ecc7b8}
.pill{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:999px;background:#f7e8dc;color:var(--red-deep);font-size:11.5px}
.pill .ico{width:15px;height:15px}
.notice{color:#8a5a3c;background:#fbf1e3;border:1px solid #efd9b9;border-radius:6px;padding:9px 11px;font-size:12px;margin:0 0 11px;line-height:1.8}
.error{color:#9c2d22;background:#fbe7e1;border:1px solid #f1c4b8;padding:11px;border-radius:6px;margin:12px;font-size:13px}
.empty,.loading{text-align:center;padding:30px 14px;color:var(--muted);font-size:13px}
.footer-note{text-align:center;color:#a8998b;font-size:11px;letter-spacing:3px;margin:20px 0 4px}
.article-body{white-space:pre-wrap;line-height:2;font-size:14.5px;color:var(--text);margin:0}
.divider{height:1px;background:var(--line);margin:12px 0}

/* 按钮（后台共用） */
.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:6px;padding:11px 18px;font-size:14px;font-weight:600;transition:transform .15s,filter .15s}
.primary{background:linear-gradient(110deg,#a11f22,#c3342d);color:#fff4e3;box-shadow:0 4px 11px rgba(142,27,29,.22)}
.primary:hover{filter:brightness(1.06)}
.secondary{background:#f3e4cf;color:var(--red-deep)}
.outline{display:inline-flex;align-items:center;justify-content:center;border:1px solid #e3b8aa;color:var(--red);background:#fffaf5;border-radius:6px;padding:11px 18px;font-size:14px}
.text-button{border:0;background:transparent;color:var(--muted);padding:8px 0;font-size:12.5px}
.btn-pill{display:inline-flex;align-items:center;gap:4px;padding:0 15px;height:30px;border:0;border-radius:999px;background:#f1dfc4;color:var(--red-deep);font-size:12.5px;font-weight:600}
.full.primary,.full.secondary,.full.outline{display:flex}

/* 分段选项卡与标签 */
.seg{display:flex;gap:7px;margin:0 0 13px}
.seg button{position:relative;flex:1;display:flex;align-items:center;justify-content:center;gap:5px;height:44px;border:0;border-radius:6px;background:#efe3d2;color:var(--text);font-size:13.5px;font-weight:600}
.seg button .ico{width:20px;height:20px}
.seg button.active{background:linear-gradient(110deg,#a11f22,#c3342d);color:#fff4e3;box-shadow:0 4px 10px rgba(142,27,29,.25)}
.seg button.active .ico{color:#fff4e3}
.seg button.active:after{content:"";position:absolute;bottom:-6px;left:50%;margin-left:-6px;border:6px solid transparent;border-bottom:0;border-top-color:#b12a27}
.chips{display:flex;gap:7px;overflow-x:auto;margin:0 0 11px;scrollbar-width:none}
.chip{flex:none;padding:6px 14px;border:0;border-radius:999px;background:#efe3d2;color:var(--text);font-size:12.5px}
.chip.active{background:var(--red);color:#fff4e3}

/* 表单 */
.form-row{display:flex;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid var(--line)}
.form-row:last-of-type{border-bottom:0}
.form-row>.ico{width:22px;height:22px}
.form-label{width:70px;flex:none;font-size:14px;font-weight:600;color:var(--ink)}
.form-box{flex:1;min-width:0;display:flex;align-items:center;background:#f3ede4;border-radius:5px;padding:0 11px;min-height:38px}
.form-box input{flex:1;border:0;background:transparent;padding:0;height:38px}
.form-box .suffix{color:var(--ink);margin-left:6px}
input,textarea,select{font-family:inherit;font-size:13.5px;color:var(--ink);background:#f3ede4;border:1px solid transparent;border-radius:5px;padding:10px 11px;width:100%;outline:none}
input:focus,textarea:focus,select:focus{border-color:#e0b9a4;background:#f7f1e9}
.form-box input:focus{border:0;background:transparent}
.form-box:focus-within{box-shadow:0 0 0 1px #e0b9a4}
input::placeholder,textarea::placeholder{color:#aa9e92}
textarea{min-height:100px;resize:vertical;line-height:1.6}
.field{margin:12px 0}
.field label{display:block;color:var(--ink);font-size:13px;font-weight:600;margin-bottom:6px}
.check{display:flex;gap:7px;font-size:12px;color:var(--muted);line-height:1.8;margin:10px 0}
.check input{width:16px;height:16px;margin-top:3px;accent-color:var(--red);flex:none}

/* 编号须知 */
.rules{display:flex;gap:9px;align-items:flex-start;background:var(--tile);border-radius:6px;padding:11px 9px}
.rules>.ico{width:32px;height:32px}
.steps{display:flex;flex-direction:column;gap:7px;margin:0;padding:0;list-style:none;counter-reset:s}
.steps li{display:flex;gap:8px;font-size:12.5px;line-height:1.7;counter-increment:s}
.steps li:before{content:counter(s);flex:none;width:18px;height:18px;line-height:18px;margin-top:2px;text-align:center;border-radius:50%;background:var(--red);color:#fff;font-size:10.5px}

/* 链接列表 */
.link-row{display:flex;align-items:center;gap:10px;width:100%;padding:13px 2px;border:0;border-bottom:1px solid var(--line);background:none;font-size:14px;color:var(--ink);text-align:left}
.link-row:last-child{border-bottom:0}
.link-row .grow{flex:1}

/* 首页 */
.status{display:flex;justify-content:space-between;align-items:center;font-size:11.5px;color:var(--muted);padding:0 4px 11px}
.status .text-button{padding:0;color:var(--red);font-size:11.5px}
.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#4f8a5b;margin-right:5px;vertical-align:middle}
.dot.off{background:#b9a898}
.route{display:flex;gap:9px;overflow-x:auto;padding:13px 2px 2px;position:relative;scrollbar-width:none}
.route-node{flex:none;width:100px;text-align:center;position:relative;border:0;background:none;padding:0}
.route-node:before{content:"";position:absolute;top:-8px;left:-9px;right:0;height:1px;background:#d7a79a}
.route-node:first-child:before{left:50%}
.route-node:after{content:"";position:absolute;left:50%;top:-12px;margin-left:-5px;width:7px;height:7px;border:1.5px solid var(--red);border-radius:50%;background:var(--card)}
.route-node img{width:100px;height:66px;border-radius:5px;object-fit:cover;display:block}
.route-title{display:block;margin-top:6px;font-size:13px;color:var(--red-deep);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.route-type{display:block;font-size:10.5px;color:var(--muted)}
.media-card{display:flex;gap:11px;align-items:center;width:100%;background:var(--tile);border:0;border-radius:7px;overflow:hidden;text-align:left;padding:0}
.media-card img{width:150px;height:100px;object-fit:cover;flex:none}
.media-card .copy{flex:1;padding:9px 9px 9px 0}
.media-card h3{font-family:var(--serif);font-size:17px;font-weight:700;color:var(--ink);margin:0 0 4px}

/* 参观页 */
.venue{display:flex;gap:12px;align-items:center;padding:10px}
.venue img{width:105px;height:70px;border-radius:6px;object-fit:cover;flex:none}
.venue-copy{position:relative;flex:1;min-width:0}
.venue-name{font-family:var(--serif);font-size:19px;font-weight:700;color:var(--ink);margin:0}
.venue-meta{display:flex;align-items:center;gap:5px;margin-top:4px;font-size:12px}
.venue-meta .ico{width:16px;height:16px}
.type-title{font-family:var(--serif);font-size:19px;font-weight:700;color:var(--red);margin:0}
.pills{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}
.dates{display:flex;gap:7px;overflow-x:auto;padding-bottom:3px;scrollbar-width:none}
.date-button{flex:none;width:64px;padding:8px 0;text-align:center;border:0;border-radius:6px;background:#f3ebe0;color:var(--text)}
.date-button b{display:block;font-size:14px}
.date-button small{display:block;font-size:10.5px;color:var(--muted)}
.date-button.active{background:linear-gradient(110deg,#a11f22,#c3342d);color:#fff4e3}
.date-button.active small{color:#f7d9c4}
.slots{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}
.slot{position:relative;padding:9px 0;text-align:center;border-radius:6px;background:#f6ebe0;border:1px solid #efdccb;color:var(--red-deep)}
.slot b{display:block;font-size:15px}
.slot small{display:block;font-size:10.5px;color:var(--muted)}
.slot.active{background:linear-gradient(110deg,#a11f22,#c3342d);color:#fff4e3;border-color:#a11f22}
.slot.active small{color:#f7d9c4}
.slot.active:after{content:"✓";position:absolute;right:4px;bottom:4px;width:15px;height:15px;line-height:15px;border-radius:50%;background:#fff;color:var(--red);font-size:10px;font-weight:700}

/* 发现页 */
.search{display:flex;align-items:center;gap:7px;background:var(--card);border:1px solid #efdfca;border-radius:999px;padding:0 5px 0 13px;height:44px;margin-bottom:11px;box-shadow:var(--shadow)}
.search .ico{width:18px;height:18px}
.search input{flex:1;background:transparent;border:0;padding:0;height:40px}
.search input:focus{background:transparent;border:0}
.search button{border:0;background:var(--red);color:#fff4e3;border-radius:999px;padding:0 15px;height:34px;font-size:13px}
.feature{display:flex;width:100%;background:var(--card);border:1px solid #f1e5d3;border-radius:10px;overflow:hidden;margin-bottom:11px;box-shadow:0 4px 13px rgba(122,82,44,.1);padding:0;text-align:left}
.feature img{width:145px;min-height:170px;object-fit:cover;flex:none}
.feature-copy{position:relative;flex:1;min-width:0;padding:13px 12px;display:flex;flex-direction:column}
.feature h2{position:relative;font-family:var(--serif);font-size:20px;line-height:1.3;font-weight:700;color:var(--ink);margin:8px 0 0}
.feature-line{width:20px;height:2px;background:var(--red);margin:7px 0}
.feature p{position:relative;margin:0;font-size:12.5px;color:var(--muted)}
.feature-foot{position:relative;margin-top:auto;padding-top:10px;display:flex;align-items:center;justify-content:space-between}
.round{width:26px;height:26px;line-height:22px;text-align:center;border:1.5px solid var(--red);color:var(--red);border-radius:50%;font-size:17px}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.card{background:var(--tile);border:0;border-radius:7px;overflow:hidden;padding:0;text-align:left;transition:transform .15s}
.card:hover{transform:translateY(-2px)}
.card img{width:100%;height:100px;object-fit:cover;display:block}
.card-copy{padding:8px 9px 10px}
.card-title{min-width:0;font-family:var(--serif);font-size:15px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card-type{display:block;font-size:11px;color:var(--red);margin:2px 0}
.card-sub{font-size:11.5px;color:var(--muted);line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* 文章页 */
.head{display:flex;border-radius:10px;overflow:hidden;box-shadow:0 5px 14px rgba(122,82,44,.14);min-height:125px}
.head-side{width:85px;flex:none;background:linear-gradient(160deg,#a11f22,#c3342d);color:#fff4e3;padding:17px 13px}
.head-no{font-family:var(--serif);font-size:35px;line-height:1;font-weight:700}
.head-label{font-size:12px;margin-top:5px;color:#f7d9c4}
.head-copy{position:relative;flex:1;padding:15px 13px;background:linear-gradient(90deg,rgba(255,249,240,.97) 30%,rgba(255,249,240,.55)),var(--img) center/cover}
.head-copy h1{font-family:var(--serif);font-size:20px;line-height:1.35;font-weight:700;color:var(--red);margin:0}
.head-copy p{margin:6px 0 0;font-size:12.5px}
.caption{font-size:10px;color:var(--muted);text-align:right;margin:5px 3px 10px}
.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.fact{display:flex;align-items:center;gap:6px;background:var(--tile);border-radius:6px;padding:10px 7px}
.fact .ico{width:26px;height:26px}
.fact b{display:block;font-size:11px;color:var(--ink)}
.fact span{display:block;font-size:11.5px;color:var(--red)}
.large-text .article-body{font-size:17.5px}
audio{width:100%;margin-top:4px;accent-color:var(--red)}
.article-source{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;color:var(--muted);line-height:1.8}
.actions{display:flex;justify-content:space-between;margin:3px 0 13px}

/* 我的 */
.profile{position:relative;display:flex;align-items:center;gap:11px;background:var(--card);border:1px solid #f1e5d3;border-radius:10px;padding:15px 12px;margin-bottom:11px;box-shadow:0 5px 14px rgba(122,82,44,.1);overflow:hidden}
.avatar{position:relative;width:55px;height:55px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(150deg,#a11f22,#c3342d);color:#fbe5c3;font-family:var(--serif);font-size:26px;border:2px solid #f3d9c6;flex:none}
.profile-copy{position:relative;flex:1;min-width:0}
.profile h2{font-family:var(--serif);font-size:18px;font-weight:700;color:var(--ink);margin:0}
.profile p{margin:0;font-size:12px;color:var(--muted)}
.profile .btn-pill{position:relative}
.visit-item{display:flex;align-items:center;gap:10px;width:100%;background:var(--tile);border:0;border-radius:7px;padding:10px;margin-bottom:7px;text-align:left}
.visit-side{width:38px;height:38px;border-radius:50%;background:#f7e4da;display:grid;place-items:center;flex:none}
.visit-copy{flex:1;min-width:0}
.visit-copy b{font-family:var(--serif);font-size:15px;color:var(--ink)}

/* 预约凭证 */
.pass{background:var(--card);border-radius:10px;overflow:hidden;box-shadow:0 4px 13px rgba(122,82,44,.1);border:1px solid #f1e5d3}
.pass-head{display:flex}
.pass-side{width:95px;flex:none;background:linear-gradient(160deg,#a11f22,#c3342d);color:#fff4e3;padding:15px 12px;display:flex;flex-direction:column;justify-content:center}
.pass-side b{font-family:var(--serif);font-size:36px;line-height:1}
.pass-side small{margin-top:7px;font-size:12px;color:#f7d9c4}
.pass-copy{flex:1;padding:13px}
.pass-copy h3{font-family:var(--serif);font-size:19px;color:var(--red);margin:0}
.pass-copy p{margin:4px 0 7px;font-size:15px;color:var(--ink);font-weight:600}
.pass-body{padding:3px 13px 13px}
.info{display:flex;align-items:center;gap:7px;padding:7px 0;font-size:13px;color:var(--ink);border-bottom:1px solid var(--line)}
.info .muted{width:60px}
.qr{display:block;width:180px;height:180px;background:white;padding:7px;margin:15px auto 6px;border-radius:8px;border:1px solid #ecd6c2}
.pass-id{margin-top:9px;font-size:10.5px;color:var(--muted);overflow-wrap:anywhere}

/* 底部 Tab 栏 */
.tabbar{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:100%;max-width:480px;height:64px;padding-bottom:env(safe-area-inset-bottom);background:#fffbf5;border-top:1px solid #efe3d2;display:flex;z-index:10}
.tabbar button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;background:none;color:#6f6259;font-size:11.5px}
.tabbar .ico{width:25px;height:25px;color:#6f6259}
.tabbar button.active{color:var(--red);font-weight:600}
.tabbar button.active .ico{color:var(--red)}
.tabbar button.active .ico path,.tabbar button.active .ico rect{fill:currentColor;fill-opacity:1}

/* 弹层与提示 */
dialog{background:var(--card);color:var(--text);border:0;border-radius:14px;width:min(460px,calc(100% - 24px));padding:26px 20px 20px;max-height:88vh;overflow:auto;box-shadow:0 20px 60px rgba(60,30,10,.25)}
dialog::backdrop{background:rgba(43,33,28,.45);backdrop-filter:blur(4px)}
dialog h2{font-family:var(--serif);font-size:22px;font-weight:700;color:var(--ink);letter-spacing:1px;margin:0 0 12px}
dialog .close{position:absolute;right:10px;top:6px;border:0;background:none;color:var(--muted);font-size:28px}
#toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%) translateY(20px);opacity:0;z-index:100;background:rgba(43,33,28,.9);color:#fff6ea;border-radius:7px;padding:11px 20px;font-size:13px;max-width:90%;pointer-events:none;transition:.2s}
#toast.show{transform:translateX(-50%) translateY(0);opacity:1}
.danger{color:#b3262a}
.demo-tag{font-size:10px;color:var(--muted)}
.guide-body{white-space:pre-wrap;line-height:2;font-size:13.5px;color:var(--text)}
@media(max-width:360px){.hero-title{font-size:36px}.slots{grid-template-columns:repeat(3,1fr)}}
