/**
 * SREDC 定价页面样式
 * 与 welcome.css 配合使用
 * 采用对比表格布局，专业商务风格
 */

/* ========== 定价页面头部 ========== */
.header-solid {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(12px);
}

.header-solid .logo-text {
    color: #fff;
}

.header-solid .nav-link {
    color: rgba(255, 255, 255, 0.7);
}

.header-solid .nav-link:hover,
.header-solid .nav-link.active {
    color: #fff;
}

.header-solid .nav-link.active {
    position: relative;
}

.header-solid .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #3b82f6;
    border-radius: 1px;
}

/* 滚动后头部的定价链接颜色修复 */
.header-solid.scrolled .nav-link {
    color: #475569;
}

.header-solid.scrolled .nav-link:hover,
.header-solid.scrolled .nav-link.active {
    color: #1e293b;
}

.header-solid.scrolled .logo-text {
    color: #1e293b;
}

/* ========== 定价 Hero 区域 ========== */
.pricing-hero {
    position: relative;
    padding: 120px 0 60px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    overflow: hidden;
}

.pricing-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    letter-spacing: 0.03em;
}

.pricing-badge svg {
    stroke: rgba(255, 255, 255, 0.5);
    width: 14px;
    height: 14px;
}

.pricing-hero-title {
    font-size: 36px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.pricing-hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.pricing-hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* ========== 对比表格区域 ========== */
.pricing-plans {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.comparison-table {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 8px 40px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

/* 表格行通用 */
.comparison-header,
.comparison-row,
.comparison-footer {
    display: grid;
    grid-template-columns: 200px repeat(5, 1fr);
}

.comparison-col {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid #f3f4f6;
}

.comparison-col:last-child {
    border-right: none;
}

.comparison-col.feature-col {
    justify-content: flex-start;
    text-align: left;
    background: #fafafa;
    flex-direction: column;
    align-items: flex-start;
    border-right: 1px solid #e5e7eb;
}

/* ========== 表头样式 ========== */
.comparison-header {
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #fafbfc 0%, #f5f6f8 100%);
}

.comparison-header .comparison-col {
    padding: 24px 12px 20px;
}

.comparison-header .feature-col {
    padding: 24px 16px 20px;
    background: #f5f6f8;
}

.feature-col-title {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.02em;
}

/* 套餐列头部 */
.plan-col-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.plan-icon-sm {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 2px;
}

.plan-icon-sm svg {
    width: 20px;
    height: 20px;
}

.plan-col-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
}

.plan-col-tagline {
    font-size: 12px;
    margin: 0;
    color: #6b7280;
    font-weight: 400;
}

.plan-col-price {
    margin-top: 6px;
}

.plan-col-price .price-amount {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.plan-col-price .price-period {
    font-size: 12px;
    opacity: 0.6;
}

.plan-col-price .price-contact {
    font-size: 14px;
    font-weight: 600;
}

/* 推荐标签 */
.plan-badge {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 3px;
    z-index: 5;
    letter-spacing: 0.03em;
    background: #059669;
    color: #fff;
}

.theme-teal .plan-badge {
    background: #0d9488;
}

.theme-purple .plan-badge {
    background: #7c3aed;
}

.comparison-header .plan-col {
    position: relative;
}

.comparison-header .plan-col.featured {
    background: rgba(16, 185, 129, 0.03);
}

.comparison-header .theme-teal.featured {
    box-shadow: inset 0 -2px 0 #0d9488;
}

.comparison-header .theme-purple.featured {
    box-shadow: inset 0 -2px 0 #7c3aed;
}

/* ========== 主题颜色系统（商务克制风格） ========== */

/* Slate - 免费版 */
.theme-slate {
    --theme-color: #6b7280;
    --theme-bg: #fafafa;
}

.theme-slate .plan-icon-sm {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.theme-slate .plan-icon-sm svg {
    stroke: #6b7280;
}

.theme-slate .plan-col-name {
    color: #374151;
}

.theme-slate .plan-col-tagline {
    color: #6b7280;
}

.theme-slate .price-amount {
    color: #374151;
}

.theme-slate .plan-badge {
    background: #6b7280;
    color: #fff;
}

/* Blue - Pro版 */
.theme-blue {
    --theme-color: #2563eb;
    --theme-bg: #f8faff;
}

.theme-blue .plan-icon-sm {
    background: #eff6ff;
    border: 1px solid #dbeafe;
}

.theme-blue .plan-icon-sm svg {
    stroke: #2563eb;
}

.theme-blue .plan-col-name {
    color: #1e40af;
}

.theme-blue .plan-col-tagline {
    color: #6b7280;
}

.theme-blue .price-amount {
    color: #1e40af;
}

.theme-blue .plan-badge {
    background: #2563eb;
    color: #fff;
}

/* Teal - 直通车基础版 */
.theme-teal {
    --theme-color: #0d9488;
    --theme-bg: #f0fdfa;
}

.theme-teal .plan-icon-sm {
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
}

.theme-teal .plan-icon-sm svg {
    stroke: #0d9488;
}

.theme-teal .plan-col-name {
    color: #115e59;
}

.theme-teal .plan-col-tagline {
    color: #4b5563;
}

.theme-teal .price-amount {
    color: #0f766e;
}

.theme-teal .plan-badge {
    background: #0d9488;
    color: #fff;
}

/* Purple - 直通车学术版 */
.theme-purple {
    --theme-color: #7c3aed;
    --theme-bg: #faf5ff;
}

.theme-purple .plan-icon-sm {
    background: #f5f3ff;
    border: 1px solid #ede9fe;
}

.theme-purple .plan-icon-sm svg {
    stroke: #7c3aed;
}

.theme-purple .plan-col-name {
    color: #5b21b6;
}

.theme-purple .plan-col-tagline {
    color: #4b5563;
}

.theme-purple .price-amount {
    color: #6d28d9;
}

.theme-purple .plan-badge {
    background: #7c3aed;
    color: #fff;
}

/* Amber - 机构版 */
.theme-amber {
    --theme-color: #d97706;
    --theme-bg: #fffbeb;
}

.theme-amber .plan-icon-sm {
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.theme-amber .plan-icon-sm svg {
    stroke: #d97706;
}

.theme-amber .plan-col-name {
    color: #92400e;
}

.theme-amber .plan-col-tagline {
    color: #4b5563;
}

.theme-amber .price-contact {
    color: #b45309;
}

.theme-amber .plan-badge {
    background: #d97706;
    color: #fff;
}

/* ========== 分组标题行 ========== */
.comparison-section {
    border-top: 1px solid #e5e7eb;
}

.section-title-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f9fafb;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    border-bottom: 1px solid #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-icon {
    font-size: 14px;
    opacity: 0.7;
}

/* ========== 数据行样式 ========== */
.comparison-row {
    border-bottom: 1px solid #f3f4f6;
}

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

.comparison-row:hover {
    background: #fafafa;
}

.comparison-row:hover .feature-col {
    background: #f5f5f5;
}

/* 功能名称 */
.feature-name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.feature-desc {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

/* 数值样式 */
.value-unlimited {
    font-size: 12px;
    font-weight: 600;
    color: #059669;
    padding: 3px 8px;
    background: #ecfdf5;
    border-radius: 3px;
}

.value-limit {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.value-yes {
    font-size: 13px;
    font-weight: 500;
    color: #059669;
}

.value-no {
    font-size: 14px;
    color: #d1d5db;
}

.value-highlight {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.value-price {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.value-price-tag {
    font-size: 12px;
    font-weight: 600;
    color: #92400e;
    padding: 3px 8px;
    background: #fef3c7;
    border-radius: 3px;
}

.value-custom {
    font-size: 12px;
    font-weight: 500;
    color: #d97706;
}

/* 复杂数值 */
.value-complex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.value-main {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.value-note {
    font-size: 10px;
    color: #9ca3af;
}

/* 折扣标签 */
.value-discount {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.discount-tag {
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    padding: 2px 5px;
    background: #dc2626;
    border-radius: 2px;
}

/* ========== 底部按钮行 ========== */
.comparison-footer {
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.comparison-footer .comparison-col {
    padding: 20px 12px;
}

.comparison-footer .feature-col {
    background: #f5f5f5;
}

.btn-plan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    width: 100%;
    max-width: 120px;
}

.btn-slate {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-slate:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-blue {
    background: #2563eb;
    color: #fff;
}

.btn-blue:hover {
    background: #1d4ed8;
}

.btn-teal {
    background: #0d9488;
    color: #fff;
}

.btn-teal:hover {
    background: #0f766e;
}

.btn-purple {
    background: #7c3aed;
    color: #fff;
}

.btn-purple:hover {
    background: #6d28d9;
}

.btn-amber {
    background: #d97706;
    color: #fff;
}

.btn-amber:hover {
    background: #b45309;
}

/* ========== FAQ 区域 ========== */
.faq-section {
    padding: 60px 0 80px;
    background: #fff;
}

.faq-section .section-header {
    margin-bottom: 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.faq-item {
    padding: 20px 24px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: #d1d5db;
    background: #f5f5f5;
}

.faq-question {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.faq-question::before {
    content: 'Q';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    flex-shrink: 0;
}

.faq-answer {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    padding-left: 28px;
}

/* ========== 响应式 ========== */
@media screen and (max-width: 1280px) {
    .comparison-header,
    .comparison-row,
    .comparison-footer {
        grid-template-columns: 180px repeat(5, 1fr);
    }
    
    .comparison-col {
        padding: 14px 12px;
    }
    
    .plan-col-name {
        font-size: 14px;
    }
    
    .plan-col-price .price-amount {
        font-size: 22px;
    }
    
    .btn-plan {
        padding: 10px 16px;
        font-size: 13px;
        max-width: 120px;
    }
}

@media screen and (max-width: 1024px) {
    .comparison-table {
        overflow-x: auto;
    }
    
    .comparison-header,
    .comparison-row,
    .comparison-footer {
        min-width: 900px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .pricing-hero {
        padding: 120px 0 60px;
    }
    
    .pricing-hero-title {
        font-size: 32px;
    }
    
    .pricing-hero-desc {
        font-size: 15px;
    }
    
    .pricing-hero-desc br {
        display: none;
    }
    
    .pricing-plans {
        padding: 60px 0;
    }
    
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-item {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .pricing-hero-title {
        font-size: 28px;
    }
}
