    /* 🌍 确保国家、认证、电压第一行在任何分FDR辨率与容器下均严格保持一行三列水平并排 */
    .signal-power-config-page .spc-country-select-row,
    .spc-country-select-row {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
        align-items: flex-start !important;
        margin-bottom: 0.85rem !important;
        padding-bottom: 0.85rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .signal-power-config-page .spc-country-field-group,
    .spc-country-field-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .signal-power-config-page .spc-country-field-label,
    .spc-country-field-label {
        display: block !important;
        font-size: 0.84rem !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        line-height: 1.2 !important;
        height: 18px !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .signal-power-config-page .spc-country-field-control,
    .spc-country-field-control {
        position: relative !important;
        width: 100% !important;
        height: 38px !important;
        box-sizing: border-box !important;
    }

    .signal-power-config-page .spc-country-field-control select,
    .spc-country-field-control select {
        width: 100% !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 10px !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 8px !important;
        background-color: #ffffff !important;
        color: #0f172a !important;
        font-size: 0.86rem !important;
        font-weight: 500 !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
        box-sizing: border-box !important;
    }

    /* 页面包装器和主要布局 - 全白背景 */
    .signal-power-config-page {
        min-height: 100vh;
        background: white;
        padding: 2rem 1rem;
        font-family: 'Microsoft YaHei', Arial, sans-serif;
    }

    /* 统一标题样式 - 遵循设计规范 */
    .signal-power-config-page h1,
    .signal-power-config-page .page-title {
        background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-align: center;
        font-size: 2.5rem;
        font-weight: 700;
        margin: 0 0 1.5rem 0;
        letter-spacing: -0.02em;
    }

    .signal-power-config-page h2,
    .signal-power-config-page .section-title {
        background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        font-size: 1.5rem;
        font-weight: 600;
        margin: 0 0 1.5rem 0;
    }

    /* 页面标题区域布局 - 滑块在左上角 */
    .page-header-with-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1.5rem;
        gap: 1.5rem;
    }

    /* 配置类型滑块容器 */
    .config-type-toggle-wrapper {
        flex-shrink: 0;
    }

    /* 配置类型滑块标签 */
    .config-toggle-label {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        cursor: pointer;
        font-size: 0.95rem;
        font-weight: 600;
        color: #374151;
        user-select: none;
        padding: 0.5rem 1rem;
        border-radius: 12px;
        transition: all 0.3s ease;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        border: 2px solid #e2e8f0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .config-toggle-label:hover {
        border-color: var(--primary-color);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
        transform: translateY(-2px);
    }

    /* 滑块标签文字 */
    .toggle-label-text {
        font-weight: 600;
        color: #4b5563;
        transition: color 0.3s ease;
        font-size: 0.9rem;
    }

    /* 激活状态的标签文字 - 使用JavaScript类控制 */
    .toggle-label-text.active {
        color: var(--primary-color);
    }

    /* 滑块开关容器 */
    .config-toggle-switch {
        position: relative;
        display: inline-block;
        width: 56px;
        height: 28px;
        flex-shrink: 0;
    }

    /* 隐藏原始checkbox */
    .config-toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
        position: absolute;
    }

    /* 滑块轨道 */
    .config-toggle-slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 28px;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
        border: 2px solid #e2e8f0;
    }

    /* 滑块圆形按钮 */
    .config-toggle-slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        top: 2px;
        left: 4px;
        bottom: 4px;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 50%;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    /* 激活状态的滑块轨道 */
    .config-toggle-switch input:checked+.config-toggle-slider {
        background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%);
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    }

    /* 激活状态的滑块按钮位置 */
    .config-toggle-switch input:checked+.config-toggle-slider:before {
        transform: translateX(28px);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    }

    /* 移动端适配 */
    @media (max-width: 768px) {
        .page-header-with-toggle {
            flex-direction: column;
            align-items: flex-start;
            gap: 1rem;
        }

        .config-type-toggle-wrapper {
            width: 100%;
        }

        .config-toggle-label {
            width: 100%;
            justify-content: center;
            padding: 0.75rem 1rem;
        }

        .config-toggle-switch {
            width: 52px;
            height: 26px;
        }

        .config-toggle-slider:before {
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
        }

        .config-toggle-switch input:checked+.config-toggle-slider:before {
            transform: translateX(26px);
        }
    }

    /* 容器优化 - 简洁白色设计 */
    .container-old {
        max-width: 1600px;
        margin: 0 auto;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border: 1px solid #e5e7eb;
        overflow: hidden;
    }

    /* 表单区域优化 - 更紧凑全白 */
    .form-section {
        padding: 1.5rem;
        background: white;
        border-radius: 12px 12px 0 0;
    }

    .spc-project-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        border: 1px solid var(--gray-200);
        background: #ffffff;
        border-radius: 12px;
        padding: 12px 14px;
        margin-bottom: 16px;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    }

    .spc-project-toolbar-title {
        font-weight: 600;
        color: var(--text-primary);
    }

    .spc-project-current {
        color: var(--text-secondary);
        font-size: 0.9rem;
    }

    .spc-project-current strong {
        color: var(--primary-color);
    }

    .spc-project-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    #spcProjectToolbar .spc-project-btn,
    #spcSaveProjectModal .spc-project-btn,
    #spcLoadProjectModal .spc-project-btn,
    #spcProjectNoticeModal .spc-project-btn,
    #spcProjectConfirmModal .spc-project-btn {
        appearance: none !important;
        -webkit-appearance: none !important;
        border: 1px solid var(--gray-300) !important;
        background: var(--gray-50) !important;
        color: var(--text-primary) !important;
        border-radius: 10px !important;
        padding: 7px 12px !important;
        font-size: 0.86rem !important;
        line-height: 1.2 !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        font-weight: 600 !important;
        min-height: 34px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        box-shadow: none !important;
    }

    #spcProjectToolbar .spc-project-btn:hover,
    #spcSaveProjectModal .spc-project-btn:hover,
    #spcLoadProjectModal .spc-project-btn:hover,
    #spcProjectNoticeModal .spc-project-btn:hover,
    #spcProjectConfirmModal .spc-project-btn:hover {
        transform: translateY(-1px);
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    #spcProjectToolbar .spc-project-btn.spc-project-btn-primary,
    #spcSaveProjectModal .spc-project-btn.spc-project-btn-primary,
    #spcLoadProjectModal .spc-project-btn.spc-project-btn-primary,
    #spcProjectNoticeModal .spc-project-btn.spc-project-btn-primary,
    #spcProjectConfirmModal .spc-project-btn.spc-project-btn-primary {
        background: var(--primary-gradient) !important;
        color: #fff !important;
        border-color: transparent !important;
    }

    #spcProjectToolbar .spc-project-btn.spc-project-btn-primary:hover,
    #spcSaveProjectModal .spc-project-btn.spc-project-btn-primary:hover,
    #spcLoadProjectModal .spc-project-btn.spc-project-btn-primary:hover,
    #spcProjectNoticeModal .spc-project-btn.spc-project-btn-primary:hover,
    #spcProjectConfirmModal .spc-project-btn.spc-project-btn-primary:hover {
        color: #fff !important;
        opacity: 0.95 !important;
    }

    .spc-project-modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1200;
        padding: 20px;
    }

    .spc-project-modal-overlay.active {
        display: flex;
    }

    .spc-project-modal {
        width: min(640px, 96vw);
        max-height: 85vh;
        overflow: auto;
        background: #fff;
        border-radius: 14px;
        border: 1px solid var(--gray-200);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
        padding: 18px;
    }

    .spc-project-modal h3 {
        margin: 0 0 12px 0;
        font-size: 1.12rem;
        color: var(--text-primary);
    }

    .spc-project-modal .spc-project-form-group {
        margin-bottom: 12px;
    }

    .spc-project-modal label {
        display: block;
        margin-bottom: 6px;
        font-weight: 600;
        color: var(--text-secondary);
    }

    .spc-project-modal input,
    .spc-project-modal textarea {
        width: 100%;
        border: 1px solid var(--gray-300);
        border-radius: 10px;
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .spc-project-modal textarea {
        min-height: 80px;
        resize: vertical;
    }

    .spc-project-modal-actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 14px;
    }

    .spc-project-helper-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-top: 8px;
    }

    #spcSaveProjectModal .spc-project-helper-btn,
    #spcLoadProjectModal .spc-project-helper-btn,
    #spcProjectNoticeModal .spc-project-helper-btn,
    #spcProjectConfirmModal .spc-project-helper-btn {
        appearance: none !important;
        -webkit-appearance: none !important;
        border: 1px dashed var(--gray-300) !important;
        background: #ffffff !important;
        color: var(--text-secondary) !important;
        border-radius: 10px !important;
        padding: 6px 10px !important;
        font-size: 0.82rem !important;
        line-height: 1.2 !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        box-shadow: none !important;
        min-height: 30px !important;
        font-weight: 500 !important;
    }

    #spcSaveProjectModal .spc-project-helper-btn:hover,
    #spcLoadProjectModal .spc-project-helper-btn:hover,
    #spcProjectNoticeModal .spc-project-helper-btn:hover,
    #spcProjectConfirmModal .spc-project-helper-btn:hover {
        border-color: var(--primary-color) !important;
        color: var(--primary-color) !important;
        background: #ffffff !important;
    }

    .spc-project-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .spc-project-item {
        border: 1px solid var(--gray-200);
        border-radius: 10px;
        padding: 10px 12px;
        background: #fff;
    }

    .spc-project-item-title {
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 4px;
    }

    .spc-project-item-meta {
        font-size: 0.82rem;
        color: var(--text-muted);
        margin-bottom: 8px;
    }

    .spc-project-item-actions {
        display: flex;
        gap: 8px;
    }

    .spc-project-empty {
        border: 1px dashed var(--gray-300);
        border-radius: 10px;
        padding: 14px;
        text-align: center;
        color: var(--text-muted);
        background: var(--gray-50);
    }

    .spc-project-notice-body {
        color: var(--text-primary);
        line-height: 1.55;
        margin-top: 6px;
        margin-bottom: 12px;
    }

    /* 现代化表单网格 - 更紧凑 */
    .form-grid,
    .form-grid4 {
        display: grid;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .form-grid4 {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    /* 在form-grid4中占满整行 */
    .form-grid4>.full-row-field {
        grid-column: 1 / -1;
    }

    /* Apple风格筛选区域 */
    .apple-filter-panel {
        background: #f5f5f7;
        border: 1px solid #e5e5ea;
        border-radius: 18px;
        padding: 14px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        min-width: 0;
        overflow: hidden;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.04);
    }

    .apple-filter-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px;
    }

    .apple-filter-stack {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        min-width: 0;
    }

    .apple-filter-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 14px 16px;
        min-width: 0;
        position: relative;
        overflow: visible !important;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .apple-filter-card:hover {
        border-color: #cbd5e1;
    }

    .apple-filter-card:has(.spc-apple-select-wrapper.is-open),
    .apple-filter-card.has-open-select {
        z-index: 100 !important;
        border-color: #0071e3 !important;
        box-shadow: 0 4px 16px rgba(0, 113, 227, 0.08);
    }

    .apple-filter-card>label {
        display: block;
        color: #1e293b;
        font-size: 0.88rem;
        font-weight: 600;
        margin-bottom: 0.55rem;
        letter-spacing: -0.01em;
    }

    .apple-filter-card select {
        border: 1px solid #d2d2d7;
        border-radius: 12px;
        box-shadow: none;
    }

    .apple-filter-card select:focus {
        border-color: #0071e3;
        box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.16);
        transform: none;
    }

    @media (max-width: 768px) {
        .apple-filter-grid {
            grid-template-columns: 1fr !important;
            gap: 10px;
        }

        .apple-filter-panel {
            padding: 12px;
            border-radius: 14px;
        }

        .apple-filter-card {
            padding: 12px 14px;
            border-radius: 12px;
        }
    }

    /* 特殊布局：点间距、刷新率和HDR在同一行 */
    .form-grid-inline {
        display: grid;
        grid-template-columns: 2fr 1fr auto;
        gap: 1rem;
        align-items: start;
        margin-bottom: 1.5rem;
    }

    /* 确保所有标题在同一基线 */
    .form-grid-inline>div {
        display: flex;
        flex-direction: column;
    }

    .form-grid-inline>div>label {
        height: 1.2em;
        margin-bottom: 0.375rem;
    }

    /* HDR滑动开关样式 */
    .form-grid-inline .checkbox-wrapper-5 {
        align-self: flex-start;
    }

    /* 输入框和选择框样式优化 - 更紧凑 */
    .signal-power-config-page input[type="text"],
    .signal-power-config-page input[type="number"],
    .signal-power-config-page input[type="email"],
    .signal-power-config-page select {
        width: 100%;
        padding: 0.75rem 0.875rem;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        font-size: 0.95rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: white;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .signal-power-config-page input[type="text"]:focus,
    .signal-power-config-page input[type="number"]:focus,
    .signal-power-config-page input[type="email"]:focus,
    .signal-power-config-page select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        outline: none;
        transform: translateY(-2px);
    }

    /* Native keyboard/screen-reader support with the existing AppleSelect appearance. */
    .signal-power-config-page select.no-apple-select.spc-apple-select-trigger {
        display: block !important;
        text-align: left !important;
        text-align-last: left !important;
        height: 38px !important;
        min-height: 38px !important;
        appearance: auto;
        -webkit-appearance: auto;
    }

    .signal-power-config-page select.no-apple-select.spc-apple-select-trigger:focus-visible {
        outline: 2px solid #0071e3;
        outline-offset: 2px;
        transform: none;
    }

    .spc-voltage-field,
    .spc-current-field {
        min-width: 0;
        position: relative;
    }

    .spc-voltage-label-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-bottom: 0.375rem !important;
        padding-right: 0 !important;
        width: 100% !important;
        position: relative !important;
    }

    .signal-power-config-page .spc-voltage-label-row label {
        margin-bottom: 0 !important;
        flex: 1 1 auto;
        min-width: 0;
    }

    .signal-power-config-page .spc-voltage-field .spc-voltage-gear-btn {
        all: unset;
        box-sizing: border-box;
        width: 2rem !important;
        min-width: 2rem !important;
        max-width: 2rem !important;
        height: 2rem !important;
        min-height: 2rem !important;
        max-height: 2rem !important;
        padding: 0 !important;
        margin: 0 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        flex: 0 0 auto !important;
        border: 1px solid #c7cfda !important;
        border-radius: 999px !important;
        background: #ffffff !important;
        box-shadow: none !important;
        color: #1e3a8a !important;
        cursor: pointer !important;
        line-height: 1;
        appearance: none;
        -webkit-appearance: none;
        transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

    .signal-power-config-page .spc-voltage-field .spc-voltage-gear-btn:hover,
    .signal-power-config-page .spc-voltage-field .spc-voltage-gear-btn.spc-is-active {
        border-color: #1e3a8a !important;
        background: #eff6ff !important;
        color: #1d4ed8 !important;
        box-shadow: none !important;
    }

    .signal-power-config-page .spc-voltage-field .spc-voltage-gear-btn:hover {
        transform: translateY(-1px) !important;
    }

    .signal-power-config-page .spc-voltage-field .spc-voltage-gear-btn:active {
        transform: translateY(0) !important;
        background: #dbeafe !important;
        box-shadow: none !important;
    }

    .signal-power-config-page .spc-voltage-field .spc-voltage-gear-btn svg {
        width: 1rem;
        height: 1rem;
        display: block;
        flex: 0 0 auto;
    }

    .spc-voltage-custom-control {
        display: none !important;
        align-items: center;
        gap: 0.625rem;
        width: 100%;
    }

    /* 非自定义状态（下拉框模式）：绝对隐藏输入框，显示下拉框 */
    .spc-voltage-field:not(.spc-is-custom) .spc-voltage-custom-control,
    .spc-current-field:not(.spc-is-custom) .spc-voltage-custom-control {
        display: none !important;
    }

    .spc-voltage-field:not(.spc-is-custom) .spc-voltage-select:not(.has-apple-select),
    .spc-voltage-field:not(.spc-is-custom) .spc-apple-select-wrapper,
    .spc-current-field:not(.spc-is-custom) .spc-voltage-select:not(.has-apple-select),
    .spc-current-field:not(.spc-is-custom) .spc-apple-select-wrapper {
        display: block !important;
    }

    /* 自定义状态（输入框模式）：绝对隐藏下拉框（含原生 select 与 Apple Select 包装器），显示输入框 */
    .spc-voltage-field.spc-is-custom .spc-voltage-select,
    .spc-voltage-field.spc-is-custom .spc-apple-select-wrapper,
    .spc-voltage-field.spc-is-custom select,
    .spc-current-field.spc-is-custom .spc-voltage-select,
    .spc-current-field.spc-is-custom .spc-apple-select-wrapper,
    .spc-current-field.spc-is-custom select {
        display: none !important;
    }

    .spc-voltage-field.spc-is-custom .spc-voltage-custom-control,
    .spc-current-field.spc-is-custom .spc-voltage-custom-control {
        display: flex !important;
    }

    .signal-power-config-page .spc-voltage-custom-control input[type="number"] {
        width: auto;
        min-width: 0;
        flex: 1 1 auto;
        padding-right: 0.875rem;
    }

    .spc-voltage-unit {
        flex: 0 0 auto;
        align-self: center;
        color: #64748b;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1;
        pointer-events: none;
    }

    /* 标签样式优化 - 更紧凑 */
    .signal-power-config-page label {
        display: block;
        font-weight: 600;
        color: #374151;
        margin-bottom: 0.375rem;
        font-size: 0.9rem;
    }

    /* 接口需求可视化选择 */
    .interface-selector-block {
        background: #f8fafc;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 0.75rem;
        min-width: 0;
        overflow: hidden;
    }

    .interface-selector-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .interface-selector-header-left {
        display: flex;
        align-items: flex-start;
        gap: 0.6rem;
        min-width: 0;
        flex: 1;
    }

    .interface-selector-title-wrap {
        min-width: 0;
    }

    .interface-selector-label {
        margin: 0;
    }

    .interface-selector-summary {
        display: block;
        margin-top: 0.25rem;
        font-size: 0.8rem;
        color: #6b7280;
        line-height: 1.35;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .section-check-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.42rem;
        cursor: pointer;
        user-select: none;
        white-space: nowrap;
        color: #0071e3;
        font-size: 0.84rem;
        font-weight: 600;
    }

    .section-check-toggle.left-check {
        margin-top: 0.08rem;
        flex: 0 0 auto;
        gap: 0;
    }

    .apple-filter-panel .spc-resolution-override {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        min-height: 2.75rem;
        margin: 0.75rem 0 0;
        padding-block-start: 0.35rem;
        border-block-start: 1px solid rgba(128, 128, 128, 0.24);
        cursor: pointer;
    }

    .apple-filter-panel .spc-resolution-override[hidden] {
        display: none;
    }

    .spc-resolution-override input {
        flex: 0 0 auto;
        width: 1rem;
        height: 1rem;
        margin: 0;
        accent-color: var(--primary-color, #0071e3);
    }

    .section-expand-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 68px;
        padding: 4px 12px;
        border-radius: 8px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        background: rgba(0, 0, 0, 0.03);
        color: #475569;
        font-size: 0.8rem;
        font-weight: 500;
        line-height: 1.2;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        white-space: nowrap;
        user-select: none;
    }

    .section-expand-toggle:hover {
        background: rgba(0, 113, 227, 0.08);
        border-color: rgba(0, 113, 227, 0.25);
        color: #0071e3;
        transform: translateY(-0.5px);
    }

    .section-expand-toggle[aria-expanded="true"] {
        background: rgba(0, 113, 227, 0.08);
        border-color: rgba(0, 113, 227, 0.3);
        color: #0071e3;
        font-weight: 600;
    }

    .section-expand-toggle:focus-visible {
        outline: 2px solid rgba(0, 113, 227, 0.28);
        outline-offset: 1px;
    }

    .section-check-toggle input[type="checkbox"] {
        -webkit-appearance: none;
        appearance: none;
        width: 18px;
        height: 18px;
        border: 1px solid #c7cad1;
        border-radius: 5px;
        background: #fff;
        margin: 0;
        display: inline-grid;
        place-items: center;
        transition: all 0.2s ease;
    }

    .section-check-toggle input[type="checkbox"]::after {
        content: "";
        width: 10px;
        height: 6px;
        border: 2px solid #fff;
        border-top: none;
        border-right: none;
        transform: rotate(-45deg) scale(0);
        transform-origin: center;
        transition: transform 0.15s ease;
        margin-top: -1px;
    }

    .section-check-toggle input[type="checkbox"]:checked {
        background: #0071e3;
        border-color: #0071e3;
    }

    .section-check-toggle input[type="checkbox"]:checked::after {
        transform: rotate(-45deg) scale(1);
    }

    .interface-collapsible-content {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px dashed #d1d5db;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    .interface-option-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.6rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.35rem;
        -webkit-overflow-scrolling: touch;
    }

    .interface-option-grid::-webkit-scrollbar {
        height: 8px;
    }

    .interface-option-grid::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 999px;
    }

    .interface-option-card {
        flex: 0 0 166px;
        background: white;
        border: 1px solid #dbe2eb;
        border-radius: 10px;
        padding: 0.6rem;
        transition: all 0.2s ease;
    }

    .interface-option-card:hover {
        border-color: #93c5fd;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
    }

    .interface-option-card:focus-within {
        border-color: #3b82f6;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    }

    .interface-option-title {
        font-size: 0.95rem;
        font-weight: 600;
        color: #374151;
        line-height: 1.2;
        margin: 0.5rem 0 0.55rem;
        min-height: 1.2em;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-word;
    }

    .interface-option-input {
        width: 100%;
        min-width: 0;
        padding: 0.45rem 0.5rem;
        border-radius: 8px;
        text-align: center;
    }

    .interface-option-icon-wrap {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 46px;
    }

    .interface-port-image-shell {
        width: 98px;
        height: 36px;
        border-radius: 8px;
        background: #f5f7fa;
        border: 1px solid #dbe2eb;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        padding: 4px 6px;
    }

    .interface-port-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
    }

    .interface-port-fallback {
        display: none;
        padding: 2px 8px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0.2px;
        color: #f9fafb;
        background: rgba(17, 24, 39, 0.72);
        border: 1px solid rgba(255, 255, 255, 0.24);
    }

    .interface-port-image-shell.is-fallback .interface-port-image {
        display: none;
    }

    .interface-port-image-shell.is-fallback .interface-port-fallback {
        display: inline-flex;
    }

    .interface-port-hdmi .interface-port-fallback {
        background: rgba(30, 58, 138, 0.76);
    }

    .interface-port-dp .interface-port-fallback {
        background: rgba(3, 105, 161, 0.76);
    }

    .interface-port-dvi .interface-port-fallback {
        background: rgba(55, 65, 81, 0.8);
    }

    .interface-port-vga .interface-port-fallback {
        background: rgba(83, 45, 14, 0.76);
    }

    .interface-port-sdi .interface-port-fallback {
        background: rgba(91, 33, 182, 0.76);
    }

    .interface-port-network .interface-port-fallback {
        background: rgba(6, 95, 70, 0.76);
    }

    .interface-port-optical .interface-port-fallback {
        background: rgba(190, 24, 93, 0.76);
    }

    .interface-option-input::-webkit-outer-spin-button,
    .interface-option-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .interface-option-input[type="number"] {
        -moz-appearance: textfield;
        appearance: textfield;
    }

    .interface-stepper {
        display: grid;
        grid-template-columns: 34px 1fr 34px;
        gap: 6px;
        align-items: center;
    }

    .interface-step-btn {
        height: 34px;
        border-radius: 8px;
        border: 1px solid #d1d5db;
        background: #f9fafb;
        color: #111827;
        font-size: 18px;
        line-height: 1;
        font-weight: 600;
        cursor: pointer;
        box-shadow: none;
        padding: 0;
    }

    .interface-step-btn:hover {
        background: #f3f4f6;
        transform: none;
        box-shadow: none;
    }

    .apple-filter-panel .interface-selector-block {
        background: #ffffff;
        border: 1px solid #e5e5ea;
        border-radius: 14px;
        padding: 12px 14px;
    }

    .apple-filter-panel .interface-selector-label {
        color: #1d1d1f;
        font-size: 0.95rem;
    }

    .apple-filter-panel .interface-selector-summary {
        color: #6e6e73;
        font-size: 0.88rem;
    }

    .apple-filter-panel .interface-collapsible-content {
        border-top: 1px solid #ececf0;
    }

    .apple-filter-panel .interface-option-card {
        background: #fbfbfd;
        border-color: #d2d2d7;
        flex-basis: 166px;
    }

    .apple-filter-panel .interface-option-card:hover {
        border-color: #0071e3;
        box-shadow: 0 3px 10px rgba(0, 113, 227, 0.12);
    }

    .apple-filter-panel .interface-option-input {
        border: 1px solid #d2d2d7;
        box-shadow: none;
    }

    .apple-filter-panel .interface-option-input:focus {
        border-color: #0071e3;
        box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
        transform: none;
    }

    .specified-card-select-hidden {
        display: none !important;
    }

    .specified-card-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px;
        width: 100%;
        margin-top: 6px;
        max-height: 280px;
        overflow-y: auto;
        padding: 3px 4px 6px 2px;
        box-sizing: border-box;
    }

    .specified-card-option {
        position: relative;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        background: #ffffff;
        color: #0f172a;
        padding: 10px 14px;
        text-align: left;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        min-height: 64px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-sizing: border-box;
    }

    .specified-card-option:hover {
        border-color: #93c5fd;
        background: #f8fafc;
        box-shadow: 0 3px 8px rgba(0, 113, 227, 0.08);
        transform: translateY(-1px);
    }

    .specified-card-option.active {
        border: 1.5px solid #0071e3 !important;
        background: #f0f7ff !important;
        box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.16), 0 2px 6px rgba(0, 113, 227, 0.08) !important;
    }

    .specified-card-title-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        margin-bottom: 3px;
    }

    .specified-card-title {
        font-size: 0.92rem;
        font-weight: 600;
        line-height: 1.3;
        color: #0f172a;
        word-break: break-word;
        flex: 1;
    }

    .specified-card-option.active .specified-card-title {
        color: #0071e3 !important;
    }

    .specified-card-desc {
        font-size: 0.78rem;
        line-height: 1.35;
        color: #64748b;
        word-break: break-word;
    }

    .specified-card-option.active .specified-card-desc {
        color: #3b82f6 !important;
    }

    .specified-card-badge {
        display: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #0071e3;
        color: #ffffff;
        font-size: 10px;
        font-weight: 700;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .specified-card-option.active .specified-card-badge {
        display: inline-flex;
    }

    .specified-card-state {
        grid-column: 1 / -1;
        border: 1px dashed #cbd5e1;
        border-radius: 10px;
        padding: 10px 14px;
        color: #64748b;
        font-size: 0.85rem;
        background: #f8fafc;
    }

    /* 按钮样式大幅优化 */
    .signal-power-config-page button-old,
    .signal-power-config-page .btn {
        background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%);
        color: white;
        border: none;
        padding: 0.875rem 1.5rem;
        border-radius: 12px;
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
        position: relative;
        overflow: hidden;
    }

    .signal-power-config-page button-old:hover,
    .signal-power-config-page .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    }

    .signal-power-config-page button-old:active,
    .signal-power-config-page .btn:active {
        transform: translateY(-1px);
    }

    /* 多尺寸屏幕卡片：采用紧凑双列布局，避免卡片过大 */
    #screens_preview_container {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
        margin-top: 0.75rem;
    }

    #different_size_preview .screen-preview {
        margin-bottom: 0;
        position: relative;
        overflow: hidden;
        padding: 0.8rem;
        border: 1px solid #d6deeb;
        border-top: 3px solid #2563eb;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }

    #different_size_preview .screen-preview:hover {
        transform: translateY(-2px);
        border-color: #93b4f4;
        box-shadow: 0 8px 22px rgba(37, 99, 235, 0.1);
    }

    #different_size_preview .screen-preview-header {
        display: grid;
        gap: 0.5rem;
        margin: -0.15rem -0.15rem 0.6rem;
        padding: 0.58rem 0.62rem;
        border: 1px solid #e2e8f0;
        border-radius: 9px;
        background: linear-gradient(180deg, #f8fbff 0%, #f4f7fb 100%);
    }

    #different_size_preview .screen-name-field {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.22rem;
        margin: 0;
        color: #64748b;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.025em;
        min-width: 0;
    }

    #different_size_preview .screen-name-input {
        width: 100% !important;
        min-height: 32px !important;
        height: 32px !important;
        margin: 0 !important;
        padding: 0.3rem 0.5rem !important;
        border-radius: 7px !important;
        font-size: 0.82rem !important;
        font-weight: 650 !important;
    }

    #different_size_preview .screen-preview-meta-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.55rem;
        min-width: 0;
    }

    #different_size_preview .screen-preview-status {
        display: inline-flex;
        align-items: center;
        min-height: 21px;
        padding: 0.14rem 0.42rem;
        border-radius: 999px;
        background: #ecfdf5;
        color: #047857;
        font-size: 0.66rem;
        font-weight: 700;
        white-space: nowrap;
    }

    #different_size_preview .screen-preview-status.is-incomplete {
        background: #fff7ed;
        color: #c2410c;
    }

    #different_size_preview .screen-count-container {
        display: inline-flex;
        align-items: center;
        gap: 0.32rem;
        margin: 0;
        white-space: nowrap;
        flex-shrink: 0;
    }

    #different_size_preview .screen-count-container label {
        margin: 0;
        white-space: nowrap;
        font-size: 0.7rem;
        color: #64748b;
        font-weight: 700;
        line-height: 1;
    }

    #different_size_preview .screen-count {
        width: 52px !important;
        max-width: 52px !important;
        min-height: 28px !important;
        height: 28px !important;
        padding: 0.2rem 0.35rem !important;
        margin-left: 0 !important;
        font-size: 0.8rem !important;
        text-align: center;
        border-radius: 7px !important;
        flex: 0 0 52px;
    }

    #different_size_preview .screen-preview p {
        margin: 0.18rem 0;
        font-size: 0.88rem;
        color: #475569;
        line-height: 1.35;
    }

    #different_size_preview .screen-preview-summary {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.46rem;
        margin-top: 0.55rem;
    }

    #different_size_preview .screen-summary-item {
        min-width: 0;
        padding: 0.48rem 0.55rem;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: #f8fafc;
    }

    #different_size_preview .screen-summary-item.is-wide {
        grid-column: 1 / -1;
    }

    #different_size_preview .screen-summary-label {
        display: block;
        margin-bottom: 0.16rem;
        color: #64748b;
        font-size: 0.66rem;
        font-weight: 650;
    }

    #different_size_preview .screen-summary-value {
        display: block;
        overflow: hidden;
        color: #1e293b;
        font-size: 0.78rem;
        font-weight: 650;
        line-height: 1.3;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #different_size_preview .screen-preview-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin-top: 0.48rem;
    }

    #different_size_preview .screen-preview .edit-button {
        margin-top: 0.35rem;
        padding: 0.36rem 0.72rem !important;
        font-size: 0.76rem !important;
        border-radius: 7px !important;
        min-height: auto !important;
    }

    /* 特殊按钮样式 */
    #submit_button {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        padding: 1rem 2rem;
        font-size: 1.125rem;
        border-radius: 14px;
        margin-top: 1rem;
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    }

    #submit_button:hover {
        box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    }

    #toggle-tips-btn {
        background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
    }

    /* 卡片组样式优化 - 更紧凑 */
    .box-group {
        background: #f8fafc;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 1rem;
        transition: all 0.3s ease;
        position: relative;
    }

    .box-group:hover {
        border-color: var(--primary-color);
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
        transform: translateY(-2px);
    }

    .box-header {
        background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 700;
        font-size: 1rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.375rem;
        border-bottom: 2px solid #e5e7eb;
    }

    /* 切换开关优化 */
    .checkbox-wrapper-5 .check {
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
        transition: all 0.3s ease;
    }

    .checkbox-wrapper-5 .check:hover {
        transform: scale(1.05);
    }

    /* 结果区域优化 - 全白背景 */
    .output-section {
        background: white;
        padding: 2rem;
        border-radius: 0 0 12px 12px;
        border-top: 1px solid #e5e7eb;
    }

    /* 结果显示时的左右布局 */
    .results-active .container-old {
        display: flex;
        max-width: none;
        width: 100%;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    /* 确保标题在左右布局时正常显示 */
    .results-active .signal-power-config-page>h1 {
        text-align: center;
        width: 100%;
        margin-bottom: 1rem;
        position: relative;
        z-index: 1;
    }

    .results-active .form-section {
        width: 44%;
        min-width: 440px;
        flex-shrink: 0;
        border-radius: 14px;
        border: 1px solid #d8dce5;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 1.25rem 1rem 4rem;
        max-height: 95vh;
        box-sizing: border-box;
    }

    /* 电源参数由 config_type 控制，结果模式下保留可见性 */

    .results-active .output-section {
        width: 56%;
        flex: 1 1 0%;
        min-width: 0;
        display: block !important;
        border-radius: 14px;
        border: 1px solid #d8dce5;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        margin: 0;
        font-size: 0.88rem;
        overflow-y: auto;
        overscroll-behavior: contain;
        max-height: 95vh;
        padding-bottom: 4rem;
        box-sizing: border-box;
    }

    /* 响应式设计 */
    @media (max-width: 768px) {
        .signal-power-config-page {
            padding: 1rem 0.5rem;
        }

        #screens_preview_container {
            grid-template-columns: 1fr;
        }

        #different_size_preview .screen-preview-summary {
            grid-template-columns: 1fr;
        }

        #different_size_preview .screen-summary-item.is-wide {
            grid-column: auto;
        }

        .signal-power-config-page h1,
        .signal-power-config-page .page-title {
            font-size: 2rem;
        }

        .form-section {
            padding: 1rem;
        }

        .form-grid,
        .form-grid4,
        .form-grid-inline {
            grid-template-columns: 1fr;
            gap: 0.75rem;
        }

        .box-group {
            padding: 0.75rem;
        }

        /* 移动端改为垂直布局 */
        .results-active .container-old {
            flex-direction: column;
            gap: 1rem;
        }

        .results-active .form-section {
            width: 100%;
        }

        .results-active .output-section {
            width: 100%;
        }

        .interface-selector-header {
            flex-wrap: wrap;
            align-items: flex-start;
        }

        .interface-selector-header-left {
            width: 100%;
        }

        .interface-option-grid {
            flex-wrap: wrap;
            overflow-x: visible;
            overflow-y: visible;
        }

        .interface-option-card {
            flex: 1 1 calc(50% - 0.6rem);
            min-width: 0;
        }

        /* 移动端按钮优化 */
        #toggle-tips-btn,
        #modal-toggle-tips-btn,
        #feedback-toggle-tips-btn,
        .output-section .btn,
        .modal-header-buttons .btn {
            font-size: 0.75rem !important;
            padding: 0.375rem 0.5rem !important;
            min-width: auto !important;
            white-space: nowrap !important;
            border-radius: 6px !important;
        }

        /* 移动端模态窗口头部优化 */
        .modal-header {
            padding: 1rem 1rem 0.5rem !important;
            flex-wrap: wrap !important;
        }

        .modal-header-buttons {
            margin-top: 0.5rem !important;
            gap: 0.5rem !important;
        }

        /* 移动端表单行的flex布局优化 */
        .form-section>div:first-child {
            display: flex !important;
            justify-content: space-between !important;
            align-items: flex-start !important;
            flex-wrap: wrap !important;
            gap: 0.5rem !important;
            max-width: 100% !important;
        }

        .form-section>div:first-child>p {
            flex: 1 1 60% !important;
            margin: 0 !important;
            font-size: 0.85rem !important;
            line-height: 1.3 !important;
            max-width: 60% !important;
            word-wrap: break-word !important;
        }

        /* 限制显示提示按钮容器宽度 */
        .form-section>div:first-child>button {
            flex: 0 0 35% !important;
            max-width: 35% !important;
        }

        /* 结果区域标题行优化 */
        .output-section>div:first-child {
            display: flex !important;
            justify-content: space-between !important;
            align-items: flex-start !important;
            flex-wrap: wrap !important;
            gap: 0.5rem !important;
            margin-bottom: 1rem !important;
        }

        .output-section>div:first-child>h2 {
            flex: 1 1 auto !important;
            margin: 0 !important;
            font-size: 1.25rem !important;
        }
    }

    /* 微动画增强 */
    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .form-section>* {
        animation: slideInUp 0.6s ease-out;
    }

    .form-section>*:nth-child(2) {
        animation-delay: 0.1s;
    }

    .form-section>*:nth-child(3) {
        animation-delay: 0.2s;
    }

    .form-section>*:nth-child(4) {
        animation-delay: 0.3s;
    }

    /* 加载动画 */
    @keyframes pulse {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0.7;
        }
    }

    .loading {
        animation: pulse 1.5s ease-in-out infinite;
    }

    /* 提示信息样式优化 */
    .field-tip {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        color: #92400e;
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        font-size: 0.875rem;
        margin-top: 0.5rem;
        border-left: 4px solid #f59e0b;
        box-shadow: 0 2px 4px rgba(245, 158, 11, 0.1);
        transition: all 0.3s ease;
    }

    .field-tip:hover {
        background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
        transform: translateX(4px);
    }

    /* 错误消息优化 */
    .validation-error,
    .alert-warning {
        background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
        color: #dc2626;
        padding: 0.75rem 1rem;
        border-radius: 12px;
        border-left: 4px solid #ef4444;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
        margin-top: 0.5rem;
        animation: slideInLeft 0.3s ease;
    }

    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* 模态框样式增强 - 统一设计风格 */
    .modal {
        backdrop-filter: blur(8px);
        background: rgba(0, 0, 0, 0.4);
        position: fixed;
        inset: 0;
        z-index: 12000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    /* 编辑屏幕弹窗打开时，临时隐藏顶部导航与底部操作栏，扩大可视编辑区域 */
    body.spc-edit-modal-open .layout-header,
    body.spc-edit-modal-open #spcBottomActionBar {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* 防止弹窗打开后页面背景滚动 */
    body.spc-edit-modal-open {
        overflow: hidden;
    }

    /* 沉浸式：与 layout-embed / ss-quotation 一致，收起全局壳层，仅保留内容与右上角退出入口 */
    body.spc-page-immersive-mode {
        --header-height: 0px !important;
    }

    body.spc-page-immersive-mode .layout-header {
        display: none !important;
    }

    body.spc-page-immersive-mode .layout-mobile-menu-toggle,
    body.spc-page-immersive-mode .layout-mobile-nav {
        display: none !important;
    }

    body.spc-page-immersive-mode .layout-footer,
    body.spc-page-immersive-mode .footer {
        display: none !important;
    }

    body.spc-page-immersive-mode .page-loader,
    body.spc-page-immersive-mode .cookie-consent-banner,
    body.spc-page-immersive-mode #cookie-consent-banner,
    body.spc-page-immersive-mode [class*="cookie"],
    body.spc-page-immersive-mode .apple-feedback-float-btn {
        display: none !important;
    }

    body.spc-page-immersive-mode .main {
        padding-top: 0 !important;
    }

    body.spc-page-immersive-mode .signal-power-config-page {
        padding-top: 0.75rem;
    }

    body.spc-page-immersive-mode #spcPageImmersiveToggleBtn {
        top: max(10px, env(safe-area-inset-top, 0px));
        right: max(10px, env(safe-area-inset-right, 0px));
        bottom: auto;
        background: rgba(248, 250, 252, 0.96);
    }

    [data-theme="dark"] body.spc-page-immersive-mode #spcPageImmersiveToggleBtn {
        background: rgba(30, 41, 59, 0.96);
        border-color: #334155;
        color: #e2e8f0;
    }

    .modal-dialog {
        width: min(1180px, calc(100vw - 2rem));
        max-width: calc(100vw - 2rem);
        max-height: calc(100dvh - 2rem);
        margin: auto;
    }

    .modal-content {
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        border: 2px solid #e5e7eb;
        animation: modalSlideIn 0.4s ease-out;
        background: white;
        overflow: hidden;
        max-height: calc(100dvh - 2rem);
        display: flex;
        flex-direction: column;
    }

    @keyframes modalSlideIn {
        from {
            opacity: 0;
            transform: translateY(-30px) scale(0.95);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .modal-header {
        background: var(--gray-50);
        border-bottom: 2px solid #e5e7eb;
        border-radius: 16px 16px 0 0;
        padding: 1.5rem 2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 1rem;
        flex-shrink: 0;
    }

    .modal-title {
        background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 700;
        font-size: 1.5rem;
        margin: 0;
        flex: 1;
    }

    .modal-body {
        padding: 1.15rem 1.35rem;
        overflow-y: auto;
        flex: 1;
        background: #f6f8fc;
        scroll-behavior: smooth;
        /* 确保滚动位置从顶部开始 */
        position: relative;
    }

    .modal-footer {
        background: var(--gray-50);
        border-top: 2px solid #e5e7eb;
        padding: 0.85rem 2rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        flex-shrink: 0;
        border-radius: 0 0 16px 16px;
        flex-wrap: wrap;
    }

    /* 模态框内的表单样式 */
    .modal-body .form-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
        margin-bottom: 1rem;
    }

    .modal-body .form-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.9rem;
        margin-bottom: 1rem;
    }

    /* 模态框内的输入框样式统一 */
    .modal-body input[type="text"],
    .modal-body input[type="number"],
    .modal-body select {
        width: 100%;
        padding: 0.72rem 0.82rem;
        border: 1px solid #c7cfda;
        border-radius: 13px;
        font-size: 0.95rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: white;
        box-shadow: none;
        min-height: 46px;
    }

    .modal-body input[type="text"]:focus,
    .modal-body input[type="number"]:focus,
    .modal-body select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        outline: none;
        transform: none;
    }

    /* 模态框内的标签样式 */
    .modal-body label {
        display: block;
        font-weight: 650;
        color: #1f2937;
        margin-bottom: 0.375rem;
        font-size: 0.95rem;
    }

    /* 模态框内的按钮样式统一 */
    .modal-body button,
    .modal-footer button {
        background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%);
        color: white;
        border: none;
        padding: 0.75rem 1.25rem;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
    }

    .modal-body button:hover,
    .modal-footer button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    }

    /* 关闭按钮特殊样式 */
    .modal-header .close {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        color: white;
        border: none;
        border-radius: 8px;
        padding: 0.5rem 0.75rem;
        font-size: 1.25rem;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    }

    .modal-header .close:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }

    /* 模态框内的箱体组样式 */
    .modal-body .box-group {
        background: #fbfcff;
        border: 1px solid #d8dce5;
        border-radius: 10px;
        padding: 1rem;
        margin-bottom: 1rem;
        transition: all 0.3s ease;
    }

    .modal-body .box-group:hover {
        border-color: #c7cfda;
        box-shadow: none;
        transform: none;
    }

    .modal-body .box-header {
        background: none;
        -webkit-text-fill-color: inherit;
        color: #1e3a8a;
        font-weight: 700;
        font-size: 1.125rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #e5e7eb;
    }

    /* 模态框内的提示信息样式 */
    .modal-body .field-tip {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        color: #92400e;
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        font-size: 0.8rem;
        margin-top: 0.375rem;
        border-left: 4px solid #f59e0b;
        box-shadow: 0 2px 4px rgba(245, 158, 11, 0.1);
        transition: all 0.3s ease;
    }

    /* 复制按钮特殊样式 */
    .modal-body button[onclick*="copyFromPreviousScreen"] {
        background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
        margin-bottom: 1.5rem;
        box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
    }

    .modal-body button[onclick*="copyFromPreviousScreen"]:hover {
        box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    }

    /* 添加箱体按钮样式 */
    .modal-body button[onclick*="addModalBox"] {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    }

    .modal-body button[onclick*="addModalBox"]:hover {
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    }

    /* 删除箱体按钮样式 */
    .modal-body button[onclick*="removeModalBox"] {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
    }

    .modal-body button[onclick*="removeModalBox"]:hover {
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    }

    #editModal .spc-modal-form {
        width: 100%;
        max-width: none;
        margin: 0;
        box-sizing: border-box;
    }

    .spc-shared-config-home,
    .spc-shared-config-stack {
        display: contents;
    }

    #editModal .modal-dialog {
        width: 100vw;
        max-width: none;
        height: 100dvh;
        max-height: none;
        margin: 0;
    }

    /* 三段式屏幕编辑器使用真正全屏工作区：顶部和底部固定，仅中间滚动。 */
    #editModal {
        padding: 0;
        overflow: hidden;
        background: #f6f8fc;
    }

    #editModal .modal-content {
        width: 100%;
        height: 100%;
        max-height: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    #editModal .modal-header {
        border-radius: 0;
        padding: 1rem 2rem;
    }

    #editModal .modal-body {
        min-height: 0;
        max-height: none;
        padding: 1rem 2rem 1.5rem;
    }

    #editModal .modal-footer {
        flex: 0 0 auto;
        padding: 0.8rem 2rem;
    }

    #editModal .spc-shared-editor-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.75rem 0.9rem;
        margin: 0 0 0.9rem;
        border: 1px solid #d8e0ec;
        border-radius: 12px;
        background: #ffffff;
    }

    #editModal .spc-shared-editor-label {
        color: #1e3a8a;
        font-weight: 700;
    }

    #editModal .spc-shared-config-modal-host {
        padding: 0;
        margin: 0;
        border: 0;
        background: transparent;
    }

    #editModal .spc-shared-config-stack {
        display: block;
    }

    #editModal .spc-shared-config-stack > .spc-section-card {
        display: block;
        margin: 0 0 1rem;
        box-shadow: none;
    }

    #editModal .spc-shared-config-stack > .spc-section-card:last-child {
        margin-bottom: 0;
    }

    #editModal .spc-modal-copy-row {
        display: flex;
        justify-content: flex-start;
        margin: 0 0 1rem;
    }

    #editModal .spc-modal-copy-row button[onclick*="copyFromPreviousScreen"] {
        margin-bottom: 0;
    }

    #editModal .spc-modal-section {
        border: 1px solid #d8dce5;
        border-radius: 14px;
        background: #f8f9fc;
        margin-bottom: 1rem;
        overflow: hidden;
    }

    #editModal .spc-modal-section-head {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        padding: 0.8rem 1.05rem;
        background: #f3f4f6;
        border-bottom: 1px solid #d8dce5;
        color: #111827;
        font-weight: 700;
    }

    #editModal .spc-modal-section-title {
        font-size: 1.08rem;
        line-height: 1.25;
    }

    #editModal .spc-step-index {
        flex: 0 0 auto;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 1px solid #1e3a8a;
        background: #1e3a8a;
        color: #fff;
        display: grid;
        place-items: center;
        font-size: 0.9rem;
        font-weight: 700;
    }

    #editModal .spc-modal-section-body {
        padding: 1rem 1.05rem 1.05rem;
        background: #f8f9fc;
    }

    #editModal .modal-body .form-grid>div,
    #editModal .modal-body .form-row>div {
        background: transparent;
        border: 0;
        border-radius: 0;
        padding: 0;
        transition: none;
    }

    #editModal .modal-body .form-grid>div:hover,
    #editModal .modal-body .form-row>div:hover {
        border-color: transparent;
        box-shadow: none;
        transform: none;
    }

    #editModal .modal-body .box-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.9rem;
        align-items: start;
    }

    #editModal .modal-body input[readonly] {
        background-color: #f0f7ff;
        color: #1a56db;
        font-weight: 600;
        text-align: center;
        cursor: default;
    }

    #editModal #modal_custom_safety_current_div {
        max-width: calc((100% - 1.8rem) / 3);
        margin-bottom: 1rem;
    }

    #editModal .spc-modal-summary {
        flex: 1 1 640px;
        min-width: 0;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.45rem;
    }

    #editModal .spc-modal-summary-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        max-width: 100%;
        border: 1px solid #d8e0ec;
        background: #ffffff;
        border-radius: 999px;
        padding: 0.36rem 0.62rem;
        color: #64748b;
        font-size: 0.78rem;
        line-height: 1.25;
        white-space: nowrap;
    }

    #editModal .spc-modal-summary-label {
        color: #64748b;
        font-weight: 600;
    }

    #editModal .spc-modal-summary-label::after {
        content: ":";
    }

    #editModal .spc-modal-summary-value {
        color: #1e3a8a;
        font-weight: 700;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #editModal .spc-modal-footer-actions {
        display: flex;
        justify-content: flex-end;
        gap: 1rem;
        margin-left: auto;
        flex: 0 0 auto;
    }

    /* 响应式设计 */
    @media (max-width: 768px) {
        .modal {
            align-items: flex-start;
            padding: 0.65rem;
        }

        .modal-dialog {
            max-width: 95vw;
            width: 100%;
            max-height: calc(100dvh - 1.3rem);
        }

        .modal-header {
            padding: 1rem;
            flex-direction: column;
            align-items: flex-start;
            gap: 0.75rem;
        }

        .modal-title {
            font-size: 1.25rem;
        }

        .modal-body {
            padding: 1rem;
        }

        .modal-footer {
            padding: 1rem;
            flex-direction: column;
            align-items: stretch;
            gap: 0.75rem;
        }

        .modal-body .form-grid,
        .modal-body .form-row {
            grid-template-columns: 1fr;
            gap: 0.75rem;
        }

        #editModal .modal-body .box-grid {
            grid-template-columns: 1fr;
        }

        #editModal #modal_custom_safety_current_div {
            max-width: none;
        }

        #editModal .spc-modal-summary {
            flex: 1 1 auto;
        }

        #editModal .spc-modal-summary-chip {
            width: 100%;
            white-space: normal;
        }

        #editModal .spc-modal-footer-actions {
            width: 100%;
        }

        #editModal .spc-modal-footer-actions button {
            flex: 1;
        }

        .modal-body .box-group {
            padding: 1rem;
        }

        .modal-header-buttons {
            width: 100%;
            justify-content: space-between;
        }
    }

    /* 输出区域卡片化 */
    #card_result_container {
        background: white;
        border-radius: 16px;
        padding: 1.5rem;
        margin-bottom: 2rem;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        border: 2px solid #e5e7eb;
        transition: all 0.3s ease;
    }

    #card_result_container:hover {
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 12px 35px rgba(59, 130, 246, 0.15);
    }

    /* 进度指示和交互反馈 */
    .signal-power-config-page .form-section input:valid {
        border-color: #10b981;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    }

    .signal-power-config-page .form-section input:invalid:not(:placeholder-shown) {
        border-color: #ef4444;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    }

    /* 统一的验证状态样式 */
    .signal-power-config-page input.valid-input,
    .signal-power-config-page select.valid-input {
        border: 2px solid #10b981 !important;
        background-color: #f0fdf4 !important;
        transition: all 0.3s ease;
    }

    /* 屏幕与分辨率只读计算项：高级置灰、防误触、无绿色边框污染 */
    .signal-power-config-page input.spc-computed-readonly-input,
    .signal-power-config-page input.is-readonly,
    .signal-power-config-page input[readonly].spc-computed-readonly-input,
    .signal-power-config-page input[readonly].is-readonly,
    .signal-power-config-page input[readonly].valid-input,
    .signal-power-config-page input.is-readonly.valid-input,
    .spc-multi-input-control.is-readonly {
        background-color: #f1f5f9 !important;
        color: #334155 !important;
        border: 1.5px solid #cbd5e1 !important;
        font-weight: 700 !important;
        cursor: default !important;
        user-select: text;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    }

    .signal-power-config-page input.spc-computed-readonly-input:focus,
    .signal-power-config-page input.is-readonly:focus,
    .spc-multi-input-control.is-readonly:focus {
        outline: none !important;
        border-color: #94a3b8 !important;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03), 0 0 0 2px rgba(148, 163, 184, 0.2) !important;
        background-color: #f1f5f9 !important;
    }

    /* 用户必须输入的核心参数项：清晰、醒目、高对比度编辑体验 */
    .signal-power-config-page input.spc-user-editable-input,
    .spc-multi-qty-input-control {
        background-color: #ffffff !important;
        color: #0f172a !important;
        border: 1.5px solid #cbd5e1 !important;
        font-weight: 600;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    }

    .signal-power-config-page input.spc-user-editable-input:hover,
    .spc-multi-qty-input-control:hover {
        border-color: #94a3b8 !important;
        background-color: #f8fafc !important;
    }

    .signal-power-config-page input.spc-user-editable-input:focus,
    .spc-multi-qty-input-control:focus {
        outline: none !important;
        border-color: #0071e3 !important;
        box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.16) !important;
        background-color: #ffffff !important;
    }

    [data-theme="dark"] .signal-power-config-page input.spc-computed-readonly-input,
    [data-theme="dark"] .signal-power-config-page input.is-readonly,
    [data-theme="dark"] .spc-multi-input-control.is-readonly {
        background-color: #1e293b !important;
        color: #e2e8f0 !important;
        border-color: #334155 !important;
    }

    [data-theme="dark"] .signal-power-config-page input.spc-user-editable-input,
    [data-theme="dark"] .spc-multi-qty-input-control {
        background-color: #0f172a !important;
        color: #f8fafc !important;
        border-color: #475569 !important;
    }

    .signal-power-config-page input.invalid-input,
    .signal-power-config-page select.invalid-input {
        border: 2px solid #ef4444 !important;
        background-color: #fef2f2 !important;
        transition: all 0.3s ease;
    }

    .signal-power-config-page input.empty-required,
    .signal-power-config-page select.empty-required {
        border: 2px solid #ef4444 !important;
        background-color: #fef2f2 !important;
        transition: all 0.3s ease;
    }

    /* 总数统计样式 */
    .totals-summary {
        background: linear-gradient(135deg, #f8fafc 0%, #e5e7eb 100%);
        border: 2px solid #d1d5db;
        border-radius: 16px;
        padding: 1.5rem;
        margin: 2rem 0;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .totals-summary:hover {
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 12px 35px rgba(59, 130, 246, 0.15);
    }

    .totals-summary h3 {
        color: var(--primary-color);
        font-size: 1.375rem;
        font-weight: 700;
        margin-bottom: 1.25rem;
        text-align: center;
        background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .totals-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        transition: all 0.3s ease;
    }

    /* 当电源线项目隐藏时，调整为单列布局 */
    .totals-grid.single-column {
        grid-template-columns: 1fr;
    }

    /* 电源线统计项的隐藏样式 */
    .power-total-item.hidden {
        display: none !important;
    }

    .total-item {
        background: white;
        border-radius: 12px;
        padding: 1.25rem;
        text-align: center;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
        border: 2px solid transparent;
        transition: all 0.3s ease;
    }

    .total-item:hover {
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
    }

    .total-label {
        font-size: 0.9rem;
        color: #6b7280;
        font-weight: 600;
        margin-bottom: 0.5rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .total-value {
        font-size: 1.875rem;
        font-weight: 700;
        color: var(--primary-color);
        background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    /* 响应式设计 */
    @media (max-width: 768px) {
        .totals-grid {
            grid-template-columns: 1fr;
            gap: 1rem;
        }

        .totals-summary {
            padding: 1rem;
            margin: 1rem 0;
        }

        .total-value {
            font-size: 1.5rem;
        }
    }

    /* 验证状态的焦点样式 */
    .signal-power-config-page input.valid-input:focus,
    .signal-power-config-page select.valid-input:focus {
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
    }

    .signal-power-config-page input.invalid-input:focus,
    .signal-power-config-page select.invalid-input:focus,
    .signal-power-config-page input.empty-required:focus,
    .signal-power-config-page select.empty-required:focus {
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
    }

    /* 成功状态动画 */
    @keyframes checkmark {
        0% {
            stroke-dashoffset: 20;
        }

        100% {
            stroke-dashoffset: 0;
        }
    }

    .success-checkmark {
        stroke-dasharray: 20;
        animation: checkmark 0.6s ease-in-out;
    }

    /* 页面加载优化 */
    .signal-power-config-page {
        opacity: 0;
        animation: fadeInPage 0.8s ease-out forwards;
    }

    @keyframes fadeInPage {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* 滚动条优化 - 浅色低调样式 */
    .signal-power-config-page ::-webkit-scrollbar {
        width: 6px;
    }

    .signal-power-config-page ::-webkit-scrollbar-track {
        background: transparent;
    }

    .signal-power-config-page ::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 3px;
    }

    .signal-power-config-page ::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.2);
    }

    /* 加载动画样式 */
    .loading-spinner {
        border: 2px solid #e5e7eb;
        border-top: 2px solid var(--primary-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    /* 功率输入框的默认红色边框样式 - 仅在空值时显示 */
    #total_power.empty-required,
    #power_per_square_meter.empty-required {
        border: 2px solid #ef4444 !important;
        background-color: #fef2f2 !important;
        transition: all 0.3s ease;
    }

    /* 当输入框有有效值时显示绿色 */
    #total_power.valid-input,
    #power_per_square_meter.valid-input {
        border: 2px solid #10b981 !important;
        background-color: #f0fdf4 !important;
        transition: all 0.3s ease;
    }

    /* 当输入框有无效值时显示红色 */
    #total_power.invalid-input,
    #power_per_square_meter.invalid-input {
        border: 2px solid #ef4444 !important;
        background-color: #fef2f2 !important;
        transition: all 0.3s ease;
    }

    /* 焦点状态保持清晰 */
    #total_power:focus,
    #power_per_square_meter:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
    }

    #total_power.valid-input:focus,
    #power_per_square_meter.valid-input:focus {
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
    }

    #total_power.invalid-input:focus,
    #power_per_square_meter.invalid-input:focus {
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
    }

    /* 复选框滑动开关样式 - 从Uiverse.io by Shoh2008 */
    .checkbox-wrapper-5 .check {
        --size: 30px;
        position: relative;
        background: linear-gradient(90deg, #2876ea, #87e2f4);
        line-height: 0;
        perspective: 400px;
        border-radius: var(--size);
        width: calc(2.2 * var(--size));
        height: var(--size);
        box-sizing: border-box;
    }

    .checkbox-wrapper-5 .check input[type="checkbox"],
    .checkbox-wrapper-5 .check label,
    .checkbox-wrapper-5 .check label::before,
    .checkbox-wrapper-5 .check label::after,
    .checkbox-wrapper-5 .check {
        appearance: none;
        display: inline-block;
        border-radius: var(--size);
        border: 0;
        transition: .35s ease-in-out;
        box-sizing: border-box;
        cursor: pointer;
    }

    .checkbox-wrapper-5 .check label {
        width: calc(2.2 * var(--size));
        height: var(--size);
        background: #d7d7d7;
        overflow: hidden;
    }

    .checkbox-wrapper-5 .check input[type="checkbox"] {
        position: absolute;
        z-index: 1;
        width: calc(.8 * var(--size));
        height: calc(.8 * var(--size));
        top: calc(.1 * var(--size));
        left: calc(.1 * var(--size));
        background: linear-gradient(45deg, #dedede, #ffffff);
        box-shadow: 0 6px 7px rgba(0, 0, 0, 0.3);
        outline: none;
        margin: 0;
    }

    .checkbox-wrapper-5 .check input[type="checkbox"]:checked {
        left: calc(1.3 * var(--size));
    }

    .checkbox-wrapper-5 .check input[type="checkbox"]:checked+label {
        background: transparent;
    }

    .checkbox-wrapper-5 .check label::before,
    .checkbox-wrapper-5 .check label::after {
        content: "· ·";
        position: absolute;
        overflow: hidden;
        left: calc(.15 * var(--size));
        top: calc(.5 * var(--size));
        height: var(--size);
        letter-spacing: calc(-0.04 * var(--size));
        color: #9b9b9b;
        font-family: "Times New Roman", serif;
        z-index: 2;
        font-size: calc(.6 * var(--size));
        border-radius: 0;
        transform-origin: 0 0 calc(-0.5 * var(--size));
        backface-visibility: hidden;
    }

    .checkbox-wrapper-5 .check label::after {
        content: "●";
        top: calc(.65 * var(--size));
        left: calc(.2 * var(--size));
        height: calc(.1 * var(--size));
        width: calc(.35 * var(--size));
        font-size: calc(.2 * var(--size));
        transform-origin: 0 0 calc(-0.4 * var(--size));
    }

    .checkbox-wrapper-5 .check input[type="checkbox"]:checked+label::before,
    .checkbox-wrapper-5 .check input[type="checkbox"]:checked+label::after {
        left: calc(1.55 * var(--size));
        top: calc(.4 * var(--size));
        line-height: calc(.1 * var(--size));
        transform: rotateY(360deg);
    }

    .checkbox-wrapper-5 .check input[type="checkbox"]:checked+label::after {
        height: calc(.16 * var(--size));
        top: calc(.55 * var(--size));
        left: calc(1.6 * var(--size));
        font-size: calc(.6 * var(--size));
        line-height: 0;
    }



    /* 模态窗口特殊区域样式 */
    .modal-body h3 {
        background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        font-weight: 600 !important;
        margin: 1.5rem 0 1rem 0 !important;
        font-size: 1.125rem !important;
    }

    /* 模态框输入组分割样式 */
    .modal-body>div:not(.form-grid):not(.form-row):not(.box-group):not(#modal_box_container) {
        background: var(--gray-50);
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    /* 自定义点间距容器样式 */
    #modal_custom_pixel_pitch_container {
        background: #f0f9ff !important;
        border: 2px solid #bfdbfe !important;
        border-radius: 12px !important;
        padding: 1rem !important;
        margin: 1rem 0 !important;
    }

    /* 错误消息样式优化 */
    #modal_error_message,
    #modal_box_error_message {
        background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
        color: #dc2626 !important;
        padding: 0.75rem 1rem !important;
        border-radius: 12px !important;
        border-left: 4px solid #ef4444 !important;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15) !important;
        margin: 1rem 0 !important;
        font-weight: 500 !important;
    }

    /* 模态框内的复选框滑动开关样式 */
    .modal-body .checkbox-wrapper-5 {
        margin: 0.5rem 0;
    }

    /* 模态框输入框分组布局优化 */
    .modal-body .form-grid>div,
    .modal-body .form-row>div {
        background: white;
        border: 1px solid #f3f4f6;
        border-radius: 8px;
        padding: 1rem;
        transition: all 0.3s ease;
    }

    .modal-body .form-grid>div:hover,
    .modal-body .form-row>div:hover {
        border-color: #e5e7eb;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        transform: translateY(-1px);
    }

    /* 模态框标签文字优化 */
    .modal-body label[for*="modal_"] {
        color: #1f2937;
        font-weight: 600;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        text-transform: none;
        letter-spacing: 0;
    }

    /* 模态框footer按钮重新设计 */
    .modal-footer button[onclick*="saveModalData"] {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
        box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
    }

    .modal-footer button[onclick*="saveModalData"]:hover {
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
    }

    .modal-footer button[onclick*="closeModal"] {
        background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
        box-shadow: 0 4px 14px rgba(107, 114, 128, 0.3) !important;
    }

    .modal-footer button[onclick*="closeModal"]:hover {
        box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4) !important;
    }

    /* ── 🎨 macOS Quick Look 风格图片放大预览弹窗 ── */
    .slb-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.76);
        backdrop-filter: blur(28px) saturate(190%);
        -webkit-backdrop-filter: blur(28px) saturate(190%);
        z-index: 9999;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s cubic-bezier(.4, 0, .2, 1), visibility .3s;
        outline: none;
        user-select: none;
    }

    .slb-overlay.slb-active {
        opacity: 1;
        visibility: visible;
    }

    /* 顶部 macOS Titlebar 视窗控制栏 */
    .slb-macos-titlebar {
        position: relative;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 52px;
        padding: 0 1.25rem;
        background: rgba(255, 255, 255, 0.04);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .slb-titlebar-left,
    .slb-titlebar-right {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex: 1;
    }

    .slb-titlebar-right {
        justify-content: flex-end;
    }

    .slb-titlebar-center {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 2;
        max-width: 60%;
    }

    /* macOS 红黄绿红绿灯 */
    .slb-traffic-lights {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .slb-traffic-light {
        all: unset;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        position: relative;
        transition: opacity 0.15s, transform 0.15s;
    }

    .slb-tl-close {
        background: #ff5f56;
        border: 1px solid rgba(224, 68, 62, 0.5);
    }

    .slb-tl-close:hover {
        opacity: 0.85;
        transform: scale(1.1);
    }

    .slb-tl-close:hover::after {
        content: '×';
        position: absolute;
        color: rgba(0, 0, 0, 0.6);
        font-size: 10px;
        font-weight: 900;
        line-height: 1;
    }

    .slb-tl-min {
        background: #ffbd2e;
        border: 1px solid rgba(222, 161, 35, 0.5);
        cursor: default;
    }

    .slb-tl-zoom {
        background: #27c93f;
        border: 1px solid rgba(26, 171, 41, 0.5);
        cursor: default;
    }

    /* 图片计数胶囊 */
    .slb-counter {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: rgba(255, 255, 255, 0.75);
        padding: 3px 9px;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.04em;
    }

    /* 居中标题胶囊 */
    .slb-caption {
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        color: #ffffff;
        padding: 5px 16px;
        border-radius: 20px;
        font-size: 0.86rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    /* 顶部操作按钮 */
    .slb-tb-action {
        all: unset;
        box-sizing: border-box;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.85);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .slb-tb-action:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    }

    .slb-tb-action:active {
        transform: translateY(0) scale(0.95);
    }

    .slb-tb-action.slb-btn-close:hover {
        background: rgba(239, 68, 68, 0.25);
        border-color: rgba(239, 68, 68, 0.4);
        color: #fca5a5;
    }

    /* 中间视窗舞台区域 */
    .slb-stage {
        position: relative;
        flex: 1;
        width: 100%;
        height: calc(100vh - 120px);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        padding: 1.5rem 3.5rem;
        box-sizing: border-box;
    }

    /* 主图片外壳与工程图纸浮空立体感 */
    .slb-img-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 90%;
        max-height: 82vh;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .slb-image {
        max-width: 100%;
        max-height: 80vh;
        object-fit: contain;
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s;
        cursor: zoom-in;
    }

    .slb-image.slb-zoomed {
        cursor: grab;
        transform-origin: center;
    }

    .slb-image.slb-zoomed:active {
        cursor: grabbing;
    }

    /* 左右翻页圆形毛玻璃按钮 */
    .slb-nav {
        all: unset;
        box-sizing: border-box;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 46px;
        height: 46px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 50%;
        color: rgba(255, 255, 255, 0.9);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 15;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    }

    .slb-nav:hover {
        background: rgba(255, 255, 255, 0.22);
        border-color: rgba(255, 255, 255, 0.3);
        color: #ffffff;
        transform: translateY(-50%) scale(1.08);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    }

    .slb-nav:active {
        transform: translateY(-50%) scale(0.94);
    }

    .slb-nav.slb-prev {
        left: 1.5rem;
    }

    .slb-nav.slb-next {
        right: 1.5rem;
    }

    .slb-nav:disabled {
        opacity: 0.2;
        cursor: not-allowed;
        pointer-events: none;
    }

    /* 底部 macOS 悬浮毛玻璃 HUD 控制胶囊 */
    .slb-bottom-hud {
        position: absolute;
        bottom: 1.25rem;
        left: 0;
        right: 0;
        z-index: 30;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 1.5rem;
        pointer-events: none;
    }

    .slb-zoom-bar {
        pointer-events: auto;
        display: flex;
        align-items: center;
        gap: 0.35rem;
        background: rgba(30, 41, 59, 0.7);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 4px 8px;
        border-radius: 30px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
        transition: all 0.2s ease;
    }

    .slb-zoom-bar:hover {
        background: rgba(30, 41, 59, 0.85);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .slb-zoom-btn {
        all: unset;
        box-sizing: border-box;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: transparent;
        color: rgba(255, 255, 255, 0.85);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.15s ease;
    }

    .slb-zoom-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #ffffff;
    }

    .slb-zoom-btn:active {
        transform: scale(0.92);
    }

    .slb-zoom-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    .slb-zoom-btn:disabled:hover {
        background: transparent;
    }

    .slb-hud-divider {
        width: 1px;
        height: 16px;
        background: rgba(255, 255, 255, 0.15);
        margin: 0 4px;
    }

    .slb-zoom-level {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 48px;
        font-size: 0.82rem;
        font-weight: 600;
        color: #ffffff;
        user-select: none;
    }

    /* 键盘提示 */
    .slb-help {
        position: absolute;
        right: 1.5rem;
        display: flex;
        gap: 0.6rem;
        font-size: 0.72rem;
        color: rgba(255, 255, 255, 0.45);
        pointer-events: auto;
    }

    .slb-help span {
        background: rgba(255, 255, 255, 0.06);
        padding: 3px 8px;
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* 结果图片容器优化 */
    .image-item {
        background: white;
        border-radius: 16px;
        padding: 1.5rem;
        margin-bottom: 2rem;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        border: 2px solid #e5e7eb;
        transition: all 0.3s ease;
    }

    .image-item:hover {
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 12px 35px rgba(59, 130, 246, 0.15);
    }

    .image-item h4 {
        background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 600;
        margin: 0 0 1rem 0;
        font-size: 1.125rem;
        text-align: center;
    }

    .image-pair-item {
        grid-column: 1 / -1;
    }

    .spc-image-screen-nav {
        position: sticky;
        top: 0;
        z-index: 4;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        flex-wrap: wrap;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid #dbeafe;
        border-radius: 10px;
        padding: 0.65rem 0.75rem;
        margin: 0 0 1rem 0;
        box-shadow: 0 8px 22px rgba(37, 99, 235, 0.1);
        backdrop-filter: blur(10px);
    }

    .spc-image-screen-nav-tabs,
    .spc-image-screen-nav-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .spc-image-screen-nav-actions {
        margin-left: auto;
        justify-content: flex-end;
    }

    .spc-image-screen-nav-label {
        color: #334155;
        font-size: 0.86rem;
        font-weight: 600;
        margin-right: 0.25rem;
    }

    .spc-image-screen-nav button {
        appearance: none;
        border: 1px solid #bfdbfe;
        background: #eff6ff;
        color: #1d4ed8;
        border-radius: 8px;
        padding: 0.35rem 0.65rem;
        font-size: 0.82rem;
        font-weight: 600;
        cursor: pointer;
        line-height: 1.15;
    }

    .spc-image-screen-nav button:hover {
        background: #dbeafe;
        border-color: #60a5fa;
    }

    .spc-image-screen-nav .cad-preview-btn,
    .spc-image-screen-nav .cad-download-btn {
        padding: 0.42rem 0.75rem;
        box-shadow: none;
    }

    .image-item[id^="screen-result-"] {
        scroll-margin-top: 5rem;
    }

    .image-pair-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
        align-items: stretch;
    }

    .image-pair-card {
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 0.75rem;
    }

    .image-pair-card h5 {
        margin: 0 0 0.75rem 0;
        text-align: center;
        font-size: 0.95rem;
        color: #1f2937;
        font-weight: 600;
        line-height: 1.25;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .image-item img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border: 1px solid #e5e7eb;
        transition: all 0.3s ease;
        cursor: pointer;
        position: relative;
        display: block;
        margin: 0 auto;
    }

    .image-pair-card > img {
        box-sizing: border-box;
        width: 100%;
        aspect-ratio: 1;
        max-height: min(70vh, 32rem);
        object-fit: contain;
        background: #fff;
        cursor: zoom-in;
    }

    .image-item img:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }

    .image-item img::after {
        content: "🔍";
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 0.25rem 0.5rem;
        border-radius: 6px;
        font-size: 0.875rem;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .image-item img:hover::after {
        opacity: 1;
    }

    .download-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
        border: none;
        text-decoration: none;
        padding: 0.42rem 0.7rem;
        border-radius: 9px;
        font-weight: 600;
        font-size: 0.82rem;
        line-height: 1.15;
        min-width: 5.1rem;
        min-height: 2.05rem;
        margin-top: 0;
        transition: all 0.3s ease;
        text-align: center;
        box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
        white-space: nowrap;
        box-sizing: border-box;
        cursor: pointer;
    }

    .download-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(16, 185, 129, 0.32);
        text-decoration: none;
        color: white;
    }

    .download-btn-group {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        flex-wrap: nowrap;
        margin-top: 0.85rem;
    }

    .download-btn-group-total {
        margin-top: 1.1rem;
    }

    .download-btn.cad-preview-btn {
        background: #ffffff;
        color: #2563eb;
        border: 1px solid #3b82f6;
        box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12);
    }

    .download-btn.cad-preview-btn:hover {
        color: #1d4ed8;
        box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18);
    }

    .spc-cad-preview-modal {
        position: fixed;
        inset: 0;
        z-index: 14000;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
        background: rgba(15, 23, 42, 0.62);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .spc-cad-preview-modal.is-open {
        display: flex;
    }

    body.spc-cad-preview-open {
        overflow: hidden;
    }

    .spc-cad-preview-dialog {
        width: min(1180px, calc(100vw - 3rem));
        height: min(760px, calc(100dvh - 3rem));
        display: flex;
        flex-direction: column;
        background: #ffffff;
        border: 1px solid #dbe3ef;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
    }

    .spc-cad-preview-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.9rem 1rem;
        border-bottom: 1px solid #e5e7eb;
        background: #f8fafc;
    }

    .spc-cad-preview-header h3 {
        margin: 0;
        font-size: 1.05rem;
        color: #111827;
        font-weight: 700;
    }

    .spc-cad-preview-subtitle {
        margin: 0.25rem 0 0;
        color: #64748b;
        font-size: 0.82rem;
        max-width: min(62vw, 720px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .spc-cad-preview-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .spc-cad-preview-download,
    .spc-cad-preview-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 2.1rem;
        border-radius: 9px;
        font-weight: 600;
        font-size: 0.84rem;
        cursor: pointer;
        text-decoration: none;
    }

    .spc-cad-preview-download {
        padding: 0 0.85rem;
        color: #ffffff;
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
    }

    .spc-cad-preview-close {
        width: 2.1rem;
        border: 1px solid #cbd5e1;
        background: #ffffff;
        color: #334155;
        font-size: 1.35rem;
        line-height: 1;
    }

    .spc-cad-preview-toolbar {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.45rem 1rem;
        border-bottom: 1px solid #e5e7eb;
        background: #ffffff;
    }

    .spc-cad-preview-toolbar button,
    .spc-cad-preview-toolbar span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 2rem;
        min-width: 2.25rem;
        border-radius: 8px;
        font-size: 0.82rem;
        font-weight: 600;
        line-height: 1;
    }

    .spc-cad-preview-toolbar button {
        border: 1px solid #cbd5e1;
        background: #f8fafc;
        color: #1f2937;
        cursor: pointer;
        transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    }

    .spc-cad-preview-toolbar button:hover {
        border-color: #3b82f6;
        background: #eff6ff;
        color: #1d4ed8;
    }

    .spc-cad-preview-toolbar span {
        min-width: 4.3rem;
        padding: 0 0.6rem;
        border: 1px solid #dbe3ef;
        background: #ffffff;
        color: #475569;
        font-variant-numeric: tabular-nums;
    }

    .spc-cad-preview-status {
        padding: 0.55rem 1rem;
        border-bottom: 1px solid #e5e7eb;
        color: #475569;
        background: #ffffff;
        font-size: 0.82rem;
    }

    .spc-cad-preview-status.is-error {
        color: #b91c1c;
        background: #fef2f2;
    }

    .spc-cad-preview-stage {
        flex: 1;
        min-height: 0;
        overflow: hidden;
        background:
            linear-gradient(#eef2f7 1px, transparent 1px),
            linear-gradient(90deg, #eef2f7 1px, transparent 1px),
            #f8fafc;
        background-size: 28px 28px;
        padding: 0.75rem;
        cursor: grab;
        touch-action: none;
        user-select: none;
    }

    .spc-cad-preview-stage.is-panning {
        cursor: grabbing;
    }

    .spc-cad-preview-svg {
        display: block;
        width: 100%;
        height: 100%;
        background: #ffffff;
        border: 1px solid #dbe3ef;
        border-radius: 10px;
        cursor: inherit;
    }

    .spc-cad-preview-svg line,
    .spc-cad-preview-svg polyline,
    .spc-cad-preview-svg polygon,
    .spc-cad-preview-svg circle {
        stroke-width: 1.4;
        vector-effect: non-scaling-stroke;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .spc-cad-preview-svg text {
        font-family: 'Microsoft YaHei', Arial, sans-serif;
        dominant-baseline: middle;
        user-select: none;
    }

    .spc-cad-preview-empty {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #64748b;
        font-size: 0.95rem;
        text-align: center;
    }

    /* 移动端优化 */
    @media (max-width: 768px) {
        .slb-content {
            padding: 2rem 1rem;
        }

        .slb-image {
            max-width: 95%;
            max-height: 70vh;
        }

        .slb-controls {
            top: .75rem;
            right: .75rem;
        }

        .slb-btn {
            width: 36px;
            height: 36px;
            font-size: 15px;
        }

        .slb-nav {
            width: 36px;
            height: 36px;
            font-size: 16px;
        }

        .slb-nav.slb-prev {
            left: .5rem;
        }

        .slb-nav.slb-next {
            right: .5rem;
        }

        .slb-counter {
            top: .75rem;
            left: .75rem;
            font-size: .65rem;
        }

        .slb-zoom-bar {
            bottom: .75rem;
            padding: .25rem .4rem;
        }

        .slb-zoom-btn {
            width: 30px;
            height: 30px;
            font-size: 13px;
        }

        .slb-zoom-level {
            min-width: 40px;
            font-size: .7rem;
        }

        .slb-help {
            display: none;
        }

        .slb-caption {
            padding: .35rem .75rem;
            font-size: .75rem;
            max-width: 85%;
        }

        .image-item {
            padding: 1rem;
            margin-bottom: 1.5rem;
        }

        .image-item h4 {
            font-size: 1rem;
        }

        .image-pair-grid {
            grid-template-columns: 1fr;
        }

        .download-btn-group {
            flex-wrap: wrap;
        }

        .spc-cad-preview-modal {
            padding: 0.75rem;
        }

        .spc-cad-preview-dialog {
            width: calc(100vw - 1.5rem);
            height: calc(100dvh - 1.5rem);
        }

        .spc-cad-preview-header {
            align-items: flex-start;
        }

        .spc-cad-preview-toolbar {
            padding: 0.45rem 0.75rem;
            overflow-x: auto;
        }

        .spc-cad-preview-download {
            display: none;
        }
    }

    /* 高效网格版布局（作用域：仅当前页面） */
    .signal-power-config-page {
        background: #f3f4f6;
        padding: 1.25rem 1rem calc(var(--spc-bottom-offset, 7rem) + 0.4rem);
    }

    /* 侧边栏与右侧表单的间距：由 gap 控制 */
    .signal-power-config-page .spc-shell {
        display: grid;
        grid-template-columns: 292px minmax(0, 1fr);
        gap: 0 rem;
        /* 可改为 0.9rem 缩小、1.5rem 放大 */
        align-items: start;
        transition: grid-template-columns 0.25s ease;
    }

    .signal-power-config-page .spc-shell.spc-sidebar-collapsed {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    /* 结果模式下：侧边栏自动紧凑折叠为 52px */
    .signal-power-config-page .spc-shell:has(.results-active) .spc-sidebar {
        max-height: calc(100vh - 120px);
    }

    /* 侧边栏：macOS 级原生侧边栏设计与右侧卡片绝对平齐 */
    .signal-power-config-page .spc-sidebar {
        position: sticky;
        top: 106px;
        border: 1px solid #d8dce5;
        border-radius: 14px;
        background: #f8f9fc;
        padding: 1.1rem 1rem;
        transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), padding 0.25s ease;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: calc(100vh - 130px);
        min-height: 520px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    }

    .signal-power-config-page .spc-sidebar.spc-sidebar-collapsed {
        padding: 0.75rem 0.5rem;
        min-width: 52px;
        width: 52px;
        min-height: auto;
    }

    .signal-power-config-page .spc-sidebar.spc-sidebar-collapsed .spc-sidebar-title span,
    .signal-power-config-page .spc-sidebar.spc-sidebar-collapsed .spc-qck-scope,
    .signal-power-config-page .spc-sidebar.spc-sidebar-collapsed .spc-step-section {
        display: none !important;
    }

    .signal-power-config-page .spc-sidebar.spc-sidebar-collapsed .spc-sidebar-title {
        justify-content: center;
        margin: 0;
        padding: 0;
        border-bottom: none;
    }

    .signal-power-config-page .spc-sidebar.spc-sidebar-collapsed .spc-sidebar-title>svg {
        display: none;
    }

    .spc-sidebar-toggle-btn {
        all: unset;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 8px;
        cursor: pointer;
        color: #1e3a8a;
        transition: background 0.18s, color 0.18s;
        flex-shrink: 0;
    }

    .spc-sidebar-toggle-btn:hover {
        background: rgba(30, 58, 138, 0.08);
    }

    .spc-sidebar-toggle-btn svg {
        width: 18px;
        height: 18px;
        transition: transform 0.25s ease;
    }

    .spc-sidebar.spc-sidebar-collapsed .spc-sidebar-toggle-btn svg {
        transform: rotate(180deg);
    }

    .signal-power-config-page .spc-sidebar-title {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin: 0 0 0.85rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        color: #0f172a;
        font-size: 1.05rem;
        font-weight: 700;
    }

    .signal-power-config-page .spc-sidebar-title span {
        flex: 1;
        min-width: 0;
    }

    .signal-power-config-page .spc-sidebar .spc-sidebar-toggle-btn {
        margin-left: auto;
    }

    .signal-power-config-page .spc-sidebar-title svg {
        width: 18px;
        height: 18px;
        color: #2563eb;
    }

    /* Quick Settings 作用域：使用 spc-qck- 前缀，避免与主文件样式冲突 */
    .signal-power-config-page .spc-sidebar .spc-qck-scope.spc-quick-card {
        border-top: none;
        padding-top: 0;
        margin-bottom: 0.85rem;
    }

    .signal-power-config-page .spc-sidebar .spc-qck-scope .spc-qck-heading {
        padding: 0 0.75rem;
        margin: 0 0 1rem;
        font-size: 0.75rem;
        font-weight: 600;
        color: #9ca3af;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .signal-power-config-page .spc-sidebar .spc-qck-scope .spc-qck-body {
        padding: 0 0.75rem;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .signal-power-config-page .spc-sidebar .spc-qck-scope .spc-qck-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .signal-power-config-page .spc-sidebar .spc-qck-scope .spc-qck-label {
        font-size: 0.875rem;
        font-weight: 400;
        color: #4b5563;
        flex: 1;
        min-width: 0;
    }

    .signal-power-config-page .spc-sidebar .spc-qck-scope .spc-qck-select {
        width: 112px;
        min-width: 0;
        height: 28px;
        padding: 0 24px 0 8px;
        border: 1px solid #e5e7eb;
        border-radius: 0.375rem;
        background-color: #fff;
        color: #374151;
        font-size: 0.72rem;
        line-height: 1.2;
    }

    .signal-power-config-page .spc-sidebar .spc-qck-scope .spc-qck-select:focus {
        border-color: #1e3a8a;
        outline: 2px solid rgba(30, 58, 138, 0.16);
        outline-offset: 1px;
    }

    .signal-power-config-page .spc-sidebar #spcQuickSendingCardModeRow {
        align-items: stretch;
        flex-direction: column;
        gap: 0.45rem;
    }

    .signal-power-config-page .spc-sidebar #spcQuickSendingCardModeRow .spc-qck-label,
    .signal-power-config-page .spc-sidebar #spcQuickSendingCardModeRow .spc-qck-select,
    .signal-power-config-page .spc-sidebar #spcQuickSendingCardModeRow .spc-apple-select-wrapper {
        width: 100%;
    }

    .signal-power-config-page .spc-sidebar #spcQuickSendingCardModeRow .spc-apple-select-trigger {
        min-height: 34px;
        padding: 0.4rem 0.65rem;
        font-size: 0.75rem;
    }

    .signal-power-config-page .spc-sidebar .spc-qck-scope .spc-qck-toggle {
        all: unset;
        box-sizing: border-box;
        position: relative;
        display: inline-block;
        width: 36px;
        height: 20px;
        flex-shrink: 0;
        border-radius: 9999px;
        background: #e5e7eb;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .signal-power-config-page .spc-sidebar .spc-qck-scope .spc-qck-toggle:focus {
        outline: 2px solid rgba(30, 58, 138, 0.35);
        outline-offset: 2px;
    }

    .signal-power-config-page .spc-sidebar .spc-qck-scope .spc-qck-toggle.spc-qck-toggle-on {
        background: #1e3a8a;
    }

    .signal-power-config-page .spc-sidebar .spc-qck-scope .spc-qck-toggle-thumb {
        position: absolute;
        top: 2px;
        left: 2px;
        width: 14px;
        height: 14px;
        border-radius: 9999px;
        background: #fff;
        transition: transform 0.2s ease;
        pointer-events: none;
    }

    .signal-power-config-page .spc-sidebar .spc-qck-scope .spc-qck-toggle.spc-qck-toggle-on .spc-qck-toggle-thumb {
        transform: translateX(16px);
    }

    .signal-power-config-page .spc-sidebar .spc-qck-scope .spc-qck-input-wrap {
        display: flex;
        align-items: center;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 0.375rem;
        overflow: hidden;
    }

    .signal-power-config-page .spc-sidebar .spc-qck-scope .spc-qck-input {
        all: unset;
        box-sizing: border-box;
        width: 40px;
        height: 24px;
        padding: 0;
        border: none;
        background: transparent;
        font-size: 0.75rem;
        text-align: center;
        color: #374151;
        -webkit-appearance: textfield;
        -moz-appearance: textfield;
        appearance: textfield;
    }

    .signal-power-config-page .spc-sidebar .spc-qck-scope .spc-qck-input:focus {
        outline: none;
    }

    .signal-power-config-page .spc-sidebar .spc-qck-scope .spc-qck-input::-webkit-outer-spin-button,
    .signal-power-config-page .spc-sidebar .spc-qck-scope .spc-qck-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .signal-power-config-page .spc-sidebar .spc-qck-scope .spc-qck-suffix {
        padding: 0 0.25rem;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: 600;
        color: #9ca3af;
        background: #f9fafb;
        border-left: 1px solid #e5e7eb;
        border-top-right-radius: 0.375rem;
        border-bottom-right-radius: 0.375rem;
    }

    .signal-power-config-page .spc-quick-value {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 3.1rem;
        padding: 0.18rem 0.5rem;
        border-radius: 999px;
        background: #e2e8f0;
        color: #1e3a8a;
        font-weight: 700;
    }

    .signal-power-config-page .spc-main-quick-hidden {
        display: none !important;
    }

    .signal-power-config-page .spc-step-section {
        border-top: 1px solid #e2e8f0;
        padding: 1rem 0.75rem 0;
    }

    .signal-power-config-page .spc-step-heading {
        padding: 0;
        margin: 0 0 0.75rem;
        font-size: 0.75rem;
        font-weight: 600;
        color: #9ca3af;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .signal-power-config-page .spc-step-nav {
        display: grid;
        gap: 0.44rem;
    }

    .signal-power-config-page .spc-step-link {
        display: flex;
        align-items: center;
        gap: 0.72rem;
        width: 100%;
        box-sizing: border-box;
        padding: 0.62rem 0.7rem;
        border: 1px solid transparent;
        border-radius: 10px;
        color: #374151;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.2s ease;
    }

    .signal-power-config-page .spc-step-link:hover {
        border-color: #c7d2e5;
        background: #f9fafb;
    }

    .signal-power-config-page .spc-step-index {
        flex: 0 0 auto;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        border: 1px solid #c5ccd8;
        display: grid;
        place-items: center;
        font-size: 0.8rem;
        color: #5b6474;
        background: #ffffff;
    }

    .signal-power-config-page .spc-step-link.is-active {
        background: #e7ecf8;
        border-color: #c7d2e5;
        color: #1e3a8a;
    }

    .signal-power-config-page .spc-step-link.is-active .spc-step-index {
        border-color: #1e3a8a;
        background: #1e3a8a;
        color: #fff;
    }

    .signal-power-config-page .spc-main {
        min-width: 0;
    }

    #spcPageImmersiveToggleBtn.spc-page-immersive-toggle-btn {
        all: unset;
        box-sizing: border-box;
        position: fixed;
        top: calc(70px + 10px);
        right: 10px;
        z-index: 3201;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.46rem 0.72rem;
        border: 1px solid #d1d5db;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.96);
        color: #1f2937;
        font-size: 0.82rem;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
        transition: all 0.2s ease;
    }

    #spcPageImmersiveToggleBtn.spc-page-immersive-toggle-btn:hover {
        border-color: #93c5fd;
        color: #1e3a8a;
        transform: translateY(-1px);
    }

    #spcPageImmersiveToggleBtn.spc-page-immersive-toggle-btn .spc-page-immersive-icon {
        width: 14px;
        height: 14px;
        display: inline-block;
        flex-shrink: 0;
    }

    .signal-power-config-page .spc-main-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.8rem;
        padding: 0 0.25rem;
    }

    .signal-power-config-page .spc-main-header h1 {
        margin: 0;
        background: none;
        -webkit-text-fill-color: inherit;
        color: #111827;
        font-size: 1.8rem;
        font-weight: 700;
        letter-spacing: 0;
        text-align: left;
    }

    .signal-power-config-page .container-old {
        max-width: none;
        background: transparent;
        border: 0;
        box-shadow: none;
        overflow: visible;
    }

    .signal-power-config-page .form-section {
        padding: 0;
        background: transparent;
        border-radius: 0;
    }

    .signal-power-config-page .spc-section-card {
        display: block;
        width: 100%;
        box-sizing: border-box;
        border: 1px solid #d8dce5;
        border-radius: 14px;
        background: #f8f9fc;
        margin-bottom: 1rem;
        position: relative;
        overflow: visible; /* 允许下拉菜单正常溢出浮动，不被硬截断 */
    }

    .signal-power-config-page .spc-section-card.is-collapsed {
        overflow: hidden;
    }

    /* 逐级自然层叠，上部卡片层级高于下部卡片，确保下拉菜单覆盖在下方卡片之上 */
    .signal-power-config-page #section-screen { z-index: 25; }
    .signal-power-config-page #section-cabinet-screen { z-index: 20; }
    .signal-power-config-page #section-power { z-index: 15; }
    .signal-power-config-page #section-card-settings { z-index: 10; }
    .signal-power-config-page #section-output { z-index: 5; }

    .signal-power-config-page .spc-section-card.has-open-dropdown,
    .signal-power-config-page .spc-section-card:has(.spc-apple-select-wrapper.is-open) {
        z-index: 99 !important;
    }

    .signal-power-config-page .spc-section-body {
        padding: 1rem 1.05rem 1.05rem;
        position: relative;
        overflow: visible;
    }

    .signal-power-config-page .spc-section-head {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        align-items: flex-start;
        justify-content: space-between;
        padding: 0.8rem 1.05rem;
        background: #f3f4f6;
        border-bottom: 1px solid #d8dce5;
        border-top-left-radius: 13px;
        border-top-right-radius: 13px;
        gap: 0.8rem;
        flex-wrap: wrap;
    }

    .signal-power-config-page .spc-section-head-left {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        min-width: 0;
        flex-shrink: 0;
    }

    .signal-power-config-page .spc-section-head h3 {
        margin: 0;
        font-size: 1.1rem;
        color: #111827;
        font-weight: 700;
    }

    .signal-power-config-page .spc-section-head .spc-step-index {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .signal-power-config-page .spc-hdr-meta {
        text-align: right;
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        align-items: flex-end;
    }

    .signal-power-config-page .spc-hdr-meta-text {
        font-size: 0.875rem;
        font-weight: 500;
        color: #111827;
        white-space: normal;
        word-break: break-word;
        line-height: 1.35;
    }

    /* 支持分两行：第一行基础信息，第二行接口详情 */
    .signal-power-config-page .spc-hdr-meta-text .spc-meta-line2 {
        display: block;
        margin-top: 0.25rem;
        font-size: 0.8rem;
        color: #6b7280;
        font-weight: 500;
    }

    .signal-power-config-page .spc-hdr-collapse-btn {
        all: unset;
        box-sizing: border-box;
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 9999px;
        background: #fff;
        border: 1px solid #e2e8f0;
        color: #64748b;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .signal-power-config-page .spc-hdr-collapse-btn:hover {
        color: #2563eb;
        border-color: #93c5fd;
        background: #f0f7ff;
        box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
        transform: translateY(-1px);
    }

    .signal-power-config-page .spc-hdr-collapse-btn:active {
        transform: translateY(0);
    }

    .signal-power-config-page .spc-hdr-collapse-icon {
        width: 22px;
        height: 22px;
        display: block;
        transition: transform 0.2s ease;
    }

    .signal-power-config-page .spc-section-card.is-collapsed .spc-hdr-collapse-icon {
        transform: rotate(-180deg);
    }

    .signal-power-config-page .spc-section-card.is-collapsed .spc-section-body {
        display: none;
    }

    .signal-power-config-page .spc-anchor {
        scroll-margin-top: 114px;
    }

    .signal-power-config-page .spc-subheading {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        margin: 0 0 0.75rem;
        color: #1f2937;
        font-weight: 700;
    }

    .signal-power-config-page .spc-subheading .spc-step-index {
        width: 28px;
        height: 28px;
        font-size: 0.82rem;
    }

    .signal-power-config-page .spc-subheading .spc-inline-meta {
        margin-left: auto;
        font-size: 0.875rem;
        font-weight: 500;
        color: #6b7280;
    }

    .signal-power-config-page .spc-cabinet-block {
        margin-top: 1.25rem;
    }

    .signal-power-config-page .page-header-with-toggle {
        margin-bottom: 1rem;
    }

    .signal-power-config-page .page-header-with-toggle h2 {
        margin: 0;
        font-size: 1.18rem;
        font-weight: 700;
        color: #111827 !important;
        background: none !important;
        -webkit-text-fill-color: inherit !important;
    }

    .signal-power-config-page .form-grid,
    .signal-power-config-page .form-grid4,
    .signal-power-config-page .form-row {
        gap: 0.9rem;
        margin-bottom: 1rem;
    }

    .signal-power-config-page .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .signal-power-config-page .form-grid4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .signal-power-config-page .form-grid-inline {
        grid-template-columns: 2fr 2fr 1fr;
    }

    .signal-power-config-page .form-section label {
        color: #1f2937;
        font-size: 0.95rem;
        font-weight: 650;
    }

    .signal-power-config-page .form-section input[type="number"],
    .signal-power-config-page .form-section input[type="text"],
    .signal-power-config-page .form-section select {
        border: 1px solid #c7cfda;
        border-radius: 13px;
        min-height: 46px;
        background: #ffffff;
        box-shadow: none;
    }

    .signal-power-config-page .form-section input[type="number"]:focus,
    .signal-power-config-page .form-section input[type="text"]:focus,
    .signal-power-config-page .form-section select:focus {
        transform: none;
        border-color: #1e3a8a;
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
    }

    .signal-power-config-page .box-group {
        border: 1px solid #d8dce5;
        background: #fbfcff;
        box-shadow: none;
    }

    .signal-power-config-page .box-group:hover {
        border-color: #c7cfda;
        box-shadow: none;
        transform: none;
    }

    .signal-power-config-page .box-header {
        background: none;
        -webkit-text-fill-color: inherit;
        color: #1e3a8a;
    }

    .signal-power-config-page .btn-group-old {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .spc-bottom-action {
        position: fixed !important;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        max-width: none;
        z-index: 3000;
        padding: 0.58rem 1rem;
        border-top: 1px solid #d6deeb;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.12);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .spc-bottom-action-inner {
        width: 100%;
        max-width: min(1680px, calc(100% - 0.8rem));
        margin: 0 auto;
        display: flex;
        align-items: flex-end;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.8rem;
    }

    .spc-bottom-action.is-hidden {
        opacity: 0;
        pointer-events: none;
        transform: translateY(100%);
    }

    .spc-bottom-meta {
        display: flex;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0.5rem;
        min-width: 0;
        flex: 1 1 560px;
    }


    .spc-bottom-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        max-width: min(460px, 100%);
        padding: 0.34rem 0.62rem;
        border-radius: 999px;
        border: 1px solid #d8dce6;
        background: #f8fafc;
        color: #334155;
        font-size: clamp(0.74rem, 0.68rem + 0.16vw, 0.82rem);
        font-weight: 600;
    }

    .spc-bottom-chip-label {
        flex-shrink: 0;
        color: #64748b;
    }

    .spc-bottom-chip-value {
        color: #1e3a8a;
        font-weight: 700;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .spc-bottom-chip.spc-bottom-chip-cabinet {
        max-width: min(920px, 100%);
        border-radius: 14px;
        align-items: flex-start;
    }

    .spc-bottom-chip.spc-bottom-chip-cabinet .spc-bottom-chip-value {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
        line-height: 1.3;
    }

    .spc-bottom-meta.spc-bottom-meta-compact {
        gap: 0.4rem;
    }

    .spc-bottom-meta.spc-bottom-meta-compact .spc-bottom-chip {
        font-size: clamp(0.72rem, 0.66rem + 0.16vw, 0.78rem);
        padding: 0.3rem 0.55rem;
    }

    .spc-bottom-actions {
        display: inline-flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.55rem;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .spc-bottom-btn.spc-bottom-back-edit {
        display: none !important;
    }

    .spc-bottom-action.is-results-mode .spc-bottom-nav-btn,
    .spc-bottom-action.is-results-mode #submit_button {
        display: none;
    }

    .spc-bottom-btn.spc-bottom-recalculate {
        display: none !important;
    }

    .spc-bottom-action.is-results-mode .spc-bottom-btn.spc-bottom-recalculate {
        display: inline-flex !important;
        background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%);
        color: #fff;
        border: none;
    }

    .spc-bottom-action.is-results-mode .spc-bottom-btn.spc-bottom-recalculate:hover {
        opacity: 0.95;
        transform: translateY(-1px);
    }

    .spc-bottom-action.is-results-mode .spc-bottom-btn.spc-bottom-back-edit {
        display: inline-flex !important;
    }

    .spc-bottom-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #c8d4e6;
        border-radius: 10px;
        min-height: 42px;
        padding: 0 1.1rem;
        font-size: 0.95rem;
        font-weight: 700;
        background: #fff;
        color: #344154;
        cursor: pointer;
        white-space: nowrap;
    }

    .spc-bottom-btn:hover {
        background: #f6f9ff;
        border-color: #b8c8df;
    }

    #submit_button.spc-bottom-submit {
        margin: 0;
        min-width: 152px;
        border: none;
        padding: 0.76rem 1.35rem;
        font-size: 0.98rem;
        border-radius: 12px;
        box-shadow: 0 7px 20px rgba(16, 185, 129, 0.26);
    }

    #submit_button.spc-bottom-submit:disabled {
        opacity: 0.65;
        cursor: not-allowed;
        transform: none;
    }

    .signal-power-config-page .output-section {
        background: #ffffff;
        border: 1px solid #d8dce5;
        border-radius: 14px;
        margin-top: 0.2rem;
    }

    /* 🌟 双栏工作台计算模式下：隐藏全局大页脚，避免双重滚动条与焦点跳动 */
    body.spc-results-active .layout-footer,
    body:has(.results-active) .layout-footer {
        display: none !important;
    }

    /* 桌面端双栏工作台模式下的满屏视口锁定 */
    @media (min-width: 1081px) {
        body.spc-results-active,
        body:has(.results-active) {
            overflow: hidden !important;
        }

        .signal-power-config-page:has(.results-active),
        body.spc-results-active .signal-power-config-page {
            height: calc(100vh - var(--header-height, 64px));
            height: calc(100dvh - var(--header-height, 64px));
            max-height: calc(100vh - var(--header-height, 64px));
            max-height: calc(100dvh - var(--header-height, 64px));
            padding-top: 0.75rem;
            padding-bottom: 0.5rem;
            box-sizing: border-box;
            overflow: hidden;
        }

        body.spc-results-active .spc-shell,
        .signal-power-config-page .spc-shell:has(.results-active) {
            height: calc(100vh - var(--header-height, 64px) - var(--spc-bottom-offset, 68px) - 1.25rem);
            height: calc(100dvh - var(--header-height, 64px) - var(--spc-bottom-offset, 68px) - 1.25rem);
            max-height: calc(100vh - var(--header-height, 64px) - var(--spc-bottom-offset, 68px) - 1.25rem);
            max-height: calc(100dvh - var(--header-height, 64px) - var(--spc-bottom-offset, 68px) - 1.25rem);
            align-items: stretch;
        }

        body.spc-results-active .spc-sidebar,
        .signal-power-config-page .spc-shell:has(.results-active) .spc-sidebar {
            height: 100%;
            max-height: 100%;
            overflow-y: auto;
            overscroll-behavior: contain;
        }

        body.spc-results-active .spc-main,
        .signal-power-config-page .spc-shell:has(.results-active) .spc-main {
            height: 100%;
            max-height: 100%;
            overflow: hidden;
        }

        body.spc-results-active .container-old,
        .signal-power-config-page .results-active .container-old {
            height: 100%;
            max-height: 100%;
            margin-top: 0;
            display: flex;
            align-items: stretch;
            overflow: hidden;
        }

        body.spc-results-active .form-section,
        .signal-power-config-page .results-active .form-section {
            height: 100% !important;
            max-height: 100% !important;
            overflow-y: auto;
            overscroll-behavior: contain;
            box-sizing: border-box;
            padding-bottom: 1.5rem;
        }

        body.spc-results-active .output-section,
        .signal-power-config-page .results-active .output-section {
            height: 100% !important;
            max-height: 100% !important;
            overflow-y: auto;
            overscroll-behavior: contain;
            box-sizing: border-box;
            padding-bottom: 1.5rem;
        }
    }

    .signal-power-config-page .results-active .container-old {
        gap: 1rem;
    }

    .signal-power-config-page .results-active .form-section,
    .signal-power-config-page .results-active .output-section {
        border: 1px solid #d8dce5;
        border-radius: 14px;
    }

    .signal-power-config-page .results-active .form-section label {
        font-size: 0.82rem;
    }

    .signal-power-config-page .results-active .form-section .field-tip {
        font-size: 0.72rem;
    }

    .signal-power-config-page .results-active .form-section select,
    .signal-power-config-page .results-active .form-section input[type="number"],
    .signal-power-config-page .results-active .form-section input[type="text"] {
        min-height: 38px;
        font-size: 0.85rem;
    }

    /* 🌟 结果分栏模式下：保持优雅单行 3 列与单行 4 列，文案精简后空间完全充裕 */
    .signal-power-config-page .results-active .spc-country-select-row {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.5rem !important;
    }

    .signal-power-config-page .results-active .spc-specs-4col-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 0.45rem !important;
    }

    .signal-power-config-page .results-active .spc-apple-select-trigger,
    .signal-power-config-page .results-active .spc-country-trigger-btn {
        padding: 0 6px !important;
        font-size: 0.82rem !important;
    }

    /* 🌟 结果分栏模式下：硬件增强栏紧凑单行 */
    .signal-power-config-page .results-active .spc-enhancement-bar {
        gap: 0.85rem !important;
    }

    /* 沉浸式全屏工作台模式：全屏拉伸无缝对齐 */
    body.spc-page-immersive-mode.spc-results-active .signal-power-config-page,
    body.spc-page-immersive-mode:has(.results-active) .signal-power-config-page {
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        padding-top: 0.75rem;
        padding-bottom: 0.5rem;
    }

    body.spc-page-immersive-mode.spc-results-active .spc-shell,
    body.spc-page-immersive-mode .signal-power-config-page .spc-shell:has(.results-active) {
        height: calc(100vh - var(--spc-bottom-offset, 68px) - 1.25rem);
        height: calc(100dvh - var(--spc-bottom-offset, 68px) - 1.25rem);
        max-height: calc(100vh - var(--spc-bottom-offset, 68px) - 1.25rem);
        max-height: calc(100dvh - var(--spc-bottom-offset, 68px) - 1.25rem);
    }

    @media (max-width: 1080px) {
        .signal-power-config-page .spc-shell {
            grid-template-columns: 1fr;
        }

        .signal-power-config-page .spc-shell.spc-sidebar-collapsed {
            grid-template-columns: 1fr;
        }

        .signal-power-config-page .spc-sidebar {
            position: static;
            top: auto;
        }

        .signal-power-config-page .spc-sidebar.spc-sidebar-collapsed {
            width: auto;
            min-width: auto;
            padding: 1rem;
        }

        .signal-power-config-page .spc-sidebar.spc-sidebar-collapsed .spc-sidebar-title span,
        .signal-power-config-page .spc-sidebar.spc-sidebar-collapsed .spc-qck-scope,
        .signal-power-config-page .spc-sidebar.spc-sidebar-collapsed .spc-step-section {
            display: block !important;
        }

        .signal-power-config-page .spc-sidebar.spc-sidebar-collapsed .spc-sidebar-title>svg {
            display: block;
        }

        .spc-sidebar-toggle-btn {
            display: none;
        }

        .signal-power-config-page .spc-step-nav {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 768px) {
        .signal-power-config-page {
            padding: 0.75rem 0.45rem calc(var(--spc-bottom-offset, 7.4rem) + 0.35rem);
        }

        #spcPageImmersiveToggleBtn.spc-page-immersive-toggle-btn {
            top: auto;
            bottom: calc(var(--spc-bottom-offset, 92px) + 8px);
            right: 12px;
            font-size: 0.78rem;
            padding: 0.42rem 0.64rem;
            z-index: 3102;
        }

        /* 沉浸式下改为视口右上角，与桌面一致；非沉浸式仍贴近底部操作条避免挡顶栏 */
        body.spc-page-immersive-mode #spcPageImmersiveToggleBtn {
            top: max(10px, env(safe-area-inset-top, 0px));
            bottom: auto;
            right: max(12px, env(safe-area-inset-right, 0px));
        }

        .signal-power-config-page .spc-sidebar {
            padding: 0.72rem 0.78rem;
            border-radius: 12px;
            margin-bottom: 0.75rem;
        }

        .signal-power-config-page .spc-sidebar-title {
            margin-bottom: 0.62rem;
            font-size: 1.05rem;
        }

        .signal-power-config-page .spc-sidebar .spc-qck-scope.spc-quick-card {
            padding-top: 0.72rem;
            margin-bottom: 0;
        }

        .signal-power-config-page .spc-sidebar .spc-qck-scope .spc-qck-body {
            gap: 0.78rem;
            padding: 0 0.2rem;
        }

        .signal-power-config-page .spc-sidebar .spc-qck-scope .spc-qck-label {
            font-size: 0.92rem;
        }

        /* Mobile: keep quick settings on top, hide duplicated sidebar step list. */
        .signal-power-config-page .spc-step-section {
            display: none !important;
        }

        .signal-power-config-page .spc-main-header h1 {
            font-size: 1.38rem;
        }

        .signal-power-config-page .form-grid,
        .signal-power-config-page .form-grid4,
        .signal-power-config-page .form-grid-inline {
            grid-template-columns: 1fr;
        }

        .signal-power-config-page .spc-section-head {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 34px;
            align-items: center;
            column-gap: 0.5rem;
            row-gap: 0.2rem;
            padding: 0.66rem 0.72rem;
        }

        .signal-power-config-page .spc-section-body {
            padding: 0.8rem;
        }

        .signal-power-config-page .spc-section-head-left {
            grid-column: 1;
            grid-row: 1;
            flex: 0 1 auto;
            min-width: 0;
            max-width: none;
        }

        .signal-power-config-page .spc-section-head h3 {
            font-size: 1rem;
            line-height: 1.26;
            white-space: normal;
            word-break: break-word;
        }

        .signal-power-config-page .spc-section-head .spc-step-index {
            width: 30px;
            height: 30px;
            font-size: 0.8rem;
        }

        .signal-power-config-page .spc-hdr-collapse-btn {
            grid-column: 2;
            grid-row: 1;
            justify-self: end;
            width: 34px;
            height: 34px;
        }

        .signal-power-config-page .spc-hdr-collapse-icon {
            width: 20px;
            height: 20px;
        }

        .signal-power-config-page .spc-hdr-meta {
            grid-column: 1 / -1;
            grid-row: 2;
            width: 100%;
            min-width: 0;
            align-items: flex-start;
            text-align: left;
            padding-left: 2.02rem;
            margin-top: 0.08rem;
        }

        .signal-power-config-page .spc-hdr-meta-text {
            font-size: 0.8rem;
            line-height: 1.34;
        }

        .signal-power-config-page .spc-subheading {
            flex-wrap: wrap;
            gap: 0.44rem;
        }

        .signal-power-config-page .spc-subheading .spc-step-index {
            width: 26px;
            height: 26px;
            font-size: 0.78rem;
        }

        .signal-power-config-page .spc-subheading .spc-inline-meta {
            width: 100%;
            margin-left: 0;
            font-size: 0.8rem;
            line-height: 1.34;
        }

        .signal-power-config-page .spc-step-nav {
            grid-template-columns: 1fr;
        }

        .spc-bottom-action {
            padding: 0.5rem 0.45rem;
        }

        .spc-bottom-action-inner {
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .spc-bottom-meta {
            width: 100%;
            flex-basis: 100%;
        }

        .spc-bottom-chip {
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .spc-bottom-actions {
            width: 100%;
            justify-content: flex-end;
            margin-left: auto;
        }

        .spc-bottom-btn,
        #submit_button.spc-bottom-submit {
            width: auto;
            min-width: 104px;
        }

        #submit_button.spc-bottom-submit {
            min-width: 138px;
        }
    }

    /* 引导弹窗样式（Driver.js） */
    .driver-popover.driver-popover-show {
        border-radius: 16px !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
        z-index: 1000000001 !important;
    }

    .driver-popover .driver-popover-next-btn,
    .driver-popover .driver-popover-prev-btn {
        background: var(--primary-color) !important;
        color: #fff !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        border: none !important;
        text-shadow: none !important;
    }

    .driver-popover-footer button {
        text-shadow: none !important;
    }

    .driver-popover .driver-popover-description {
        max-width: 320px;
        line-height: 1.5;
        word-break: normal;
    }

    /* 避免高亮导致侧栏/布局错位：不改变尺寸与定位 */
    .signal-power-config-page .driver-active-element {
        border-radius: 12px !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    body.driver-active .driver-active-element,
    body.driver-active .driver-active-element * {
        pointer-events: auto !important;
    }

    body.driver-active .driver-popover,
    body.driver-active .driver-popover * {
        pointer-events: auto !important;
    }

    .driver-popover .driver-popover-next-btn,
    .driver-popover .driver-popover-prev-btn,
    .driver-popover .driver-popover-close-btn {
        cursor: pointer !important;
        pointer-events: auto !important;
    }

    body.driver-active .signal-power-config-page .spc-shell {
        transform: none !important;
    }

    /* ====== 极简高级风多方案切换栏 (Ultra Clean Segmented Control) ====== */
    #recommendations_section {
        display: inline-flex !important;
        align-items: center !important;
        gap: 2px !important;
        background: #f1f5f9 !important;
        padding: 3px !important;
        border-radius: 8px !important;
        border: 1px solid #e2e8f0 !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        box-shadow: none !important;
    }

    .rec-tab {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        cursor: pointer !important;
        background: transparent !important;
        padding: 5px 12px !important;
        border: none !important;
        border-radius: 6px !important;
        color: #64748b !important;
        transition: background 0.12s ease, color 0.12s ease !important;
        outline: none !important;
        font-family: inherit !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
        user-select: none !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .rec-tab:hover {
        background: rgba(255, 255, 255, 0.7) !important;
        color: #0f172a !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .rec-tab--active {
        background: #ffffff !important;
        color: #0f172a !important;
        font-weight: 600 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.02) !important;
    }

    .rec-tab--active:hover {
        background: #ffffff !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.02) !important;
    }

    .rec-tab__rank {
        font-weight: 600 !important;
        font-size: 12px !important;
        color: #94a3b8 !important;
    }

    .rec-tab--active .rec-tab__rank {
        color: #64748b !important;
    }

    .rec-tab__title {
        font-weight: 600 !important;
        font-size: 13px !important;
        letter-spacing: -0.01em !important;
    }

    .rec-tab__badge {
        font-size: 10.5px !important;
        font-weight: 500 !important;
        padding: 1px 6px !important;
        border-radius: 4px !important;
        background: #e2e8f0 !important;
        color: #475569 !important;
        letter-spacing: 0 !important;
        border: none !important;
    }

    .rec-tab--active .rec-tab__badge {
        background: #eff6ff !important;
        color: #2563eb !important;
    }

    /* ====== 简约高级风硬件规格数据表格 (Clean Luxury Table) ====== */
    .card-result-container {
        margin-top: 1rem !important;
    }

    .card-container {
        background: #ffffff !important;
        border: 1px solid #eef2f6 !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02) !important;
        padding: 0 !important;
    }

    .apple-spec-table {
        width: 100% !important;
        border-collapse: collapse !important;
        text-align: left !important;
        font-size: 14.5px !important;
        line-height: 1.5 !important;
        margin: 0 !important;
        font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif !important;
    }

    .apple-spec-table th,
    .apple-spec-table td {
        padding: 14px 20px !important;
        border-right: 1px solid #f1f5f9 !important;
        border-bottom: 1px solid #f1f5f9 !important;
        vertical-align: middle !important;
    }

    .apple-spec-table th:last-child,
    .apple-spec-table td:last-child {
        border-right: none !important;
    }

    .apple-spec-table tr:last-child td {
        border-bottom: none !important;
    }

    .apple-spec-table thead th {
        background: #f8fafc !important;
        color: #1e293b !important;
        font-weight: 700 !important;
        font-size: 14.5px !important;
        letter-spacing: -0.01em !important;
    }

    .apple-spec-table tbody td {
        color: #334155 !important;
        background: #ffffff !important;
        transition: background 0.15s ease !important;
    }

    .apple-spec-table tbody tr:hover td {
        background: #fbfcfe !important;
    }

    .apple-spec-type {
        font-weight: 600 !important;
        color: #0f172a !important;
        white-space: nowrap !important;
    }

    .apple-spec-model {
        font-weight: 400 !important;
        color: #1e293b !important;
        word-break: break-word !important;
    }

    .apple-spec-qty {
        font-weight: 400 !important;
        color: #1e293b !important;
        white-space: nowrap !important;
    }

    /* ====== 极简浅色美学 Totals Summary 看板 (Apple Light Blue & Rose Red) ====== */
    .totals-summary {
        background: #ffffff !important;
        border: 1px solid #eef2f6 !important;
        border-radius: 14px !important;
        padding: 1.25rem 1.5rem !important;
        margin: 1.25rem 0 !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
    }

    .totals-summary h3 {
        color: #0f172a !important;
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        margin-bottom: 1rem !important;
        text-align: left !important;
        background: none !important;
        -webkit-text-fill-color: initial !important;
        letter-spacing: -0.01em !important;
    }

    .totals-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    /* 信号进线卡片：Apple 冰川蓝浅色系 */
    .total-item {
        background: #f0f7ff !important;
        border: 1px solid #dbeafe !important;
        border-radius: 12px !important;
        padding: 1.1rem 1.25rem !important;
        text-align: left !important;
        box-shadow: 0 2px 8px rgba(0, 113, 227, 0.04) !important;
        transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .total-item:hover {
        background: #ffffff !important;
        border-color: #93c5fd !important;
        box-shadow: 0 6px 20px rgba(0, 113, 227, 0.09) !important;
        transform: translateY(-1px) !important;
    }

    .total-label {
        font-size: 0.84rem !important;
        color: #0369a1 !important;
        font-weight: 600 !important;
        text-transform: none !important;
        margin-bottom: 0.4rem !important;
        letter-spacing: normal !important;
        display: flex !important;
        align-items: center !important;
        gap: 7px !important;
    }

    .total-label::before {
        content: "";
        display: inline-block;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #0071e3;
        box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
    }

    /* 电源进线卡片：Apple 珊瑚红/玫瑰红浅色系 */
    .total-item.power-total-item {
        background: #fff5f5 !important;
        border: 1px solid #ffe4e6 !important;
        box-shadow: 0 2px 8px rgba(225, 29, 72, 0.04) !important;
    }

    .total-item.power-total-item:hover {
        background: #ffffff !important;
        border-color: #fca5a5 !important;
        box-shadow: 0 6px 20px rgba(225, 29, 72, 0.09) !important;
    }

    .power-total-item .total-label {
        color: #be123c !important;
    }

    .power-total-item .total-label::before {
        background: #e11d48 !important;
        box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.2) !important;
    }

    .total-value {
        font-size: 1.85rem !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        background: none !important;
        -webkit-text-fill-color: initial !important;
        font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif !important;
        line-height: 1 !important;
    }

    .total-value::after {
        content: " PCS";
        font-size: 0.8rem;
        font-weight: 600;
        color: #64748b;
        margin-left: 4px;
    }

    .power-total-item .total-value::after {
        color: #9f1239;
    }

    /* ====== Apple 风格 详细规格日志折叠按钮 ====== */
    .output-toggle-btn,
    button.output-toggle-btn {
        position: static !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 6px 14px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        color: #475569 !important;
        cursor: pointer !important;
        transition: all 0.15s ease !important;
        margin: 0.5rem 0 !important;
        box-shadow: none !important;
        transform: none !important;
        outline: none !important;
    }

    .output-toggle-btn:hover,
    button.output-toggle-btn:hover {
        background: #ffffff !important;
        color: #0f172a !important;
        border-color: #cbd5e1 !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
        transform: translateY(-1px) !important;
    }

    .output-toggle-btn:active,
    button.output-toggle-btn:active {
        background: #f1f5f9 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .output-toggle-btn.expanded,
    button.output-toggle-btn.expanded {
        background: #eff6ff !important;
        border-color: #bfdbfe !important;
        color: #0071e3 !important;
    }

    /* ====== Apple 开发者控制台 / 规格分析卡片 ====== */
    .output-full {
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        padding: 0 !important;
        margin-top: 10px !important;
        overflow: hidden !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
    }

    .output-terminal-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 14px !important;
        background: #f1f5f9 !important;
        border-bottom: 1px solid #e2e8f0 !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #475569 !important;
    }

    .output-terminal-dots {
        display: flex !important;
        gap: 6px !important;
        align-items: center !important;
    }

    .output-terminal-dot {
        width: 10px !important;
        height: 10px !important;
        border-radius: 50% !important;
    }

    .output-terminal-dot--red { background: #ff5f56; }
    .output-terminal-dot--yellow { background: #ffbd2e; }
    .output-terminal-dot--green { background: #27c93f; }

    .output-copy-btn {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 2px 8px !important;
        border-radius: 4px !important;
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        color: #475569 !important;
        font-size: 11px !important;
        cursor: pointer !important;
        transition: all 0.15s ease !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .output-copy-btn:hover {
        background: #f8fafc !important;
        color: #0f172a !important;
        border-color: #94a3b8 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .output-text {
        background: transparent !important;
        color: #334155 !important;
        font-family: ui-monospace, "SF Mono", "Menlo", "Monaco", "Consolas", "PingFang SC", monospace !important;
        font-size: 12.5px !important;
        line-height: 1.7 !important;
        padding: 16px 18px !important;
        margin: 0 !important;
        max-height: 380px !important;
        overflow-y: auto !important;
        white-space: pre-wrap !important;
        word-break: break-word !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* ============================================================
       深色模式适配层 - Apple 风格高级暗色
       覆盖页面所有核心组件：背景/卡片/输入框/侧边栏/标签/结果区
       ============================================================ */
    [data-theme="dark"] .signal-power-config-page {
        background: #000000;
        color: #f5f5f7;
    }

    /* 所有白色卡片/面板 */
    [data-theme="dark"] .signal-power-config-page .form-section,
    [data-theme="dark"] .signal-power-config-page .spc-sidebar,
    [data-theme="dark"] .signal-power-config-page .apple-filter-card,
    [data-theme="dark"] .signal-power-config-page .spc-bracket-card,
    [data-theme="dark"] .signal-power-config-page .spc-multi-card-panel,
    [data-theme="dark"] .signal-power-config-page .spc-multi-preview-card,
    [data-theme="dark"] .signal-power-config-page .spc-capacity-indicator {
        background: #1c1c1e;
        border-color: rgba(255, 255, 255, 0.1);
        color: #f5f5f7;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }

    [data-theme="dark"] .signal-power-config-page .apple-filter-card:hover {
        border-color: rgba(255, 255, 255, 0.2);
    }

    /* 输入框 / 下拉框 */
    [data-theme="dark"] .signal-power-config-page input[type="text"],
    [data-theme="dark"] .signal-power-config-page input[type="number"],
    [data-theme="dark"] .signal-power-config-page input[type="email"],
    [data-theme="dark"] .signal-power-config-page select {
        background: #1c1c1e !important;
        color: #f5f5f7 !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
        box-shadow: none !important;
    }

    [data-theme="dark"] .signal-power-config-page input::placeholder {
        color: #636366;
    }

    [data-theme="dark"] .signal-power-config-page input:focus,
    [data-theme="dark"] .signal-power-config-page select:focus {
        border-color: #2997ff !important;
        box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.25) !important;
    }

    /* 国家选择器（带 !important 的硬编码样式） */
    [data-theme="dark"] .signal-power-config-page .spc-country-field-control select,
    [data-theme="dark"] .spc-country-field-control select {
        background-color: #1c1c1e !important;
        color: #f5f5f7 !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
        box-shadow: none !important;
    }

    /* 标签文字 */
    [data-theme="dark"] .signal-power-config-page .apple-filter-card > label,
    [data-theme="dark"] .signal-power-config-page label,
    [data-theme="dark"] .signal-power-config-page .spc-ctrl-label,
    [data-theme="dark"] .signal-power-config-page .spc-country-field-label {
        color: #d2d2d7;
    }

    /* 次级/说明文字 */
    [data-theme="dark"] .signal-power-config-page .field-tip,
    [data-theme="dark"] .signal-power-config-page .spc-hdr-meta-text,
    [data-theme="dark"] .signal-power-config-page .config-toggle-label {
        color: #86868b;
    }

    /* 主内容区标题 */
    [data-theme="dark"] .signal-power-config-page .spc-main-header,
    [data-theme="dark"] .signal-power-config-page .page-header-with-toggle {
        color: #f5f5f7;
    }

    /* 分段按钮组 / 小卡片 */
    [data-theme="dark"] .signal-power-config-page .spc-multi-field-box,
    [data-theme="dark"] .signal-power-config-page .spc-hdr-meta,
    [data-theme="dark"] .signal-power-config-page .quote-layout-mode-label {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.1);
        color: #d2d2d7;
    }

    /* 计算结果区 */
    [data-theme="dark"] .signal-power-config-page .output-text {
        color: #d2d2d7 !important;
    }

    /* 底部固定操作栏（注意：该元素直接挂在 body 下，不在 .signal-power-config-page 内） */
    [data-theme="dark"] .spc-bottom-action {
        background: rgba(22, 22, 23, 0.92) !important;
        border-top-color: rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5) !important;
    }

    [data-theme="dark"] .spc-bottom-chip {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.12);
        color: #d2d2d7;
    }

    [data-theme="dark"] .spc-bottom-chip-label {
        color: #86868b;
    }

    [data-theme="dark"] .spc-bottom-chip-value {
        color: #2997ff;
    }

    [data-theme="dark"] .spc-bottom-btn {
        background: #1c1c1e !important;
        color: #f5f5f7 !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        font-weight: 500;
        letter-spacing: 0.01em;
    }

    [data-theme="dark"] .spc-bottom-btn:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(41, 151, 255, 0.5) !important;
    }

    /* 发送卡接口需求选择行 */
    [data-theme="dark"] .signal-power-config-page .interface-selector-block {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }

    [data-theme="dark"] .signal-power-config-page .interface-selector-summary {
        color: #86868b;
    }

    [data-theme="dark"] .signal-power-config-page .section-expand-toggle {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.12);
        color: #a1a1a6;
    }

    [data-theme="dark"] .signal-power-config-page .section-expand-toggle:hover,
    [data-theme="dark"] .signal-power-config-page .section-expand-toggle[aria-expanded="true"] {
        background: rgba(41, 151, 255, 0.12);
        border-color: rgba(41, 151, 255, 0.35);
        color: #2997ff;
    }

    [data-theme="dark"] .signal-power-config-page .section-check-toggle input[type="checkbox"] {
        background: #1c1c1e;
        border-color: rgba(255, 255, 255, 0.2);
    }

    /* 端口容量胶囊（内联样式需 !important 覆盖） */
    [data-theme="dark"] .signal-power-config-page .spc-capacity-indicator {
        background: rgba(48, 209, 88, 0.12) !important;
        border-color: rgba(48, 209, 88, 0.3) !important;
        color: #30d158 !important;
    }

    /* 编号区段卡片（1 Product Parameters 等外壳） */
    [data-theme="dark"] .signal-power-config-page .spc-section-card,
    [data-theme="dark"] .signal-power-config-page .spc-section-head {
        background: #1c1c1e !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        color: #f5f5f7;
    }

    [data-theme="dark"] .signal-power-config-page .spc-step-index {
        background: rgba(41, 151, 255, 0.15) !important;
        color: #2997ff !important;
        border-color: rgba(41, 151, 255, 0.3) !important;
    }

    /* 侧栏快捷控件（Power Param / Screen Faces 等） */
    [data-theme="dark"] .signal-power-config-page .spc-qck-input-wrap,
    [data-theme="dark"] .signal-power-config-page .spc-qck-suffix {
        background: #1c1c1e !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
        color: #f5f5f7 !important;
    }

    /* 侧栏快捷开关 - macOS/iOS 暗色风：OFF 深灰轨道+灰拇指，ON 蓝色轨道+白拇指 */
    [data-theme="dark"] .signal-power-config-page .spc-qck-toggle {
        background: rgba(255, 255, 255, 0.12) !important;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
        transition: background-color 0.25s ease, box-shadow 0.25s ease;
    }

    [data-theme="dark"] .signal-power-config-page .spc-qck-toggle:hover {
        background: rgba(255, 255, 255, 0.18) !important;
    }

    [data-theme="dark"] .signal-power-config-page .spc-qck-toggle.spc-qck-toggle-on {
        background: #2997ff !important;
        border-color: rgba(41, 151, 255, 0.6);
        box-shadow: 0 0 8px rgba(41, 151, 255, 0.35), inset 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    [data-theme="dark"] .signal-power-config-page .spc-qck-toggle-thumb {
        background: #636366 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
        transition: transform 0.25s ease, background-color 0.25s ease;
    }

    [data-theme="dark"] .signal-power-config-page .spc-qck-toggle.spc-qck-toggle-on .spc-qck-toggle-thumb {
        background: #ffffff !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    }

    [data-theme="dark"] .signal-power-config-page .spc-qck-toggle:focus {
        outline-color: rgba(41, 151, 255, 0.5);
    }

    /* 分段选择器轨道（Frame Rate / Bit Depth） */
    [data-theme="dark"] .signal-power-config-page .spc-segmented-control {
        background: rgba(255, 255, 255, 0.08) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
    }

    /* 全宽筛选面板 */
    [data-theme="dark"] .signal-power-config-page .apple-filter-panel {
        background: #1c1c1e !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        color: #f5f5f7;
    }

    /* 国家字段标签（浅色规则带 !important） */
    [data-theme="dark"] .signal-power-config-page .spc-country-field-label,
    [data-theme="dark"] .spc-country-field-label {
        color: #d2d2d7 !important;
    }

    /* HDR 元信息 / 折叠按钮 / 报价模式标签 */
    [data-theme="dark"] .signal-power-config-page .spc-hdr-meta,
    [data-theme="dark"] .signal-power-config-page .quote-layout-mode-label {
        background: rgba(255, 255, 255, 0.06) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        color: #d2d2d7 !important;
    }

    [data-theme="dark"] .signal-power-config-page .spc-hdr-collapse-btn {
        background: rgba(255, 255, 255, 0.06) !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        color: #a1a1a6 !important;
    }

    /* 背条卡片（内联渐变样式需 !important 覆盖） */
    [data-theme="dark"] .signal-power-config-page .spc-bracket-card {
        background: #1c1c1e !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    }

    [data-theme="dark"] .signal-power-config-page .spc-bracket-card label {
        color: #f5f5f7 !important;
    }

    [data-theme="dark"] .signal-power-config-page #spc_bracket_support_badge {
        background: rgba(41, 151, 255, 0.12) !important;
        color: #2997ff !important;
        border-color: rgba(41, 151, 255, 0.3) !important;
    }

    /* 4K 覆盖模式内联卡片 */
    [data-theme="dark"] .signal-power-config-page div[style*="border-left: 3px solid #0071e3"] {
        background: #1c1c1e !important;
        border-top-color: rgba(255, 255, 255, 0.1) !important;
        border-right-color: rgba(255, 255, 255, 0.1) !important;
        border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    }

    [data-theme="dark"] .signal-power-config-page div[style*="border-left: 3px solid #0071e3"] label {
        color: #d2d2d7 !important;
    }

    /* 次要按钮降低亮度：边框更含蓄、 hover 才提亮 */
    [data-theme="dark"] .signal-power-config-page .spc-bottom-btn,
    [data-theme="dark"] .signal-power-config-page .spc-multi-btn-recalc,
    [data-theme="dark"] .signal-power-config-page .spc-multi-btn-smart {
        border-color: rgba(255, 255, 255, 0.1) !important;
        font-weight: 500;
        letter-spacing: 0.01em;
    }

    /* 产品系列选择卡片（内联渐变需 !important 覆盖） */
    [data-theme="dark"] .signal-power-config-page .spc-product-picker-card {
        background: #1c1c1e !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    }

    /* 功率配置帮助卡片 */
    [data-theme="dark"] .signal-power-config-page #power-help-section {
        background: rgba(41, 151, 255, 0.08) !important;
        border-color: rgba(41, 151, 255, 0.25) !important;
    }

    [data-theme="dark"] .signal-power-config-page #power-help-section strong,
    [data-theme="dark"] .signal-power-config-page #power-help-section div,
    [data-theme="dark"] .signal-power-config-page #power-help-section li {
        color: #d2d2d7 !important;
    }

    /* 背条推荐结果表格卡片（内联样式） */
    [data-theme="dark"] .signal-power-config-page div[style*="background: #ffffff; border: 1px solid #e2e8f0"] {
        background: #1c1c1e !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
    }

    [data-theme="dark"] .signal-power-config-page div[style*="background: #ffffff; border: 1px solid #e2e8f0"] tr[style*="background: #f8fafc"] {
        background: rgba(255, 255, 255, 0.06) !important;
        border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    }

    [data-theme="dark"] .signal-power-config-page div[style*="background: #ffffff; border: 1px solid #e2e8f0"] th,
    [data-theme="dark"] .signal-power-config-page div[style*="background: #ffffff; border: 1px solid #e2e8f0"] td {
        color: #d2d2d7 !important;
        border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    }

    /* 产品选择卡片内联标题 / 型号回显胶囊 */
    [data-theme="dark"] .signal-power-config-page .spc-product-picker-card strong {
        color: #f5f5f7 !important;
    }

    [data-theme="dark"] .signal-power-config-page #spc-selected-model-pill {
        background: rgba(41, 151, 255, 0.12) !important;
        color: #2997ff !important;
        border-color: rgba(41, 151, 255, 0.3) !important;
    }

    /* 发送卡已选规格卡片 */
    [data-theme="dark"] .signal-power-config-page .specified-card-option {
        background: #1c1c1e !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        color: #f5f5f7 !important;
    }

    [data-theme="dark"] .signal-power-config-page .specified-card-title {
        color: #f5f5f7 !important;
    }

    /* ===== 深色下低对比度文字统一修复 ===== */
    /* 区段标题（1 Product Parameters 等） */
    [data-theme="dark"] .signal-power-config-page .spc-section-head h3 {
        color: #f5f5f7 !important;
    }

    [data-theme="dark"] .signal-power-config-page .spc-section-head .spc-hdr-meta,
    [data-theme="dark"] .signal-power-config-page .spc-section-head .spc-hdr-meta-text {
        color: #a1a1a6 !important;
    }

    /* 侧栏标题 Configuration */
    [data-theme="dark"] .signal-power-config-page .spc-sidebar-title,
    [data-theme="dark"] .signal-power-config-page .spc-sidebar-title * {
        color: #f5f5f7 !important;
    }

    /* 侧栏快捷项标签 */
    [data-theme="dark"] .signal-power-config-page .spc-qck-label {
        color: #a1a1a6 !important;
    }

    /* 顶部项目标准卡片标题 */
    [data-theme="dark"] .signal-power-config-page #section-global-project-standards strong,
    [data-theme="dark"] .signal-power-config-page #section-global-project-standards span {
        color: #f5f5f7 !important;
    }

    /* 箱体模式 Single/Multi 标签 */
    [data-theme="dark"] .signal-power-config-page .quote-layout-mode-compact,
    [data-theme="dark"] .signal-power-config-page .quote-layout-mode-compact span {
        color: #d2d2d7 !important;
    }

    /* 输出生成开关标签 */
    [data-theme="dark"] .signal-power-config-page .generate-image-option label,
    [data-theme="dark"] .signal-power-config-page .generate-image-option span {
        color: #d2d2d7 !important;
    }

    /* 产品触发器文字 */
    [data-theme="dark"] .signal-power-config-page .product-series-trigger-label,
    [data-theme="dark"] .signal-power-config-page .product-series-trigger-label span {
        color: #f5f5f7 !important;
    }

    /* SVG 图标硬编码深色填充统一提亮 */
    [data-theme="dark"] .signal-power-config-page svg [fill="#0f172a"],
    [data-theme="dark"] .signal-power-config-page svg [fill="#111827"],
    [data-theme="dark"] .signal-power-config-page svg [fill="#1d1d1f"],
    [data-theme="dark"] .signal-power-config-page svg [fill="#334155"],
    [data-theme="dark"] .signal-power-config-page svg [fill="#475569"] {
        fill: #d2d2d7;
    }

    [data-theme="dark"] .signal-power-config-page svg [fill="#0071e3"],
    [data-theme="dark"] .signal-power-config-page svg [fill="#2563eb"],
    [data-theme="dark"] .signal-power-config-page svg [fill="#1e3a8a"] {
        fill: #2997ff;
    }

    [data-theme="dark"] .signal-power-config-page svg [fill="#15803d"] {
        fill: #30d158;
    }
