:root { color-scheme: light; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; color: #173d36; background: #f4f2eb; }
* { box-sizing: border-box; }
body { margin: 0; }
header { display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(16px, 3vw, 44px); border-bottom: 1px solid #d8ddd5; background: #fffdf7; font-size: 14px; }
a { color: #16594f; text-decoration: none; }
main { max-width: 1500px; margin: auto; padding: clamp(18px, 3vw, 44px); }
.heading { max-width: 760px; margin-bottom: 24px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; color: #56766f; }
h1 { font-family: Georgia, "Songti SC", serif; font-size: clamp(28px, 3vw, 46px); margin: 8px 0 12px; font-weight: 500; }
.heading p:last-child, .plan-panel p, .hint { color: #52645e; line-height: 1.7; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .8fr); gap: 18px; }
.viewer, .plan-panel { border: 1px solid #d9dfd7; border-radius: 18px; background: #fff; overflow: hidden; }
.viewer { position: relative; min-height: 560px; background: #dbe5dc; }
#canvas-root { position: absolute; inset: 0; }
#canvas-root canvas { width: 100%; height: 100%; display: block; cursor: grab; }
#canvas-root canvas:active { cursor: grabbing; }
.viewer-overlay { position: absolute; inset: 16px 16px auto; display: flex; justify-content: space-between; pointer-events: none; gap: 12px; }
.viewer-overlay span { padding: 8px 12px; border-radius: 999px; background: #fffef1df; font-size: 13px; }
.plan-panel { padding: 18px; }
.plan-panel h2 { font-size: 18px; font-weight: 500; margin: 0 0 12px; }
#floorplan-map { display: block; width: 100%; height: auto; max-height: 460px; background: #fafafa; border-radius: 10px; }
.plan-panel p { font-size: 13px; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.controls button { border: 1px solid #c9d6ce; border-radius: 10px; padding: 10px 14px; background: #fff; color: #17443a; cursor: pointer; }
.controls button:hover, .controls button:focus-visible { background: #e4efe8; }
.controls button:disabled { opacity: .5; cursor: default; }
.controls #play, .controls #resume { background: #195b4e; color: white; }
.hint { font-size: 13px; margin-top: 12px; }
#error { padding: 16px; color: #8c3030; background: #ffecec; border-radius: 10px; }
@media (max-width: 850px) { .workspace { grid-template-columns: 1fr; } .viewer { min-height: 440px; } .plan-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .plan-panel h2 { grid-column: 1 / -1; } .plan-panel p { margin-top: 0; } }
@media (max-width: 520px) { .viewer { min-height: 420px; } .plan-panel { display: block; } .controls button { flex: 1 1 28%; } }
