:root {
  --background: #f4f1eb; --foreground: #17201d; --primary: #17201d; --primary-foreground: #fffdf8;
  --secondary: #ece8df; --secondary-foreground: #26312d; --muted: #ebe8e1; --muted-foreground: #6f7773;
  --border: #dcd7cc; --input: #dcd7cc; --ring: #ff6900; --destructive: #c64b3d; --radius: .9rem;
  --orange: #ff6900; --orange-soft: #fff0e5; --green: #177d62; --green-soft: #e3f4ed;
  --blue: #31739a; --ink: #17201d; --paper: #fffdf8; --font-geist-sans: Inter, Arial, sans-serif;
  --font-geist-mono: "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { background: var(--background); }
body {
  margin: 0; background: radial-gradient(circle at 8% 2%, rgba(255, 105, 0, .08), transparent 25rem), var(--background);
  color: var(--foreground); font-family: var(--font-geist-sans), "PingFang SC", "Microsoft YaHei", sans-serif;
}
button, a { -webkit-tap-highlight-color: transparent; }
.app-shell { min-height: 100vh; }
.topbar {
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid rgba(36, 43, 40, .1);
  background: rgba(255, 253, 248, .76); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 10;
}
.brand, .brand > div, .top-actions, .location, .notification-toggle { display: flex; align-items: center; }
.brand { gap: 11px; }.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--orange); color: white; box-shadow: 0 7px 18px rgba(255, 105, 0, .24); }
.brand-mark svg { width: 18px; }.brand > div { gap: 9px; }.brand strong { font-size: 20px; letter-spacing: -.04em; }
.brand div span { color: #7c817e; font-size: 12px; padding-left: 9px; border-left: 1px solid #d3cec4; }
.top-actions { gap: 20px; }.location { gap: 6px; color: #5f6763; font-size: 13px; }.location svg, .notification-toggle > svg { width: 15px; }
.notification-toggle { gap: 9px; font-size: 13px; font-weight: 650; }

.dashboard { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 46px 0 72px; }
.intro-row, .section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-kicker { margin: 0 0 9px; color: var(--orange); font-size: 11px; font-weight: 760; letter-spacing: .14em; text-transform: uppercase; }
.intro-row h1 { margin: 0; font-size: clamp(28px, 3.8vw, 52px); line-height: 1.08; letter-spacing: -.052em; font-weight: 660; }
.intro-row > div > p:last-child { margin: 13px 0 0; color: #68706c; font-size: 14px; }.refresh-button { height: 42px; padding: 0 17px; border-radius: 14px; background: var(--ink); }
.refresh-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; color: white; font: inherit; font-size: 13px; cursor: pointer; }
.refresh-button:hover { background: #2c3733; }.refresh-button:disabled { cursor: wait; opacity: .7; }
.refresh-button svg { width: 16px; }.spin { animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }

.summary-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .85fr); gap: 18px; margin-top: 34px; }
.hero-price, .subsidy-plan, .watch-section, .trend-panel, .rule-panel { background: var(--paper); border: 1px solid rgba(45, 48, 44, .11); border-radius: 22px; box-shadow: 0 14px 42px rgba(32, 34, 31, .045); }
.hero-price { padding: 30px 32px; color: white; background: var(--ink); overflow: hidden; position: relative; }
.hero-price::after { content: ''; position: absolute; width: 210px; height: 210px; border: 46px solid rgba(255,255,255,.035); border-radius: 50%; right: -86px; top: -88px; }
.hero-label { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #bbc5c0; position: relative; z-index: 1; }.badge-neutral { background: rgba(255,255,255,.1); color: #eff4f1; border: 1px solid rgba(255,255,255,.08); }
.hero-number { margin-top: 20px; font-size: clamp(43px, 6vw, 68px); letter-spacing: -.055em; font-weight: 640; line-height: 1; position: relative; z-index: 1; }
.hero-price > p { color: #adb8b2; font-size: 13px; }.hero-price > p strong { color: #ffc49d; }.bundle-progress { height: 7px; background: rgba(255,255,255,.12); border-radius: 99px; margin-top: 24px; overflow: hidden; }
.bundle-progress span { display: block; height: 100%; background: linear-gradient(90deg, #ff6900, #ff9b56); border-radius: inherit; }
.legend-row { display: flex; gap: 22px; margin-top: 13px; color: #9eaaa4; font-size: 11px; }.dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; margin-right: 5px; }
.dot.orange { background: var(--orange); }.dot.green { background: #59c89d; }.dot.blue { background: var(--blue); }

.subsidy-plan { padding: 26px 28px; }.plan-title { display: flex; align-items: center; gap: 12px; }.plan-icon { width: 42px; height: 42px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); border-radius: 13px; }
.plan-icon svg { width: 20px; }.plan-title div { display: grid; gap: 2px; }.plan-title div span { color: #79807c; font-size: 11px; }.plan-title strong { font-size: 17px; }
.subsidy-plan ol { list-style: none; padding: 0; margin: 21px 0 18px; display: grid; gap: 13px; }.subsidy-plan li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.subsidy-plan li > span { font-family: var(--font-geist-mono); font-size: 10px; color: var(--orange); padding-top: 3px; }.subsidy-plan li p { margin: 0; font-size: 12px; line-height: 1.55; color: #5f6763; }.subsidy-plan li strong { color: var(--ink); }
.plan-foot { border-top: 1px dashed #ddd7cc; padding-top: 14px; color: #858b87; font-size: 10px; display: flex; gap: 7px; align-items: center; }.plan-foot svg { width: 13px; color: var(--green); }

.watch-section { margin-top: 18px; padding: 29px 30px 12px; }.section-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }.subtle-status { color: #808681; font-size: 11px; display: flex; align-items: center; gap: 6px; }.subtle-status svg { width: 13px; }
.product-list { margin-top: 18px; }.product-row { display: grid; grid-template-columns: 116px minmax(0, 1fr) 190px; gap: 22px; align-items: center; padding: 22px 0; border-top: 1px solid #e8e3d9; }
.product-visual { height: 105px; position: relative; display: grid; place-items: center; background: #f1eee8; border-radius: 17px; overflow: hidden; }.product-visual img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.eyebrow-row { display: flex; gap: 10px; align-items: center; color: #717975; font-size: 11px; }.badge-good { background: var(--green-soft); color: var(--green); }.badge-warn { background: #fff2dc; color: #a96809; }
.badge { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.product-copy h3 { margin: 8px 0 2px; font-size: 17px; letter-spacing: -.02em; }.model { margin: 0; font-family: var(--font-geist-mono); font-size: 11px; color: #6e7672; }.product-note { margin: 8px 0 13px; color: #898e8b; font-size: 11px; }
.target-track { height: 4px; width: min(360px, 100%); background: #ede9e1; border-radius: 99px; overflow: hidden; }.target-track span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.price-block { text-align: right; display: grid; justify-items: end; }.platform { color: #7e8581; font-size: 10px; }.price-block strong { margin: 4px 0 1px; font-size: 26px; letter-spacing: -.04em; }.price-gap { color: #b05d2a; font-size: 11px; }
.price-block a { margin-top: 12px; display: inline-flex; gap: 5px; align-items: center; color: #5d6661; font-size: 11px; text-decoration: none; }.price-block a:hover { color: var(--orange); }.price-block a svg { width: 12px; }

.lower-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); gap: 18px; margin-top: 18px; }.trend-panel, .rule-panel { padding: 28px 30px; }.section-heading.compact { align-items: center; }.chart-legend { display: flex; gap: 14px; color: #7d8580; font-size: 10px; }
.chart-wrap { margin-top: 22px; }.chart-wrap svg { width: 100%; overflow: visible; }.chart-grid { stroke: #e7e2d8; stroke-width: 1; stroke-dasharray: 3 5; }.chart-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-line.cabinet { stroke: var(--orange); }.chart-line.wall { stroke: var(--blue); opacity: .8; }.chart-labels { display: flex; justify-content: space-between; color: #9a9f9c; font-size: 9px; }.chart-note { color: #8c928e; font-size: 10px; line-height: 1.5; margin: 16px 0 0; }
.rule-list { margin-top: 20px; border-top: 1px solid #e9e4db; }.rule-list > div { display: grid; grid-template-columns: 1fr auto 14px; gap: 9px; align-items: center; min-height: 49px; border-bottom: 1px solid #e9e4db; font-size: 11px; }
.rule-list span { color: #767d79; }.rule-list strong { font-size: 12px; }.rule-list svg { width: 13px; color: #a6aaa7; }.rule-warning { display: flex; gap: 10px; padding: 13px; margin-top: 17px; border-radius: 13px; background: #fff3df; color: #96600d; }
.rule-list b { color: #a6aaa7; font-size: 18px; font-weight: 400; }
.rule-warning svg { width: 16px; flex: 0 0 auto; }.rule-warning p { margin: 0; font-size: 10px; line-height: 1.5; }.rule-warning strong { display: block; font-size: 11px; }
.rule-warning.rule-ready { background: var(--green-soft); color: var(--green); }
.switch-button { width: 34px; height: 20px; padding: 2px; border: 0; border-radius: 999px; background: #d8d4cb; cursor: pointer; transition: background .2s ease; }
.switch-button i { display: block; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: transform .2s ease; }
.switch-button.on { background: var(--green); }.switch-button.on i { transform: translateX(14px); }

@media (max-width: 850px) {
  .topbar { padding: 0 18px; }.brand div span, .location { display: none; }.dashboard { width: min(100% - 28px, 680px); padding-top: 30px; }.intro-row { align-items: start; }.intro-row > div > p:last-child { max-width: 33rem; }
  .lower-grid { grid-template-columns: 1fr; }.product-row { grid-template-columns: 92px 1fr; }.price-block { grid-column: 2; justify-items: start; text-align: left; margin-top: -9px; }.watch-section, .trend-panel, .rule-panel { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 560px) {
  .topbar { height: 64px; }.notification-toggle > span { display: none; }.dashboard { width: calc(100% - 24px); padding: 23px 0 46px; }.intro-row { display: grid; }.intro-row h1 { font-size: 32px; }.refresh-button { width: 100%; }
  .hero-price { padding: 25px 22px; }.subsidy-plan { padding: 22px; }.hero-number { font-size: 46px; }.watch-section { padding-top: 23px; }.section-heading { align-items: start; }.subtle-status { max-width: 130px; text-align: right; }
  .product-row { grid-template-columns: 78px 1fr; gap: 14px; }.product-visual { height: 88px; }.product-copy h3 { font-size: 15px; }.product-note { line-height: 1.45; }.price-block strong { font-size: 23px; }
  .trend-panel { overflow: hidden; }.chart-wrap svg { min-width: 520px; }.chart-wrap { overflow-x: auto; padding-bottom: 4px; }.chart-labels { min-width: 520px; }
}
