/* ============================================
   页面专属样式
   ============================================ */

/* ---- 首页问题输入框 ---- */
.hero-question-input {
    margin-bottom: var(--space-lg);
}
.question-input-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-card-solid);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.question-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.question-input-wrap i {
    color: var(--primary);
    font-size: 18px;
    margin-right: 10px;
    flex-shrink: 0;
}
.question-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 14px 0;
    font-size: var(--font-base);
    color: var(--text-primary);
}
.question-input-wrap input::placeholder {
    color: var(--text-muted);
    font-size: var(--font-sm);
}
.question-input-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ---- 首页/英雄区 ---- */
.hero-section {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    padding: var(--space-xl) var(--space-md);
    background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.hero-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.hero-header h1 {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

.hero-main-action {
    margin-bottom: var(--space-2xl);
}

.hero-action-hint {
    text-align: center;
    font-size: var(--font-xs);
    color: var(--text-muted);
    margin-top: var(--space-sm);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.grid-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.grid-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
}

.grid-icon i {
    font-size: 20px;
}

.grid-card h4 {
    font-size: var(--font-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.grid-card p {
    font-size: 11px;
    color: var(--text-muted);
}

.trust-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
    padding-bottom: var(--space-lg);
}

.trust-divider {
    width: 1px;
    height: 10px;
    background: var(--border-color);
}

.trust-item i {
    color: var(--success);
    margin-right: 2px;
}

/* ---- 登录页 ---- */
.page-login {
    min-height: calc(100vh - var(--nav-height));
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.page-login.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.login-bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    background: #fff;
}

.login-bg-circle-1 {
    width: 300px;
    height: 300px;
    top: -80px;
    right: -60px;
    animation: loginFloat 8s ease-in-out infinite;
}

.login-bg-circle-2 {
    width: 200px;
    height: 200px;
    bottom: 60px;
    left: -50px;
    animation: loginFloat 10s ease-in-out infinite reverse;
}

.login-bg-circle-3 {
    width: 120px;
    height: 120px;
    top: 40%;
    right: 10%;
    opacity: 0.08;
    animation: loginFloat 6s ease-in-out infinite 1s;
}

@keyframes loginFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255,255,255,0.97);
    border-radius: 20px;
    padding: 36px 28px 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
}

.login-brand {
    text-align: center;
    margin-bottom: 32px;
}

.login-brand-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(102,126,234,0.35);
}

.login-brand-icon i {
    font-size: 28px;
    color: #fff;
}

.login-brand h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.login-brand-desc {
    font-size: 13px;
    color: #888;
    letter-spacing: 0.5px;
}

.login-form {
    margin-bottom: 0;
}

.login-field {
    margin-bottom: 16px;
}

.login-input-box {
    display: flex;
    align-items: center;
    background: #f5f6fa;
    border: 1.5px solid transparent;
    border-radius: 12px;
    padding: 0 16px;
    height: 50px;
    transition: all 0.25s ease;
}

.login-input-box:focus-within {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
}

.login-input-box i {
    font-size: 16px;
    color: #aaa;
    margin-right: 12px;
    flex-shrink: 0;
    transition: color 0.25s;
}

.login-input-box:focus-within i {
    color: #667eea;
}

.login-input-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #1a1a2e;
    outline: none;
    height: 100%;
}

.login-input-box input::placeholder {
    color: #bbb;
}

.login-input-row {
    display: flex;
    gap: 10px;
}

.login-input-code {
    flex: 1;
    min-width: 0;
}

.login-btn-send {
    flex-shrink: 0;
    height: 50px;
    padding: 0 16px;
    border: 1.5px solid #667eea;
    background: transparent;
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s;
}

.login-btn-send:hover:not(:disabled) {
    background: rgba(102,126,234,0.06);
}

.login-btn-send:disabled {
    border-color: #ddd;
    color: #aaa;
    cursor: not-allowed;
}

.login-btn-submit {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(102,126,234,0.35);
    transition: all 0.25s;
}

.login-btn-submit:hover {
    box-shadow: 0 6px 24px rgba(102,126,234,0.45);
    transform: translateY(-1px);
}

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

.login-btn-submit i {
    font-size: 14px;
    transition: transform 0.25s;
}

.login-btn-submit:hover i {
    transform: translateX(3px);
}

.login-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding: 0 2px;
}

.login-agree input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #667eea;
}

.login-agree label {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    cursor: pointer;
}

.login-agree a {
    color: #667eea;
    text-decoration: none;
}

.login-agree a:hover {
    text-decoration: underline;
}

.login-trust {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.login-trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #aaa;
}

.login-trust-item i {
    font-size: 12px;
    color: #bbb;
}

/* ---- 诊断前告知页 ---- */
.notice-card {
    background: #fff;
    padding: var(--space-lg);
    margin: var(--space-md) 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.notice-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.notice-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-icon i {
    font-size: 28px;
    color: var(--warning);
}

.notice-header h2 {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.notice-empathy {
    text-align: center;
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    padding: 0 var(--space-md);
}

.notice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.notice-grid-item {
    background: var(--bg-body);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
}

.notice-grid-item i {
    font-size: 24px;
    margin-bottom: var(--space-sm);
}

.notice-grid-item h4 {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notice-grid-item p {
    font-size: 11px;
    color: var(--text-secondary);
}

.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-danger { color: var(--danger) !important; }

/* ---- 问卷页 ---- */
.page-quiz {
    background: var(--bg-body);
}

.quiz-progress {
    margin-bottom: var(--space-lg);
    padding: 0 var(--space-xs);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-xs);
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

/* 步骤导航点 */
.quiz-step-nav {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0;
}

.quiz-step-nav::-webkit-scrollbar { display: none; }

.step-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    background: var(--bg-hover);
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.step-dot.current {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
    transform: scale(1.1);
}

.step-dot.answered {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    cursor: pointer;
}

.step-dot.answered:active {
    transform: scale(0.92);
}

.step-dot.future {
    opacity: 0.4;
}

.quiz-card {
    margin-bottom: var(--space-lg);
}

.quiz-question h3 {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: var(--space-sm);
}

.question-tag {
    font-size: var(--font-xs);
    color: var(--danger);
    font-weight: 500;
    vertical-align: middle;
}

.quiz-question .question-hint {
    font-size: var(--font-sm);
    color: var(--text-muted);
    margin-top: var(--space-sm);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.quiz-options {
    margin-bottom: var(--space-xl);
}

.quiz-privacy {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: var(--font-xs);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

/* 固定底部操作栏 (原生沉浸感) */
.fixed-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 0.5px solid var(--border-color);
    padding: var(--space-md);
    padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom));
    z-index: 900;
}

.fixed-bottom-inner {
    width: 100%;
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

/* 适配底部操作栏的占位 */
.page-with-bottom-bar {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

/* ---- 信息确认页 ---- */
.confirm-header {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border-radius: var(--radius-lg);
}

.confirm-header-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto var(--space-sm);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}
.confirm-header-icon i { color: #fff; font-size: 20px; }

.confirm-header h2 {
    font-size: var(--font-lg);
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.confirm-header p {
    color: var(--text-secondary);
    font-size: var(--font-xs);
    line-height: 1.5;
}

.confirm-module {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-md) var(--space-sm);
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
}

.confirm-module h3 {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.confirm-module h3 i {
    color: var(--primary);
    font-size: 13px;
}

.confirm-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.confirm-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 0.5px solid #f1f5f9;
}

.confirm-item:last-child {
    border-bottom: none;
}

.confirm-item-label {
    color: var(--text-muted);
    font-size: var(--font-xs);
    flex-shrink: 0;
    min-width: 60px;
}

.confirm-item-value {
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--font-sm);
    flex: 1;
}

.confirm-disclaimer {
    background: rgba(255, 149, 0, 0.06);
    color: #92400e;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.confirm-disclaimer i { color: #d97706; margin-top: 2px; flex-shrink: 0; }

/* ---- 产品推荐页 ---- */
.page-products {
    background: var(--bg-body);
}

/* 案件信息概览卡片 */
.case-overview-card {
    background: linear-gradient(135deg, #f0f7ff, #e8f4f8);
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    margin-bottom: var(--space-md);
    border: 1px solid rgba(59, 130, 246, 0.12);
}

.case-overview-header {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.case-overview-header i {
    color: var(--primary);
}

.case-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.case-overview-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
}

.case-overview-item > i {
    color: var(--primary);
    font-size: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.case-overview-item div {
    display: flex;
    flex-direction: column;
}

.co-label {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.3;
}

.co-value {
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
    word-break: break-all;
}

.case-overview-tip {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(59, 130, 246, 0.2);
    font-size: 12px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.case-overview-tip i {
    color: #f59e0b;
    font-size: 14px;
}

.case-overview-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 12px;
    font-size: var(--font-xs);
    color: var(--text-secondary);
    padding: 8px 0;
}

/* === AI引导 + 产品融合区 === */
.guidance-product-wrapper {
    margin-bottom: var(--space-lg);
}

/* AI结构化引导文案 */
.ai-guidance-card {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-bottom: 1px dashed rgba(99, 102, 241, 0.25);
}

.guidance-intro {
    font-size: 14px; color: #1e293b; margin-bottom: 10px;
    display: flex; align-items: center;
}
.guidance-risk-hint {
    font-size: 13px; color: #334155; line-height: 1.6;
    padding: 8px 10px; background: rgba(255,255,255,0.6);
    border-radius: var(--radius-md); margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
}
.guidance-action-hint {
    font-size: 13px; color: #4338ca; line-height: 1.6;
    padding: 8px 10px; background: rgba(99,102,241,0.06);
    border-radius: var(--radius-md);
    display: flex; align-items: center; gap: 8px;
}
.guidance-action-hint strong { color: #dc2626; }

.guidance-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
    font-size: var(--font-sm);
    color: #6366f1;
}

/* AI引导卡片可见时，产品卡片无上圆角 */
.ai-guidance-card.visible + .product-recommend-card {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border-top: none;
}

/* 产品推荐卡片 */
.product-recommend-card {
    background: linear-gradient(180deg, #ffffff 0%, #fefce8 100%);
    border: 1px solid #fbbf24;
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    position: relative;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
}

.product-recommend-header {
    text-align: center;
    margin-bottom: 16px;
}

.product-recommend-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.product-recommend-header h3 {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.product-recommend-header h3 i {
    color: #f59e0b;
    margin-right: 6px;
}

.product-recommend-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* 产品功能列表 */
.product-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(255,255,255,0.7);
    border-radius: var(--radius-md);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.feature-item i {
    width: 18px;
    text-align: center;
    color: #3b82f6;
    font-size: 12px;
    flex-shrink: 0;
}

.feature-item.highlight {
    color: #b45309;
    font-weight: 600;
}

.feature-item.highlight i {
    color: #f59e0b;
}

/* 价格与购买按钮 */
.product-recommend-action {
    text-align: center;
    padding: 16px 0 10px;
    border-top: 1px solid rgba(251, 191, 36, 0.3);
}

.product-recommend-price {
    margin-bottom: 12px;
}

.prp-now {
    color: var(--danger);
    display: inline-flex;
    align-items: baseline;
}

.prp-currency {
    font-size: 16px;
    font-weight: 600;
    margin-right: 1px;
}

.prp-amount {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
}

.prp-desc {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.btn-buy-main {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-lg);
    letter-spacing: 1px;
}

.btn-buy-main i {
    margin-right: 6px;
}

/* 信任标签 */
.product-recommend-trust {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
    padding-top: 10px;
}

.product-recommend-trust span {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-recommend-trust i {
    font-size: 10px;
    color: #10b981;
}

/* 返回按钮 */
.products-back-wrap {
    text-align: center;
    padding: 8px 0 var(--space-lg);
}

/* 兼容旧产品样式(其他页面可能使用) */
.products-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: 0 var(--space-md);
}

.products-header h2 {
    font-size: var(--font-2xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.products-header h2 i {
    color: var(--primary);
    margin-right: 8px;
}

.products-header p {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    line-height: 1.5;
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    padding: 0 var(--space-md);
}

.product-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-fast);
}

.product-card:active {
    transform: scale(0.98);
}

.product-card.premium {
    background: linear-gradient(180deg, #ffffff 0%, #fefce8 100%);
    border: 2px solid var(--warning);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}

.product-badge {
    position: absolute;
    top: -14px;
    right: 24px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #fff;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.product-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.product-card.basic .product-icon {
    background: var(--primary-bg);
    color: var(--primary);
}

.product-card.premium .product-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.product-icon i {
    font-size: 28px;
}

.product-info {
    margin-bottom: var(--space-lg);
}

.product-title {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.product-desc {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    line-height: 1.5;
    min-height: 44px;
}

.product-highlight {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: var(--font-xs);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--space-lg);
}

.product-price-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.product-price {
    display: flex;
    align-items:baseline;
    color: var(--danger);
}

.price-currency {
    font-size: var(--font-base);
    font-weight: 600;
    margin-right: 2px;
}

.price-amount {
    font-size: var(--font-3xl);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
}

.products-combo-tip {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(234, 88, 12, 0.1));
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin: 0 var(--space-md) var(--space-xl);
    text-align: center;
    font-size: var(--font-sm);
    color: #9a3412;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.products-footer {
    text-align: center;
    padding-bottom: var(--space-xl);
}

.products-footer p {
    font-size: var(--font-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

/* ---- 支付确认页 ---- */
.page-payment {
    background: #fff;
}

.payment-card {
    padding: 0;
    box-shadow: none;
}

.payment-header {
    margin-bottom: var(--space-lg);
}

.payment-header h2 {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.payment-notice {
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary-dark);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--font-xs);
    line-height: 1.5;
}

.payment-product-info {
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.payment-product-info h4 {
    font-size: var(--font-md);
    font-weight: 600;
    margin-bottom: 8px;
}

.payment-product-info .price-tag {
    font-size: var(--font-2xl);
    color: var(--danger);
    font-weight: 700;
}

.payment-disclaimer {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    height: 200px;
    overflow-y: auto;
    font-size: var(--font-xs);
    line-height: 1.6;
    color: var(--text-secondary);
}

.disclaimer-item {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.item-num {
    background: var(--bg-hover);
    color: var(--text-secondary);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.payment-agree {
    margin-bottom: var(--space-lg);
}

/* ---- 交付页 ---- */
.page-delivery {
    background: var(--bg-body);
}

.delivery-success-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.delivery-success-compact.done {
    border-color: rgba(52,199,89,0.3);
    background: linear-gradient(135deg, rgba(52,199,89,0.04), #fff);
}

.success-icon-sm {
    width: 40px;
    height: 40px;
    background: rgba(52, 199, 89, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.success-icon-sm i {
    font-size: 20px;
    color: var(--success);
}

.success-icon-sm.generating {
    background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(124,58,237,0.08));
    position: relative;
}
.success-icon-sm.generating i {
    color: #3b82f6;
    font-size: 16px;
}
.pulse-ring {
    position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.3);
    animation: pulseRing 1.8s ease-out infinite;
}
@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

.generating-title { color: #3b82f6 !important; }

.generating-progress { margin-top: 8px; }
.generating-bar {
    height: 4px; background: #e2e8f0; border-radius: 4px; overflow: hidden;
}
.generating-bar-fill {
    height: 100%; width: 5%; border-radius: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #3b82f6);
    background-size: 200% 100%;
    animation: barShimmer 2s linear infinite;
    transition: width 0.8s ease;
}
@keyframes barShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.generating-hint {
    display: block; font-size: 11px; color: #94a3b8; margin-top: 4px;
    transition: opacity 0.2s ease;
}

.delivery-success-compact.done .success-icon-sm {
    background: rgba(52, 199, 89, 0.15);
}
.delivery-success-compact.done .success-icon-sm i {
    color: var(--success); font-size: 20px;
}
.delivery-success-compact.done .pulse-ring { display: none; }
.delivery-success-compact.done .generating-progress { display: none; }
.delivery-success-compact.done .generating-title { color: var(--success) !important; }

.success-text {
    flex: 1;
    min-width: 0;
}

.success-text h2 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1px;
}

.success-text p {
    font-size: 11px;
    color: var(--text-secondary);
}

.delivery-report {
    margin-bottom: 12px;
    padding-bottom: 70px;
}

/* 浮动沉底操作栏 */
.report-actions-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 14px 16px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.report-actions-sticky .btn {
    min-width: 130px;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
}

.report-content {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.report-loading {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 14px;
}

.report-loading .spinner {
    width: 32px;
    height: 32px;
    margin: 0 auto 12px;
}

.report-loading p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ---- 报告通用样式 ---- */
.report-section {
    background: #fff;
    border-radius: 12px;
    padding: 14px 14px 12px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
}

.report-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.report-section h4 i {
    font-size: 13px;
}

.report-section p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* 赔偿明细卡片式布局（替代传统表格） */
.comp-card-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comp-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px 12px;
    border-left: 3px solid var(--primary);
}

.comp-card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.comp-card-amount {
    /* font-size: var(--font-lg); */
    font-weight: 700;
    color: var(--danger);
    margin-bottom: 4px;
}

.comp-card-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comp-card-row {
    display: flex;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.comp-card-row .label {
    color: var(--text-muted);
    flex-shrink: 0;
    width: 36px;
}

.comp-card-row .value {
    flex: 1;
    word-break: break-all;
}

.comp-total-card {
    background: linear-gradient(135deg, #fef3c7, #fff7ed);
    border: 1px solid #fbbf24;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comp-total-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 16px;
}

.comp-total-info {
    flex: 1;
    min-width: 0;
}

.comp-total-label {
    font-size: 11px;
    color: #92400e;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.comp-total-amount {
    /* font-size: var(--font-lg); */
    font-weight: 700;
    color: var(--danger);
    line-height: 1.2;
}

/* 旧表格样式保留兼容 */
.report-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: var(--space-md);
    border-radius: var(--radius-sm);
    border: 0.5px solid var(--border-color);
    display: none; /* 默认隐藏旧表格 */
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-xs);
    min-width: 360px;
}

.report-table th,
.report-table td {
    padding: 12px 10px;
    border-bottom: 0.5px solid var(--border-color);
    text-align: left;
}

.report-table th {
    background: var(--bg-hover);
    font-weight: 600;
    color: var(--text-primary);
}

.report-table tr:last-child td {
    border-bottom: none;
}

.report-table td.amount {
    color: var(--danger);
    font-weight: 600;
}

.report-total {
    background: #fff7ed;
    font-weight: 700;
}

/* 案例参考区 */
.case-reference {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
}

.case-reference h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.case-reference h3 i {
    color: var(--primary);
    font-size: 13px;
}

.case-disclaimer {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 10px;
    text-align: center;
}

/* 报告通知条 */
.report-notice-bar {
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.report-notice-bar i {
    margin-top: 1px;
    flex-shrink: 0;
}

.report-notice-bar.notice-warn {
    background: rgba(245, 158, 11, 0.06);
    color: var(--warning);
}

.report-notice-bar.notice-muted {
    background: rgba(148, 163, 184, 0.06);
    color: var(--text-muted);
    font-size: 11px;
}

.report-notice-bar.notice-unlock {
    background: rgba(16, 185, 129, 0.06);
    color: var(--success);
    font-weight: 600;
    border-left: 3px solid var(--success);
    margin-top: 12px;
}

/* 报告列表项 */
.report-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.report-list-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.report-list-item i {
    margin-top: 3px;
    color: var(--primary);
    flex-shrink: 0;
    font-size: 11px;
}

.report-list-item.danger i {
    color: var(--danger);
}

.report-section-danger {
    border-left: 3px solid var(--danger);
}

/* 工具报告弹窗内容 */
.tool-report-view {
    max-height: 65vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.tool-report-view .report-section {
    margin-bottom: var(--space-md);
}

.tool-section-content {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.tool-section-content p {
    margin-bottom: 8px;
}

.tool-section-content ul, .tool-section-content ol {
    padding-left: 18px;
    margin-bottom: 8px;
}

.tool-section-content li {
    margin-bottom: 4px;
}

.tool-section-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-bottom: 8px;
}

.tool-section-content table th,
.tool-section-content table td {
    border: 0.5px solid var(--border-color);
    padding: 6px 8px;
    text-align: left;
}

.tool-section-content table th {
    background: var(--bg-body);
    font-weight: 600;
}

.tool-section-content strong {
    color: var(--text-primary);
}

/* 维权步骤卡片 */
.step-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 6px;
    border-left: 3px solid var(--primary);
    transition: box-shadow 0.2s;
}

.step-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.step-card-header strong {
    font-size: 13px;
}

.step-num {
    background: var(--primary);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-detail {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 3px;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    padding-left: 30px;
}

.step-detail i {
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 11px;
}

.step-detail.text-danger {
    color: var(--danger);
}

/* 管辖归属卡片 */
.jd-card {
    background: var(--bg-body);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: 8px;
}

.jd-card strong {
    font-size: var(--font-sm);
    display: block;
    margin-bottom: 6px;
}

.jd-detail {
    font-size: var(--font-xs);
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 4px;
}

.jd-detail i {
    margin-top: 2px;
    font-size: 11px;
    flex-shrink: 0;
}

/* 格式化文本通用样式（_formatText生成） */
.report-fmt-body {
    font-size: var(--font-sm);
    line-height: 1.7;
    color: var(--text-secondary);
}

.fmt-para {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.fmt-para:last-child {
    margin-bottom: 0;
}

.fmt-list {
    margin: 6px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fmt-list-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.fmt-num {
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 3px;
}

.fmt-bullet {
    color: var(--primary);
    font-size: 10px;
    margin-top: 5px;
    flex-shrink: 0;
}

.fmt-kv {
    display: flex;
    gap: 8px;
    font-size: 13px;
    line-height: 1.6;
    padding: 4px 0;
    border-bottom: 1px dashed var(--border-color);
}

.fmt-kv:last-child {
    border-bottom: none;
}

.fmt-key {
    color: var(--text-primary);
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}

.fmt-val {
    color: var(--text-secondary);
}

/* 证据评估块 */
.ev-block {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    border-left: 3px solid transparent;
}

.ev-block strong {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.ev-ok { border-left-color: var(--success); }
.ev-gap { border-left-color: var(--danger); }
.ev-tip { border-left-color: var(--primary); }

.ev-block p {
    font-size: var(--font-xs);
    margin-top: 4px;
    line-height: 1.5;
}

.ev-ok {
    background: rgba(16, 185, 129, 0.04);
}

.ev-ok strong {
    color: var(--success);
}

.ev-gap {
    background: rgba(239, 68, 68, 0.04);
}

.ev-gap strong {
    color: var(--danger);
}

.ev-tip {
    background: rgba(37, 99, 235, 0.04);
}

.ev-tip strong {
    color: var(--primary);
}

/* 成本对比卡片 */
.cost-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
}

.cost-card-label {
    margin-bottom: 8px;
}

.cost-badge {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 600;
}

.cost-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 12px;
    line-height: 1.5;
}

.cost-item {
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.cost-key {
    color: var(--text-muted);
    flex-shrink: 0;
    font-size: 11px;
}

.cost-pro {
    color: var(--success);
}

.cost-con {
    color: var(--danger);
}

.cost-item i {
    margin-top: 2px;
    font-size: 11px;
}

/* 升级预览卡片（基础交付页） */
.premium-teaser {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
    border: 1.5px dashed #c7d2fe;
    position: relative;
    overflow: hidden;
}
.premium-teaser::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.03), rgba(124,58,237,0.03));
    pointer-events: none;
}
.premium-teaser-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #4f46e5;
    margin-bottom: 12px;
    position: relative;
}
.premium-teaser-header i { font-size: 14px; }
.premium-teaser-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    position: relative;
}
.premium-teaser-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #475569;
}
.premium-teaser-item i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6366f1;
    flex-shrink: 0;
}
.premium-teaser-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    position: relative;
}
.premium-teaser-price {
    font-size: 13px;
    color: #64748b;
}
.premium-teaser-price strong {
    color: #dc2626;
    font-size: 18px;
    font-weight: 700;
}

/* 升级引导（交付页紧凑版） */
.page-delivery .upgrade-banner {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 10px;
    border: 1px solid #fbbf24;
}

.page-delivery .upgrade-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.page-delivery .upgrade-content p {
    font-size: 12px;
    color: #92400e;
    font-weight: 500;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

/* 内联推荐卡片 */
.inline-tool-card {
    background: linear-gradient(to right, rgba(0, 122, 255, 0.05), rgba(90, 200, 250, 0.05));
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ---- 我的案件 ---- */
.page-mycase {
    background: var(--bg-body);
}

.mycase-header {
    background: var(--bg-card-solid);
    padding: var(--space-xl) var(--space-md) var(--space-lg);
    margin-bottom: var(--space-md);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.avatar {
    width: 56px;
    height: 56px;
    background: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar i {
    font-size: 24px;
    color: var(--primary);
}

.user-info h3 {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: 4px;
}

.user-tier {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-hover);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 10px;
}

.user-tier.premium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.mycase-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding-top: var(--space-md);
    border-top: 0.5px solid var(--border-color);
}

.mycase-stats .stat-item {
    flex: 1;
}

.mycase-stats .stat-num {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.mycase-stats .stat-label {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

/* 升级引导卡片 */
.upgrade-banner {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.upgrade-content p {
    font-size: var(--font-sm);
    color: #92400e;
    font-weight: 500;
    line-height: 1.5;
}

/* 订单卡片 */
.order-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 0.5px solid var(--border-color);
}

.order-card-header h4 {
    font-size: var(--font-base);
    font-weight: 600;
    color: var(--text-primary);
}

.order-status {
    font-size: var(--font-xs);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.order-status.paid {
    background: rgba(52, 199, 89, 0.1);
    color: var(--success);
}

.order-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* FAQ页 */
.page-faq {
    background: var(--bg-body);
}

.faq-header {
    background: #fff;
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    margin-bottom: var(--space-md);
}

.faq-header h2 {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: 8px;
}

.faq-category {
    margin-bottom: var(--space-lg);
}

.faq-category h3 {
    font-size: var(--font-md);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    padding: 0 var(--space-sm);
}

.faq-item {
    background: #fff;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: 14px 16px;
    font-weight: 500;
    font-size: var(--font-sm);
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 10px;
}

.faq-question span {
    flex: 1;
}

.faq-question i {
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 16px 14px;
}

.faq-item.active .faq-answer {
    display: block;
    max-height: none;
    overflow: visible;
    animation: faqFadeIn 0.25s ease;
}

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-answer-inner {
    background: rgba(59, 130, 246, 0.04);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    word-break: break-word;
}

.tier3-header {
    text-align: center;
    margin: var(--space-xl) 0 var(--space-lg);
}

.tier3-header h3 {
    font-size: var(--font-lg);
    font-weight: 700;
    margin-bottom: 8px;
}

.tier3-subtitle {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

.tier3-section-title {
    font-size: var(--font-md);
    font-weight: 600;
    margin: var(--space-lg) 0 var(--space-sm);
    color: var(--text-primary);
    padding-left: var(--space-sm);
    border-left: 3px solid var(--primary);
}

.tier3-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.tier3-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
}

.tier3-card-header h4 {
    font-size: var(--font-base);
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    margin-right: var(--space-md);
}

.tier3-card-price {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--danger);
    flex-shrink: 0;
}

.tier3-card-pain {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.tier3-card-roi {
    background: rgba(37, 99, 235, 0.05);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--font-xs);
    color: var(--primary-dark);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    line-height: 1.5;
}

.tier3-card-roi i {
    margin-top: 2px;
    flex-shrink: 0;
}

.tier3-card-footer {
    display: flex;
    justify-content: flex-end;
}

/* 组合包特殊样式 */
.tier3-card.combo {
    border: 2px solid var(--warning);
    background: linear-gradient(180deg, #fff 0%, #fefce8 100%);
}

.tier3-card.combo .combo-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--warning), #ea580c);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: var(--space-md);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.tier3-card.combo .combo-savings {
    font-size: var(--font-xs);
    color: var(--success);
    font-weight: 600;
}

/* ---- 我的案件页 ---- */
.mycase-header {
    padding: 14px 16px;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
    border-radius: var(--radius-lg);
}

.mycase-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mycase-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mycase-header-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.mycase-header h2 {
    font-size: var(--font-md);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1px;
}

.mycase-header-sub {
    font-size: 11px;
    color: var(--text-muted);
}

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

.mycase-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--primary);
    cursor: pointer;
}

/* 案件综合汇总入口卡片 */
.mycase-guide-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #86efac;
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-bottom: var(--space-md);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mycase-guide-card:active {
    transform: scale(0.98);
}

.guide-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.guide-card-info {
    flex: 1;
    min-width: 0;
}

.guide-card-title {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.guide-card-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.guide-card-arrow {
    color: var(--text-muted);
    font-size: 12px;
    flex-shrink: 0;
}

.mycase-back-action {
    text-align: center;
    margin: var(--space-md) 0;
}

.mycase-back-action .btn-text {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

.mycase-faq {
    text-align: center;
    margin-top: var(--space-lg);
}

.mycase-feedback-entry {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

/* ---- FAQ搜索 ---- */
.faq-header {
    margin-bottom: var(--space-lg);
}

.faq-header h2 {
    font-size: var(--font-xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.faq-header h2 i {
    color: var(--primary);
    margin-right: 4px;
}

.faq-search {
    position: relative;
}

.faq-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.faq-search input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card-solid);
}

.faq-list {
    margin-bottom: var(--space-lg);
}

/* ---- 反馈表单 ---- */
.feedback-form {
    margin-bottom: var(--space-lg);
}

.feedback-form h3 {
    font-size: var(--font-md);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.feedback-form h3 i {
    color: var(--primary);
    margin-right: 4px;
}

.ticket-query {
    margin-top: var(--space-lg);
}

.ticket-query h3 {
    font-size: var(--font-md);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.ticket-query h3 i {
    color: var(--primary);
    margin-right: 4px;
}

.ticket-result {
    margin-top: var(--space-md);
}

/* ---- 产品详情弹窗增强 ---- */
.product-detail-features {
    margin: var(--space-md) 0;
}

.product-detail-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: 4px 0;
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

.product-detail-features li i {
    color: var(--success);
    margin-top: 3px;
    font-size: 11px;
}

/* ---- FAQ弹窗 ---- */
.faq-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.faq-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.faq-modal {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 50px;
    background: var(--bg-body);
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.faq-modal-overlay.active .faq-modal {
    transform: translateY(0);
}

.faq-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    background: #fff;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.faq-modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.faq-modal-header h3 i {
    color: var(--primary);
    margin-right: 8px;
    font-size: 18px;
}

.faq-modal-close {
    width: 30px;
    height: 30px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.faq-modal-close:hover { background: #e2e8f0; }

.faq-modal-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 16px 10px;
    padding: 10px 14px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    flex-shrink: 0;
    transition: border-color 0.2s;
}
.faq-modal-search:focus-within { border-color: var(--primary); }

.faq-modal-search i {
    color: #94a3b8;
    font-size: 14px;
    flex-shrink: 0;
}

.faq-modal-search input {
    flex: 1;
    border: none;
    background: none;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
}
.faq-modal-search input::placeholder { color: #cbd5e1; }

.faq-modal-cats {
    display: flex;
    gap: 6px;
    padding: 0 16px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
}

.faq-modal-cats::-webkit-scrollbar {
    display: none;
}

.faq-modal-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 16px 20px;
}

/* 交付页底部FAQ入口 */
.delivery-faq-entry {
    text-align: center;
    padding: var(--space-md) 0 var(--space-lg);
}

/* ---- 支付弹窗 ---- */
.pay-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pay-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.pay-modal {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 85vh;
    background: #fff;
    border-radius: var(--radius-xl, 20px) var(--radius-xl, 20px) 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.pay-modal-overlay.active .pay-modal {
    transform: translateY(0);
}

.pay-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 0.5px solid var(--border-color);
    flex-shrink: 0;
}

.pay-modal-header h3 {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.pay-modal-header h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.pay-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
}

.pay-modal-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-lg) 20px;
}

.pay-modal-product {
    text-align: center;
    padding-bottom: var(--space-md);
    border-bottom: 0.5px solid var(--border-color);
    margin-bottom: var(--space-md);
}

.pay-modal-product h4 {
    font-size: var(--font-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pay-modal-product .price-tag {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--danger);
}

.pay-modal-notice {
    background: rgba(59, 130, 246, 0.05);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: var(--font-xs);
    color: var(--primary);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.pay-modal-notice i {
    margin-right: 6px;
}

.pay-modal-disclaimer {
    max-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: var(--space-md);
}

.pay-modal-disclaimer h4 {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pay-modal-agree {
    padding: 10px 20px;
    flex-shrink: 0;
    border-top: 0.5px solid var(--border-color);
}

.pay-modal-agree .checkbox-label {
    font-size: var(--font-xs);
}

.pay-modal-footer {
    padding: 12px 20px;
    border-top: 0.5px solid var(--border-color);
    flex-shrink: 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
}

/* ---- 支付方式选择 ---- */
.pay-method-section {
    margin-bottom: var(--space-md);
}

.pay-method-title {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.pay-method-list {
    display: flex;
    gap: 10px;
}

.pay-method-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.pay-method-item input[type="radio"] {
    display: none;
}

.pay-method-item.active {
    border-color: var(--primary);
    background: rgba(37,99,235,0.04);
}

.pay-method-item span {
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.pay-icon-wechat {
    font-size: 22px;
    color: #07C160;
}

.pay-icon-alipay {
    font-size: 22px;
    color: #1677FF;
}

.pay-method-check {
    margin-left: auto;
    font-size: 16px;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.2s;
}

.pay-method-item.active .pay-method-check {
    opacity: 1;
}

/* ---- 支付等待弹窗 ---- */
.pay-wait-modal {
    max-width: 380px;
    margin: 0 auto;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    border-radius: var(--radius-xl, 20px);
}

.pay-wait-body {
    padding: 24px 20px 32px;
    text-align: center;
}

.pay-qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    background: #f5f5f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pay-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pay-wait-hint {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.pay-wait-hint strong {
    color: var(--text-primary);
}

.pay-wait-amount {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--danger);
    margin-bottom: 16px;
}

.pay-wait-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: var(--font-sm);
    color: var(--text-muted);
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
