        :root {
            --primary-blue: #1e3a5f;
            --primary-dark: #152a45;
            --primary-light: #2d5a8f;
            --accent-red: #dc3545;
            --accent-red-dark: #c82333;
            --material-blue: #3498db;
            --labor-green: #28a745;
            --card-border: #e8ecf1;
            --card-bg: #ffffff;
            --bg-color: #f0f4f8;
            --text-primary: #1a202c;
            --text-secondary: #718096;
            --text-muted: #a0aec0;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
            --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
            --radius-sm: 6px;
            --radius-md: 10px;
            --radius-lg: 16px;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
            min-height: 100vh;
            color: var(--text-primary);
            line-height: 1.6;
        }
        
        .container {
            max-width: 1440px;
            padding: 0 20px;
        }
        
        /* 顶部导航栏 */
        .navbar {
            height: 70px;
            background: linear-gradient(145deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 48px;
            box-shadow: var(--shadow-md);
            margin-bottom: 32px;
            border-radius: 0 0 var(--radius-md) var(--radius-md);
            position: relative;
            overflow: hidden;
        }

        .navbar::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 300px;
            height: 100%;
            background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 100%);
            pointer-events: none;
        }

        .navbar-brand {
            font-size: 20px;
            font-weight: 700;
            color: #ffffff;
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            letter-spacing: -0.3px;
        }

        .navbar-brand:hover {
            color: #ffffff;
        }

        .navbar-brand i {
            font-size: 24px;
            opacity: 0.9;
        }

        .navbar-right {
            display: flex;
            align-items: center;
            gap: 28px;
            color: #ffffff;
            font-size: 15px;
            font-weight: 500;
        }

        .navbar-right span {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .navbar-right i {
            font-size: 18px;
            opacity: 0.9;
        }

        .navbar-right a {
            color: #ffffff;
            text-decoration: none;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            border-radius: var(--radius-sm);
            background: rgba(255,255,255,0.1);
        }

        .navbar-right a:hover {
            background: rgba(255,255,255,0.2);
            transform: translateY(-1px);
        }
        
        /* AI功能样式 */
        .ai-intro-card {
            position: relative;
            overflow: hidden;
        }
        .ai-intro-card::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: aiGlow 3s ease-in-out infinite;
        }
        @keyframes aiGlow {
            0%, 100% { transform: scale(1); opacity: 0.5; }
            50% { transform: scale(1.1); opacity: 0.8; }
        }
        
        .ai-quick-chat {
            transition: all 0.3s ease;
        }
        .ai-quick-chat:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0,0,0,0.12);
        }
        
        .ai-quick-buttons .btn {
            border-radius: 20px;
            font-size: 12px;
            padding: 6px 12px;
            transition: all 0.3s ease;
        }
        .ai-quick-buttons .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(22, 93, 255, 0.3);
        }
        
        /* 语音输入样式增强 */
        .voice-input-btn {
            border: 1px solid #e2e8f0;
            background: white;
            color: #64748b;
            padding: 6px 10px;
            border-radius: 6px;
            transition: all 0.3s ease;
        }
        .voice-input-btn:hover {
            background: #f8fafc;
            color: #165DFF;
            border-color: #165DFF;
        }
        .voice-input-btn.active {
            background: #fee2e2;
            color: #ef4444;
            border-color: #ef4444;
            animation: voicePulse 1s infinite;
        }
        @keyframes voicePulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
            50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
        }
        
        /* 主布局 - 左右分栏 */
        .main-layout {
            display: grid;
            grid-template-columns: 8fr 4fr;
            gap: 30px;
            margin-bottom: 30px;
        }
        
        /* 左右列定义 */
        .left-column {
            min-width: 0; /* 防止网格项溢出 */
        }
        
        .right-column {
            min-width: 0; /* 防止网格项溢出 */
            position: sticky;
            top: 20px;
            align-self: start;
            max-height: calc(100vh - 40px);
            display: flex;
            flex-direction: column;
        }

        /* 右侧滚动内容区域（滚动条隐藏，滚动功能保留） */
        .right-scroll-content {
            flex: 1;
            overflow-y: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
            min-height: 0;
        }
        .right-scroll-content::-webkit-scrollbar {
            display: none;
        }
        
        /* 卡片通用样式 */
        .card {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: var(--radius-md);
            padding: 28px;
            margin-bottom: 24px;
            box-shadow: var(--shadow-sm);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .card:hover {
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
        }
        
        /* 模块标题 */
        .section-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 24px;
            color: var(--primary-blue);
            display: flex;
            align-items: center;
            gap: 12px;
            padding-bottom: 16px;
            border-bottom: 2px solid var(--card-border);
            letter-spacing: -0.3px;
        }

        .section-title i {
            font-size: 22px;
            color: var(--primary-light);
        }
        
        .required::after {
            content: " *";
            color: var(--accent-red);
        }
        
        /* 表单样式 */
        .form-control, .form-select {
            border: 1.5px solid var(--card-border);
            border-radius: var(--radius-sm);
            padding: 12px 16px;
            font-size: 15px;
            color: #1a202c;
            transition: all 0.2s ease;
            background: #fafbfc;
        }

        .form-control:hover, .form-select:hover {
            border-color: #cbd5e0;
            background: #fff;
        }

        .form-control:focus, .form-select:focus {
            border-color: var(--primary-blue);
            box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.08);
            outline: none;
            background: #fff;
            color: #1a202c;
        }
        
        .form-control option, .form-select option {
            color: #1a202c;
            background: #fff;
        }

        .form-label {
            font-weight: 500;
            color: #1a202c;
            margin-bottom: 8px;
            font-size: 14px;
        }
        
        /* 房间卡片 */
        .room-card {
            background: linear-gradient(145deg, #fafbfc 0%, #f5f7fa 100%);
            border: 1.5px solid var(--card-border);
            border-radius: var(--radius-md);
            padding: 24px;
            margin-bottom: 24px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .room-card:hover {
            border-color: var(--primary-light);
            box-shadow: var(--shadow-md);
        }

        .room-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 2px solid var(--card-border);
        }

        .room-title {
            font-size: 17px;
            font-weight: 600;
            color: var(--primary-blue);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .room-title i {
            color: var(--primary-light);
            font-size: 20px;
        }

        .room-actions {
            display: flex;
            gap: 8px;
        }

        .btn-copy-room {
            background: #f0fff4;
            color: var(--labor-green);
            border: 1.5px solid #9ae6b4;
            border-radius: var(--radius-sm);
            padding: 8px 16px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .btn-copy-room:hover {
            background: var(--labor-green);
            border-color: var(--labor-green);
            color: white;
            transform: scale(1.02);
        }

        .btn-delete-room {
            background: #fff5f5;
            color: var(--accent-red);
            border: 1.5px solid #feb2b2;
            border-radius: var(--radius-sm);
            padding: 8px 16px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .btn-delete-room:hover {
            background: var(--accent-red);
            border-color: var(--accent-red);
            color: white;
            transform: scale(1.02);
        }
        
        /* 项目分类区域 */
        .category-section {
            background: white;
            border-radius: var(--radius-sm);
            padding: 20px;
            margin-bottom: 16px;
            border: 1.5px solid var(--card-border);
            transition: all 0.2s ease;
        }

        .category-section:hover {
            border-color: #cbd5e0;
            box-shadow: var(--shadow-sm);
        }

        .category-title {
            font-size: 15px;
            font-weight: 600;
            color: var(--primary-blue);
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 2px solid var(--card-border);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .category-title i {
            color: var(--primary-light);
        }

        .item-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .item-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #f7fafc;
            padding: 12px 16px;
            border-radius: var(--radius-sm);
            border: 1.5px solid transparent;
            transition: all 0.2s ease;
            color: #1a202c;
        }

        .item-row:hover {
            background: #e6f2ff;
            border-color: var(--primary-light);
        }

        .item-row.selected {
            background: #eff6ff;
            border-color: var(--primary-blue);
            color: #1a202c;
        }

        .item-checkbox-wrapper {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
        }

        .form-check-input {
            width: 20px;
            height: 20px;
            cursor: pointer;
            border: 2px solid #cbd5e0;
            border-radius: 4px;
            transition: all 0.2s ease;
        }

        .form-check-input:checked {
            background-color: var(--primary-blue);
            border-color: var(--primary-blue);
        }

        .form-check-label {
            cursor: pointer;
            font-size: 14px;
            color: var(--text-primary);
            font-weight: 500;
            user-select: none;
            margin: 0;
        }

        .item-name {
            font-weight: 500;
            color: #1a202c;
        }

        .item-unit-tag {
            display: inline-block;
            font-size: 11px;
            color: #38a169;
            background: #f0fff4;
            padding: 1px 6px;
            border-radius: 3px;
            margin-left: 6px;
            font-weight: 400;
            vertical-align: middle;
        }

        .item-details {
            display: flex;
            align-items: center;
            gap: 16px;
            font-size: 13px;
            color: #1a202c;
        }

        .item-price {
            color: var(--text-secondary);
            white-space: nowrap;
        }

        .item-calc {
            color: var(--accent-red);
            font-weight: 600;
            min-width: 100px;
            text-align: right;
            white-space: nowrap;
        }

        .item-calc:empty {
            display: none;
        }

        /* 项目搜索框 */
        .item-search-box {
            background: #f8fafc;
            padding: 12px 16px;
            border-radius: var(--radius-sm);
            border: 1.5px solid var(--card-border);
        }

        .item-search-box .input-group-text {
            background: white;
            border: 1.5px solid var(--card-border);
            border-right: none;
            color: var(--text-secondary);
        }

        .item-search-box .form-control {
            border: 1.5px solid var(--card-border);
            border-left: none;
        }

        .item-search-box .form-control:focus {
            box-shadow: none;
            border-color: var(--card-border);
        }

        .item-row.hidden {
            display: none;
        }

        .category-section.hidden {
            display: none;
        }

        .category-section .item-count {
            font-size: 13px;
            color: var(--text-secondary);
            font-weight: 400;
            margin-left: 8px;
        }

        .no-match-message {
            text-align: center;
            padding: 20px;
            color: var(--text-secondary);
            font-size: 14px;
        }
        
        /* 右侧汇总区 */
        /* 汇总卡片（深色渐变） */
        .summary-card {
            background: linear-gradient(145deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
            border-radius: var(--radius-lg);
            padding: 32px;
            color: #ffffff;
            box-shadow: var(--shadow-lg);
            position: relative;
            overflow: hidden;
            margin-bottom: 24px;
        }

        .summary-card::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            pointer-events: none;
            z-index: 0;
        }

        /* 确保卡片内容在装饰层之上 */
        .summary-card > *,
        .final-price-section > * {
            position: relative;
            z-index: 1;
        }

        .summary-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            gap: 12px;
            opacity: 0.95;
        }

        .summary-total {
            text-align: center;
            padding: 24px 0;
            position: relative;
            z-index: 1;
        }

        .total-label {
            font-size: 15px;
            font-weight: 500;
            opacity: 0.85;
            margin-bottom: 12px;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        .total-price {
            font-size: 48px;
            font-weight: 800;
            color: #ffffff;
            margin-bottom: 8px;
            line-height: 1;
            font-family: 'Segoe UI', Arial, sans-serif;
            text-shadow: 0 2px 8px rgba(0,0,0,0.3);
            letter-spacing: -1px;
        }

        .total-unit {
            font-size: 16px;
            opacity: 0.7;
            font-weight: 500;
        }
        
        /* 费用明细 */
        .cost-detail {
            background: white;
            border: 1.5px solid var(--card-border);
            border-radius: var(--radius-md);
            padding: 24px;
            margin-bottom: 24px;
            box-shadow: var(--shadow-sm);
        }

        .cost-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 0;
            border-bottom: 1px solid #edf2f7;
        }

        .cost-item:last-child {
            border-bottom: none;
            padding-top: 16px;
            margin-top: 8px;
            border-top: 2px solid var(--card-border);
        }

        .cost-name {
            font-size: 15px;
            color: var(--text-primary);
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .cost-name i {
            font-size: 18px;
            opacity: 0.7;
        }

        .cost-value {
            font-size: 18px;
            font-weight: 700;
            font-family: 'Segoe UI', Arial, sans-serif;
            letter-spacing: -0.5px;
        }

        .cost-material { color: var(--material-blue); }
        .cost-labor { color: var(--labor-green); }
        .cost-manage { color: var(--text-secondary); }
        .cost-subtotal { color: var(--accent-red); font-size: 20px; }
        
        /* 优惠折扣区 */
        .discount-section {
            background: white;
            border: 1.5px solid var(--card-border);
            border-radius: var(--radius-md);
            padding: 24px;
            margin-bottom: 24px;
            box-shadow: var(--shadow-sm);
        }

        .discount-input-group {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 20px;
        }

        .discount-label {
            font-size: 15px;
            color: var(--text-primary);
            min-width: 80px;
            font-weight: 500;
        }

        .discount-input {
            flex: 1;
            height: 48px;
            border: 2px solid var(--card-border);
            border-radius: var(--radius-sm);
            padding: 0 16px;
            font-size: 18px;
            font-weight: 600;
            text-align: center;
            color: var(--primary-blue);
            transition: all 0.2s ease;
        }

        .discount-input:focus {
            border-color: var(--primary-blue);
            box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.08);
            outline: none;
        }

        .discount-unit {
            font-size: 16px;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .discount-amount {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 16px;
            border-top: 2px solid #edf2f7;
        }

        .discount-amount-label {
            font-size: 15px;
            color: var(--text-primary);
            font-weight: 500;
        }

        .discount-amount-value {
            font-size: 22px;
            font-weight: 700;
            color: var(--accent-red);
            font-family: 'Segoe UI', Arial, sans-serif;
        }
        
        /* 优惠后总价 */
        .final-price-section {
            background: linear-gradient(145deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
            border-radius: var(--radius-lg);
            padding: 28px;
            text-align: center;
            color: #ffffff;
            box-shadow: 0 8px 25px rgba(220, 53, 69, 0.35);
            flex-shrink: 0;
            z-index: 10;
            overflow: hidden;
            margin-bottom: 0;
            margin-top: 12px;
        }

        .final-price-section::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
            pointer-events: none;
            z-index: 0;
        }

        .final-price-title {
            font-size: 16px;
            font-weight: 500;
            opacity: 0.9;
            margin-bottom: 16px;
            letter-spacing: 1px;
        }

        .final-price-value {
            font-size: 44px;
            font-weight: 800;
            color: #ffffff;
            margin-bottom: 8px;
            line-height: 1;
            font-family: 'Segoe UI', Arial, sans-serif;
            text-shadow: 0 2px 8px rgba(0,0,0,0.25);
            letter-spacing: -1px;
            position: relative;
            z-index: 1;
        }

        .final-price-unit {
            font-size: 15px;
            opacity: 0.75;
            font-weight: 500;
        }

        .final-price-note {
            font-size: 13px;
            opacity: 0.85;
            margin-top: 12px;
            font-weight: 500;
            position: relative;
            z-index: 1;
        }
        
        /* 操作按钮 */
        .action-buttons {
            display: flex;
            flex-shrink: 0;
            z-index: 10;
            background: #f0f4f8;
            padding: 12px 0;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 0;
        }

        .btn-primary {
            width: 100%;
            height: 52px;
            background: linear-gradient(145deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
            border: none;
            border-radius: var(--radius-sm);
            color: #ffffff;
            font-size: 17px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 12px rgba(30, 58, 95, 0.25);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .btn-primary:hover {
            background: linear-gradient(145deg, var(--primary-light) 0%, var(--primary-blue) 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(30, 58, 95, 0.35);
        }

        .btn-primary:active {
            transform: translateY(0);
        }

        .btn-secondary-group {
            display: flex;
            gap: 12px;
        }

        .btn-secondary {
            flex: 1;
            height: 44px;
            background: white;
            border: 2px solid var(--primary-blue);
            border-radius: var(--radius-sm);
            color: var(--primary-blue);
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-secondary:hover {
            background: var(--primary-blue);
            color: white;
            transform: translateY(-1px);
        }

        .btn-add-room {
            width: 100%;
            height: 52px;
            background: linear-gradient(145deg, #f7fafc 0%, #edf2f7 100%);
            border: 2px dashed var(--primary-light);
            border-radius: var(--radius-sm);
            color: var(--primary-blue);
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-bottom: 24px;
        }

        .btn-add-room:hover {
            background: linear-gradient(145deg, #e6f2ff 0%, #d4e8ff 100%);
            border-color: var(--primary-blue);
            border-style: solid;
            transform: translateY(-1px);
        }
        
        /* 底部说明 */
        .bottom-notice {
            background: linear-gradient(145deg, #f7fafc 0%, #edf2f7 100%);
            border: 1.5px solid var(--card-border);
            border-radius: var(--radius-md);
            padding: 20px;
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.7;
            margin-bottom: 24px;
        }

        .notice-item {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 10px;
        }

        .notice-item:last-child {
            margin-bottom: 0;
        }

        .notice-icon {
            color: var(--primary-blue);
            font-size: 16px;
            flex-shrink: 0;
        }
        
        /* 响应式设计 */
        @media (max-width: 1199px) {
            .main-layout {
                grid-template-columns: 1fr;
                gap: 24px;
            }

            .navbar {
                padding: 0 24px;
            }

            .right-column {
                order: -1;
                position: relative;
                max-height: none;
                display: block;
            }
            .right-scroll-content {
                overflow-y: visible;
                flex: none;
            }
        }

        @media (max-width: 768px) {
            .container {
                padding: 0 16px;
            }

            .navbar {
                height: auto;
                padding: 16px 20px;
                flex-direction: column;
                gap: 16px;
            }

            .navbar-brand {
                font-size: 18px;
            }

            .navbar-right {
                flex-wrap: wrap;
                justify-content: center;
                gap: 16px;
                font-size: 14px;
            }

            .card {
                padding: 20px;
            }

            .section-title {
                font-size: 17px;
            }

            .total-price {
                font-size: 36px;
            }

            .final-price-value {
                font-size: 32px;
            }

            .item-checkboxes {
                gap: 10px;
            }

            .form-check {
                padding: 8px 12px;
            }
        }
        
        /* 动画效果 */
        .fade-in {
            animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(12px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* 档次模板样式 */
        .template-option {
            background: linear-gradient(145deg, #f7fafc 0%, #edf2f7 100%);
            border: 2px solid var(--card-border);
            border-radius: var(--radius-sm);
            padding: 16px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
            color: #1a202c;
        }

        .template-option:hover {
            border-color: var(--primary-light);
            background: linear-gradient(145deg, #e6f2ff 0%, #d4e8ff 100%);
        }

        .template-option label {
            color: #1a202c;
        }

        .template-option input:checked + label {
            color: var(--primary-blue);
            font-weight: 600;
        }

        .template-option input:checked {
            background-color: var(--primary-blue);
            border-color: var(--primary-blue);
        }
        .page-header {
            margin-bottom: 28px;
            padding-bottom: 20px;
            border-bottom: 3px solid var(--primary-blue);
        }
        .page-title {
            font-size: 28px;
            font-weight: 800;
            color: var(--text-primary);
            margin: 0 0 6px 0;
            letter-spacing: -0.5px;
        }
        .page-subtitle {
            font-size: 14px;
            color: var(--text-secondary);
            margin: 0;
        }

        /* 移动端底部固定操作栏 */
        @media (max-width: 1199px) {
            .mobile-sticky-bar {
                display: flex;
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                background: white;
                border-top: 1px solid var(--card-border);
                padding: 12px 16px;
                gap: 12px;
                z-index: 1000;
                box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
                align-items: center;
            }
            .mobile-sticky-bar .sticky-price {
                flex: 1;
                text-align: center;
            }
            .mobile-sticky-bar .sticky-price-label {
                font-size: 12px;
                color: var(--text-secondary);
            }
            .mobile-sticky-bar .sticky-price-value {
                font-size: 22px;
                font-weight: 800;
                color: var(--accent-red);
                line-height: 1.2;
            }
            .mobile-sticky-bar .btn-generate {
                flex: 2;
                height: 48px;
                background: linear-gradient(145deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
                border: none;
                border-radius: var(--radius-sm);
                color: white;
                font-size: 16px;
                font-weight: 600;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
            }
            .mobile-sticky-bar .btn-generate:active {
                transform: scale(0.98);
            }
            /* 给页面底部留出空间 */
            body {
                padding-bottom: 80px;
            }
        }
        @media (min-width: 1200px) {
            .mobile-sticky-bar {
                display: none;
            }
        }

        /* 模板选中高亮 */
        .template-option input:checked ~ label,
        .template-option:has(input:checked) {
            border-color: var(--primary-blue) !important;
            background: linear-gradient(145deg, #e6f2ff 0%, #d4e8ff 100%) !important;
            box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
        }
        .template-option:has(input:checked) label {
            color: var(--primary-blue);
            font-weight: 700;
        }
        .template-option:has(input:checked) small {
            color: var(--primary-light) !important;
        }

        /* 语音提示可折叠 */
        .voice-tip-toggle {
            cursor: pointer;
            color: var(--primary-blue);
            font-size: 13px;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: none;
            border: none;
            padding: 4px 0;
            margin-top: 12px;
        }
        .voice-tip-toggle:hover {
            opacity: 0.8;
        }
        .voice-tip-content {
            display: none;
            margin-top: 8px;
        }
        .voice-tip-content.show {
            display: block;
        }

        /* 页脚 */
        .site-footer {
            text-align: center;
            padding: 32px 20px;
            margin-top: 40px;
            color: var(--text-secondary);
            font-size: 13px;
            border-top: 1px solid var(--card-border);
        }
        .site-footer a {
            color: var(--primary-blue);
            text-decoration: none;
            font-weight: 500;
        }
        .site-footer a:hover {
            text-decoration: underline;
        }
        .site-footer .footer-links {
            display: flex;
            justify-content: center;
            gap: 24px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }

/* ===== 房屋类型选择器 ===== */
.house-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 4px 0;
}
.house-type-option {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fff;
}
.house-type-option:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(30,58,95,0.1);
    transform: translateY(-1px);
}
.house-type-option.active {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, #ebf4ff 0%, #dbeafe 100%);
    box-shadow: 0 4px 12px rgba(30,58,95,0.15);
}
.house-type-option i {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
    color: #64748b;
}
.house-type-option.active i {
    color: var(--primary-blue);
}
.house-type-name {
    font-weight: 600;
    font-size: 15px;
    color: #1a202c;
    display: block;
    margin-bottom: 4px;
}
.house-type-desc {
    font-size: 12px;
    color: #64748b;
}

/* 移动端适配 */
@media (max-width: 576px) {
    .house-type-selector {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .house-type-option {
        padding: 12px 8px;
    }
    .house-type-option i {
        font-size: 22px;
        margin-bottom: 4px;
    }
    .house-type-name {
        font-size: 13px;
    }
    .house-type-desc {
        font-size: 11px;
    }
}

/* ========== 方案选择卡片 ========== */
.scheme-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.scheme-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    border-color: #bdd3e8 !important;
}

.scheme-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scheme-card:hover::after {
    opacity: 1;
}

@media (max-width: 767px) {
    .scheme-card {
        margin-bottom: 12px;
        padding: 16px !important;
    }
    .scheme-card .fw-bold {
        font-size: 20px !important;
    }
}

/* 费率提示小字 */
.cost-rate-hint {
    font-size: 11px;
    font-weight: 400;
    color: #8899aa;
    margin-left: 2px;
}

.cost-subtotal-row {
    border-top: 2px dashed #e2e8f0;
    padding-top: 8px;
    margin-top: 4px;
}
