:root{font-family:"Microsoft YaHei",system-ui,sans-serif;color:#2d3c36;background:#f6f2ea;font-size:15px}*{box-sizing:border-box}body{margin:0;display:flex;min-height:100vh}aside{width:246px;position:fixed;inset:0 auto 0 0;padding:32px 20px;background:#eae9df;display:flex;flex-direction:column;border-right:1px solid #dedbcf}.brand{display:flex;gap:12px;align-items:center;margin-bottom:36px}.brand img{width:48px;height:48px;border-radius:13px}.brand b{font-size:23px}.brand small{display:block;font-size:11px;margin-top:6px;color:#736d64}nav{display:grid;gap:9px}button,input,select,textarea{font:inherit}button{border:0;border-radius:14px;padding:11px 17px;background:#e9e5da;color:#355f52;cursor:pointer}button:hover{filter:brightness(.96)}button:disabled{opacity:.5;cursor:wait}nav button{text-align:left;padding:15px 20px}button.active,button.primary{background:#355f52;color:white}.aside-note{margin-top:auto;color:#80776b;line-height:1.9;font-size:12px}#sync-status{color:#355f52;font-size:12px;line-height:1.8}main{margin-left:246px;width:calc(100% - 246px);padding:36px 46px 70px;max-width:1600px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}h1{font-size:32px;margin:5px 0}h2{font-size:23px;margin:10px 0 18px}h3{font-size:18px;margin:0 0 12px}p{line-height:1.9}.eyebrow{letter-spacing:3px;font-size:10px;color:#92602e;margin:0}.toolbar,.actions,.chips{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:14px 0}input,select,textarea{border:1px solid #dedbcf;border-radius:12px;background:#fff;padding:12px;color:#2d3c36}input[type=search]{flex:1;min-width:180px}textarea{display:block;width:100%;min-height:180px;resize:vertical;line-height:1.8}label{display:block;font-size:13px;margin:12px 0;color:#736d64}label select,label input{margin-left:8px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:20px}.card,.panel{background:#fff;border-radius:22px;padding:22px;margin-bottom:18px}.card{overflow:hidden;padding:0;cursor:pointer;margin:0}.card img{width:100%;height:174px;object-fit:contain;background:#ebe6dd;display:block}.card>div{padding:19px}.card p{font-size:13px;color:#736d64;margin:10px 0}.meta{font-size:12px;color:#92602e}.muted{color:#80776b;font-size:12px;line-height:1.9}.badge{font-size:11px;color:#355f52;background:#e5ece5;border-radius:20px;padding:5px 10px}.hero{width:100%;max-height:390px;object-fit:contain;border-radius:22px;background:#ebe6dd}.detail{max-width:960px}.detail h1{margin:20px 0}.panel p{white-space:pre-wrap;margin:0}.notes{white-space:pre-wrap;line-height:1.9;overflow-wrap:anywhere}.danger{background:#f8eae5;color:#a43e2d}a{color:#355f52;overflow-wrap:anywhere}.stat{font-size:30px;font-weight:bold;color:#355f52}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}dialog{border:0;border-radius:24px;width:min(700px,92vw);max-height:90vh;overflow:auto;padding:28px;color:inherit;background:#f6f2ea}dialog::backdrop{background:#162f2d88}dialog h2{margin-top:0}.chatmsg{white-space:pre-wrap;line-height:1.9;background:#fff;border-radius:16px;padding:18px;margin:12px 0}.chatmsg.user{background:#e1e9df}.chatmsg small{display:block;margin-bottom:7px;color:#92602e}#notice{color:#92602e;font-size:13px;min-height:20px;margin-bottom:15px}.empty{padding:50px;text-align:center;color:#80776b}.inline{display:inline-block}.row{display:flex;justify-content:space-between;align-items:center;gap:12px}.source{font-size:12px;line-height:1.8;margin:10px 0}.stack{display:grid;gap:10px}.count{font-size:13px;color:#80776b;margin:16px 0}@media(max-width:850px){aside{width:185px;padding:22px 14px}.brand b{font-size:19px}.brand img{width:34px;height:34px}.brand small{font-size:9px}main{margin-left:185px;width:calc(100% - 185px);padding:28px 22px}.stats{grid-template-columns:1fr}}@media(max-width:580px){aside{position:static;width:100%;padding:14px}.brand{margin-bottom:12px}nav{display:flex;overflow:auto}.aside-note{display:none}body{display:block}main{margin:0;width:100%;padding:20px}header{gap:12px}h1{font-size:27px}}

.theme-overview{display:grid;grid-template-columns:minmax(330px,1fr) 1fr;gap:20px;align-items:start}.knowledge-graph{position:relative;width:300px;height:340px;margin:12px auto;max-width:100%}.knowledge-graph svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.knowledge-graph line{stroke:#bccabb;stroke-width:2}.graph-center,.graph-node{position:absolute;display:flex;align-items:center;justify-content:center;text-align:center;overflow-wrap:anywhere}.graph-center{left:33.333%;top:39.706%;width:33.333%;height:20.588%;padding:8px;border-radius:28px;background:#92602e;color:#fff;font-weight:bold;font-size:15px}.graph-node{width:33.333%;height:18.824%;padding:6px;background:#e4ece3;color:#355f52;border-radius:18px;font-size:12px}.graph-node-0{left:10%;top:1.765%}.graph-node-1{left:56.667%;top:1.765%}.graph-node-2{left:66.667%;top:40.294%}.graph-node-3{left:56.667%;top:78.824%}.graph-node-4{left:10%;top:78.824%}.graph-node-5{left:0;top:40.294%}#theme-title{width:100%}@media(max-width:1150px){.theme-overview{grid-template-columns:1fr}}

#auth-dialog input{display:block;width:100%}#auth-error{color:#a43e2d;min-height:24px}

/* Interactive culture route and chronology; diagrams carry no navigation scale. */
.exploration-visual{background:linear-gradient(145deg,#fffdf8,#f0eee2);border:1px solid #e4decd;overflow:hidden}.exploration-visual h2{margin:8px 0 10px}.exploration-visual .muted{max-width:850px}.route-canvas{position:relative;aspect-ratio:360/220;width:100%;max-width:680px;margin:10px auto 0}.route-canvas svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.river-band{fill:none;stroke:#bfd5d3;stroke-width:22;opacity:.55}.route-line{fill:none;stroke:#92602e;stroke-width:2;stroke-dasharray:5 4}.route-node{position:absolute;transform:translate(-50%,-18px);display:flex;flex-direction:column;align-items:center;gap:5px;padding:0;width:18%;background:transparent;color:#355f52;border-radius:12px}.route-dot{display:grid;place-items:center;width:36px;height:36px;border:4px solid #fff;border-radius:50%;background:#b8c8b7;color:#284638;box-shadow:0 2px 8px #355f5225;font-weight:bold}.route-node strong{font-size:15px}.route-node small{font-size:11px;color:#736d64}.route-node.selected .route-dot{background:#355f52;color:white;box-shadow:0 0 0 5px #355f5220}.route-node.selected strong{color:#92602e}.diagram-selection{font-size:13px;color:#355f52;border-top:1px solid #dedbcf;padding-top:12px}.time-canvas{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin:24px 0 16px}.time-node{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;background:transparent;border-radius:12px;padding:10px 4px;color:#2d3c36}.time-node:before{content:"";position:absolute;left:0;right:0;top:52px;height:2px;background:#c7b18e}.time-node:first-child:before{left:50%}.time-node:last-child:before{right:50%}.time-order{font-size:11px;color:#92602e;letter-spacing:2px}.time-dot{position:relative;z-index:1;width:20px;height:20px;border:4px solid #fff;background:#b4bfae;border-radius:50%;box-shadow:0 0 0 1px #c8bda8}.time-node strong{font-size:18px}.time-label,.time-node small{font-size:11px;color:#736d64}.time-node.selected{background:#92602e12}.time-node.selected .time-dot{background:#92602e;box-shadow:0 0 0 4px #92602e20}.time-node.selected strong{color:#92602e}.route-node:focus-visible,.time-node:focus-visible{outline:3px solid #92602e;outline-offset:4px}
@media(max-width:700px){.time-canvas{grid-template-columns:1fr;gap:0}.time-node{min-height:88px;display:grid;grid-template-columns:25px 25px 50px 1fr;gap:10px;text-align:left;padding:13px 8px}.time-node:before{left:45px;right:auto;top:0;bottom:0;width:2px;height:auto}.time-node:first-child:before{left:45px;top:50%}.time-node:last-child:before{right:auto;bottom:50%}.time-node small{grid-column:4}.time-order,.time-dot,.time-node strong{grid-row:1 / 3;align-self:center}.time-dot{width:20px;height:20px}.time-node .time-label{align-self:end}.time-node small{align-self:start}.route-node strong{font-size:13px}.route-node small{font-size:10px}.exploration-visual{padding:17px}.exploration-visual h2{font-size:21px}}
.route-node-0{left:11.1111%;top:69.5455%}
.route-node-1{left:30.0000%;top:40.0000%}
.route-node-2{left:50.0000%;top:59.5455%}
.route-node-3{left:69.4444%;top:28.1818%}
.route-node-4{left:88.3333%;top:50.0000%}
.route-canvas{min-height:230px}.time-node:before{top:43px}@media(max-width:700px){.time-node:before,.time-node:first-child:before{left:53px;top:0}.time-node:first-child:before{top:50%}}

.culture-map-frame{width:100%;height:500px;border:1px solid #d2ddd5;border-radius:16px}.photo-empty{height:174px;background:#e6ece2;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#355f52;gap:12px}.photo-empty small{color:#80776b}

/* cloud-mobile-layout: phones connect directly without the LAN gateway. */
@media(max-width:580px){nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}nav button{padding:10px 5px;text-align:center;font-size:13px;white-space:normal}header>button{font-size:13px;padding:10px;flex-shrink:0}.eyebrow{font-size:8px;letter-spacing:2px}main{padding:18px 14px 45px}.panel,.card>div{padding:17px}.row{flex-wrap:wrap}.toolbar>label{max-width:100%}dialog{padding:20px 17px}.grid{grid-template-columns:1fr}.theme-overview{display:block}.brand{margin-bottom:10px}#sync-status{margin-top:10px}input,textarea,select{font-size:16px}}
