/* ===== 功能头部 ===== */
    .panel-header {
        margin-bottom: 24px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--border-light);
    }
    .panel-header .panel-title {
        font-size: 20px;
        font-weight: 600;
        color: var(--text);
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 8px;
    }
    .panel-header .panel-desc {
        font-size: 14px;
        color: var(--text-secondary);
        line-height: 1.6;
    }
    .panel-header .panel-tags {
        display: flex;
        gap: 8px;
        margin-top: 12px;
    }
    .tag {
        font-size: 11px;
        font-weight: 600;
        padding: 3px 10px;
        border-radius: var(--radius-xs);
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    .tag-free {
        background: var(--free-light);
        color: var(--free);
    }
    .tag-ad {
        background: var(--ad-light);
        color: var(--ad);
    }
    .tag-pro {
        background: var(--brand-light);
        color: var(--brand);
    }

/* ===== 上传区域 ===== */
    .upload-section { margin-bottom: 24px; }
    .upload-area {
        border: 2px dashed var(--border);
        border-radius: var(--radius-md);
        padding: 56px 32px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s;
        background: var(--bg);
    }
    .upload-area:hover {
        border-color: var(--brand);
        background: var(--brand-light);
    }
    .upload-area.dragover {
        border-color: var(--brand);
        background: #DBEAFE;
        transform: scale(1.01);
    }
    .upload-icon {
        width: 64px; height: 64px;
        margin: 0 auto 16px;
        background: var(--brand-light);
        border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        font-size: 28px; color: var(--brand);
    }
    .upload-text {
        font-size: 16px; color: var(--text); font-weight: 500;
        margin-bottom: 8px;
    }
    .upload-hint {
        color: var(--text-muted); font-size: 13px;
    }
    #fileInput { display: none; }

/* ===== 文件信息 ===== */
    .file-info {
        background: var(--success-light);
        border: 1px solid #A7F3D0;
        border-radius: var(--radius-sm);
        padding: 14px 18px;
        margin-bottom: 20px;
        display: none;
    }
    .file-info.show { display: block; }
    .file-name { font-weight: 600; color: #065F46; font-size: 14px; }
    .file-meta { color: #047857; font-size: 13px; margin-top: 4px; }

/* ===== 档位选择 ===== */
    .tier-section {
        margin-bottom: 24px;
        display: none;
    }
    .section-title {
        font-size: 16px; font-weight: 600;
        margin-bottom: 16px; color: var(--text);
    }
    .tier-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    @media (max-width: 640px) {
        .tier-cards { grid-template-columns: 1fr; }
    }
    .tier-card {
        border: 2px solid var(--border);
        border-radius: var(--radius-md);
        padding: 24px 20px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s;
        position: relative;
        background: var(--card);
    }
    .tier-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
        border-color: #D1D5DB;
    }
    .tier-card.selected {
        border-color: var(--brand);
        background: var(--brand-light);
        box-shadow: var(--shadow-md);
    }
    .tier-card.selected::after {
        content: '✓';
        position: absolute;
        top: -8px; right: -8px;
        width: 24px; height: 24px;
        background: var(--brand);
        color: white;
        border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        font-size: 12px; font-weight: bold;
    }
    .tier-card .tier-badge {
        font-size: 11px;
        font-weight: 600;
        padding: 3px 12px;
        border-radius: 20px;
        margin-bottom: 12px;
        display: inline-block;
    }
    .tier-card .tier-badge.free-badge {
        background: var(--free-light);
        color: var(--free);
    }
    .tier-card .tier-badge.pro-badge {
        background: var(--brand-light);
        color: var(--brand);
    }
    .tier-icon { font-size: 36px; margin-bottom: 10px; }
    .tier-name { font-size: 18px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
    .tier-price {
        font-size: 28px; font-weight: 700;
        color: var(--brand); margin-bottom: 8px;
    }
    .tier-price.free { color: var(--free); }
    .tier-price span { font-size: 13px; color: var(--text-muted); font-weight: 400; }
    .tier-desc {
        color: var(--text-secondary); font-size: 13px;
        line-height: 1.5; margin-bottom: 16px;
    }
    .tier-features {
        text-align: left; font-size: 13px;
        color: var(--text-secondary);
    }
    .tier-features li {
        margin-bottom: 6px; list-style: none;
        padding-left: 20px; position: relative;
    }
    .tier-features li::before {
        content: '✓'; position: absolute; left: 0;
        color: var(--success); font-weight: bold;
    }
    .tier-btn {
        width: 100%; margin-top: 16px;
        padding: 12px; font-size: 14px;
        border-radius: var(--radius-sm);
    }

/* ===== 价格估算 ===== */
    .quote-section {
        background: var(--bg);
        border-radius: var(--radius-sm);
        padding: 16px 20px;
        margin-bottom: 16px;
        display: none;
        border: 1px solid var(--border-light);
    }
    .quote-section.show { display: block; }
    .quote-row {
        display: flex; justify-content: space-between;
        margin-bottom: 8px; font-size: 13px; color: var(--text-secondary);
    }
    .quote-row.total {
        font-size: 16px; font-weight: 600;
        color: var(--brand);
        border-top: 1px solid var(--border);
        padding-top: 10px; margin-top: 10px;
    }

/* ===== 进度条 ===== */
    .progress-section {
        display: none;
        margin: 24px 0;
    }
    .progress-section.show { display: block; }
    .progress-bar {
        height: 8px;
        background: var(--border-light);
        border-radius: 4px;
        overflow: hidden;
    }
    .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, var(--brand) 0%, #3B82F6 100%);
        width: 0%;
        transition: width 0.5s ease;
        border-radius: 4px;
    }
    .progress-text {
        text-align: center;
        margin-top: 12px;
        color: var(--text-muted); font-size: 13px;
    }

/* ===== 结果区域 ===== */
    .result-section {
        display: none;
        padding: 24px;
        border-radius: var(--radius-md);
        text-align: center;
        margin-top: 16px;
    }
    .result-section.success {
        display: block;
        background: var(--success-light);
        border: 1px solid #A7F3D0;
    }
    .result-section.error {
        display: block;
        background: var(--error-light);
        border: 1px solid #FECACA;
    }
    .result-section a {
        display: inline-block;
        margin-top: 12px;
        padding: 10px 24px;
        background: white;
        color: var(--brand);
        text-decoration: none;
        border-radius: var(--radius-sm);
        font-weight: 600;
        border: 1px solid #BFDBFE;
        transition: all 0.2s;
    }
    .result-section a:hover {
        background: var(--brand-light);
        border-color: var(--brand);
    }

/* ===== 对比表格 ===== */
    #compareSection {
        margin-top: 32px;
        padding-top: 24px;
        border-top: 1px solid var(--border-light);
    }
    .compare-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 16px;
        font-size: 13px;
    }
    .compare-table th,
    .compare-table td {
        padding: 10px 14px;
        text-align: left;
        border-bottom: 1px solid var(--border-light);
    }
    .compare-table th {
        background: var(--bg);
        font-weight: 600;
        color: var(--text);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    .compare-table tbody tr:hover {
        background: var(--bg);
    }
    .compare-table .check { color: var(--success); font-weight: 600; }
    .compare-table .cross { color: var(--text-muted); }

/* ===== Word转PDF说明 ===== */
    #wordToPdfInfo {
        background: var(--success-light);
        border: 1px solid #A7F3D0;
        border-radius: var(--radius-sm);
        padding: 16px 20px;
        margin-bottom: 16px;
    }