/* ------------------------------------------------------------------- */
/* --- Pricing Section Styles ------------------------------------- */
/* ------------------------------------------------------------------- */

.pricing-section {
    padding: 80px 0;
    /* Add top and bottom padding for the section */
    /* 使用定义的次要背景色 */
    background-color: var(--color-bg-secondary);
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    /* 使用深文本色 */
    color: var(--color-text-dark);
    margin-bottom: 50px;
    text-align: center;
}

/* --- Pricing Card Container Layout (card-grid) --- */
.card-grid {
    display: grid;
    /* 强制在桌面端显示 5 列，并在小屏幕上响应式调整 */
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: stretch;
    position: relative;
}

/* --- Individual Card Styles (pricing-card) --- */
.pricing-card {
    /* 使用定义的卡片背景色 */
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    /* 使用定义的浅色边框 */
    border: 1px solid var(--color-border-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    /* 悬停时边框使用主品牌色 */
    border-color: var(--color-primary);
}

/* --- Header Section (card-header) --- */
.card-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    /* 使用定义的浅色边框作为分隔线 */
    border-bottom: 1px dashed var(--color-border-light);
}

.plan-title {
    font-size: 20px;
    font-weight: 700;
    /* 使用深文本色 */
    color: var(--color-text-dark);
    margin-bottom: 5px;
}

.plan-specs {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.data-amount {
    font-size: 36px;
    font-weight: 900;
    /* 使用主品牌色 */
    color: var(--color-primary);
    line-height: 1.1;
}

.data-amount i {
    font-size: 28px;
}

.custom-plan-text {
    font-style: italic;
    /* 使用主品牌色 */
    color: var(--color-primary);
    font-weight: 600;
}

.price {
    font-size: 24px;
    font-weight: 600;
    /* 使用次要文本色 */
    color: var(--color-text-subtle);
    margin-left: 10px;
}

/* --- Middle Feature List (feature-list) --- */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.feature-list li {
    font-size: 14px;
    /* 使用次要文本色 */
    color: var(--color-text-subtle);
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

/* Custom list style */
.feature-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    /* 使用主品牌色 */
    color: var(--color-primary);
    font-weight: 700;
}

/* --- Action Button (btn-buy) --- */
.btn-buy {
    display: block;
    width: 100%;
    padding: 12px 15px;
    /* 应用蓝绿渐变作为按钮背景 */
    background: var(--brand-gradient);
    color: white;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, box-shadow 0.2s, transform 0.1s;
}

.btn-buy:hover {
    /* 悬停时稍微降低透明度，以保持渐变效果，并使用主色阴影 */
    opacity: 0.9;
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.4);
    transform: translateY(-1px);
}

/* --- Footer Section (card-footer) --- */
.card-footer {
    padding-top: 15px;
    /* 使用定义的浅色边框作为分隔线 */
    border-top: 1px dashed var(--color-border-light);
}

.footer-title {
    font-size: 15px;
    font-weight: 600;
    /* 使用深文本色 */
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    font-size: 15px;
    /* 使用次要文本色 */
    color: var(--color-text-subtle);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.footer-list li i {
    /* 使用主品牌色 */
    color: var(--color-primary);
    margin-right: 5px;
    font-size: 12px;
}

.footer-list li span {
    /* 红色用于高亮折扣/警示信息，保持不变 */
    color: #ef4444;
    font-weight: 600;
    margin-right: 5px;
}

/* 专门调整价格行的字体大小 */
.footer-list li:nth-child(2) { /* 选择第二个li，即价格行 */
    font-size: 18px; /* 价格行的整体字体再调大一点 */
    font-weight: 600; /* 加粗价格 */
    margin-bottom: 10px; /* 价格行与其他行的间距更大 */
}

.footer-list li:nth-child(2) span {
    font-size: 22px; /* 单价数字更大 */
    color: #ef4444; /* 保持红色 */
    font-weight: 700; /* 更粗 */
}

.footer-list li:nth-child(2) del {
    font-size: 18px; /* 原价字体大小 */
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 8px; /* 增加与原价的间距 */
}

/* 调整第一个和第三个li（非价格行） */
.footer-list li:nth-child(1),
.footer-list li:nth-child(3) {
    font-size: 15px; /* 其他行保持16px */
}

.footer-list li del {
    /* 灰色用于划掉的原价，保持不变 */
    color: #94a3b8;
    text-decoration: line-through;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1400px) {
    .card-grid {
        /* 在 1400px 以下切换到 3 列布局 */
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .card-grid {
        /* 在移动端切换为 1 列 */
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 25px;
    }
}