﻿/* Price.css - 定价页面专用样式 */
:root {
    --primary-color: #532ad3;
    --primary-light: #7c5fe6;
    --primary-dark: #3a1fa0;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(83, 42, 211, 0.1);
    --transition: all 0.3s ease;
    --overlay-dark: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    /* 价格卡片颜色 */
    --free-color: #28a745;
    --free-light: #d4edda;
    --basic-color: #007bff;
    --basic-light: #d1ecf1;
    --standard-color: #6f42c1;
    --standard-light: #e2d9f3;
    --premium-color: #dc3545;
    --premium-light: #f8d7da;
}

/* Hero区域 */
.price-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 10vh;
    min-height: 90px;
    overflow: hidden;
    margin-top: 0;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

    .hero-content h1 {
        font-size: 2.2rem;
        font-weight: 700;
        margin-bottom: 10px;
        color: var(--white);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .hero-content .lead {
        font-size: 1.1rem;
        font-weight: 300;
        opacity: 0.9;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.9);
    }

/* 定价容器 */
.price-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    width: 100%;
}

.page-title {
    text-align: center;
    margin-top: 5px;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
}

/* 定价计划网格 - 使用Grid确保所有卡片完全等高 */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: start; /* 改为 start，让卡片高度自适应 */
    gap: 20px;
    padding: 0;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* 定价卡片 - 强制等高 */
.pricing-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 0;
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid rgba(83, 42, 211, 0.1);
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    height: 100%; /* 占满Grid单元格 */
}

    .pricing-card.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .pricing-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }

/* 卡片头部 - 固定高度确保对齐 */
.card-header {
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 移除 min-height 和 height */
}

.card-header-free {
    background: linear-gradient(135deg, var(--free-color), #5cd85c);
}

.card-header-basic {
    background: linear-gradient(135deg, var(--basic-color), #3399ff);
}

.card-header-standard {
    background: linear-gradient(135deg, var(--standard-color), #9d7bd8);
}

.card-header-premium {
    background: linear-gradient(135deg, var(--premium-color), #ff6b6b);
}

.plan-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 6px 0; /* 减小：8px → 6px */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.15; /* 减小：1.2 → 1.15（让文字更紧凑） */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6rem;
}


/* 价格区域 */
.card-price {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.plan-price {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
}

.plan-period {
    font-size: 0.8rem;
    color: var(--text-light);
    display: inline;
    white-space: nowrap;
}

.plan-price-free {
    color: var(--free-color);
}

.plan-price-basic {
    color: var(--basic-color);
}

.plan-price-standard {
    color: var(--standard-color);
}

.plan-price-premium {
    color: var(--premium-color);
}

/* 功能列表 */
.card-features-container {
    flex: 1;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.card-features {
    padding: 18px;
    flex: 1;
    text-align: left;
    overflow-y: visible;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .plan-features li {
        padding: 8px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        line-height: 1.4;
        position: relative;
        padding-left: 20px;
        color: var(--text-dark);
        font-size: 0.85rem;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        display: block;
    }

        .plan-features li:last-child {
            border-bottom: none;
        }

        .plan-features li:before {
            content: "✓";
            position: absolute;
            left: 0;
            color: var(--primary-color);
            font-weight: bold;
            font-size: 0.9rem;
            top: 8px;
        }

/* 卡片底部 - 按钮区域 */
.card-footer {
    padding: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    min-height: 80px;
    display: flex;
    align-items: flex-end;
}

/* 统一的椭圆按钮样式 */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 12px rgba(83, 42, 211, 0.2);
    height: 46px;
}

    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(83, 42, 211, 0.3);
        color: var(--white);
        text-decoration: none;
    }

/* 不同价格的按钮颜色 */
.btn-free {
    background: var(--free-color);
    border-color: var(--free-color);
}

    .btn-free:hover {
        background: #218838;
        border-color: #218838;
    }

.btn-basic {
    background: var(--basic-color);
    border-color: var(--basic-color);
}

    .btn-basic:hover {
        background: #0056b3;
        border-color: #0056b3;
    }

.btn-standard {
    background: var(--standard-color);
    border-color: var(--standard-color);
}

    .btn-standard:hover {
        background: #563d7c;
        border-color: #563d7c;
    }

.btn-premium {
    background: var(--premium-color);
    border-color: var(--premium-color);
}

    .btn-premium:hover {
        background: #c82333;
        border-color: #c82333;
    }

.cta-button i {
    font-size: 0.85rem;
}

/* 通知盒子 */
.notification-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 450px;
    min-height: 260px;
    margin: 80px auto;
    background: linear-gradient(135deg, #5529D2, #8A6DE9);
    border: 2px solid #5529D2;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(85, 41, 210, 0.3);
    padding: 40px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

    .notification-box.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .notification-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(85, 41, 210, 0.4);
    }

.notification-content {
    text-align: center;
}

    .notification-content p {
        color: var(--white);
        font-size: 1.3rem;
        margin: 15px 0;
        text-align: center;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        line-height: 1.6;
    }

    .notification-content a {
        color: var(--white);
        text-decoration: underline;
        font-weight: 600;
        transition: var(--transition);
    }

        .notification-content a:hover {
            color: #e6e6fa;
            text-decoration: none;
        }

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
/* 桌面端：4列 */
@media (min-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 中等屏幕：3列 */
@media (max-width: 1099px) and (min-width: 900px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

/* 小屏幕：2列 */
@media (max-width: 899px) and (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* 通用移动端断点：768px以下 */
@media (max-width: 768px) {
    /* 网格布局：1列 */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
        gap: 20px;
    }

    /* Hero区域调整 */
    .price-hero {
        height: 12vh;
        min-height: 80px;
        background-attachment: scroll !important;
    }

    .hero-content h1 {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    .hero-content .lead {
        font-size: 1rem;
        line-height: 1.4;
    }

    /* 容器调整 */
    .price-container {
        padding: 25px 15px;
    }

    .page-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    /* 卡片内容调整 */
    .plan-title {
        font-size: 1.4rem;
    }

    .plan-price {
        font-size: 1.7rem;
    }

    .plan-features li {
        font-size: 0.85rem;
        padding: 6px 0;
        line-height: 1.35;
    }

        .plan-features li:before {
            top: 6px;
            font-size: 0.85rem;
        }

    .card-features-container {
        min-height: 170px;
    }

    /* 按钮调整 */
    .cta-button {
        padding: 0.75rem 1.3rem;
        font-size: 0.95rem;
        height: 44px;
    }

        .cta-button i {
            font-size: 0.85rem;
        }

    /* 通知框 */
    .notification-box {
        width: 90%;
        margin: 50px auto;
        padding: 30px;
    }

    .notification-content p {
        font-size: 1.1rem;
    }
}

/* 超小屏幕额外优化 */
@media (max-width: 480px) {
    .pricing-grid {
        max-width: 300px;
        gap: 18px;
    }

    .hero-content h1 {
        font-size: 1.4rem;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .plan-title {
        font-size: 1.3rem;
    }

    .plan-price {
        font-size: 1.6rem;
    }

    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}
/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}
