/**
 * homepage.css — 官网首页专用样式
 * 职责：首页各模块的自定义样式（信任栏、定价表、ROI、安全区、Hero品牌区）
 * 依赖：theme.css（CSS变量）+ tailwind（工具类）
 * 版本：1.0.0
 */

/* ========== 信任栏 Trust Bar ========== */
.trust-bar {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding: 1.2rem 5%;
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
    background: var(--bg-secondary);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.trust-item .trust-icon {
    color: var(--color-warning);
    font-size: 1.1rem;
}







/* ========== 定价表 Pricing Table ========== */
.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-secondary);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-default);
}

.pricing-table th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    padding: 1rem 0.8rem;
    font-size: 0.9rem;
    text-align: center;
}

.pricing-table td {
    padding: 0.9rem 0.8rem;
    border-bottom: 1px solid var(--border-default);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table .plan-highlight {
    background: rgba(59, 130, 246, 0.05);
}

.btn-pricing {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
}

.btn-pricing-primary {
    background: var(--brand-primary);
    color: #fff;
}

.btn-pricing-gold {
    background: var(--color-warning);
    color: #1a1a2e;
}

.btn-pricing:hover {
    opacity: 0.85;
}

/* ========== ROI 计算器 ========== */
.roi-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.roi-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.roi-item {
    text-align: center;
}

.roi-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.roi-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-top: 0.3rem;
}



/* ========== 安全区块 Security ========== */
.security-banner {
    background: var(--brand-gradient);
    border-radius: 1.5rem;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    color: #fff;
}

.security-banner h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.security-banner p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
}

.security-shield {
    font-size: 5rem;
    opacity: 0.3;
}

/* ========== 数字递增动画 ========== */
.counter-animated {
    transition: all 0.3s ease;
}

/* ========== Hero Brand Block ========== */
.hero-brand-block {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-logo-img {
    width: 88px;
    height: 88px;
    border-radius: 1.25rem;
    box-shadow:
        0 0 40px rgba(24, 144, 255, 0.25),
        0 8px 32px rgba(212, 107, 8, 0.15);
    flex-shrink: 0;
}

.hero-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(107, 114, 128, 1);
    margin: 0;
    line-height: 1;
}



/* ========== Hero Feature Tags ========== */
.hero-feature-tags {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

/* ========== 风险/安全语义色区域 ========== */
.risk-highlight {
    color: var(--color-risk-text);
    background: var(--color-risk-bg);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.safe-highlight {
    color: var(--color-safe-text);
    background: var(--color-safe-bg);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    backdrop-filter: blur(4px);
    transition: border-color 0.2s, background 0.2s;
}

.hero-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.hero-tag .tag-icon {
    color: var(--color-warning);
}



/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .trust-bar {
        gap: 1rem;
        padding: 1rem 3%;
    }

    .trust-item {
        font-size: 0.8rem;
    }

    .roi-box {
        flex-direction: column;
        text-align: center;
    }

    .roi-stats {
        justify-content: center;
    }

    .security-banner {
        flex-direction: column;
        text-align: center;
    }

    .pricing-table {
        font-size: 0.8rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 0.6rem 0.4rem;
    }

    .hero-logo-img {
        width: 64px;
        height: 64px;
        border-radius: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-feature-tags {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-feature-tags {
        grid-template-columns: 1fr;
    }
}