/* 价格方案页面样式 */

/* 价格方案首屏 */
.pricing-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.pricing-hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.pricing-hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 价格切换开关 */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.toggle-label {
    font-size: 16px;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 32px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: rgba(255, 255, 255, 0.5);
}

input:checked + .slider:before {
    transform: translateX(28px);
}

.save-badge {
    background: #48bb78;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 5px;
}

/* 价格方案卡片 */
.pricing-plans {
    padding: 80px 0;
    background: var(--bg-white);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid #e2e8f0;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
}

.plan-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.price {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-color);
}

.amount {
    font-size: 56px;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.period {
    font-size: 18px;
    color: var(--text-light);
}

.plan-desc {
    color: var(--text-light);
    font-size: 16px;
}

.plan-features {
    list-style: none;
    margin-bottom: 40px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}

.plan-features li:last-child {
    border-bottom: none;
}

.check {
    color: #48bb78;
    font-size: 18px;
    font-weight: bold;
}

.cross {
    color: #e53e3e;
    font-size: 18px;
    font-weight: bold;
}

.btn-full {
    width: 100%;
    padding: 15px 30px;
    font-size: 16px;
}

/* 功能对比表 */
.pricing-comparison {
    padding: 80px 0;
    background: var(--bg-light);
}

.comparison-table-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    box-shadow: var(--shadow-md);
    border-radius: 10px;
}

.comparison-table {
    width: 100%;
    min-width: 800px;
    background: var(--bg-white);
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.feature-col {
    text-align: left;
    width: 25%;
}

.plan-col {
    width: 18.75%;
}

.category-row {
    background: var(--bg-light);
}

.category-name {
    font-weight: 600;
    color: var(--primary-color);
    text-align: center !important;
    background: var(--bg-light) !important;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

/* 增值服务 */
.value-added-services {
    padding: 100px 0;
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-item {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.service-features li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-color);
}

.service-features li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 常见问题 */
.pricing-faq {
    padding: 100px 0;
    background: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 60px auto 0;
}

.faq-item {
    background: var(--bg-white);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.faq-item.active {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 20px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.faq-toggle {
    font-size: 24px;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 30px 20px;
    max-height: 200px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA区域 */
.pricing-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pricing-hero {
        padding: 120px 0 60px;
    }

    .pricing-hero-content h1 {
        font-size: 36px;
    }

    .pricing-toggle {
        flex-direction: column;
        gap: 10px;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }

    .amount {
        font-size: 42px;
    }

    .comparison-table-wrapper {
        margin: 0 -20px;
        border-radius: 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 250px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.2s; }
.pricing-card:nth-child(3) { animation-delay: 0.3s; }
.pricing-card:nth-child(4) { animation-delay: 0.4s; }

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* 特殊效果 */
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.pricing-card:hover::before {
    left: 100%;
}

/* 表格固定布局优化 */
@media (min-width: 1200px) {
    .comparison-table {
        table-layout: fixed;
    }
}

/* 加载动画 */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}