﻿@charset "utf-8";

/* 阅读详情：《建站成本拆解图》的css样式具体放在这儿 */

/* ==================== 基础变量 ==================== */
:root {
    --primary-green: #003429;
    --secondary-green: #00664d;
    --accent-green: #49ac35;
    --light-green: #f0f9f5;
    --text-dark: #1a1a1a;
    --text-gray: #4e6266;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --shadow-sm: 0 2px 8px rgba(0, 52, 41, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 52, 41, 0.12);
    --shadow-lg: 0 8px 30px rgba(0, 52, 41, 0.15);
}

/* ==================== 主体布局 ==================== */
.cost-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 顶部标题区 ==================== */
.cost-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    margin: 0 -20px;
    padding: 2.5rem 20px;
}

.cost-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cost-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cost-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ==================== 核心导语 ==================== */
.cost-intro {
    background: var(--light-green);
    padding: 3rem 0;
    margin: 3rem 0;
    border-radius: 16px;
}

.cost-intro-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.cost-intro p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 2;
    margin-bottom: 1rem;
}

.cost-intro p:last-child {
    margin-bottom: 0;
}

.cost-intro strong {
    color: var(--primary-green);
}

/* ==================== 内容区块通用 ==================== */
.cost-section {
    padding: 4rem 0;
}

.cost-section-alt {
    background: var(--light-green);
    margin: 0 -20px;
    padding: 4rem 20px;
}

.cost-section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.cost-section-title {
    font-size: 1.8rem;
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}

.cost-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-green);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ==================== 成本构成图 ==================== */
.cost-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.cost-item {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.cost-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.cost-item-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.cost-item-icon {
    font-size: 1.8rem;
}

.cost-item-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
}

.cost-item-detail p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.cost-item-range {
    font-size: 0.9rem;
    color: var(--text-light);
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-color);
}

/* ==================== 价格对比表 ==================== */
.cost-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.comparison-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-header {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #ebebeb 100%);
}

.comparison-low .comparison-header {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.comparison-high .comparison-header {
    background: linear-gradient(135deg, var(--light-green) 0%, #d1fae5 100%);
}

.comparison-price {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.comparison-label {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.3rem 1rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.comparison-low .comparison-label {
    background: rgba(245, 158, 11, 0.2);
    color: #92400e;
}

.comparison-high .comparison-label {
    background: rgba(73, 172, 53, 0.2);
    color: #065f46;
}

.comparison-content {
    padding: 1.5rem 2rem;
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.comparison-item:last-child {
    border-bottom: none;
}

.comparison-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.comparison-icon-ok {
    background: #d1fae5;
    color: var(--accent-green);
}

.comparison-suitable {
    padding: 1.5rem 2rem;
    background: #f9fafb;
    border-top: 1px solid var(--border-color);
}

.comparison-suitable p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ==================== 防坑指南 ==================== */
.cost-tips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.cost-tip {
    display: flex;
    gap: 1.2rem;
    background: white;
    padding: 1.8rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.cost-tip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cost-tip-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cost-tip-content h4 {
    font-size: 1.1rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.cost-tip-content p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ==================== 价位建议表 ==================== */
.cost-pricing-table {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.pricing-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.8fr;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: white;
    font-weight: 600;
}

.pricing-row:not(.pricing-header):hover {
    background: var(--light-green);
}

.pricing-cell {
    display: flex;
    align-items: center;
}

.pricing-highlight {
    font-weight: 700;
    color: var(--accent-green);
    font-size: 1.1rem;
}

/* ==================== 总结区块 ==================== */
.cost-summary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    margin: 4rem -20px;
    padding: 4rem 20px;
}

.cost-summary-inner {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.cost-summary-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
}

.cost-summary p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 1rem;
}

.cost-summary strong {
    color: #fbbf24;
}

.cost-summary-cta {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cost-summary-cta p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.cost-cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary-green);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cost-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f0f9f5;
}

/* ==================== 相关文章 ==================== */
.cost-related {
    padding: 4rem 0;
}

.cost-related-inner {
    max-width: 800px;
    margin: 0 auto;
}

/* ==================== 知识分类 ==================== */
.cost-categories {
    padding: 2rem 0 4rem;
    border-top: 1px solid var(--border-color);
}

.cost-categories-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.cost-categories-title {
    font-size: 1.8rem;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 0.5rem;
}

.cost-categories-desc {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.cost-categories-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cost-category-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.8rem;
    background: white;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cost-category-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-green);
}

.cost-category-item:hover .category-arrow {
    transform: translateX(5px);
    color: var(--accent-green);
}

.category-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.category-content {
    flex: 1;
}

.category-content h4 {
    font-size: 1.2rem;
    color: var(--primary-green);
    margin-bottom: 0.4rem;
}

.category-content p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.category-arrow {
    font-size: 1.5rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .cost-breakdown {
        grid-template-columns: 1fr;
    }

    .cost-comparison {
        grid-template-columns: 1fr;
    }

    .cost-tips {
        grid-template-columns: 1fr;
    }

    .cost-categories-list {
        grid-template-columns: 1fr;
    }
        grid-template-columns: 1fr;
    }

    .pricing-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .pricing-cell:first-child {
        font-weight: 600;
        color: var(--primary-green);
    }

    .cost-meta {
        gap: 1rem;
    }

    .cost-section-title {
        font-size: 1.5rem;
    }

    .cost-tip {
        flex-direction: column;
        text-align: center;
    }

    .cost-tip-number {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .cost-header {
        padding: 3rem 15px;
    }

    .cost-title {
        font-size: 1.8rem;
    }

    .cost-subtitle {
        font-size: 1rem;
    }

    .cost-intro,
    .cost-section {
        padding: 2.5rem 0;
    }

    .cost-item,
    .comparison-card,
    .cost-tip,
    .cost-related-item {
        padding: 1.5rem;
    }
}
