:root{--ink:#252b29;--orange:#df6d30;--paper:#f7f5ef;--line:#e3e3d9;--muted:#7c8179}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}aside{position:fixed;inset:0 auto 0 0;width:250px;background:#202a27;color:#fff;padding:36px 24px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;font-size:22px;font-weight:650;letter-spacing:2px}.brand img{width:48px;height:48px;object-fit:cover;border-radius:6px}small{display:block;font-size:9px;letter-spacing:1.3px;font-weight:400}.side-label{color:#a4b0a7;font-size:12px;margin:46px 0 20px}nav{display:grid;gap:8px}button,input,textarea,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:7px;padding:9px 17px;background:#fff;color:var(--ink)}button:disabled{cursor:wait;opacity:.5}nav button{text-align:left;background:none;color:#c5cec8;border:0;padding:13px 16px}nav button.active{background:#eff1e9;color:#26352e;font-weight:600}.sidebar-foot{margin-top:auto;font-size:13px;color:#d2d7d0}.sidebar-foot span{font-size:11px;color:#899c90}main{margin-left:250px;padding:44px 48px;max-width:1700px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--muted)}h1{margin:8px 0;font-size:30px;letter-spacing:1px}h2{font-size:22px}h3{margin:8px 0}p{color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:30px}.stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:22px 25px}.stat strong{display:block;font-size:34px;font-weight:500;margin-top:5px}.stat span{font-size:12px;color:var(--muted)}.toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:22px 0}.toolbar input{max-width:280px}.primary{background:var(--ink);color:#fff;border-color:var(--ink)}.accent{color:var(--orange)}.quiet{background:transparent}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px;background:#fff}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:13px}th{text-align:left;background:#eeefe8;font-weight:500;color:#778078;padding:15px 20px}td{padding:19px 20px;border-top:1px solid #eeeeE7}td.title{white-space:normal;min-width:230px;max-width:380px;font-size:15px;font-weight:550}td small{letter-spacing:0;color:var(--muted);font-size:11px;margin-top:5px}td button{font-size:12px;padding:6px 12px;margin-right:6px}.tag{display:inline-block;border-radius:4px;background:#f0f0e9;padding:3px 9px;color:#7c8179;font-size:11px}.tag.live{background:#e5efe5;color:#4e7454}.panel,.empty,.login{padding:30px;border:1px solid var(--line);background:white;border-radius:10px}.empty{color:var(--muted);text-align:center;padding:64px 20px}.login{max-width:430px;margin:60px auto}.login h2{margin-top:0}input,textarea,select{width:100%;padding:11px;border:1px solid #d8dcd2;border-radius:6px;background:#fff;color:var(--ink)}input:focus,textarea:focus,select:focus{outline:2px solid #d99468;outline-offset:1px}input[type=checkbox]{width:18px;height:18px;vertical-align:middle}label{display:block;margin:14px 0 6px;font-size:13px}textarea{min-height:100px;resize:vertical}.grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.full{grid-column:1/-1}.hint{color:var(--muted);font-size:12px}.login button{width:100%;margin-top:24px}dialog{border:0;border-radius:14px;max-width:900px;width:calc(100% - 32px);padding:0;max-height:90vh}dialog::backdrop{background:#17241fb0}#edit-form{padding:28px}.modal-head,.modal-foot{display:flex;justify-content:space-between;align-items:center;gap:16px}.modal-head{border-bottom:1px solid var(--line);padding-bottom:10px}.modal-foot{position:sticky;bottom:-28px;background:white;padding:20px 0;border-top:1px solid var(--line);margin-top:25px}fieldset{border:1px solid var(--line);border-radius:8px;margin:18px 0;padding:10px 18px 20px}legend{color:var(--orange);padding:0 8px}#notice:not(:empty){padding:12px 18px;background:#f4e4d5;margin-bottom:20px;border-radius:6px}#form-error{color:#ac452c;font-size:13px}.record-note{white-space:pre-wrap;max-width:450px}.status-line{margin:12px 0 25px;font-size:13px;color:var(--muted)}@media(max-width:900px){aside{width:190px;padding:25px 14px}.brand{font-size:17px}.brand img{width:34px;height:34px}main{margin-left:190px;padding:26px 22px}}@media(max-width:650px){aside{position:static;width:auto;padding:18px}.side-label,.sidebar-foot{display:none}nav{display:flex;overflow:auto;margin-top:16px}nav button{white-space:nowrap;padding:8px}main{margin:0;padding:24px 16px}.stats{gap:8px}.stat{padding:13px}.stat strong{font-size:26px}.grid{grid-template-columns:1fr}.toolbar{flex-wrap:wrap}h1{font-size:25px}}
.toolbar select{width:180px;flex:0 0 180px}.toolbar button{white-space:nowrap;flex-shrink:0}.toolbar>div{flex:1}.toolbar input{max-width:340px}

.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-top:14px}
.cal-day{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:10px;border-radius:10px;border:1px solid #e3dacd;background:#fff;text-align:left;cursor:pointer;min-height:64px}
.cal-day strong{font-size:13px}.cal-day small{font-size:12px;color:#6f675c}
.cal-day.is-open{border-color:#c9e2c4;background:#f4faf2}.cal-day.is-full{border-color:#f0d3a8;background:#fff6e8}
.cal-day.is-stopped{border-color:#e7b9a8;background:#fbece6}.cal-day.is-range{background:#f2eee6;color:#9a9184;cursor:default}
.cal-legend{display:flex;gap:14px;align-items:center;font-size:12px;color:#6f675c;margin-top:8px}
.cal-dot{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:4px}.cal-dot.is-open{background:#c9e2c4}.cal-dot.is-full{background:#f0d3a8}.cal-dot.is-stopped{background:#e7b9a8}.cal-dot.is-range{background:#e3dacd}
@media(max-width:760px){.cal-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

.launch-steps{margin:12px 0;padding-left:22px}
.launch-steps li{margin:8px 0}
.launch-steps li p{margin:4px 0 0;color:#6b665c;font-size:13px}
.launch-steps li.is-done strong{color:#2f7a3d}
.launch-steps li.is-todo strong{color:#b45f00}
.launch-steps li.is-blocked strong{color:#8a857b}
code.secret{display:inline-block;font-size:18px;letter-spacing:2px;padding:8px 12px;background:#f3efe6;border-radius:8px;user-select:all}
.launch-steps code{word-break:break-all}

.image-field{display:flex;align-items:center;gap:10px;margin-top:8px;flex-wrap:wrap}
.image-field img{width:72px;height:48px;object-fit:cover;border-radius:6px;border:1px solid #e6dccb}
.image-field small{color:#8a857b}
#blocks{display:flex;flex-direction:column;gap:12px;margin:8px 0}
.block{border:1px solid #e6dccb;border-radius:10px;padding:10px 12px;background:#fffdf8}
.block-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;font-size:13px;color:#6b665c}
.block-ctl button{padding:2px 8px;margin-left:4px;min-height:0}
.block textarea{width:100%;box-sizing:border-box}
.block-image img{max-width:100%;max-height:240px;border-radius:8px;display:block;margin-bottom:6px}
.block input{width:100%;box-sizing:border-box;margin-top:6px}
.link-row{display:flex;gap:8px;align-items:center}
.link-row input{flex:1;margin-top:0}
.platform{font-size:12px;color:#a0521c;white-space:nowrap}
.block-tools{display:flex;gap:8px}

.story-filter{flex-wrap:wrap;gap:8px}
.story-review{border:1px solid #e6dccb;border-radius:12px;padding:14px 16px;margin-top:14px;background:#fffdf8}
.story-review header{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.story-review header small{width:100%;color:#8a857b}
.story-body{max-height:420px;overflow:auto;padding:8px 0}
.story-body p{white-space:pre-wrap;line-height:1.7;margin:8px 0}
.story-body img{max-width:320px;max-height:240px;border-radius:8px;display:block}
.story-body figcaption{font-size:12px;color:#8a857b}
.story-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;align-items:center}
.story-actions input{flex:1;min-width:220px}
.coin-item{display:grid;grid-template-columns:2fr 100px 2fr auto auto;gap:8px;align-items:center;margin:8px 0}
.coin-item label.inline{display:flex;align-items:center;gap:4px;white-space:nowrap}

.pp-line{display:grid;grid-template-columns:160px 1fr auto;gap:8px;align-items:center;margin:8px 0}
.reward-row{display:grid;grid-template-columns:170px 2fr 90px 2fr;gap:8px;align-items:center;margin:6px 0}
.station-form{border:1px solid #e6dccb;border-radius:12px;padding:14px 16px;margin:12px 0;background:#fffdf8}
.station-code{display:flex;gap:16px;align-items:center;margin-top:14px;border:1px solid #e6dccb;border-radius:12px;padding:14px;background:#fffdf8}
.station-code img{width:160px;height:160px}
a.button{display:inline-block;padding:8px 16px;border-radius:8px;text-decoration:none}

/* 线路相册与每日模块 */
.photo-row{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 4px}
.photo{position:relative;margin:0;width:120px;height:90px;border-radius:8px;overflow:hidden;background:#eee}
.photo img{width:100%;height:100%;object-fit:cover;display:block}
.photo-ctl{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:space-between;background:rgba(0,0,0,.45)}
.photo-ctl button{background:transparent;border:0;color:#fff;padding:4px 8px;min-width:0;cursor:pointer}
.photo-ctl button:disabled{opacity:.35}
.photo-add{width:120px;height:90px;border:2px dashed #c9bba3;background:transparent;border-radius:8px;cursor:pointer}
.day-card{position:relative}
.day-ctl{display:flex;gap:8px;justify-content:flex-end;margin-bottom:6px}
#add-day{margin:4px 0 12px}

/* 线路列表 */
.route-list{display:flex;flex-direction:column;gap:12px}
.route-row{display:grid;grid-template-columns:120px minmax(0,1fr) 190px auto;gap:16px;align-items:center;background:#fff;border:1px solid #e6dfd3;border-radius:12px;padding:12px}
.route-thumb{width:120px;height:80px;border-radius:8px;overflow:hidden;background:#efe8dc;display:flex;align-items:center;justify-content:center;color:#8a8172;font-size:12px}
.route-thumb img{width:100%;height:100%;object-fit:cover}
.route-name{font-weight:700;font-size:16px}
.route-meta{color:#5e574b;font-size:13px;margin:4px 0 6px}
.route-tags{display:flex;flex-wrap:wrap;gap:6px}
.tag.warn{background:#fdecd2;color:#8a4b00}
.route-check{font-size:13px;font-weight:700;border-radius:8px;padding:8px 10px}
.route-check small{display:block;font-weight:400;color:#5e574b;margin-top:2px}
.route-check.todo{background:#fff4e5;color:#8a4b00}
.route-check.ok{background:#e9f4ea;color:#2f6b3a}
.route-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
button.danger{color:#b4412e;border-color:#e6b9b0}
@media(max-width:900px){.route-row{grid-template-columns:90px minmax(0,1fr)}.route-thumb{width:90px;height:64px}.route-check,.route-actions{grid-column:1/-1}.route-actions{justify-content:flex-start}}
/* 线路编辑分区 */
.route-nav{position:sticky;top:-1px;z-index:3;display:flex;flex-wrap:wrap;gap:6px;background:#fff;padding:8px 0;border-bottom:1px solid #eee;margin-bottom:12px}
.route-nav button{padding:6px 12px;font-size:13px}
.route-live{border-radius:10px;padding:10px 14px;margin-bottom:12px;font-size:13px}
.route-live.todo{background:#fff4e5;color:#6b3a00}
.route-live.ok{background:#e9f4ea;color:#2f6b3a}
.route-live ul{margin:6px 0 0;padding-left:18px;columns:2}
.route-sec{border-top:1px solid #efe8dc;padding-top:6px;margin-top:10px;scroll-margin-top:56px}
.route-nav button{color:#24231f;background:#faf8f3;border:1px solid #ddd3c2;border-radius:999px}
.route-nav button:hover{background:#24231f;color:#fff}
.itin-wrap{background:#faf8f3;border:1px dashed #d9ccb4;border-radius:10px;padding:10px 14px;margin:6px 0 12px}
#itin-images .photo{height:120px}
#itin-images .photo img{object-fit:cover;object-position:top}
#spot-form{padding:28px}#spot-error{color:#ac452c;font-size:13px}
