/* 中文注释：本文件是用户确认的版式 A 原始视觉基线，主界面尺寸与色彩保持不变。 */
:root {
  --bg-0: #060a1b;
  --bg-1: #090e21;
  --sidebar: #070b1e;
  --panel: rgba(18, 22, 40, 0.94);
  --panel-2: rgba(15, 19, 35, 0.96);
  --line: rgba(142, 151, 185, 0.15);
  --line-strong: rgba(142, 151, 185, 0.24);
  --text: #f1f2f7;
  --muted: #a6a8b8;
  --subtle: #787c90;
  --purple: #875ef5;
  --purple-2: #6c43e4;
  --orange: #ff7b2b;
  --green: #62d878;
  --red: #ff5e6b;
  --blue: #3894ff;
  --radius: 14px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg-0); color: var(--text); font-family: var(--font); }
body { min-width: 1180px; overflow-x: hidden; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(780px 620px at 34% 36%, rgba(49, 41, 132, .19), transparent 66%),
    radial-gradient(760px 520px at 88% 92%, rgba(44, 18, 69, .16), transparent 70%),
    linear-gradient(135deg, #060a1c 0%, #080d20 48%, #0a0d20 100%);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 219px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 35px 18px 99px;
  border-right: 1px solid rgba(143, 153, 192, .13);
  background:
    radial-gradient(260px 360px at 55% 20%, rgba(50, 51, 130, .13), transparent 70%),
    linear-gradient(180deg, rgba(5, 9, 26, .98), rgba(6, 10, 26, .98));
}

.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; margin: 2px 18px 33px; text-decoration: none; color: var(--text); }
.brand-mark { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: conic-gradient(from 220deg, #6c43e4, #bc7ef4, #6854db, #4e72d6, #6c43e4); box-shadow: 0 0 26px rgba(112, 76, 232, .23); transform: rotate(-7deg); }
.brand-mark::before { content: ""; width: 31px; height: 19px; border-radius: 60% 14% 60% 14%; background: #eeeef7; transform: rotate(45deg); opacity: .94; }
.brand-mark::after { content: ""; position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #0a0d20; border: 4px solid #8b65ec; box-shadow: 0 0 0 2px #0a0d20; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 25px; font-weight: 750; letter-spacing: -.6px; }
.brand-copy small { margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .6px; color: #fff; }

.side-nav { display: flex; flex-direction: column; gap: 5px; }
.side-nav__item { height: 46px; display: flex; align-items: center; gap: 14px; padding: 0 20px; border: 0; border-radius: 10px; color: #c7c8d3; background: transparent; text-align: left; transition: .18s ease; }
.side-nav__item svg { width: 19px; height: 19px; flex: 0 0 auto; }
.side-nav__item span { font-size: 16px; }
.side-nav__item:hover { color: #fff; background: rgba(255,255,255,.035); }
.side-nav__item.is-active { color: #fff; background: linear-gradient(90deg, rgba(73, 44, 165, .86), rgba(48, 34, 118, .86)); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }

.sidebar-bottom { margin-top: auto; display: grid; gap: 31px; padding: 0 7px; }
.health-card, .reminder-card { border: 1px solid rgba(147, 156, 187, .12); border-radius: 12px; background: linear-gradient(160deg, rgba(16, 21, 42, .96), rgba(11, 16, 32, .96)); }
.health-card { height: 196px; padding: 16px 15px 13px; }
.health-card__title { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; color: #56dc79; font-weight: 700; font-size: 13px; }
.health-card__title i { width: 12px; height: 12px; border-radius: 50%; background: #56dc79; box-shadow: 0 0 13px rgba(86,220,121,.38); }
.health-card dl { margin: 0 0 13px; display: grid; gap: 12px; }
.health-card dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.health-card dt { color: #8e93a7; }
.health-card dd { margin: 0; color: #e0e1e8; }
.ghost-button { width: 100%; height: 34px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(140,150,180,.12); border-radius: 8px; background: rgba(22, 28, 50, .78); color: #d8d9e2; font-size: 12px; }
.ghost-button svg { width: 14px; height: 14px; }

.reminder-card { position: relative; height: 197px; min-height: 0; padding: 25px 17px 16px; overflow: hidden; background:
  radial-gradient(170px 150px at 100% 100%, rgba(255, 92, 41, .44), transparent 70%),
  linear-gradient(145deg, #2d2068 0%, #3b225f 55%, #7a2e42 100%); }
.reminder-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(255,255,255,.03), transparent 40%); pointer-events: none; }
.reminder-card__icon { width: 30px; height: 30px; margin-bottom: 15px; color: #fff; }
.reminder-card h3 { position: relative; z-index: 1; margin: 0 0 8px; font-size: 16px; }
.reminder-card p { position: relative; z-index: 1; margin: 0 0 24px; color: #e5dce9; font-size: 12px; white-space: nowrap; }
.reminder-card button { position: relative; z-index: 1; width: 100%; height: 39px; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; background: linear-gradient(90deg, rgba(108, 75, 231, .94), rgba(197, 90, 158, .9)); color: #fff; font-weight: 700; }

.main-content { min-height: 100vh; margin-left: 219px; padding: 25px 33px 14px 24px; position: relative; }
.top-tools { position: absolute; top: 25px; right: 32px; display: flex; gap: 23px; align-items: center; }
.search-box { width: 335px; height: 42px; display: flex; align-items: center; gap: 11px; padding: 0 13px; border: 1px solid rgba(138,146,174,.19); border-radius: 12px; background: rgba(13, 17, 34, .86); color: #989caf; }
.search-box > svg:first-child { width: 18px; height: 18px; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #e8e9f0; font-size: 14px; }
.search-box input::placeholder { color: #777c91; }
.search-box__bell { width: 18px; height: 18px; color: #e1e2e9; }
.mode-button { height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 17px; border: 1px solid rgba(138,146,174,.16); border-radius: 12px; background: rgba(14,18,35,.83); color: #e7e8ee; }
.mode-button svg { width: 18px; height: 18px; }
.mode-button span { font-size: 14px; font-weight: 600; }

.hero-grid { height: 472px; padding-top: 46px; display: grid; grid-template-columns: 575px minmax(520px, 1fr); gap: 20px; }
.price-hero { padding: 0 37px 0 39px; min-width: 0; }
.price-hero h1 { margin: 0 0 7px; white-space: nowrap; font-size: 48px; line-height: 1.04; letter-spacing: -2.6px; font-weight: 790; }
.price-hero h1 span { margin-left: 6px; color: var(--orange); }
.hero-subtitle { margin: 0; color: #a7a9b8; font-size: 17px; letter-spacing: .1px; }
.category-tabs { display: flex; align-items: center; gap: 16px; margin-top: 21px; }
.category-tab { min-width: 88px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: #c6c7d1; font-size: 16px; transition: .18s ease; }
.category-tab:hover { color: #fff; background: rgba(255,255,255,.035); }
.category-tab.is-active { position: relative; color: #fff; background: linear-gradient(180deg, #5630b9, #2c1a73); box-shadow: 0 0 17px rgba(105, 71, 231, .5), inset 0 1px 0 rgba(255,255,255,.09); }
.category-tab.is-active::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; right: 7px; top: 6px; background: #ff9a62; box-shadow: 0 0 8px #ff9a62; }
.price-label { display: flex; align-items: center; gap: 8px; margin-top: 25px; color: #a8aab9; font-size: 17px; }
.price-label svg { width: 16px; height: 16px; }
.hero-price { display: inline-block; margin-top: 8px; font-size: 66px; line-height: .98; font-weight: 800; letter-spacing: -3px; background: linear-gradient(100deg, #8257f4 0%, #a76ae9 45%, #ef8eab 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 24px rgba(127, 79, 232, .10); }
.price-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.price-meta span { height: 30px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border-radius: 8px; background: rgba(14, 18, 35, .88); color: #d9dae2; font-size: 14px; }
.price-meta b { font-weight: 500; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot--green { background: #69dd7c; box-shadow: 0 0 8px rgba(105,221,124,.28); }
.price-change-row { display: flex; align-items: center; gap: 13px; margin-top: 22px; font-size: 13px; }
.price-change-row strong { color: #62dd7c; font-size: 17px; font-weight: 550; }
.price-change-row > span { color: #7f8295; }
.history-low { margin-left: 103px; color: #b4b5c0 !important; }
.history-low b { font-weight: 500; }
.primary-cta { width: 280px; height: 39px; margin-top: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 7px; background: linear-gradient(90deg, #6b45e4, #5730be); box-shadow: 0 9px 30px rgba(82, 42, 191, .18); color: #fff; font-weight: 700; }
.primary-cta svg { width: 17px; height: 17px; }

.trend-card { align-self: start; height: 347px; margin-top: 38px; padding: 22px 24px 17px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(19, 23, 42, .97), rgba(17, 20, 35, .97)); box-shadow: inset 0 1px 0 rgba(255,255,255,.015); }
.panel-header { display: flex; justify-content: space-between; align-items: center; }
.panel-header h2 { position: relative; top: -5px; margin: 0; font-size: 20px; font-weight: 700; }
.panel-header select, .watch-controls select { appearance: none; border: 1px solid rgba(138,145,173,.18); border-radius: 9px; background: #121628 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b7b8c5' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat calc(100% - 12px) 50%; color: #e6e7ec; padding: 0 39px 0 14px; height: 36px; outline: none; }
.panel-header select { width: 90px; padding: 0 28px 0 13px; }
.chart-legend { display: flex; gap: 18px; margin: 1px 0 2px; color: #d2d3da; font-size: 12px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-dot--purple { background: #8c62f1; }
.legend-dot--orange { background: #ff7a27; }
.trend-chart { height: 252px; }
.trend-chart svg { width: 100%; height: 100%; overflow: visible; }
.trend-chart text { fill: #aaadbc; font-size: 12px; stroke: none; }
.trend-chart .grid { stroke: rgba(143,150,178,.14); stroke-width: 1; }
.trend-chart .axis-label { fill: #aaaebe; font-size: 12px; }
.trend-chart .line-purple { fill: none; stroke: #8b61ec; stroke-width: 3; }
.trend-chart .line-orange { fill: none; stroke: #ff7b28; stroke-width: 3; }
.trend-chart .point-purple { fill: #946df0; stroke: #724ad6; stroke-width: 1.2; }
.trend-chart .point-orange { fill: #ff8734; stroke: #e45f09; stroke-width: 1.2; }

.panel { border: 1px solid rgba(143,151,179,.12); border-radius: 13px; background: linear-gradient(155deg, rgba(19, 23, 42, .98), rgba(15, 19, 34, .98)); box-shadow: inset 0 1px 0 rgba(255,255,255,.012); }
.quote-panel { height: 172px; padding: 11px 18px 14px; }
.panel-title { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.panel-title h2 { margin: 0; font-size: 19px; font-weight: 700; }
.panel-title svg { width: 16px; height: 16px; color: #878b9e; }
.quote-grid { display: grid; grid-template-columns: repeat(4, 240px) minmax(0, 1fr); gap: 15px; }
.quote-card { position: relative; min-width: 0; height: 110px; padding: 15px 16px 12px; border: 1px solid rgba(142,150,178,.10); border-radius: 10px; background: linear-gradient(155deg, rgba(24, 28, 49, .95), rgba(18, 22, 39, .96)); }
.quote-card.is-best { border-color: rgba(116, 80, 227, .62); box-shadow: inset 0 0 20px rgba(96, 61, 204, .08); }
.quote-badge { position: absolute; top: 7px; left: 9px; padding: 2px 8px; border-radius: 6px; background: linear-gradient(90deg, #7049dc, #8b62f1); color: #fff; font-size: 10px; font-weight: 700; }
.quote-card h3 { margin: 0 0 7px; color: #ebebf0; font-size: 15px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-card.is-best h3 { padding-left: 42px; }
.quote-price { margin-bottom: 8px; color: var(--quote-color, #8d62f0); font-size: 27px; line-height: 1; font-weight: 760; letter-spacing: -.8px; }
.quote-meta { display: flex; align-items: center; gap: 13px; color: #9da0b1; font-size: 12px; white-space: nowrap; }
.quote-meta .stock { margin-left: auto; color: #55d974; }
.quote-meta .stock::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #56db75; }
.quote-card.is-out { opacity: .55; }
.quote-card.is-out .quote-meta .stock { color: #ff5c68; }
.quote-card.is-out .quote-meta .stock::before { background: #ff5c68; }
.quote-next { position: absolute; right: 20px; bottom: 48px; color: #b4b6c2; font-size: 26px; }

.watch-panel { height: 299px; margin-top: 17px; padding: 15px 18px 0; overflow: hidden; }
.watch-header { height: 45px; display: flex; align-items: flex-start; justify-content: space-between; }
.watch-title { display: flex; align-items: center; gap: 10px; }
.watch-title h2 { margin: 0; font-size: 23px; line-height: 1.1; }
.watch-title svg { width: 16px; height: 16px; color: #818598; }
.watch-controls { display: flex; align-items: center; gap: 19px; }
.watch-controls select { width: 146px; height: 36px; }
.switch-label { width: 126px; display: flex; align-items: center; gap: 9px; color: #a8aab9; font-size: 13px; cursor: pointer; }
.switch-label input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 39px; height: 22px; display: inline-flex; align-items: center; padding: 3px; border-radius: 99px; background: #20263e; box-shadow: inset 0 0 0 1px rgba(133,143,175,.16); transition: .2s ease; }
.switch i { width: 16px; height: 16px; border-radius: 50%; background: #e6e7ed; box-shadow: 0 1px 5px rgba(0,0,0,.35); transition: .2s ease; }
.switch-label input:checked + .switch { background: #6040ce; }
.switch-label input:checked + .switch i { transform: translateX(17px); }
.switch-label em { font-style: normal; }
.watch-controls button { width: 150px; height: 38px; justify-content: center; display: flex; align-items: center; gap: 10px; padding: 0 20px; border: 1px solid rgba(140,148,175,.15); border-radius: 8px; background: rgba(24, 28, 48, .86); color: #e4e5eb; }
.watch-controls button svg { width: 15px; height: 15px; }
.table-wrap { width: 100%; }
.table-row { display: grid; grid-template-columns: 316px 116px 232px 68px 216px 85px 118px; align-items: center; column-gap: 12px; }
.table-head { height: 30px; color: #989bac; font-size: 12px; border-bottom: 1px solid rgba(137,145,174,.13); }
.table-head > div:nth-child(7) { text-align: center; }
.product-row { height: 68px; border-bottom: 1px solid rgba(133,142,171,.11); }
.product-row:last-child { border-bottom: 0; }
.product-cell { padding-left: 7px; display: flex; align-items: center; gap: 14px; min-width: 0; }
.product-icon { width: 52px; height: 50px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; font-weight: 750; font-size: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
.product-copy { min-width: 0; }
.product-copy strong { display: flex; align-items: center; gap: 8px; color: #f1f1f6; font-size: 15px; font-weight: 670; white-space: nowrap; }
.product-copy small { display: block; margin-top: 5px; color: #9a9dae; font-size: 12px; }
.category-pill, .store-pill { display: inline-flex; align-items: center; height: 18px; padding: 0 8px; border-radius: 5px; background: #24205f; color: #a98afb; font-size: 10px; font-weight: 600; }
.price-cell strong { display: block; color: var(--row-color, #8e63f0); font-size: 20px; line-height: 1.15; }
.price-cell small { display: block; margin-top: 4px; color: #a5a7b6; font-size: 11px; }
.trend-cell { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 10px; }
.trend-change { font-size: 14px; font-weight: 550; }
.trend-change.down { color: #61dd7b; }
.trend-change.up { color: #ff656c; }
.sparkline { width: 100%; height: 35px; }
.sparkline path { fill: none; stroke-width: 2; }
.stock-cell { color: #e9eaf0; font-size: 14px; }
.stock-cell small { display: block; margin-top: 3px; color: #55d974; font-size: 12px; }
.store-cell { color: #ececf1; font-size: 13px; }
.store-cell .store-pill { display: table; margin-top: 5px; color: #d4cbff; background: #4d30ac; }
.time-cell { color: #a7a9b8; font-size: 12px; }
.actions { display: flex; justify-content: flex-start; gap: 40px; }
.action-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(136,145,174,.12); border-radius: 8px; background: rgba(17,21,38,.8); color: #d9dae2; }
.action-button svg { width: 17px; height: 17px; }
.action-button:hover { color: #fff; border-color: rgba(135,95,236,.55); }
.sync-footer { height: 32px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #707487; font-size: 11px; }
.sync-footer svg { width: 12px; height: 12px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 99; transform: translate(-50%, 18px); padding: 11px 17px; border: 1px solid rgba(139,148,179,.22); border-radius: 10px; background: rgba(22, 26, 46, .97); color: #f1f2f7; box-shadow: 0 16px 50px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: .22s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1300px) {
  body { min-width: 1024px; }
  .sidebar { width: 202px; }
  .main-content { margin-left: 202px; padding-right: 22px; }
  .price-hero { padding-left: 20px; padding-right: 20px; }
  .hero-grid { grid-template-columns: 500px minmax(450px, 1fr); }
  .price-hero h1 { font-size: 43px; }
}

@media (max-width: 1060px) {
  body { min-width: 0; overflow-x: auto; }
  .app-shell { min-width: 1060px; }
}
