/* ========================================
   AI算命系统 - 首页样式
   ======================================== */

/* Hero 区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
}

.hero-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--primary-dark);
    box-shadow: 0 0 60px rgba(212, 168, 83, 0.4);
}

.hero-icon i {
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero h1 {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 24px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Hero 装饰 */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(212, 168, 83, 0.1);
}

.circle-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
    animation: pulse 4s ease-in-out infinite;
}

.circle-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    animation: pulse 4s ease-in-out infinite 1s;
}

.circle-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite 2s;
}

/* 服务区域 */
.services {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(212, 168, 83, 0.02) 50%, transparent 100%);
}

.service-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: var(--border-gold);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 168, 83, 0.5);
    box-shadow: var(--shadow-gold);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary-dark);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(212, 168, 83, 0.4);
}

.service-card h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-card .price {
    font-size: 24px;
    color: var(--gold-primary);
    font-weight: bold;
}

.service-card.featured {
    border-color: var(--gold-primary);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(212, 168, 83, 0.05) 100%);
}

.service-card.featured .featured-badge {
    position: absolute;
    top: 16px;
    right: -28px;
    background: var(--red-gradient);
    color: white;
    padding: 4px 30px;
    font-size: 12px;
    transform: rotate(45deg);
}

.service-card .original-price {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
}

/* 为什么选择我们 */
.why-choose {
    padding: 100px 0;
}

.feature-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: var(--border-gold);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 168, 83, 0.5);
    box-shadow: var(--shadow-gold);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    background: rgba(212, 168, 83, 0.1);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--gold-primary);
}

.feature-card h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 用户评价 */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(212, 168, 83, 0.02) 50%, transparent 100%);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: var(--border-gold);
    padding: 30px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 168, 83, 0.5);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold-primary);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-rating {
    color: var(--gold-primary);
    margin-bottom: 16px;
}

.testimonial-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.testimonial-author {
    font-size: 14px;
    color: var(--gold-primary);
}

/* CTA 区域 */
.cta-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(212, 168, 83, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 16px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* 页脚 */
.footer {
    background: var(--secondary-dark);
    border-top: var(--border-gold);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

.footer-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--gold-primary);
}

.footer-section ul li i {
    color: var(--gold-primary);
    margin-right: 8px;
    width: 16px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(212, 168, 83, 0.1);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gold-primary);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 168, 83, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-muted);
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--secondary-dark);
    border-bottom: var(--border-gold);
    z-index: 999;
    padding: 20px;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--text-secondary);
    font-size: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a.active {
    color: var(--gold-primary);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 42px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }
    
    .hero-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .services,
    .why-choose,
    .testimonials,
    .cta-section {
        padding: 60px 0;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .service-card .service-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}
