/* 一秒互联公司 www.yimiaonet.com */
:root {
  --ink: #111820;
  --ink-2: #27313c;
  --muted: #6e7985;
  --line: #dce2e8;
  --line-2: #c7d0d9;
  --canvas: #edf1f4;
  --paper: #ffffff;
  --paper-2: #f6f8fa;
  --deep: #101820;
  --deep-2: #1a252f;
  --blue: #1687e8;
  --blue-2: #3ea6ff;
  --blue-soft: #eaf5ff;
  --green: #2d8b6f;
  --green-soft: #e7f4ef;
  --amber: #b57b2b;
  --amber-soft: #f8f0e4;
  --danger: #b34d53;
  --danger-soft: #f9e9eb;
  --sidebar: 228px;
  --shadow: 0 14px 36px rgba(17, 24, 32, .09);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "Microsoft YaHei UI", "PingFang SC", Arial, sans-serif; font-size: 14px; line-height: 1.55; letter-spacing: 0; }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(22, 135, 232, .24); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .52; }
a { color: inherit; }
svg { width: 18px; height: 18px; stroke-width: 1.8; }
mark { color: inherit; background: none; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--sidebar); display: flex; flex-direction: column; padding: 20px 14px 15px; color: #d8e0e8; background: var(--deep); border-right: 1px solid rgba(255,255,255,.07); overflow-y: auto; }
.brand { min-height: 57px; display: flex; align-items: center; gap: 11px; padding: 2px 7px 18px; color: white; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand-mark { position: relative; width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; color: white; background: linear-gradient(145deg, #267dc8, #145a96); border: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 0 0 5px rgba(255,255,255,.05); }
.brand-mark::after { content: ""; position: absolute; right: -3px; top: 7px; width: 7px; height: 7px; background: var(--blue-2); box-shadow: 0 0 12px rgba(62,166,255,.8); }
.brand-mark svg { width: 20px; }
.brand > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.brand strong { font-size: 17px; font-weight: 900; white-space: nowrap; }
.brand small { color: #7f94a7; font: 8px/1.45 Consolas, monospace; white-space: nowrap; }
.primary-nav { display: grid; gap: 4px; margin-top: 18px; }
.primary-nav button { width: 100%; min-height: 43px; display: flex; align-items: center; gap: 11px; padding: 0 12px; color: #a9b6c2; background: transparent; border: 0; cursor: pointer; text-align: left; transition: color .18s ease, background .18s ease, transform .18s ease; }
.primary-nav button:hover { color: white; background: rgba(255,255,255,.05); transform: translateX(2px); }
.primary-nav button.active { color: white; background: #1c2d3b; box-shadow: inset 3px 0 0 var(--blue-2); }
.primary-nav button span { flex: 1; }
.primary-nav button svg { width: 17px; }
.primary-nav button b { min-width: 21px; height: 19px; display: grid; place-items: center; color: #b9dcfb; background: rgba(62,166,255,.12); border: 1px solid rgba(62,166,255,.25); font-size: 10px; }
.sidebar-context { margin-top: auto; padding: 17px 12px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); }
.sidebar-context span, .sidebar-context small { display: block; color: #7f94a7; font-size: 10px; }
.sidebar-context strong { display: block; margin: 5px 0 2px; color: white; font-size: 13px; }
.sidebar-footer { display: grid; gap: 4px; padding: 9px 4px 0; }
.sidebar-footer button, .sidebar-footer a { min-height: 33px; display: flex; align-items: center; gap: 7px; padding: 0 7px; color: #7f94a7; background: transparent; border: 0; text-decoration: none; font-size: 10px; cursor: pointer; text-align: left; }
.sidebar-footer button:hover, .sidebar-footer a:hover { color: white; }
.sidebar-footer svg { width: 14px; }

.main-shell { min-height: 100vh; margin-left: var(--sidebar); display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; height: 64px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 26px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 10px; }
.breadcrumb { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.breadcrumb svg { width: 13px; }
.breadcrumb strong { color: var(--ink); }
.icon-button { position: relative; width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; color: var(--ink-2); background: white; border: 1px solid var(--line); cursor: pointer; transition: .18s ease; }
.icon-button:hover { color: var(--blue); border-color: #aebdca; background: var(--paper-2); transform: translateY(-1px); }
.mobile-menu { display: none; }
.link-import { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 11px; color: var(--blue); background: var(--blue-soft); border: 1px solid #c9e5fb; cursor: pointer; }
.link-import:hover { background: #deeffd; }
.link-import svg { width: 15px; }
.search-button { width: min(300px, 25vw); height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: #7a858f; background: var(--paper-2); border: 1px solid var(--line); cursor: pointer; }
.search-button span { flex: 1; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.search-button kbd { padding: 2px 5px; color: #87929c; background: white; border: 1px solid var(--line); font: 10px/1.3 Consolas, monospace; }
.account-button { height: 36px; display: flex; align-items: center; gap: 5px; padding: 0 4px 0 0; background: transparent; border: 0; cursor: pointer; }
.account-button span { width: 32px; height: 32px; display: grid; place-items: center; color: white; background: #273745; font-weight: 900; }
.account-button svg { width: 13px; }

.content-area { width: 100%; max-width: 1880px; margin: 0 auto; flex: 1; padding: 25px 27px 34px; }
.page { display: none; animation: pageIn .3s ease both; }
.page.active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.page-heading { min-height: 62px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-heading h1 { margin: 2px 0 2px; font-family: Georgia, "Songti SC", serif; font-size: 28px; line-height: 1.3; font-weight: 600; }
.page-heading p { margin: 0; color: var(--muted); }
.eyebrow { color: var(--blue); font: 9px/1.4 Consolas, monospace; }
.heading-actions { display: flex; gap: 8px; }
.primary-button, .secondary-button, .text-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; cursor: pointer; text-decoration: none; transition: .18s ease; }
.primary-button { color: white; background: var(--deep); border: 1px solid var(--deep); }
.primary-button:hover { background: #203444; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(17,24,32,.14); }
.secondary-button { color: var(--ink); background: white; border: 1px solid var(--line-2); }
.secondary-button:hover { background: var(--paper-2); border-color: #9eabb7; transform: translateY(-1px); }
.text-button { min-height: 36px; padding: 0 7px; color: var(--muted); background: transparent; border: 0; }
.text-button:hover { color: var(--blue); }
.full { width: 100%; }
.panel { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(17,24,32,.02); }
.panel-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 17px; border-bottom: 1px solid var(--line); }
.panel-header span:first-child { color: #82909b; font: 9px/1.4 Consolas, monospace; }
.panel-header h2 { margin: 1px 0 0; font-size: 16px; line-height: 1.3; }

.goal-strip { display: grid; grid-template-columns: minmax(390px, 1.2fr) minmax(280px, .8fr) 190px; gap: 18px; align-items: center; margin-bottom: 16px; padding: 14px 16px; background: white; border: 1px solid var(--line); }
.goal-segment { display: flex; align-items: center; gap: 13px; }
.goal-segment > span, .budget-control > span, .resolution-control > span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.segmented { display: inline-flex; padding: 3px; background: #edf1f4; }
.segmented button { min-height: 30px; padding: 0 12px; color: var(--muted); background: transparent; border: 0; cursor: pointer; white-space: nowrap; }
.segmented button.active { color: var(--ink); background: white; box-shadow: 0 1px 4px rgba(17,24,32,.1); }
.budget-control { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.budget-control span { display: grid; gap: 1px; }
.budget-control strong { color: var(--ink); font-size: 13px; }
input[type="range"] { width: 100%; accent-color: var(--blue); cursor: pointer; }
.resolution-control { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; }
select, input[type="text"], input[type="search"], input[type="url"], input[type="number"], textarea { width: 100%; min-height: 40px; padding: 0 11px; color: var(--ink); background: white; border: 1px solid var(--line-2); outline: none; }
textarea { min-height: 96px; padding-top: 10px; resize: vertical; }
select:focus, input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,135,232,.1); }

.builder-layout { display: grid; grid-template-columns: minmax(440px, .95fr) minmax(470px, 1.15fr) minmax(250px, .6fr); min-height: 664px; gap: 15px; }
.config-panel { min-width: 0; display: flex; flex-direction: column; }
.config-status { display: flex; align-items: center; gap: 7px; }
.config-status i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(45,139,111,.11); }
.config-status span { color: var(--muted) !important; font: 11px/1.4 "Microsoft YaHei UI", sans-serif !important; }
.component-list { flex: 1; display: grid; align-content: start; }
.component-row { min-height: 67px; display: grid; grid-template-columns: 86px minmax(0,1fr) 90px 32px; align-items: center; gap: 10px; padding: 8px 13px; border-bottom: 1px solid var(--line); cursor: pointer; transition: .18s ease; }
.component-row:hover { background: #f8fafb; }
.component-type { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.component-type i { width: 31px; height: 31px; display: grid; place-items: center; color: #4e6375; background: #edf2f6; }
.component-type svg { width: 16px; }
.component-info { min-width: 0; }
.component-info strong, .component-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.component-info strong { font-size: 13px; }
.component-info small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.component-price { text-align: right; }
.component-price strong, .component-price small { display: block; }
.component-price strong { font: 600 15px/1.3 Georgia, serif; }
.component-price small { color: var(--muted); font-size: 9px; }
.component-change { width: 29px; height: 29px; display: grid; place-items: center; color: #82909b; background: transparent; border: 1px solid transparent; }
.component-row:hover .component-change { color: var(--blue); background: var(--blue-soft); border-color: #d0e9fc; transform: translateX(2px); }
.config-footer { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 10px; }

.scene-stage { position: relative; min-width: 0; min-height: 664px; overflow: hidden; color: white; background: #0e161e; isolation: isolate; }
.scene-stage::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 63% 36%, rgba(36,102,154,.28), transparent 31%), linear-gradient(145deg, #17232d, #0a1118 76%); }
.scene-stage::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; box-shadow: inset 0 0 90px rgba(0,0,0,.35); }
.scene-grid { position: absolute; inset: 40% -40% -65%; z-index: -1; opacity: .18; background-image: linear-gradient(rgba(104,175,225,.26) 1px, transparent 1px), linear-gradient(90deg, rgba(104,175,225,.26) 1px, transparent 1px); background-size: 34px 34px; transform: perspective(500px) rotateX(57deg) scale(1.35); }
#pcCanvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#pcCanvas:active { cursor: grabbing; }
.scene-heading { position: absolute; left: 22px; top: 20px; z-index: 3; display: grid; gap: 2px; pointer-events: none; }
.scene-heading span { color: #6dbbfa; font: 9px/1.4 Consolas, monospace; }
.scene-heading strong { font-size: 17px; }
.scene-heading small { color: #7690a4; font-size: 10px; }
.scene-toolbar { position: absolute; left: 50%; bottom: 22px; z-index: 4; display: flex; align-items: center; padding: 4px; background: rgba(10,17,24,.74); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px); transform: translateX(-50%); }
.scene-toolbar button { min-width: 64px; height: 39px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #8499aa; background: transparent; border: 0; cursor: pointer; }
.scene-toolbar button:hover, .scene-toolbar button.active { color: white; background: rgba(62,166,255,.13); }
.scene-toolbar button.active { box-shadow: inset 0 -2px 0 var(--blue-2); }
.scene-toolbar svg { width: 15px; }
.scene-legend { position: absolute; right: 17px; top: 20px; z-index: 3; display: grid; gap: 7px; color: #8499aa; font-size: 9px; pointer-events: none; }
.scene-legend span { display: flex; align-items: center; gap: 6px; }
.scene-legend i { width: 7px; height: 7px; }
.legend-cpu { background: #62b4f3; }
.legend-gpu { background: #9a7cf3; }
.legend-memory { background: #54c0a0; }
.legend-cooling { background: #d2a85e; }
.scene-score { position: absolute; left: 20px; bottom: 23px; z-index: 3; width: 145px; pointer-events: none; }
.scene-score span, .scene-score strong { display: block; }
.scene-score span { color: #7891a5; font-size: 9px; }
.scene-score strong { margin: 2px 0 5px; font: 600 19px/1.25 Georgia, serif; }
.scene-score > i { display: block; height: 3px; background: rgba(255,255,255,.1); }
.scene-score > i b { display: block; width: 100%; height: 100%; background: var(--blue-2); transition: width .35s ease; }

.summary-panel { min-width: 0; display: flex; flex-direction: column; padding: 18px; }
.summary-panel > header { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.summary-panel > header span { color: #82909b; font: 9px/1.4 Consolas, monospace; }
.summary-panel > header h2 { margin: 2px 0 0; font-size: 17px; }
.price-total { padding: 19px 0; border-bottom: 1px solid var(--line); }
.price-total span, .price-total strong, .price-total small { display: block; }
.price-total span { color: var(--muted); font-size: 11px; }
.price-total strong { margin-top: 3px; font: 600 31px/1.2 Georgia, serif; }
.price-total small { margin-top: 4px; color: var(--green); font-size: 11px; }
.price-total small.over { color: var(--danger); }
.summary-score { height: 62px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.summary-score span { display: flex; align-items: center; gap: 8px; color: var(--green); }
.summary-score span b { color: var(--ink-2); font-size: 12px; }
.summary-score strong { color: var(--green); font: 600 26px/1 Georgia, serif; }
.summary-score.warn strong { color: var(--amber); }
.summary-score.fail strong { color: var(--danger); }
.summary-metrics { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 15px 0; border-bottom: 1px solid var(--line); }
.summary-metrics div { padding: 6px 4px; }
.summary-metrics dt { color: var(--muted); font-size: 10px; }
.summary-metrics dd { margin: 2px 0 0; font: 600 17px/1.3 Georgia, serif; }
.summary-alert { min-height: 75px; margin: 14px 0; padding: 11px; color: #4b5c6b; background: var(--paper-2); border-left: 3px solid var(--green); font-size: 11px; }
.summary-alert.warn { background: var(--amber-soft); border-left-color: var(--amber); }
.summary-alert.fail { background: var(--danger-soft); border-left-color: var(--danger); }
.summary-alert strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 12px; }
.summary-panel .full { margin-top: 8px; }
.data-note { display: flex; align-items: flex-start; gap: 7px; margin: auto 0 0; padding-top: 15px; color: #8a949d; font-size: 9px; }
.data-note svg { width: 13px; flex: 0 0 auto; }

.prototype-banner { min-height: 60px; display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 11px 15px; color: #d8e2ea; background: var(--deep); border-left: 4px solid var(--blue-2); }
.prototype-banner > svg { color: var(--blue-2); }
.prototype-banner span { flex: 1; min-width: 0; }
.prototype-banner strong, .prototype-banner small { display: block; }
.prototype-banner strong { color: white; font-size: 12px; }
.prototype-banner small { margin-top: 2px; color: #899aa9; font-size: 10px; }
.prototype-banner button { color: #a7c8e2; background: transparent; border: 0; cursor: pointer; font-size: 11px; }
.prototype-banner button:hover { color: white; }

.site-footer { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; color: #7d8892; background: white; border-top: 1px solid var(--line); font-size: 10px; }
.site-footer a { color: #506273; text-decoration: none; }
.site-footer a:hover { color: var(--blue); }

.toolbar { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 8px 12px; background: white; border: 1px solid var(--line); }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; }
.toolbar label { position: relative; min-width: 260px; }
.toolbar label svg { position: absolute; left: 10px; top: 11px; width: 16px; color: #83909b; }
.toolbar label input { padding-left: 34px; }
.category-tabs { display: flex; gap: 3px; overflow-x: auto; }
.category-tabs button { min-height: 35px; padding: 0 12px; color: var(--muted); background: transparent; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.category-tabs button:hover { color: var(--ink); background: var(--paper-2); }
.category-tabs button.active { color: var(--blue); background: var(--blue-soft); border-color: #c9e6fb; }

.market-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.product-card { min-width: 0; display: flex; flex-direction: column; background: white; border: 1px solid var(--line); transition: .2s ease; }
.product-card:hover { border-color: #a9b7c3; box-shadow: var(--shadow); transform: translateY(-2px); }
.product-visual { position: relative; height: 148px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #f7f9fb, #e9eef2); }
.product-visual::before { content: ""; position: absolute; width: 120px; height: 80px; background: rgba(17,24,32,.04); border: 1px solid rgba(17,24,32,.08); transform: skewY(-8deg); }
.product-visual > i { position: relative; z-index: 1; width: 68px; height: 68px; display: grid; place-items: center; color: #405468; background: white; border: 1px solid #d2dce5; box-shadow: 10px 12px 0 rgba(17,24,32,.05); }
.product-visual svg { width: 33px; height: 33px; }
.product-visual mark { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 4px 7px; color: var(--blue); background: white; border: 1px solid #cee5f7; font-size: 9px; }
.product-card-body { flex: 1; padding: 13px; }
.product-brand { color: var(--blue); font: 9px/1.4 Consolas, monospace; }
.product-card h3 { min-height: 39px; margin: 4px 0 3px; font-size: 14px; line-height: 1.4; }
.product-card p { min-height: 33px; margin: 0; color: var(--muted); font-size: 10px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 11px; }
.price-grid span { padding: 6px 5px; color: var(--muted); background: var(--paper-2); text-align: center; font-size: 8px; }
.price-grid strong { display: block; margin-top: 1px; color: var(--ink); font: 600 12px/1.2 Georgia, serif; }
.product-card footer { display: flex; gap: 7px; padding: 0 13px 13px; }
.product-card footer button { flex: 1; min-height: 35px; }

.report-hero { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 16px; margin-bottom: 16px; }
.score-board { min-height: 208px; display: grid; place-items: center; padding: 18px; color: white; background: var(--deep); }
.score-ring { --score: 100; position: relative; width: 132px; height: 132px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--score) * 1%), rgba(255,255,255,.09) 0); }
.score-ring::before { content: ""; position: absolute; inset: 9px; background: var(--deep); border-radius: 50%; }
.score-ring span { position: relative; z-index: 1; text-align: center; }
.score-ring strong, .score-ring small { display: block; }
.score-ring strong { font: 600 39px/1 Georgia, serif; }
.score-ring small { margin-top: 5px; color: #8ca0b0; font-size: 10px; }
.score-board > p { margin: 8px 0 0; color: #91a3b2; font-size: 11px; text-align: center; }
.report-overview { display: grid; grid-template-columns: repeat(4, 1fr); }
.report-overview article { min-height: 104px; padding: 18px; background: white; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.report-overview article:nth-child(4n) { border-right: 0; }
.report-overview article:nth-child(n+5) { border-bottom: 0; }
.report-overview span { color: var(--muted); font-size: 10px; }
.report-overview strong { display: block; margin-top: 4px; font: 600 23px/1.25 Georgia, serif; }
.report-overview small { color: #82909b; font-size: 9px; }
.report-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(320px,.7fr); gap: 15px; }
.rule-list { display: grid; }
.rule-item { min-height: 67px; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 10px 15px; border-bottom: 1px solid var(--line); }
.rule-item:last-child { border-bottom: 0; }
.rule-item > i { width: 30px; height: 30px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); }
.rule-item.warn > i { color: var(--amber); background: var(--amber-soft); }
.rule-item.fail > i { color: var(--danger); background: var(--danger-soft); }
.rule-item strong, .rule-item small { display: block; }
.rule-item strong { font-size: 12px; }
.rule-item small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.rule-item mark { padding: 4px 8px; color: var(--green); background: var(--green-soft); font-size: 9px; }
.rule-item.warn mark { color: var(--amber); background: var(--amber-soft); }
.rule-item.fail mark { color: var(--danger); background: var(--danger-soft); }
.topology { min-height: 340px; position: relative; overflow: hidden; background: #111a23; }
.topology::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px); background-size: 25px 25px; }
.topology-node { position: absolute; width: 88px; min-height: 62px; display: grid; place-items: center; padding: 8px; color: #dce7f0; background: #1c2a36; border: 1px solid #34495a; text-align: center; font-size: 9px; }
.topology-node strong { display: block; color: white; font-size: 11px; }
.topology-line { position: absolute; height: 1px; background: #3d8dcf; transform-origin: left center; box-shadow: 0 0 8px rgba(62,166,255,.6); }

.performance-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 15px; }
.performance-summary { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 15px; }
.performance-summary article { min-height: 102px; padding: 17px; background: white; border: 1px solid var(--line); border-right: 0; }
.performance-summary article:last-child { border-right: 1px solid var(--line); }
.performance-summary span { color: var(--muted); font-size: 10px; }
.performance-summary strong { display: block; margin: 4px 0 1px; font: 600 25px/1.2 Georgia, serif; }
.performance-summary small { color: #84909a; font-size: 9px; }
.benchmark-list { display: grid; padding: 7px 16px 15px; }
.benchmark-row { display: grid; grid-template-columns: 145px minmax(0,1fr) 70px; align-items: center; gap: 13px; min-height: 57px; border-bottom: 1px solid var(--line); }
.benchmark-row:last-child { border-bottom: 0; }
.benchmark-row strong { font-size: 11px; }
.benchmark-row span { height: 8px; overflow: hidden; background: #edf1f4; }
.benchmark-row span i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #246faddd, #3ea6ff); transition: width .65s ease; }
.benchmark-row b { font: 600 17px/1.2 Georgia, serif; text-align: right; }
.benchmark-row b small { margin-left: 2px; color: var(--muted); font: 9px/1.2 Arial, sans-serif; }
.bottleneck-panel { padding: 18px; }
.bottleneck-panel h2 { margin: 0 0 12px; font-size: 16px; }
.balance-meter { position: relative; height: 22px; margin: 27px 0 12px; background: linear-gradient(90deg, #7eb4dd 0 45%, #dce4ea 45% 55%, #9c83db 55%); }
.balance-meter i { position: absolute; top: -9px; left: var(--balance, 50%); width: 2px; height: 40px; background: var(--ink); box-shadow: 0 0 0 4px white; }
.balance-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.workload-list { display: grid; gap: 8px; margin-top: 18px; }
.workload-list div { display: flex; align-items: center; justify-content: space-between; padding: 10px; background: var(--paper-2); }
.workload-list span { color: var(--muted); font-size: 10px; }
.workload-list strong { font: 600 16px/1.2 Georgia, serif; }

.customize-shell { position: relative; min-height: calc(100vh - 145px); overflow: hidden; color: white; background: #0d151d; }
.customize-shell canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.customize-shell::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 110px rgba(0,0,0,.42); }
.customize-controls { position: absolute; left: 20px; top: 20px; z-index: 4; width: 284px; max-height: calc(100% - 40px); padding: 16px; overflow-y: auto; color: var(--ink); background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(14px); }
.customize-controls h1 { margin: 2px 0 4px; font-size: 20px; }
.customize-controls > p { margin: 0 0 15px; color: var(--muted); font-size: 10px; }
.control-group { padding: 13px 0; border-top: 1px solid var(--line); }
.control-group > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.swatches { display: flex; gap: 7px; }
.swatches button { width: 31px; height: 31px; padding: 0; background: var(--swatch); border: 3px solid white; box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
.swatches button.active { box-shadow: 0 0 0 2px var(--blue); }
.mode-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mode-buttons button { min-height: 35px; color: var(--muted); background: var(--paper-2); border: 1px solid var(--line); cursor: pointer; }
.mode-buttons button.active { color: var(--blue); background: var(--blue-soft); border-color: #bfdff7; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 39px; }
.switch { position: relative; width: 38px; height: 21px; padding: 0; background: #c8d0d7; border: 0; border-radius: 11px; cursor: pointer; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; background: white; border-radius: 50%; transition: .2s ease; }
.switch.active { background: var(--blue); }
.switch.active::after { left: 20px; }
.customize-info { position: absolute; right: 20px; top: 20px; z-index: 4; width: 220px; padding: 14px; background: rgba(10,17,24,.72); border: 1px solid rgba(255,255,255,.11); backdrop-filter: blur(10px); }
.customize-info span { display: block; color: #7890a3; font-size: 9px; }
.customize-info strong { display: block; margin: 3px 0 9px; font-size: 15px; }
.customize-info dl { margin: 0; }
.customize-info div { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.08); }
.customize-info dt { color: #7890a3; font-size: 9px; }
.customize-info dd { margin: 0; font-size: 10px; }
.customize-bottom { position: absolute; left: 50%; bottom: 18px; z-index: 4; display: flex; gap: 7px; padding: 5px; background: rgba(10,17,24,.7); border: 1px solid rgba(255,255,255,.1); transform: translateX(-50%); backdrop-filter: blur(10px); }
.customize-bottom button { min-height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 13px; color: #91a5b5; background: transparent; border: 0; cursor: pointer; }
.customize-bottom button:hover, .customize-bottom button.active { color: white; background: rgba(62,166,255,.12); }

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.plan-card { min-height: 225px; display: flex; flex-direction: column; padding: 17px; background: white; border: 1px solid var(--line); }
.plan-card:hover { border-color: #aab7c2; box-shadow: var(--shadow); }
.plan-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.plan-card mark { padding: 4px 7px; color: var(--blue); background: var(--blue-soft); font-size: 9px; }
.plan-card h3 { margin: 14px 0 3px; font-size: 16px; }
.plan-card > p { margin: 0; color: var(--muted); font-size: 10px; }
.plan-card dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin: 15px 0; }
.plan-card dl div { padding: 8px; background: var(--paper-2); }
.plan-card dt { color: var(--muted); font-size: 8px; }
.plan-card dd { margin: 2px 0 0; font: 600 14px/1.2 Georgia, serif; }
.plan-card footer { display: flex; gap: 7px; margin-top: auto; }
.plan-card footer button { flex: 1; min-height: 35px; }

.checkout-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(300px,.55fr); gap: 15px; }
.purchase-groups { display: grid; gap: 13px; }
.purchase-group { background: white; border: 1px solid var(--line); }
.purchase-group header { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 15px; border-bottom: 1px solid var(--line); }
.platform-name { display: flex; align-items: center; gap: 9px; }
.platform-logo { width: 29px; height: 29px; display: grid; place-items: center; color: white; background: var(--platform-color, #333); font-size: 10px; font-weight: 900; }
.purchase-group header strong { font-size: 13px; }
.purchase-group header span { color: var(--muted); font-size: 10px; }
.purchase-line { min-height: 52px; display: grid; grid-template-columns: 75px minmax(0,1fr) 90px; align-items: center; gap: 10px; padding: 8px 15px; border-bottom: 1px solid var(--line); }
.purchase-line:last-child { border-bottom: 0; }
.purchase-line > span { color: var(--muted); font-size: 10px; }
.purchase-line strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.purchase-line b { font: 600 14px/1.2 Georgia, serif; text-align: right; }
.order-summary { height: fit-content; padding: 18px; background: white; border: 1px solid var(--line); }
.order-summary h2 { margin: 0 0 14px; font-size: 17px; }
.order-summary dl { margin: 0; }
.order-summary dl div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.order-summary dt { color: var(--muted); font-size: 10px; }
.order-summary dd { margin: 0; font-size: 11px; }
.order-total { display: flex; align-items: flex-end; justify-content: space-between; padding: 17px 0; }
.order-total span { color: var(--muted); font-size: 10px; }
.order-total strong { font: 600 29px/1.1 Georgia, serif; }

.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; z-index: 80; visibility: hidden; opacity: 0; background: rgba(8,13,18,.48); backdrop-filter: blur(2px); transition: .22s ease; }
.drawer-backdrop.open, .modal-backdrop.open { visibility: visible; opacity: 1; }
.hardware-drawer { position: fixed; right: 0; top: 0; bottom: 0; z-index: 90; width: min(720px, 95vw); display: flex; flex-direction: column; background: #f2f5f7; box-shadow: -24px 0 60px rgba(10,15,20,.18); transform: translateX(104%); transition: .28s ease; }
.hardware-drawer.open { transform: none; }
.hardware-drawer > header { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; background: white; border-bottom: 1px solid var(--line); }
.hardware-drawer > header span { color: var(--blue); font: 9px/1.4 Consolas, monospace; }
.hardware-drawer > header h2 { margin: 2px 0 0; font-size: 19px; }
.drawer-toolbar { display: grid; grid-template-columns: minmax(0,1fr) 135px; gap: 8px; padding: 12px; }
.drawer-toolbar label { position: relative; }
.drawer-toolbar label svg { position: absolute; left: 11px; top: 12px; width: 16px; color: #80909d; }
.drawer-toolbar input { padding-left: 36px; }
.drawer-products { flex: 1; display: grid; gap: 9px; align-content: start; padding: 0 12px 12px; overflow-y: auto; }
.drawer-product { min-height: 107px; display: grid; grid-template-columns: 70px minmax(0,1fr) 160px 90px; align-items: center; gap: 12px; padding: 12px; background: white; border: 1px solid var(--line); }
.drawer-product.selected { border-color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }
.drawer-product-visual { width: 64px; height: 64px; display: grid; place-items: center; color: #41576a; background: #eef2f5; border: 1px solid #d7dfe6; }
.drawer-product-visual svg { width: 29px; height: 29px; }
.drawer-product-info { min-width: 0; }
.drawer-product-info mark { color: var(--blue); font: 8px/1.4 Consolas, monospace; }
.drawer-product-info strong, .drawer-product-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-product-info strong { margin: 3px 0; font-size: 13px; }
.drawer-product-info small { color: var(--muted); font-size: 9px; }
.drawer-platforms { display: grid; gap: 4px; }
.drawer-platforms span { display: flex; justify-content: space-between; gap: 6px; padding: 4px 6px; color: var(--muted); background: var(--paper-2); font-size: 8px; }
.drawer-platforms b { color: var(--ink); font: 600 11px/1.2 Georgia, serif; }
.drawer-product > button { min-height: 37px; }
.hardware-drawer > footer { min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; background: white; border-top: 1px solid var(--line); }
.hardware-drawer > footer span { color: var(--muted); font-size: 9px; }

.modal { position: fixed; left: 50%; top: 50%; z-index: 100; width: min(560px, calc(100vw - 28px)); max-height: min(760px, calc(100vh - 30px)); display: flex; flex-direction: column; visibility: hidden; opacity: 0; background: white; box-shadow: 0 28px 80px rgba(8,13,18,.27); transform: translate(-50%,-46%) scale(.98); transition: .22s ease; }
.modal.open { visibility: visible; opacity: 1; transform: translate(-50%,-50%) scale(1); }
.modal > header { min-height: 71px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.modal > header span { color: var(--blue); font: 9px/1.4 Consolas, monospace; }
.modal > header h2 { margin: 2px 0 0; font-size: 19px; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-copy { margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.form-grid .full { grid-column: 1 / -1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.prototype-list { display: grid; gap: 8px; margin-top: 14px; }
.prototype-list p { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 10px; color: var(--muted); background: var(--paper-2); font-size: 11px; }
.prototype-list p svg { width: 16px; flex: 0 0 auto; color: var(--blue); }
.prototype-list strong { color: var(--ink); }

.toast { position: fixed; right: 23px; bottom: 23px; z-index: 120; min-width: 250px; min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 0 14px; visibility: hidden; opacity: 0; color: white; background: var(--deep); border-left: 3px solid var(--green); box-shadow: var(--shadow); transform: translateY(12px); transition: .22s ease; }
.toast.show { visibility: visible; opacity: 1; transform: none; }
.toast svg { color: #6bc4a7; }

.loading-state, .empty-state { min-height: 230px; display: grid; place-items: center; padding: 30px; color: var(--muted); text-align: center; }
.empty-state > div { max-width: 340px; }
.empty-state svg { width: 42px; height: 42px; color: #9ba8b2; }
.empty-state h3 { margin: 12px 0 4px; color: var(--ink); font-size: 16px; }
.empty-state p { margin: 0 0 14px; font-size: 11px; }

@media (max-width: 1480px) {
  .builder-layout { grid-template-columns: minmax(410px, .9fr) minmax(440px, 1.1fr); }
  .summary-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 170px 140px minmax(280px,1fr) minmax(240px,.8fr); align-items: center; gap: 15px; }
  .summary-panel > header { border: 0; }
  .price-total { padding: 0 15px; border: 0; border-left: 1px solid var(--line); }
  .summary-score { padding: 0 15px; border: 0; border-left: 1px solid var(--line); }
  .summary-metrics { padding: 0 15px; border: 0; border-left: 1px solid var(--line); }
  .summary-alert, .summary-panel .full, .data-note { display: none; }
  .market-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 1160px) {
  :root { --sidebar: 210px; }
  .content-area { padding: 22px 20px 30px; }
  .goal-strip { grid-template-columns: 1fr 1fr; }
  .resolution-control { grid-column: 2; }
  .builder-layout { grid-template-columns: 1fr; }
  .scene-stage { min-height: 560px; order: -1; }
  .summary-panel { grid-column: auto; grid-template-columns: repeat(4,1fr); }
  .summary-panel > header { display: none; }
  .price-total, .summary-score, .summary-metrics { border-left: 0; }
  .summary-metrics { grid-template-columns: 1fr 1fr; }
  .report-layout, .performance-grid, .checkout-layout { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .plan-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 860px) {
  .sidebar { transform: translateX(-104%); transition: .24s ease; box-shadow: 18px 0 50px rgba(10,15,20,.24); }
  .sidebar.open { transform: none; }
  .main-shell { margin-left: 0; }
  .mobile-menu { display: grid; }
  .topbar { padding: 0 14px; }
  .link-import span, .search-button, .account-button svg { display: none; }
  .link-import { width: 36px; padding: 0; justify-content: center; }
  .content-area { padding: 18px 14px 25px; }
  .page-heading { align-items: flex-start; }
  .page-heading h1 { font-size: 24px; }
  .goal-strip { grid-template-columns: 1fr; gap: 13px; }
  .goal-segment { align-items: flex-start; flex-direction: column; gap: 7px; }
  .segmented { width: 100%; overflow-x: auto; }
  .segmented button { flex: 1; }
  .resolution-control { grid-column: auto; }
  .summary-panel { display: block; }
  .summary-panel > header, .summary-alert, .summary-panel .full, .data-note { display: flex; }
  .summary-alert { display: block; }
  .summary-panel .full { display: inline-flex; }
  .data-note { display: flex; }
  .price-total, .summary-score, .summary-metrics { padding-left: 0; padding-right: 0; border-bottom: 1px solid var(--line); }
  .report-hero { grid-template-columns: 1fr; }
  .report-overview, .performance-summary { grid-template-columns: repeat(2,1fr); }
  .report-overview article:nth-child(2n), .performance-summary article:nth-child(2n) { border-right: 1px solid var(--line); }
  .market-grid, .plan-grid { grid-template-columns: 1fr; }
  .drawer-product { grid-template-columns: 54px minmax(0,1fr) 82px; }
  .drawer-platforms { display: none; }
  .customize-controls { left: 10px; top: 10px; width: min(260px, calc(100% - 20px)); max-height: 47%; }
  .customize-info { display: none; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 12px 16px; }
}

@media (max-width: 560px) {
  .topbar { height: 58px; }
  .breadcrumb > span, .heading-actions .secondary-button { display: none; }
  .content-area { padding: 15px 10px 22px; }
  .page-heading { min-height: auto; margin-bottom: 15px; }
  .page-heading h1 { font-size: 22px; }
  .page-heading p { font-size: 11px; }
  .builder-heading > div:first-child { min-width: 0; }
  .heading-actions { flex: 0 0 auto; }
  .heading-actions .primary-button { min-height: 36px; gap: 4px; padding: 0 7px; font-size: 10px; white-space: nowrap; }
  .heading-actions .primary-button svg { width: 14px; height: 14px; }
  .goal-strip { padding: 12px; }
  .budget-control, .resolution-control { grid-template-columns: 1fr; gap: 6px; }
  .builder-layout { gap: 11px; }
  .scene-stage { min-height: 430px; }
  .scene-heading { left: 14px; top: 14px; }
  .scene-heading strong { font-size: 14px; }
  .scene-legend { display: none; }
  .scene-toolbar { bottom: 14px; }
  .scene-toolbar button { min-width: 51px; }
  .scene-toolbar button span { display: none; }
  .scene-score { left: 14px; bottom: 14px; width: 110px; }
  .component-row { grid-template-columns: 76px minmax(0,1fr) 68px 25px; padding: 8px 9px; }
  .component-type i { display: none; }
  .config-footer { align-items: stretch; flex-direction: column; padding: 7px; }
  .config-footer button { width: 100%; }
  .prototype-banner { align-items: flex-start; }
  .prototype-banner > button { display: none; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-left, .toolbar-right { width: 100%; overflow-x: auto; }
  .toolbar label { min-width: 100%; }
  .market-grid { gap: 10px; }
  .report-overview, .performance-summary { grid-template-columns: 1fr 1fr; }
  .benchmark-row { grid-template-columns: 105px minmax(0,1fr) 55px; gap: 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .drawer-toolbar { grid-template-columns: 1fr; }
  .drawer-product { grid-template-columns: 47px minmax(0,1fr) 72px; padding: 9px; }
  .drawer-product-visual { width: 45px; height: 45px; }
  .drawer-product-visual svg { width: 22px; }
  .drawer-product-info strong { white-space: normal; }
  .hardware-drawer > footer span { display: none; }
  .purchase-line { grid-template-columns: 62px minmax(0,1fr) 70px; padding: 8px 10px; }
  .customize-shell { min-height: calc(100vh - 105px); }
  .customize-controls { right: 10px; width: auto; max-height: 43%; }
  .customize-bottom button span { display: none; }
  .toast { left: 10px; right: 10px; bottom: 10px; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
