/* ============================================================
   removal.css — 数据删牌服务专属样式
   依赖：shared.css（全局设计令牌）
   ============================================================ */

/* ============================================================
   Hero 区域
   ============================================================ */
.removal-hero {
    padding: 80px 0 60px;
    background:
        linear-gradient(135deg, var(--bg-primary) 0%, #0f1b2d 50%, #141428 100%),
        radial-gradient(ellipse 60% 40% at 50% -10%, rgba(99,102,241,0.1) 0%, transparent 60%);
    border-bottom: 1px solid rgba(99,102,241,0.1);
    text-align: center;
}
.removal-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}
.removal-hero-badge {
    display: inline-block;
    padding: 6px 20px;
    background: var(--accent-glow);
    border: 1px solid var(--border-focus);
    border-radius: 50px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}
.removal-hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.removal-hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
}
.removal-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.removal-hero-trust {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-muted);
}
.removal-hero-trust span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   通用 Section
   ============================================================ */
.removal-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
}
.removal-section:last-of-type {
    border-bottom: none;
}
.removal-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.removal-section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 12px;
}
.removal-section-desc {
    font-size: 16px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 48px;
}

/* ============================================================
   步骤卡片
   ============================================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.step-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}
.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}
.step-card h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.step-card > p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}
.step-details {
    list-style: none;
    padding: 0;
}
.step-details li {
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}
.step-details li::before {
    content: "·";
    position: absolute;
    left: 4px;
    color: var(--accent);
    font-weight: bold;
}

/* ============================================================
   平台网格
   ============================================================ */
.removal-platforms-section {
    background: var(--bg-secondary);
}
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: border-color 0.2s;
}
.platform-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.platform-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.platform-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    line-height: 0;
}
.platform-icon svg {
    display: block;
}
.platform-header h3 {
    font-size: 16px;
    color: var(--text-primary);
}
.platform-category {
    font-size: 12px;
    color: var(--text-muted);
}
.platform-method {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}
.platform-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.platform-difficulty {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 600;
}
.difficulty-easy {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}
.difficulty-medium {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}
.difficulty-hard {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger-border);
}
.difficulty-very_hard {
    background: var(--critical-bg);
    color: var(--critical);
    border: 1px solid var(--critical-border);
}
.platform-days {
    font-size: 12px;
    color: var(--text-muted);
    padding: 2px 8px;
}
.platform-tips {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================================
   定价卡片
   ============================================================ */
.removal-pricing-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 0 30px var(--accent-glow);
}
.rm-pricing-header {
    background: linear-gradient(135deg, var(--accent), #6366f1);
    padding: 32px 24px;
    text-align: center;
    color: #fff;
}
.rm-pricing-header h3 {
    font-size: 20px;
    margin-bottom: 16px;
}
.rm-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}
.rm-amount {
    font-size: 48px;
    font-weight: 800;
}
.rm-period {
    font-size: 18px;
    opacity: 0.8;
}
.rm-price-note {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 8px;
}
.rm-features {
    list-style: none;
    padding: 32px 24px;
}
.rm-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-secondary);
}
.rm-features li:last-child {
    border-bottom: none;
}
.removal-btn-full {
    display: block;
    width: calc(100% - 48px);
    margin: 0 24px 24px;
    text-align: center;
}
.removal-pricing-note {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================================
   合规网格
   ============================================================ */
.removal-compliance {
    background: var(--bg-secondary);
}
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.compliance-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
}
.compliance-card h3 {
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 10px;
}
.compliance-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================================
   CTA
   ============================================================ */
.removal-cta {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #0f1b2d, var(--bg-primary));
    border-bottom: 1px solid var(--border);
}
.removal-cta h2 {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.removal-cta p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ============================================================
   按钮
   ============================================================ */
.removal-btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.removal-btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    color: #fff;
}
.removal-btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.removal-btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.removal-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.removal-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.removal-input::placeholder {
    color: var(--text-muted);
}
.removal-textarea {
    resize: vertical;
    min-height: 80px;
}

/* ============================================================
   仪表盘页面
   ============================================================ */
.removal-page-wrapper {
    min-height: calc(100vh - 200px);
}
.section-subtitle {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 48px 0 20px;
}
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(99,102,241,0.08);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: all var(--transition-slow);
}
.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.stat-icon {
    font-size: 28px;
    margin-bottom: 8px;
}
.stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}
.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}
.dashboard-email-bar {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 40px;
    align-items: center;
}
.dashboard-email-bar .removal-input {
    flex: 1;
}

/* 案件列表 */
.cases-list {
    display: grid;
    gap: 16px;
}
.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all var(--transition-slow);
    text-decoration: none;
}
.case-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.case-card-left h3 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.case-card-left p {
    font-size: 13px;
    color: var(--text-muted);
}
.case-card-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.case-mini-progress {
    width: 120px;
}
.case-mini-progress .progress-track {
    height: 6px;
}
.case-mini-percent {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}
.case-status-badge {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
}
.status-active { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.status-paused { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning-border); }
.status-completed { background: var(--bg-input); color: var(--text-muted); border: 1px solid var(--border); }

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 24px;
}
.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}
.empty-state h3 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.empty-state p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* 新建案件表单 */
.new-case-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-top: 40px;
}
.form-note {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding: 12px 16px;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}
.form-group-full {
    grid-column: 1 / -1;
}
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.form-disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
}
.form-disclaimer a {
    color: var(--accent);
}

/* 加载状态 */
.loading-state {
    text-align: center;
    padding: 60px 0;
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   案件详情页
   ============================================================ */
.case-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 0 30px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 16px;
}
.case-header-left h1 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.back-link {
    font-size: 14px;
    color: var(--text-muted);
    display: inline-block;
    margin-bottom: 12px;
    transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }
.case-header-right {
    display: flex;
    gap: 10px;
}

/* 进度条 */
.case-progress-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin: 30px 0;
}
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text-secondary);
}
.progress-percent {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}
.progress-track {
    height: 10px;
    background: var(--bg-input);
    border-radius: 5px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #6366f1);
    border-radius: 5px;
    transition: width 0.5s ease;
}
.progress-stats {
    display: flex;
    gap: 24px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.progress-stats b {
    color: var(--text-primary);
}

/* 阶段标签 */
.phase-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 30px;
}
.phase-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    font-family: inherit;
}
.phase-tab:hover {
    color: var(--text-secondary);
}
.phase-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* 任务列表 */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.task-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color 0.2s;
}
.task-item:hover {
    border-color: var(--accent);
}
.task-status-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.task-status-pending {
    background: var(--bg-input);
    border: 2px solid var(--border);
    color: var(--text-muted);
}
.task-status-in_progress {
    background: var(--accent-glow);
    border: 2px solid var(--accent);
    color: var(--accent);
    animation: pulse 1.5s ease infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { box-shadow: 0 0 0 6px transparent; }
}
.task-status-completed {
    background: var(--success-bg);
    border: 2px solid var(--success);
    color: var(--success);
}
.task-status-failed {
    background: var(--danger-bg);
    border: 2px solid var(--danger);
    color: var(--danger);
}
.task-info {
    flex: 1;
    min-width: 0;
}
.task-info h4 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.task-platform-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-input);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.task-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
}
.task-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.task-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: opacity 0.2s;
}
.task-btn:hover { opacity: 0.85; }
.task-btn-start {
    background: var(--accent);
    color: #fff;
}
.task-btn-complete {
    background: var(--success);
    color: #fff;
}
.task-btn-fail {
    background: var(--danger);
    color: #fff;
}
.task-btn-reset {
    background: var(--bg-input);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.task-notes {
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
    display: none;
}
.task-notes:not(:empty) {
    display: block;
}

/* 扫描记录 */
.scan-history-section, .reports-section {
    margin-top: 48px;
}
.scan-history-list, .reports-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.scan-record, .report-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
}
.scan-record h4, .report-item h4 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.scan-record p, .report-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}
.scan-record .scan-date, .report-item .report-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
    .steps-grid, .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .compliance-grid {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .removal-hero h1 { font-size: 32px; }
}
@media (max-width: 600px) {
    .steps-grid, .dashboard-stats, .platforms-grid {
        grid-template-columns: 1fr;
    }
    .phase-tab { padding: 10px 14px; font-size: 12px; }
}
