/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #2563eb;
    --light-blue: #3b82f6;
    --dark-blue: #1e40af;
    --accent-gold: #f59e0b;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --border-gray: #e5e7eb;
    --bg-light: #f9fafb;
    --success-green: #10b981;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
        'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* ========== 头部品牌 ========== */
.site-header {
    text-align: center;
    color: var(--white);
    margin-bottom: 30px;
}

.brand {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.tagline {
    font-size: 1.1em;
    opacity: 0.95;
    font-weight: 300;
}

/* ========== 进度指示器 ========== */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.step-indicator {
    flex: 1;
    text-align: center;
    position: relative;
    color: rgba(255, 255, 255, 0.6);
    cursor: default;
}

.step-indicator:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 0;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 8px;
    line-height: 32px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.step-text {
    font-size: 0.85em;
}

.step-indicator.active {
    color: var(--white);
}

.step-indicator.active .step-num {
    background: var(--accent-gold);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

/* ========== 内容卡片 ========== */
.content-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.section-title {
    color: var(--primary-blue);
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 25px;
    border-bottom: 3px solid var(--accent-gold);
    padding-bottom: 12px;
}

.subsection-title {
    color: var(--primary-blue);
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ========== 保密声明页 ========== */
.privacy-section {
    max-width: 600px;
    margin: 0 auto;
}

.privacy-box {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-blue);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.privacy-box h3 {
    color: var(--primary-blue);
    font-size: 1.4em;
    margin-bottom: 15px;
}

.privacy-box p {
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.8;
}

.privacy-box strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.important-notice {
    background: #fffbeb;
    border: 1px solid #f5d880;
    border-radius: 6px;
    padding: 15px 18px;
    margin-top: 5px;
}

.important-notice p {
    margin-bottom: 0;
    font-size: 0.92em;
    color: #6b5c00;
    line-height: 1.8;
}

.agreement-checkbox {
    margin-bottom: 25px;
    text-align: center;
}

/* ========== 表单元素 ========== */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95em;
}

.form-label.required::after {
    content: '*';
    color: #ef4444;
    margin-left: 4px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: var(--white);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.hint-text {
    color: var(--text-gray);
    font-size: 0.9em;
    margin-bottom: 20px;
    padding: 12px;
    background: #dbeafe;
    border-radius: 6px;
    border-left: 3px solid var(--secondary-blue);
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 1em;
    margin-right: 20px;
    margin-bottom: 10px;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ========== 收益录入卡片 ========== */
.income-card {
    background: var(--bg-light);
    border-left: 4px solid var(--secondary-blue);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.income-title {
    color: var(--primary-blue);
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tax-rate {
    font-size: 0.75em;
    color: var(--accent-gold);
    font-weight: 500;
    background: rgba(245, 158, 11, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.income-desc {
    color: var(--text-gray);
    font-size: 0.9em;
    margin-bottom: 15px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ========== 总额横幅 ========== */
.total-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.3em;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.total-banner strong {
    font-size: 1.4em;
    margin-left: 10px;
    color: var(--accent-gold);
}

/* ========== 按钮 ========== */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--secondary-blue);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: #6b7280;
    color: var(--white);
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-green);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1em;
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-group .btn {
    flex: 1;
}

/* ========== 计算结果页 ========== */
.result-section {
    margin-bottom: 40px;
}

.tax-detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.tax-detail-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 12px;
    border-bottom: 1px solid var(--border-gray);
    gap: 10px;
}

.tax-detail-row:first-child {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--primary-blue);
}

.tax-detail-cell {
    padding: 4px;
}

.summary-box {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-gray);
    font-size: 1.05em;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.highlight {
    background: rgba(37, 99, 235, 0.05);
    padding: 12px 15px;
    margin: 8px -15px;
    border-radius: 6px;
    font-weight: 600;
    color: var(--primary-blue);
}

.summary-row.total {
    margin-top: 15px;
    padding-top: 20px;
    border-top: 3px solid var(--primary-blue);
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-blue);
}

.summary-row strong {
    color: #ef4444;
    font-weight: 700;
}

.summary-row.total strong {
    color: var(--primary-blue);
    font-size: 1.2em;
}

/* ========== 方案推荐卡片 ========== */
.solution-section {
    margin: 40px 0;
}

.solution-tier-card {
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    border: 2px solid var(--secondary-blue);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.tier-header {
    text-align: center;
    margin-bottom: 25px;
}

.tier-title {
    color: var(--primary-blue);
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 10px;
}

.tier-subtitle {
    color: var(--text-gray);
    font-size: 1em;
    font-style: italic;
}

.tier-profile {
    color: var(--text-gray);
    font-size: 0.95em;
    font-style: italic;
    line-height: 1.7;
    margin-top: 8px;
}

.solution-cards {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.solution-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-left: 4px solid var(--secondary-blue);
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s;
}

.solution-card:hover {
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.15);
    transform: translateY(-2px);
}

.solution-card-title {
    color: var(--primary-blue);
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
}

.solution-card-desc {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 10px;
}

.solution-card-price {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.95em;
    margin-top: 12px;
}

/* 推荐卡片样式 */
.solution-card.recommended {
    position: relative;
    border-left-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.03) 0%, var(--white) 100%);
}

.recommend-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-gold);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

/* 可折叠卡片样式 */
.solution-card.collapsible .solution-card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-btn {
    background: var(--secondary-blue);
    color: var(--white);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.toggle-btn:hover {
    background: var(--dark-blue);
}

.tier-footer {
    background: rgba(37, 99, 235, 0.05);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: var(--primary-blue);
    font-weight: 500;
}

/* ========== 联系横幅 ========== */
.contact-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin: 30px 0;
}

.contact-text {
    font-size: 1.1em;
    line-height: 1.6;
}

/* ========== 感谢页 ========== */
.thank-you-card {
    text-align: center;
    padding: 60px 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success-green);
    color: var(--white);
    font-size: 3em;
    line-height: 80px;
    margin: 0 auto 25px;
}

.thank-you-text {
    color: var(--text-gray);
    font-size: 1.1em;
    margin: 20px 0 30px;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .brand {
        font-size: 1.8em;
    }

    .tagline {
        font-size: 0.95em;
    }

    .progress-indicator {
        padding: 15px 10px;
    }

    .step-text {
        font-size: 0.7em;
    }

    .step-num {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 0.9em;
    }

    .content-card {
        padding: 25px 20px;
    }

    .section-title {
        font-size: 1.4em;
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .tax-detail-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 15px 10px;
    }

    .tier-title {
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    .brand {
        font-size: 1.5em;
    }

    .total-banner {
        font-size: 1.1em;
    }

    .summary-row {
        font-size: 0.95em;
    }

    .checkbox-group {
        flex-direction: column;
    }
}
