/* 
 * HairTypeAI - Pricing Page Styles
 * 针对价格方案页面的特定样式
 */

/* 定义必要的CSS变量，确保与全局样式一致 */
:root {
    --color-primary: #FF7E33;
    --color-dark: #2D3047;
    --color-gray: #7C7C7C;
    --bg-light: #FFF8EF;
    --color-secondary: #3DA5D9; /* 蓝色作为AI部分 */
}

/* 价格方案标题区 */
.pricing-hero {
    background-color: var(--bg-light);
    padding: 80px 0 60px;
    text-align: center;
}

.pricing-hero .section-title {
    margin-bottom: 20px;
    color: var(--color-dark);
    font-size: 42px;
}

.pricing-hero .section-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    color: var(--color-gray);
}

/* 套餐卡片容器 */
.pricing-plans {
    padding: 80px 0;
    background-color: #fff;
    background-image: linear-gradient(to bottom, #f8f9fa 0%, #fff 100%);
}

.plans-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 40px;
    perspective: 1000px;
}

/* 套餐卡片样式 */
.plan-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                opacity 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transform-style: preserve-3d;
    opacity: 0;
    transform: translateY(30px);
}

/* 增强价格卡片效果 */
.plan-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: none;
}

.plan-card .plan-features li i {
    background: rgba(255, 107, 0, 0.15);
}

.plan-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

/* 套餐卡片头部 */
.plan-header {
    padding: 40px 25px 30px;
    text-align: center;
    background: #FF7E33;
    border-bottom: 1px solid #eaeaea;
    position: relative;
    color: white;
}

.plan-header h2 {
    margin: 0 0 10px;
    font-size: 28px;
    color: white;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.plan-type {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
    font-weight: 500;
}

.plan-price {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
}

.plan-price span {
    font-size: 16px;
    font-weight: 500;
    margin-left: 2px;
    margin-top: 8px;
}

.plan-credits {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
}

/* 套餐特性列表 */
.plan-features {
    padding: 35px 25px;
    flex-grow: 1;
    background-color: #ffffff;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: 12px 0;
    color: var(--color-dark);
    font-size: 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

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

.plan-features li i {
    color: var(--color-primary);
    margin-right: 12px;
    font-size: 16px;
    background: rgba(255, 107, 0, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 套餐按钮 */
.plan-btn {
    margin: 0 25px 35px;
    padding: 15px 20px;
    width: calc(100% - 50px);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    background-color: #FF7E33 !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 8px rgba(255, 126, 51, 0.25);
}

.plan-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(255, 126, 51, 0.3), 0 3px 6px rgba(0, 0, 0, 0.1);
    background-color: #ff7b1c !important;
}

/* 特色套餐标记 - 丝带样式 */
.featured-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #6A2BBA;
    color: white;
    padding: 8px 30px 8px 15px;
    font-size: 14px;
    font-weight: 500;
    z-index: 3;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    text-align: center;
    width: auto;
    transform: none;
    border: none;
    border-radius: 0;
    display: block;
    text-transform: none;
    letter-spacing: 0.5px;
    box-shadow: none;
}

.featured-badge i {
    display: none;
}

/* 特色套餐卡片 */
.plan-card.featured {
    border: none;
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.15);
    z-index: 2;
    position: relative;
}

.plan-card.featured:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 0 25px 50px rgba(255, 107, 0, 0.2);
}

.plan-btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.plan-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* Credits说明区域 */
.credits-info {
    background-color: var(--bg-light);
    padding: 70px 0;
    text-align: center;
}

.credits-explainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.credit-info-item {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
    opacity: 0;
    transform: translateY(30px);
}

.credit-info-item:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.credit-info-item h3 {
    margin: 0 0 15px;
    font-size: 20px;
    color: var(--color-dark);
}

.credit-info-item p {
    color: var(--color-gray);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* FAQ区域 */
.pricing-faq {
    padding: 70px 0 90px;
    background-color: #f8f9fa;
}

.faq-container {
    max-width: 900px;
    margin: 40px auto 0;
}

.pricing-faq .section-title {
    font-size: 38px;
    margin-bottom: 10px;
    text-align: center;
    color: var(--color-dark);
}

.pricing-faq .section-description {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 18px;
    color: var(--color-gray);
}

.pricing-faq .section-description a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pricing-faq .section-description a:hover {
    text-decoration: underline;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
}

.faq-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--color-primary);
}

.faq-content {
    padding: 30px;
}

.faq-number {
    display: none;
}

.faq-question {
    padding: 0 0 15px 0;
    position: relative;
    background: transparent;
    border-bottom: none;
    margin-bottom: 0;
}

.faq-question:before {
    display: none;
}

.faq-question h3 {
    margin: 0;
    font-size: 22px;
    color: var(--color-dark);
    font-weight: 600;
    line-height: 1.3;
    padding-left: 0;
    letter-spacing: -0.3px;
}

.faq-answer {
    padding: 0;
    background: transparent;
}

.faq-answer p {
    margin: 0;
    color: var(--color-gray);
    line-height: 1.7;
    font-size: 16px;
    position: relative;
    transition: none;
}

.faq-answer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.faq-answer a:hover {
    color: #ff7b1c;
    text-decoration: underline;
}

/* 企业方案区域 */
.enterprise-plan {
    padding: 80px 0;
    background-color: var(--bg-light);
    background-image: linear-gradient(to bottom, #fff 0%, #f5f7fa 100%);
}

.enterprise-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.enterprise-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.enterprise-content {
    flex: 1;
    padding: 50px 40px;
}

.enterprise-content h2 {
    margin: 0 0 20px;
    font-size: 32px;
    color: var(--color-dark);
    position: relative;
    padding-bottom: 15px;
}

.enterprise-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

.enterprise-content p {
    margin: 0 0 30px;
    color: var(--color-gray);
    font-size: 17px;
    line-height: 1.6;
}

.enterprise-content .btn {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
}

.enterprise-image {
    flex: 1;
    height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enterprise-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.enterprise-container:hover .enterprise-image img {
    transform: scale(1.05);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .enterprise-container {
        flex-direction: column;
    }
    
    .enterprise-image {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .plan-card {
        min-width: 280px;
    }
    
    .plan-card.featured {
        transform: scale(1.02);
    }
    
    .plan-card.featured:hover {
        transform: translateY(-15px) scale(1.02);
    }
    
    .featured-badge {
        font-size: 13px;
        padding: 6px 25px 6px 15px;
    }
}

@media (max-width: 768px) {
    .pricing-hero {
        padding: 60px 0 40px;
    }
    
    .pricing-hero .section-title {
        font-size: 32px;
    }
    
    .plans-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .plan-card {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }
    
    .plan-card.featured {
        transform: scale(1);
        order: -1;
        max-width: 100%;
        width: 100%;
        margin: 0 auto 20px;
    }
    
    .plan-card.featured:hover {
        transform: translateY(-15px);
    }
    
    .plan-card:hover {
        transform: translateY(-15px);
    }
    
    .featured-badge {
        right: -35px;
    }
    
    .credit-info-item {
        max-width: 100%;
    }
    
    .pricing-faq .section-title {
        font-size: 32px;
    }
    
    .faq-content {
        padding: 20px 25px;
    }
    
    .faq-question h3 {
        font-size: 18px;
    }
    
    .faq-answer p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .payment-message {
        margin: 0 15px 20px;
        padding: 12px 15px;
    }
}

@media (max-width: 576px) {
    .pricing-hero .section-title {
        font-size: 28px;
    }
    
    .pricing-hero .section-description {
        font-size: 16px;
    }
    
    .plan-header {
        padding: 25px 20px;
    }
    
    .plan-features {
        padding: 25px 20px;
    }
    
    .enterprise-content {
        padding: 30px 20px;
    }
    
    .pricing-faq .section-title {
        font-size: 28px;
    }
    
    .faq-content {
        padding: 18px 20px;
    }
    
    .faq-question h3 {
        font-size: 17px;
    }
}

/* 只保留plan-card和其他元素的动画，移除FAQ的动画 */
@media (prefers-reduced-motion: no-preference) {
    .plan-card, .credit-info-item, .enterprise-container {
        animation: fadeInUp 0.8s forwards;
        animation-delay: 0.2s;
    }
    
    .plan-card:nth-child(2) {
        animation-delay: 0.4s;
    }
    
    .plan-card:nth-child(3) {
        animation-delay: 0.6s;
    }
    
    .credit-info-item:nth-child(1) {
        animation-delay: 0.8s;
    }
    
    .credit-info-item:nth-child(2) {
        animation-delay: 1.0s;
    }
    
    .credit-info-item:nth-child(3) {
        animation-delay: 1.2s;
    }
    
    .enterprise-container {
        animation-delay: 1.4s;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* 删除横向划过效果，保持简洁设计 */
.faq-question h3:after {
    display: none;
}

/* 修改内容渐入效果 */
.faq-item:hover .faq-answer p {
    transform: none;
    opacity: 1;
}

/* PayPal按钮容器样式 */
.paypal-button-container {
    width: 100%;
    min-height: 45px;
    margin-top: 15px;
}

/* 支付消息 */
.payment-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 0 auto 20px;
    max-width: 800px;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.payment-message.success {
    background-color: #e1f5e9;
    color: #0c6e3f;
    border-left: 4px solid #0c6e3f;
}

.payment-message.error {
    background-color: #fce8e8;
    color: #d32f2f;
    border-left: 4px solid #d32f2f;
}

.payment-message.fade-out {
    animation: fadeOut 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
} 