:root {
            --primary: #33589f;
            --primary-light: #4f70b3;
            --primary-dark: #26467f;
            --accent: #f59f0b;
            --accent-light: #fbb12b;
            --bg: #f3f6fa;
            --bg-card: #ffffff;
            --border: #dbe3ee;
            --border-strong: #c7d2e2;
            --text: #172033;
            --text-muted: #637083;
            --success: #10b981;
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
            --shadow-md: 0 6px 18px rgba(28, 45, 77, 0.07);
            --shadow-lg: 0 10px 26px rgba(28, 45, 77, 0.09);
            --shadow-xl: 0 16px 36px rgba(28, 45, 77, 0.12);
            --radius: 12px;
            --radius-sm: 8px;
        }
        * { box-sizing: border-box; margin: 0; padding: 0; }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
            background: var(--bg);
            min-height: 100vh;
            color: var(--text);
        }

        /* Header */
        .header {
            background: rgba(255,255,255,0.98);
            backdrop-filter: blur(8px);
            border-bottom: 1px solid var(--border);
            height: 64px;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: none;
        }
        .header-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            max-width: 1440px;
            height: 100%;
            margin: 0 auto;
            padding: 0 24px;
        }
        .brand-group { display: flex; align-items: center; flex-wrap: nowrap; white-space: nowrap; }
        .brand-name-wrap { display: flex; align-items: center; }
        .header-divider {
            width: 1px;
            height: 22px;
            background: #2f63c8;
            margin: 0 12px;
        }
        .ai-brand {
            font-size: 12px;
            color: #2f63c8;
            font-weight: 500;
            letter-spacing: 0;
        }
        .logo-img { height: 34px; border-radius: 0; }
        .company-name {
            font-size: 18px;
            font-weight: 800;
            color: var(--primary);
            letter-spacing: 0;
        }
        .top-nav {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 4px;
            background: #f4f7fb;
            border: 1px solid var(--border);
            border-radius: 9px;
            margin: 0 18px;
        }
        .top-nav-item {
            border: none;
            background: transparent;
            color: var(--text-muted);
            height: 32px;
            padding: 0 14px;
            border-radius: 7px;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.2s, color 0.2s;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            text-decoration: none;
        }
        .top-nav-item:hover {
            background: #fff;
            color: var(--primary);
        }
        .top-nav-item.active {
            background: #fff;
            color: var(--primary-dark);
            box-shadow: 0 1px 2px rgba(28, 45, 77, 0.08);
        }
        /* Main Layout */
        .app-view { display: none; }
        .app-view.active { display: flex; }
        .hidden { display: none !important; }
        .main-container {
            display: flex;
            max-width: 1440px;
            margin: 0 auto;
            width: 100%;
            align-items: flex-start;
            padding: 24px 24px;
            gap: 30px;
        }
        .workspace-view {
            max-width: 1440px;
            margin: 0 auto;
            width: 100%;
            padding: 24px;
            flex-direction: column;
            gap: 18px;
        }
        .workspace-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 24px;
            background: #fff;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 22px 24px;
            box-shadow: 0 1px 2px rgba(28, 45, 77, 0.04);
        }
        .workspace-kicker {
            color: var(--primary);
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.08em;
            margin-bottom: 6px;
        }
        .workspace-head h1 {
            margin: 0;
            font-size: 24px;
            color: var(--text);
            letter-spacing: 0;
        }
        .workspace-head p {
            margin: 8px 0 0;
            color: var(--text-muted);
            font-size: 14px;
        }
        .rendering-layout,
        .standard-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 360px;
            gap: 22px;
            align-items: start;
        }
        .rendering-panel,
        .standard-search-card,
        .standard-results,
        .standard-side {
            background: #fff;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 20px;
            box-shadow: 0 1px 2px rgba(28, 45, 77, 0.04);
        }
        .panel-title {
            font-size: 15px;
            font-weight: 800;
            color: var(--text);
            margin-bottom: 14px;
        }
        .viewer-case-name {
            color: var(--primary);
            font-size: 13px;
            font-weight: 800;
            margin-top: -8px;
        }
        .viewer-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 14px;
        }
        .viewer-tabs {
            display: flex;
            gap: 4px;
            padding: 4px;
            border: 1px solid var(--border);
            border-radius: 9px;
            background: #f4f7fb;
        }
        .viewer-tab {
            height: 32px;
            border: none;
            border-radius: 7px;
            padding: 0 12px;
            background: transparent;
            color: var(--text-muted);
            font-size: 13px;
            font-weight: 800;
            cursor: pointer;
        }
        .viewer-tab.active {
            background: #fff;
            color: var(--primary-dark);
            box-shadow: 0 1px 2px rgba(28, 45, 77, 0.08);
        }
        .viewer-frame {
            position: relative;
            height: 460px;
            overflow: hidden;
            border: 1px solid var(--border);
            border-radius: 14px;
            background: #dbe6f5;
        }
        .viewer-scene {
            position: absolute;
            inset: 0;
            display: grid;
            place-items: center;
            background:
                linear-gradient(180deg, rgba(255,255,255,0.82), transparent 42%),
                linear-gradient(135deg, #b7c8e8, #f3f6fa 52%, #d7e5d8);
            transition: transform 0.35s ease, background 0.35s ease;
        }
        .building-model {
            position: relative;
            width: 300px;
            height: 250px;
            transform-style: preserve-3d;
            transition: transform 0.35s ease;
        }
        .building-roof {
            position: absolute;
            left: 42px;
            top: 18px;
            width: 216px;
            height: 62px;
            background: #26467f;
            clip-path: polygon(50% 0, 100% 100%, 0 100%);
        }
        .building-body {
            position: absolute;
            left: 64px;
            top: 78px;
            width: 172px;
            height: 122px;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 14px;
            padding: 24px;
            background: #fff;
            border: 1px solid #b8c5d8;
            box-shadow: 0 18px 40px rgba(28, 45, 77, 0.18);
        }
        .building-body span {
            background: #dbeafe;
            border: 1px solid #9fb3d5;
        }
        .building-base {
            position: absolute;
            left: 46px;
            top: 200px;
            width: 210px;
            height: 22px;
            background: #475569;
        }
        .panorama-room {
            display: none;
            position: relative;
            width: 88%;
            height: 78%;
            border-radius: 18px;
            background:
                radial-gradient(circle at 50% 18%, rgba(255,255,255,0.65), transparent 20%),
                linear-gradient(90deg, #d6b894 0 22%, #f8fafc 22% 78%, #b7c8e8 78% 100%);
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5), 0 24px 60px rgba(28,45,77,0.18);
        }
        .room-window {
            position: absolute;
            right: 12%;
            top: 16%;
            width: 24%;
            height: 34%;
            background: linear-gradient(180deg, #bfdbfe, #eff6ff);
            border: 8px solid #fff;
        }
        .room-sofa {
            position: absolute;
            left: 16%;
            bottom: 18%;
            width: 34%;
            height: 18%;
            border-radius: 18px 18px 8px 8px;
            background: #33589f;
        }
        .room-table {
            position: absolute;
            left: 48%;
            bottom: 16%;
            width: 18%;
            height: 8%;
            border-radius: 999px;
            background: #8b5e3c;
        }
        .room-light {
            position: absolute;
            left: 44%;
            top: 10%;
            width: 12%;
            height: 12%;
            border-radius: 999px;
            background: rgba(245, 159, 11, 0.72);
            box-shadow: 0 0 38px rgba(245, 159, 11, 0.55);
        }
        .viewer-frame.interior-mode .building-model { display: none; }
        .viewer-frame.interior-mode .panorama-room { display: block; }
        .viewer-frame.interior-mode .viewer-scene {
            background:
                linear-gradient(135deg, #c7d2e2, #f8fafc 46%, #d6b894);
        }
        .viewer-overlay {
            position: absolute;
            left: 18px;
            bottom: 18px;
            width: min(360px, calc(100% - 36px));
            padding: 14px 16px;
            border-radius: 12px;
            background: rgba(255,255,255,0.86);
            border: 1px solid rgba(219, 227, 238, 0.9);
            backdrop-filter: blur(8px);
        }
        .viewer-overlay strong {
            display: block;
            color: var(--text);
            font-size: 15px;
            margin-bottom: 4px;
        }
        .viewer-overlay span {
            color: var(--text-muted);
            font-size: 13px;
            line-height: 1.5;
        }
        .viewer-controls {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 14px;
        }
        .viewer-controls button {
            border: 1px solid var(--border);
            background: #fff;
            color: var(--primary);
            border-radius: 8px;
            height: 36px;
            padding: 0 12px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-weight: 800;
            cursor: pointer;
        }
        .viewer-controls input {
            flex: 1;
        }
        .viewer-notes {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            margin-top: 14px;
        }
        .viewer-notes div {
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 12px;
            background: #fbfdff;
        }
        .viewer-notes strong {
            display: block;
            color: var(--text);
            font-size: 13px;
            margin-bottom: 4px;
        }
        .viewer-notes span {
            color: var(--text-muted);
            font-size: 13px;
            line-height: 1.5;
        }
        .rendering-category-bar {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 18px;
            padding-top: 18px;
            border-top: 1px solid var(--border);
        }
        .rendering-category {
            border: 1px solid var(--border);
            background: #f8fafc;
            color: var(--text-muted);
            border-radius: 999px;
            padding: 8px 14px;
            font-size: 13px;
            font-weight: 800;
            cursor: pointer;
        }
        .rendering-category:hover,
        .rendering-category.active {
            border-color: rgba(51, 88, 159, 0.35);
            background: #f3f7fe;
            color: var(--primary);
        }
        .rendering-gallery {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
            margin-top: 16px;
        }
        .rendering-card {
            overflow: hidden;
            border: 1px solid var(--border);
            border-radius: 12px;
            background: #fff;
            cursor: pointer;
            transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
        }
        .rendering-card:hover {
            transform: translateY(-2px);
            border-color: rgba(51, 88, 159, 0.34);
            box-shadow: var(--shadow-md);
        }
        .rendering-card.active {
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(51, 88, 159, 0.12);
        }
        .rendering-card.hidden {
            display: none;
        }
        .rendering-thumb {
            position: relative;
            height: 142px;
            overflow: hidden;
            display: flex;
            align-items: flex-end;
            padding: 12px;
            color: #fff;
            background: #dbe3ee;
        }
        .rendering-thumb::before,
        .rendering-thumb::after {
            content: '';
            position: absolute;
            pointer-events: none;
        }
        .rendering-thumb span {
            position: relative;
            z-index: 2;
            font-size: 12px;
            font-weight: 800;
            padding: 5px 8px;
            border-radius: 999px;
            background: rgba(15, 23, 42, 0.46);
        }
        .thumb-chinese {
            background: linear-gradient(135deg, #334155, #8b3f2f 48%, #d7b46a);
        }
        .thumb-chinese::before {
            left: 12%;
            bottom: 26%;
            width: 70%;
            height: 28%;
            background: #f8fafc;
            clip-path: polygon(0 45%, 50% 0, 100% 45%, 94% 45%, 94% 100%, 6% 100%, 6% 45%);
        }
        .thumb-oriental {
            background: linear-gradient(120deg, #3f342b, #b88954 50%, #f7efe1);
        }
        .thumb-oriental::before {
            right: 12%;
            top: 16%;
            width: 34%;
            height: 58%;
            border: 8px solid rgba(255,255,255,0.78);
        }
        .thumb-european {
            background: linear-gradient(135deg, #536170, #d9c7a3 50%, #f8fafc);
        }
        .thumb-european::before {
            left: 18%;
            bottom: 22%;
            width: 64%;
            height: 48%;
            background: rgba(255,255,255,0.88);
            clip-path: polygon(0 100%, 0 22%, 50% 0, 100% 22%, 100% 100%);
        }
        .thumb-classic {
            background: linear-gradient(135deg, #5d4b3c, #decaa7 48%, #fff7ed);
        }
        .thumb-classic::before {
            left: 15%;
            bottom: 18%;
            width: 70%;
            height: 36%;
            border-radius: 18px 18px 6px 6px;
            background: rgba(255,255,255,0.72);
        }
        .thumb-modern {
            background: linear-gradient(135deg, #1f2937, #94a3b8 48%, #e2e8f0);
        }
        .thumb-modern::before {
            left: 16%;
            bottom: 18%;
            width: 66%;
            height: 48%;
            background: rgba(255,255,255,0.82);
            clip-path: polygon(0 24%, 76% 0, 100% 100%, 0 100%);
        }
        .thumb-modern-room {
            background: linear-gradient(120deg, #475569, #e5e7eb 48%, #c4a484);
        }
        .thumb-modern-room::before {
            left: 16%;
            bottom: 18%;
            width: 40%;
            height: 20%;
            border-radius: 16px 16px 6px 6px;
            background: #33589f;
        }
        .thumb-luxury {
            background: linear-gradient(135deg, #172033, #b08d57 48%, #f8fafc);
        }
        .thumb-luxury::before {
            right: 14%;
            top: 18%;
            width: 28%;
            height: 46%;
            background: rgba(255,255,255,0.78);
        }
        .thumb-commercial {
            background: linear-gradient(135deg, #243b53, #6b7280 48%, #d6b25e);
        }
        .thumb-commercial::before {
            left: 12%;
            bottom: 18%;
            width: 74%;
            height: 46%;
            background: rgba(255,255,255,0.72);
            clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 100%);
        }
        .rendering-card-body {
            padding: 13px 14px 15px;
        }
        .rendering-card-body h3 {
            font-size: 15px;
            color: var(--text);
            margin-bottom: 7px;
        }
        .rendering-card-body p {
            color: var(--text-muted);
            font-size: 12px;
            line-height: 1.6;
        }
        .rendering-pro-layout {
            display: grid;
            grid-template-columns: 230px minmax(0, 1fr) 340px;
            gap: 18px;
            align-items: start;
        }
        .rendering-filter-panel,
        .rendering-library-panel,
        .rendering-preview-panel {
            background: #fff;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 18px;
            box-shadow: 0 1px 2px rgba(28, 45, 77, 0.04);
        }
        .rendering-filter-panel,
        .rendering-preview-panel {
            position: sticky;
            top: 88px;
        }
        .rendering-filter-group {
            display: grid;
            gap: 8px;
            margin-bottom: 18px;
        }
        .rendering-filter-label {
            color: var(--text-muted);
            font-size: 12px;
            font-weight: 900;
        }
        .rendering-filter-panel .rendering-category {
            width: 100%;
            border-radius: 9px;
            text-align: left;
        }
        .rendering-filter-note {
            padding: 12px;
            border: 1px solid var(--border);
            border-radius: 10px;
            background: #f8fafc;
        }
        .rendering-filter-note strong {
            display: block;
            color: var(--text);
            font-size: 13px;
            margin-bottom: 5px;
        }
        .rendering-filter-note span {
            color: var(--text-muted);
            font-size: 12px;
            line-height: 1.55;
        }
        .rendering-library-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            padding-bottom: 14px;
            border-bottom: 1px solid var(--border);
            margin-bottom: 14px;
        }
        .rendering-library-head .panel-title {
            margin-bottom: 4px;
        }
        .rendering-library-head p {
            color: var(--text-muted);
            font-size: 13px;
            line-height: 1.5;
        }
        .rendering-count {
            flex: 0 0 auto;
            color: var(--primary);
            background: #f3f7fe;
            border: 1px solid #d7e3f8;
            border-radius: 999px;
            padding: 6px 10px;
            font-size: 12px;
            font-weight: 900;
        }
        .pro-gallery {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            margin-top: 0;
        }
        .pro-rendering-card {
            border-radius: 10px;
        }
        .rendering-cover,
        .rendering-preview-cover {
            position: relative;
            min-height: 170px;
            padding: 14px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            overflow: hidden;
            color: #fff;
            background: #334155;
        }
        .rendering-cover::before,
        .rendering-preview-cover::before {
            content: '';
            position: absolute;
            inset: 0;
            background:
                linear-gradient(180deg, rgba(15,23,42,0.05), rgba(15,23,42,0.58)),
                linear-gradient(135deg, rgba(255,255,255,0.14), transparent 38%);
        }
        .rendering-cover span,
        .rendering-cover strong,
        .rendering-preview-cover span,
        .rendering-preview-cover strong {
            position: relative;
            z-index: 1;
        }
        .rendering-type,
        .rendering-preview-cover span {
            align-self: flex-start;
            padding: 5px 8px;
            border-radius: 999px;
            background: rgba(255,255,255,0.18);
            border: 1px solid rgba(255,255,255,0.25);
            font-size: 12px;
            font-weight: 900;
        }
        .rendering-cover strong {
            font-size: 13px;
            letter-spacing: 0.06em;
        }
        .rendering-tags {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin-top: 10px;
        }
        .rendering-tags span {
            color: var(--primary);
            background: #f3f7fe;
            border: 1px solid #d7e3f8;
            border-radius: 999px;
            padding: 3px 7px;
            font-size: 12px;
            font-weight: 800;
        }
        .cover-chinese { background: linear-gradient(135deg, #233142, #8b3f2f 52%, #caa05a); }
        .cover-oriental { background: linear-gradient(135deg, #2b2722, #9c7048 48%, #ded2bd); }
        .cover-european { background: linear-gradient(135deg, #405061, #b8a078 52%, #ece4d5); }
        .cover-classic { background: linear-gradient(135deg, #4c372c, #b69772 52%, #efe0c8); }
        .cover-modern { background: linear-gradient(135deg, #1f2937, #64748b 48%, #dce3ea); }
        .cover-modern-room { background: linear-gradient(135deg, #334155, #d1d5db 48%, #a88665); }
        .cover-luxury { background: linear-gradient(135deg, #111827, #8f7344 52%, #f4efe5); }
        .cover-commercial { background: linear-gradient(135deg, #1e293b, #4b5563 48%, #c49a45); }
        .rendering-preview-cover {
            min-height: 220px;
            border-radius: 12px;
            margin-bottom: 14px;
        }
        .rendering-preview-cover strong {
            font-size: 22px;
            line-height: 1.25;
        }
        .rendering-meta-list {
            display: grid;
            gap: 8px;
            margin-bottom: 14px;
        }
        .rendering-meta-list div {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            padding: 10px 12px;
            border: 1px solid var(--border);
            border-radius: 9px;
            background: #f8fafc;
            font-size: 13px;
        }
        .rendering-meta-list span {
            color: var(--text-muted);
            font-weight: 800;
        }
        .rendering-meta-list strong {
            color: var(--text);
            text-align: right;
        }
        .preview-note {
            margin-top: 14px;
        }
        .rendering-detail-modal {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 1600;
            background: rgba(15, 23, 42, 0.58);
            padding: 28px;
            overflow-y: auto;
        }
        .rendering-detail-modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .rendering-detail-shell {
            position: relative;
            width: min(980px, 100%);
            background: #fff;
            border-radius: 14px;
            border: 1px solid rgba(255,255,255,0.32);
            overflow: hidden;
            box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
        }
        .rendering-detail-close {
            position: absolute;
            top: 12px;
            right: 12px;
            z-index: 2;
            width: 34px;
            height: 34px;
            border: 1px solid rgba(255,255,255,0.35);
            border-radius: 999px;
            background: rgba(15, 23, 42, 0.45);
            color: #fff;
            font-size: 24px;
            line-height: 1;
            cursor: pointer;
        }
        .rendering-detail-cover {
            position: relative;
            min-height: 320px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 28px;
            color: #fff;
        }
        .rendering-detail-cover::before {
            content: '';
            position: absolute;
            inset: 0;
            background:
                linear-gradient(180deg, rgba(15,23,42,0.08), rgba(15,23,42,0.70)),
                linear-gradient(135deg, rgba(255,255,255,0.16), transparent 40%);
        }
        .rendering-detail-cover span,
        .rendering-detail-cover strong {
            position: relative;
            z-index: 1;
        }
        .rendering-detail-cover span {
            align-self: flex-start;
            padding: 6px 10px;
            border-radius: 999px;
            background: rgba(255,255,255,0.18);
            border: 1px solid rgba(255,255,255,0.25);
            font-size: 13px;
            font-weight: 900;
        }
        .rendering-detail-cover strong {
            max-width: 620px;
            font-size: 34px;
            line-height: 1.18;
        }
        .rendering-detail-body {
            display: grid;
            gap: 18px;
            padding: 22px;
        }
        .rendering-detail-info {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
        }
        .rendering-detail-info div,
        .rendering-delivery-list div {
            border: 1px solid var(--border);
            border-radius: 10px;
            background: #f8fafc;
            padding: 12px;
        }
        .rendering-detail-info span {
            display: block;
            color: var(--text-muted);
            font-size: 12px;
            font-weight: 900;
            margin-bottom: 6px;
        }
        .rendering-detail-info strong {
            color: var(--text);
            font-size: 14px;
        }
        .rendering-detail-section p {
            color: var(--text-muted);
            font-size: 14px;
            line-height: 1.7;
        }
        .rendering-delivery-list {
            display: grid;
            gap: 8px;
            color: var(--text);
            font-size: 13px;
            line-height: 1.5;
        }
        .brief-panel {
            position: sticky;
            top: 88px;
        }
        .brief-list {
            display: grid;
            gap: 12px;
            margin-bottom: 18px;
        }
        .brief-list div {
            padding: 12px;
            border: 1px solid var(--border);
            border-radius: 9px;
            background: #fbfdff;
        }
        .brief-list strong {
            display: block;
            color: var(--text);
            font-size: 13px;
            margin-bottom: 4px;
        }
        .brief-list span {
            color: var(--text-muted);
            font-size: 13px;
            line-height: 1.5;
        }
        .standard-search-card {
            display: grid;
            gap: 12px;
        }
        .standard-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .standard-tags button {
            border: 1px solid var(--border);
            background: #f8fafc;
            color: var(--text-muted);
            border-radius: 999px;
            padding: 7px 12px;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
        }
        .standard-tags button:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: #fff;
        }
        .standard-results {
            display: grid;
            gap: 12px;
        }
        .standard-card {
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 14px 16px;
            background: #fff;
        }
        .standard-card-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 14px;
        }
        .standard-code {
            color: var(--primary);
            font-size: 12px;
            font-weight: 900;
            margin-bottom: 4px;
        }
        .standard-card h3 {
            margin: 0 0 8px;
            color: var(--text);
            font-size: 15px;
        }
        .standard-status {
            flex: 0 0 auto;
            color: #047857;
            background: #ecfdf5;
            border: 1px solid #bbf7d0;
            border-radius: 999px;
            padding: 4px 8px;
            font-size: 12px;
            font-weight: 800;
        }
        .standard-facts {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin: 4px 0 10px;
        }
        .standard-facts span {
            color: var(--text-muted);
            background: #f8fafc;
            border: 1px solid var(--border);
            border-radius: 999px;
            padding: 4px 8px;
            font-size: 12px;
            font-weight: 700;
        }
        .standard-card p {
            margin: 0;
            color: var(--text-muted);
            font-size: 13px;
            line-height: 1.7;
        }
        .standard-file-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 14px;
            margin-top: 12px;
            padding: 11px 12px;
            border: 1px solid var(--border);
            border-radius: 10px;
            background: #f8fafc;
        }
        .standard-file-row strong {
            display: block;
            color: var(--text);
            font-size: 13px;
            margin-bottom: 3px;
        }
        .standard-file-row span {
            display: block;
            color: var(--text-muted);
            font-size: 12px;
            line-height: 1.4;
        }
        .standard-file-btn {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 76px;
            height: 32px;
            border-radius: 8px;
            background: var(--primary);
            color: #fff;
            font-size: 13px;
            font-weight: 800;
            text-decoration: none;
        }
        .standard-file-btn:hover {
            background: var(--primary-dark);
        }
        .standard-detail-toggle {
            margin-top: 12px;
            border: 1px solid var(--border);
            background: #f8fafc;
            color: var(--primary);
            border-radius: 8px;
            padding: 7px 11px;
            font-size: 13px;
            font-weight: 800;
            cursor: pointer;
        }
        .standard-detail-toggle:hover {
            border-color: var(--primary);
            background: #fff;
        }
        .standard-detail {
            display: none;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid var(--border);
        }
        .standard-card.expanded .standard-detail {
            display: block;
        }
        .standard-detail-title {
            color: var(--text);
            font-size: 13px;
            font-weight: 900;
            margin: 10px 0 8px;
        }
        .standard-checkpoints {
            display: grid;
            gap: 8px;
            margin-top: 12px;
        }
        .standard-checkpoints div {
            color: var(--text);
            background: #fbfdff;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 9px 10px;
            font-size: 13px;
            line-height: 1.55;
        }
        .standard-card-meta {
            display: flex;
            gap: 8px;
            margin-top: 10px;
            flex-wrap: wrap;
        }
        .standard-card-meta span {
            color: var(--primary);
            background: #f3f7fe;
            border: 1px solid #d7e3f8;
            border-radius: 999px;
            padding: 4px 8px;
            font-size: 12px;
            font-weight: 700;
        }
        .standard-source {
            display: inline-flex;
            align-items: center;
            margin-top: 12px;
            color: var(--primary);
            font-size: 13px;
            font-weight: 800;
            text-decoration: none;
        }
        .standard-source:hover {
            text-decoration: underline;
        }
        .standard-side {
            position: sticky;
            top: 88px;
        }
        .standard-side ul {
            margin: 0;
            padding-left: 18px;
            color: var(--text-muted);
            font-size: 13px;
            line-height: 1.8;
        }
        .construction-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 360px;
            gap: 22px;
            align-items: start;
        }
        .construction-panel {
            background: #fff;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 20px;
            box-shadow: 0 1px 2px rgba(28, 45, 77, 0.04);
        }
        .construction-side {
            position: sticky;
            top: 88px;
        }
        .construction-stage-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
        }
        .construction-stage {
            min-height: 168px;
            padding: 18px;
            border: 1px solid var(--border);
            border-radius: 10px;
            background: #f8fafc;
        }
        .construction-stage.active {
            border-color: rgba(51, 88, 159, 0.35);
            background: #f3f7ff;
        }
        .stage-icon {
            width: 38px;
            height: 38px;
            display: grid;
            place-items: center;
            border-radius: 10px;
            color: var(--primary);
            background: #eaf0fb;
            margin-bottom: 14px;
        }
        .construction-stage h3 {
            font-size: 16px;
            margin-bottom: 8px;
            color: var(--text);
        }
        .construction-stage p {
            color: var(--text-muted);
            font-size: 13px;
            line-height: 1.65;
        }
        .construction-form {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
            padding-bottom: 18px;
            margin-bottom: 18px;
            border-bottom: 1px solid var(--border);
        }
        .construction-form select {
            width: 100%;
            height: 39px;
            border: 1px solid var(--border);
            border-radius: 8px;
            background: #f8fafc;
            color: var(--text);
            padding: 0 10px;
            font-size: 13px;
            font-weight: 700;
        }
        .construction-system-grid {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 12px;
            margin-bottom: 18px;
        }
        .construction-system-card {
            min-height: 210px;
            border: 1px solid var(--border);
            border-radius: 12px;
            background: #f8fafc;
            color: var(--text);
            padding: 14px;
            text-align: left;
            display: flex;
            flex-direction: column;
            gap: 10px;
            cursor: pointer;
            transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
        }
        .construction-system-card:hover {
            transform: translateY(-2px);
            border-color: rgba(51, 88, 159, 0.34);
            box-shadow: var(--shadow-md);
            background: #fff;
        }
        .construction-system-card.active {
            border-color: var(--primary);
            background: #f3f7ff;
            box-shadow: 0 0 0 2px rgba(51, 88, 159, 0.12);
        }
        .construction-system-card .stage-icon {
            margin-bottom: 2px;
        }
        .construction-system-card strong {
            font-size: 15px;
            color: var(--text);
        }
        .construction-system-card span:not(.stage-icon) {
            color: var(--text-muted);
            font-size: 12px;
            line-height: 1.55;
        }
        .construction-system-card em {
            margin-top: auto;
            font-style: normal;
            color: var(--primary);
            font-size: 12px;
            font-weight: 900;
        }
        .construction-detail-card {
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
            background: #fff;
        }
        .construction-detail-head {
            display: flex;
            justify-content: space-between;
            gap: 16px;
            align-items: flex-start;
            padding: 16px;
            border-bottom: 1px solid var(--border);
            background: #fbfdff;
        }
        .construction-detail-head .panel-title {
            margin-bottom: 5px;
        }
        .construction-detail-head p {
            color: var(--text-muted);
            font-size: 13px;
            line-height: 1.6;
        }
        .compact-btn {
            width: auto;
            min-width: 78px;
            margin-top: 0;
            padding: 9px 12px;
        }
        .construction-table-wrap {
            overflow-x: auto;
        }
        .construction-table {
            width: 100%;
            border-collapse: collapse;
            min-width: 620px;
        }
        .construction-table th,
        .construction-table td {
            padding: 13px 14px;
            border-bottom: 1px solid var(--border);
            font-size: 13px;
            text-align: left;
            vertical-align: top;
        }
        .construction-table th {
            color: var(--text-muted);
            background: #f8fafc;
            font-weight: 900;
        }
        .construction-table td:nth-child(2),
        .construction-table td:nth-child(4) {
            white-space: nowrap;
            text-align: right;
            font-weight: 800;
            color: var(--primary);
        }
        .construction-table td:nth-child(3) {
            color: var(--text-muted);
            white-space: nowrap;
        }
        .construction-table tbody tr:not(.construction-table-total) td:nth-child(1),
        .construction-table tbody tr:not(.construction-table-total) td:nth-child(2),
        .construction-table tbody tr:not(.construction-table-total) td:nth-child(3) {
            cursor: text;
        }
        .construction-table td strong {
            display: block;
            color: var(--text);
            margin-bottom: 4px;
        }
        .construction-table td span {
            display: block;
            color: var(--text-muted);
            font-size: 12px;
            line-height: 1.45;
        }
        .construction-editable {
            border-bottom: 1px dashed transparent;
            border-radius: 4px;
            cursor: text;
            transition: background 0.2s, border-color 0.2s;
        }
        .construction-editable:hover {
            background: #eef4ff;
            border-bottom-color: var(--primary);
        }
        .construction-money {
            display: inline-block;
            color: var(--primary) !important;
            font-size: 13px !important;
            font-weight: 900;
            text-align: right;
        }
        .construction-inline-edit {
            min-width: 90px;
            text-align: inherit;
        }
        .construction-table-total td {
            background: #f8fafc;
            font-weight: 900;
        }
        .construction-summary {
            padding: 16px;
            border: 1px solid var(--border);
            border-radius: 12px;
            background: #f8fafc;
            margin-bottom: 14px;
        }
        .construction-summary-label {
            color: var(--text-muted);
            font-size: 12px;
            font-weight: 800;
            margin-bottom: 6px;
        }
        .construction-summary-name {
            color: var(--text);
            font-size: 18px;
            font-weight: 900;
            margin-bottom: 12px;
        }
        .construction-total {
            color: var(--primary);
            font-size: 32px;
            font-weight: 900;
            font-variant-numeric: tabular-nums;
        }
        .construction-total-sub {
            margin-top: 4px;
            color: var(--text-muted);
            font-size: 13px;
            font-weight: 800;
        }
        .construction-summary-list {
            display: grid;
            gap: 8px;
            margin-bottom: 14px;
        }
        .construction-summary-list div {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            padding: 10px 12px;
            border: 1px solid var(--border);
            border-radius: 9px;
            background: #fff;
            font-size: 13px;
        }
        .construction-summary-list span {
            color: var(--text-muted);
            font-weight: 700;
        }
        .construction-summary-list strong {
            color: var(--text);
            font-weight: 900;
        }
        .construction-side-title {
            margin-top: 20px;
        }

        /* Info Card */
        .info-card {
            position: relative;
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px 16px;
            margin-bottom: 16px;
            background: #fffdf8;
            padding: 18px 20px 20px;
            border-radius: 10px;
            border: 1px solid #e7dfd1;
            box-shadow: 0 8px 18px rgba(28, 45, 77, 0.05);
            overflow: hidden;
        }
        .info-card-head {
            grid-column: 1 / -1;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            padding-bottom: 12px;
            margin-bottom: 2px;
            border-bottom: 1px dashed #c8d0dc;
        }
        .info-card-title {
            font-size: 16px;
            font-weight: 900;
            color: #1f2a44;
            line-height: 1.2;
            letter-spacing: 0.02em;
        }
        .info-card-subtitle {
            margin-top: 4px;
            font-size: 12px;
            color: var(--text-muted);
        }
        .input-item { min-width: 0; }
        .input-span-2 { grid-column: span 2; }
        .input-item label {
            display: flex;
            align-items: center;
            font-size: 12px;
            color: #5f6b7c;
            margin-bottom: 7px;
            font-weight: 900;
            line-height: 16px;
            min-height: 16px;
            padding-left: 1px;
            letter-spacing: 0.01em;
        }
        .input-item input {
            width: 100%;
            height: 40px;
            padding: 9px 11px;
            border: 1px solid #d9e0ea;
            border-radius: 7px;
            outline: none;
            font-size: 14px;
            transition: all 0.2s;
            background: rgba(255,255,255,0.72);
            color: var(--text);
        }
        .input-item input:focus {
            border-color: var(--primary);
            background: white;
            box-shadow: 0 0 0 3px rgba(51, 88, 159, 0.09);
        }
        .input-item input:hover {
            border-color: #c8d0dc;
            background: #fff;
        }
        .input-item input[type="date"] {
            color: var(--text);
            font-variant-numeric: tabular-nums;
        }
        .input-item input[type="date"]::-webkit-calendar-picker-indicator {
            opacity: 0.55;
            cursor: pointer;
        }
        .input-item input::placeholder {
            color: #9aa6b5;
        }

        /* Category */
        .cat-block {
            margin-top: 14px;
            padding: 12px;
            border: 1px solid #e7dfd1;
            border-radius: 6px;
            background: #fffdf8;
            box-shadow: 0 8px 18px rgba(28, 45, 77, 0.05);
            transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
        }
        .cat-block:hover {
            border-color: #d8ccba;
            background: #fffdf8;
            box-shadow: 0 10px 22px rgba(28, 45, 77, 0.07);
        }
        .cat-block:not(.collapsed) {
            border-color: #d8ccba;
            background: #fffdf8;
        }
        .cat-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            gap: 12px;
            font-size: 14px;
            font-weight: 800;
            color: var(--text);
            margin: 0 0 10px 0;
            padding: 4px 2px 11px;
            border: none;
            border-bottom: 1px dashed #c8d0dc;
            border-radius: 0;
            background: transparent;
            cursor: pointer;
            transition: color 0.2s;
        }
        .cat-title:hover {
            color: var(--primary);
        }
        .cat-title-left {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .cat-title i { color: var(--primary); width: 18px; height: 18px; }
        .cat-title-meta {
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--text-muted);
            font-size: 12px;
            font-weight: 700;
        }
        .cat-chevron {
            transition: transform 0.2s;
        }
        .cat-block:not(.collapsed) .cat-chevron {
            transform: rotate(180deg);
        }
        .cat-block.collapsed .items-list {
            display: none;
        }
        .cat-summary {
            color: var(--text-muted);
            font-size: 12px;
            line-height: 1.45;
            padding: 0 2px 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-family: 'Consolas', 'Courier New', 'PingFang SC', 'Microsoft YaHei', monospace;
        }
        .cat-block:not(.collapsed) .cat-summary {
            display: none;
        }

        /* Items List */
        .items-list {
            display: flex;
            flex-direction: column;
            gap: 0;
        }
        .filter-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 10px;
            box-shadow: none;
            padding: 10px 12px;
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 16px;
            position: sticky;
            top: 78px;
            z-index: 50;
        }
        .filter-input-wrap {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
            background: #f7f9fc;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 0 12px;
        }
        .filter-input-wrap i {
            color: var(--text-muted);
            flex-shrink: 0;
        }
        .filter-input-wrap input {
            width: 100%;
            border: none;
            outline: none;
            background: transparent;
            padding: 8px 0;
            font-size: 14px;
            color: var(--text);
        }
        .filter-status {
            color: var(--text-muted);
            font-size: 12px;
            font-weight: 600;
            white-space: nowrap;
        }
        .cat-block.hidden,
        .item-row.hidden {
            display: none;
        }
        .list-header {
            display: grid;
            grid-template-columns: minmax(180px, 1.2fr) 92px minmax(220px, 2fr) 40px;
            gap: 18px;
            align-items: center;
            padding: 0 16px 6px 19px;
            color: #7a8798;
            font-size: 12px;
            font-weight: 700;
            margin-top: 4px;
        }
        .list-header span:nth-child(2) {
            text-align: right;
        }

        /* Item Row */
        .item-row {
            background: transparent;
            border: none;
            border-bottom: 1px dashed #c8d0dc;
            border-left: none;
            padding: 12px 8px;
            border-radius: 0;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
            box-shadow: none;
        }
        .item-row:last-child {
            border-bottom: none;
        }
        .item-row:hover {
            border-bottom-color: #b9c4d2;
            background: rgba(51, 88, 159, 0.045);
            box-shadow: none;
        }
        .item-row.selected {
            border-bottom-color: #b9c4d2;
            background: rgba(51, 88, 159, 0.08);
            box-shadow: inset 0 0 0 1px rgba(51, 88, 159, 0.10);
        }
        .item-info {
            display: grid;
            grid-template-columns: minmax(180px, 1.2fr) 92px minmax(220px, 2fr);
            align-items: center;
            gap: 18px;
            flex: 1;
        }
        .it-name {
            font-weight: 700;
            font-size: 14px;
            color: var(--text);
            min-width: 0;
        }
        .it-price-box {
            display: flex;
            align-items: baseline;
            gap: 4px;
            justify-content: flex-end;
            font-size: 14px;
            color: #1f3f78;
            font-weight: 900;
            font-variant-numeric: tabular-nums;
            font-family: 'Consolas', 'Courier New', monospace;
        }
        .it-unit { 
            font-size: 12px; 
            opacity: 0.85; 
            font-weight: 600;
        }
        .it-note {
            font-size: 13px;
            color: var(--text-muted);
            flex: 1;
            line-height: 1.45;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .editable {
            border-bottom: 1px dashed var(--border-strong);
            cursor: default;
            padding: 2px 4px;
            border-radius: 4px;
            transition: all 0.2s;
        }
        .editable:hover {
            border-color: var(--primary);
            background: rgba(59, 92, 167, 0.05);
            cursor: pointer;
        }
        .inline-edit-input {
            width: 100%;
            max-width: 220px;
            min-width: 64px;
            height: 28px;
            border: 1px solid var(--primary);
            border-radius: 6px;
            padding: 3px 8px;
            font-size: inherit;
            font-family: inherit;
            color: var(--text);
            outline: none;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(51, 88, 159, 0.10);
        }

        /* Check Icon */
        .check-icon {
            width: 24px;
            height: 24px;
            border: 1px dashed #b9c4d2;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            flex-shrink: 0;
            margin-left: 12px;
        }
        .item-row.selected .check-icon {
            background: var(--primary);
            border-color: var(--primary);
            box-shadow: none;
        }
        .check-icon i { color: white; }

        /* Sidebar */
        .sidebar { width: 380px; position: sticky; top: 88px; flex-shrink: 0; }
        .bill-card {
            position: relative;
            background: #fffdf8;
            border: 1px solid #e7dfd1;
            border-radius: 6px 6px 2px 2px;
            box-shadow: 0 16px 32px rgba(28, 45, 77, 0.10);
            overflow: visible;
            font-family: 'Consolas', 'Courier New', 'PingFang SC', 'Microsoft YaHei', monospace;
        }
        .bill-card::before {
            content: '';
            position: absolute;
            top: 10px;
            bottom: 10px;
            left: -7px;
            right: -7px;
            z-index: -1;
            background:
                radial-gradient(circle at 0 8px, transparent 0 5px, #fffdf8 5.5px) left top / 7px 16px repeat-y,
                radial-gradient(circle at 7px 8px, transparent 0 5px, #fffdf8 5.5px) right top / 7px 16px repeat-y;
        }
        .bill-card::after {
            content: '';
            position: absolute;
            left: 1px;
            right: 1px;
            bottom: -8px;
            height: 8px;
            background:
                linear-gradient(135deg, #fffdf8 35%, transparent 35%) 0 0 / 14px 8px,
                linear-gradient(225deg, #fffdf8 35%, transparent 35%) 7px 0 / 14px 8px;
            filter: drop-shadow(0 7px 7px rgba(28, 45, 77, 0.08));
        }
        .bill-head {
            background: transparent;
            color: #1f2a44;
            padding: 18px 18px 14px;
            border-bottom: 1px dashed #c8d0dc;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            font-weight: 900;
            font-size: 15px;
            letter-spacing: 0.04em;
        }
        .bill-head i { width: 20px; height: 20px; }
        .bill-body {
            padding: 16px 20px 14px;
            max-height: 380px;
            overflow-y: auto;
        }
        .bill-body::-webkit-scrollbar { width: 6px; }
        .bill-body::-webkit-scrollbar-track { background: var(--bg); border-radius: 3px; }
        .bill-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
        .bill-empty {
            text-align: center;
            padding: 38px 18px;
            color: var(--text-muted);
            font-size: 13px;
            background: rgba(255,255,255,0.35);
            border: 1px dashed #c8d0dc;
            border-radius: 6px;
        }
        .bill-empty i { width: 42px; height: 42px; margin-bottom: 10px; opacity: 0.42; }
        .bill-item {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: 8px 0;
            border-bottom: 1px dashed #c8d0dc;
            gap: 12px;
        }
        .bill-item:last-child { border-bottom: none; }
        .bill-item-name { font-size: 12px; font-weight: 700; flex: 1; line-height: 1.45; color: #253047; min-width: 0; }
        .bill-item-price { font-size: 13px; font-weight: 900; color: #1f3f78; white-space: nowrap; min-width: 82px; text-align: right; font-variant-numeric: tabular-nums; }
        .bill-foot {
            padding: 16px 20px 20px;
            background: transparent;
            border-top: 1px dashed #c8d0dc;
        }
        .bill-total-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 14px;
            padding: 8px 0 10px;
            border-bottom: 1px dashed #c8d0dc;
        }
        .bill-total-label { font-size: 13px; color: #5f6b7c; font-weight: 900; }
        .total-val { font-size: 30px; font-weight: 900; color: #1f3f78; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
        .bill-note-box {
            display: grid;
            gap: 7px;
            padding: 10px 0 12px;
            margin-bottom: 14px;
            border: none;
            border-bottom: 1px dashed #c8d0dc;
            border-radius: 0;
            background: transparent;
        }
        .bill-note-title {
            color: #253047;
            font-size: 12px;
            font-weight: 900;
            letter-spacing: 0.04em;
        }
        .bill-note-item {
            color: #647083;
            font-size: 11px;
            line-height: 1.55;
            padding-left: 12px;
            position: relative;
        }
        .bill-note-item::before {
            content: '-';
            position: absolute;
            left: 0;
            color: #8b96a8;
        }
        .bill-foot .btn-print,
        .bill-foot .btn-secondary {
            font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }
        .btn-print {
            width: 100%;
            background: var(--accent);
            color: white;
            border: none;
            padding: 13px;
            border-radius: var(--radius-sm);
            font-weight: 700;
            font-size: 15px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            text-decoration: none;
            transition: background 0.2s, transform 0.2s;
            box-shadow: none;
        }
        .btn-print:hover {
            background: #e89206;
            transform: translateY(-1px);
        }
        .btn-print:focus-visible,
        .btn-secondary:focus-visible,
        .history-btn:focus-visible,
        .history-action-btn:focus-visible {
            outline: 3px solid rgba(51, 88, 159, 0.18);
            outline-offset: 2px;
        }
        .btn-print:active { transform: translateY(0); }
        .btn-secondary {
            width: 100%;
            margin-top: 10px;
            background: white;
            color: var(--text-muted);
            border: 1px solid var(--border);
            padding: 10px;
            border-radius: var(--radius-sm);
            font-weight: 700;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s;
        }
        .btn-secondary:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: #f8fafc;
        }

        /* Mobile Bottom Bar */
        .mobile-bottom-bar {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            border-top: 1px solid var(--border);
            padding: 12px 16px;
            z-index: 1000;
            box-shadow: 0 -8px 24px rgba(28, 45, 77, 0.10);
        }
        .mobile-bar-inner {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .mobile-total {
            flex: 1;
        }
        .mobile-total-label { font-size: 12px; color: var(--text-muted); }
        .mobile-total-value { font-size: 22px; font-weight: 800; color: var(--primary); }
        .mobile-btn-print {
            background: var(--accent);
            color: white;
            border: none;
            padding: 14px 28px;
            border-radius: var(--radius-sm);
            font-weight: 700;
            font-size: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: none;
        }

        @media (max-width: 1200px) {
            .info-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .top-nav { margin: 0 10px; }
            .top-nav-item { padding: 0 10px; }
        }

        /* Mobile Styles */
        @media (max-width: 900px) {
            .main-container { padding: 16px; gap: 20px; }
            .sidebar { display: none; }
            .mobile-bottom-bar { display: block; }
            body { padding-bottom: 90px; }
            .info-card {
                grid-template-columns: 1fr;
                flex-direction: column;
                gap: 12px;
                padding: 16px;
                margin-bottom: 16px;
            }
            .input-span-2 { grid-column: span 1; }
            .info-card-head {
                padding-bottom: 10px;
            }
            .filter-card {
                position: static;
                flex-direction: column;
                align-items: stretch;
            }
            .filter-status { white-space: normal; }
            .list-header { display: none; }
            .cat-title { font-size: 15px; margin: 20px 0 10px 0; }
            .item-row {
                padding: 14px 16px;
                flex-direction: column;
                align-items: stretch;
                gap: 12px;
                min-height: 0;
            }
            .item-info {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
                padding-right: 34px;
            }
            .it-name { min-width: 0; font-size: 14px; }
            .it-price-box { font-size: 14px; justify-content: flex-start; }
            .it-note {
                font-size: 12px;
                white-space: normal;
                overflow: visible;
                text-overflow: clip;
            }
            .check-icon {
                position: absolute;
                top: 14px;
                right: 14px;
                width: 26px;
                height: 26px;
                margin-left: 0;
            }
            .item-row { position: relative; }
            .header { height: auto; }
            .header-inner {
                min-height: 58px;
                height: auto;
                padding: 8px 16px;
                flex-wrap: wrap;
                gap: 8px;
            }
            .logo-img { height: 32px; }
            .company-name { font-size: 16px; }
            .ai-brand { display: none; }
            .header-divider { display: none; }
            .top-nav {
                order: 3;
                width: 100%;
                margin: 0;
                display: flex;
            }
            .top-nav-item {
                flex: 1;
                justify-content: center;
                padding: 0 8px;
            }
            .history-btn { padding: 7px 10px; }
            .rendering-layout,
            .standard-layout,
            .construction-layout {
                grid-template-columns: 1fr;
            }
            .rendering-pro-layout {
                grid-template-columns: 1fr;
            }
            .rendering-filter-panel,
            .rendering-preview-panel {
                position: static;
            }
            .viewer-toolbar,
            .viewer-controls {
                flex-direction: column;
                align-items: stretch;
            }
            .viewer-frame {
                height: 360px;
            }
            .viewer-notes {
                grid-template-columns: 1fr;
            }
            .rendering-gallery {
                grid-template-columns: 1fr;
            }
            .rendering-detail-modal {
                padding: 14px;
            }
            .rendering-detail-cover {
                min-height: 240px;
                padding: 22px;
            }
            .rendering-detail-cover strong {
                font-size: 26px;
            }
            .rendering-detail-info {
                grid-template-columns: 1fr;
            }
            .brief-panel,
            .standard-side,
            .construction-side {
                position: static;
            }
            .construction-stage-grid {
                grid-template-columns: 1fr;
            }
            .construction-form,
            .construction-system-grid {
                grid-template-columns: 1fr;
            }
            .construction-detail-head {
                flex-direction: column;
            }
            .compact-btn {
                width: 100%;
            }
        }

        /* Animation */
        @keyframes slideIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .item-row { animation: slideIn 0.18s ease forwards; }

        /* Config Area */
        .config-area { flex: 1; min-width: 0; }
        
        /* 历史记录按钮 */
        .history-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 7px 13px;
            background: transparent;
            border: 1px solid var(--border);
            border-radius: 6px;
            color: #475569;
            font-size: 13px;
            cursor: pointer;
            text-decoration: none;
            transition: all 0.2s;
        }
        .history-btn:hover {
            background: #f8fafc;
            border-color: var(--border-strong);
            color: var(--primary);
        }
        
        /* 历史记录弹窗 */
        .history-modal {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        .history-modal.active { display: flex; }
        .history-content {
            background: #fff;
            border-radius: 12px;
            width: 90%;
            max-width: 600px;
            max-height: 80vh;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0,0,0,0.2);
        }
        .history-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            border-bottom: 1px solid #e2e8f0;
        }
        .history-header h3 {
            margin: 0;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 16px;
            color: #1e293b;
        }
        .history-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .history-action-btn {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 6px 10px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            color: #475569;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .history-action-btn:hover {
            border-color: #2563eb;
            color: #2563eb;
            background: #eff6ff;
        }
        .close-btn {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #94a3b8;
            padding: 0;
            line-height: 1;
        }
        .close-btn:hover { color: #475569; }
        .history-list {
            padding: 12px;
            max-height: 60vh;
            overflow-y: auto;
        }
        .history-item {
            padding: 14px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .history-item:hover { border-color: #2563eb; background: #f8fafc; }
        .history-item-left { flex: 1; }
        .history-item-title {
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 6px;
        }
        .history-item-info {
            display: flex;
            gap: 16px;
            font-size: 13px;
            color: #64748b;
            flex-wrap: wrap;
        }
        .history-item-info span { display: flex; align-items: center; gap: 4px; }
        .history-delete-btn {
            background: none;
            border: none;
            color: #94a3b8;
            cursor: pointer;
            padding: 8px;
            border-radius: 6px;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        .history-delete-btn:hover {
            background: #fee2e2;
            color: #dc2626;
        }
        .history-empty {
            text-align: center;
            padding: 40px;
            color: #94a3b8;
        }
