/* 八字测算宣传页面特定样式 */

/* 天干地支浮动背景 */
.bazi-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
    pointer-events: none;
    overflow: hidden;
}

.tiangan, .dizhi {
    position: absolute;
    font-size: 8rem;
    color: #D4AF37;
    font-family: 'Ma Shan Zheng', cursive;
    white-space: nowrap;
    animation: floatHorizontal 120s linear infinite;
}

.tiangan {
    top: 10%;
    left: 0;
    animation-direction: normal;
}

.dizhi {
    bottom: 10%;
    right: 0;
    animation-direction: reverse;
}

@keyframes floatHorizontal {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* 八字英雄区 */
.bazi-hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.bazi-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.bazi-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 30%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.bazi-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.6;
}

.bazi-tagline {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
    color: rgba(212, 175, 55, 0.8);
    font-style: italic;
    font-size: 1.2rem;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.bazi-hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bazi-window {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(42, 11, 67, 0.9) 0%, rgba(74, 27, 109, 0.9) 100%);
    border-radius: 20px;
    border: 3px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    padding: 30px;
}

.bazi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 100%;
}

.bazi-cell {
    background: rgba(10, 14, 23, 0.7);
    border-radius: 15px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bazi-cell:hover {
    transform: translateY(-5px);
    border-color: #D4AF37;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.bazi-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

.year::before { background: linear-gradient(90deg, #4CAF50, #8BC34A); }
.month::before { background: linear-gradient(90deg, #FF5722, #FF9800); }
.day::before { background: linear-gradient(90deg, #2196F3, #03A9F4); }
.hour::before { background: linear-gradient(90deg, #795548, #A1887F); }

.cell-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.cell-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #D4AF37;
    font-family: 'Ma Shan Zheng', cursive;
    margin-bottom: 5px;
}

.cell-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.bazi-yinyang {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #fff 0%, #000 100%);
    border-radius: 50%;
    bottom: -30px;
    right: -30px;
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

/* 八字介绍 */
.bazi-intro {
    padding: 100px 0;
    background: rgba(42, 11, 67, 0.3);
    border-radius: 40px;
    margin: 40px 0;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #fff;
}

.intro-text p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.intro-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 5px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.intro-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.bazi-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 3px solid rgba(212, 175, 55, 0.3);
    position: relative;
    animation: rotate 30s linear infinite;
}

.circle-text {
    position: absolute;
    font-size: 1.2rem;
    color: #D4AF37;
    font-weight: 500;
    transform-origin: center;
}

.circle-text:nth-child(1) { top: 10%; left: 50%; transform: translateX(-50%); }
.circle-text:nth-child(2) { top: 50%; right: 10%; transform: translateY(-50%); }
.circle-text:nth-child(3) { bottom: 10%; left: 50%; transform: translateX(-50%); }
.circle-text:nth-child(4) { top: 50%; left: 10%; transform: translateY(-50%); }

/* 特色功能 */
.bazi-features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: rgba(42, 11, 67, 0.7);
    border-radius: 20px;
    padding: 35px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #D4AF37, transparent);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #D4AF37;
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2A0B43 0%, #4A1B6D 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: #D4AF37;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    color: rgba(212, 175, 55, 0.9);
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #D4AF37;
    font-size: 1.5rem;
}

/* 测算流程 */
.bazi-process {
    padding: 100px 0;
    background: rgba(42, 11, 67, 0.3);
    border-radius: 40px;
    margin: 40px 0;
}

.process-steps {
    max-width: 900px;
    margin: 60px auto 0;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: linear-gradient(90deg, #2A0B43, #D4AF37, #2A0B43);
    z-index: 1;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.step:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
}

.step:nth-child(even) .step-content {
    padding-right: 40px;
    padding-left: 0;
}

.step-number {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #D4AF37 0%, #F4DF9A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2A0B43;
    flex-shrink: 0;
    border: 5px solid rgba(42, 11, 67, 0.9);
}

.step-content {
    flex: 1;
    padding: 0 40px;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.step-content p {
    color: rgba(255, 255, 255, 0.7);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(42, 11, 67, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #D4AF37;
    border: 3px solid rgba(212, 175, 55, 0.3);
    flex-shrink: 0;
}

/* 优势特点 */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.advantage-card {
    background: rgba(42, 11, 67, 0.7);
    border-radius: 20px;
    padding: 35px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.advantage-card:hover {
    transform: translateY(-5px);
    border-color: #D4AF37;
    background: rgba(42, 11, 67, 0.9);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2A0B43 0%, #4A1B6D 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: #D4AF37;
}

.advantage-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
}

.advantage-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* 用户见证 */
.bazi-testimonials {
    padding: 100px 0;
    background: rgba(42, 11, 67, 0.3);
    border-radius: 40px;
    margin: 40px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: rgba(42, 11, 67, 0.7);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.testimonial-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: italic;
    position: relative;
    padding-left: 25px;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 4rem;
    color: rgba(212, 175, 55, 0.3);
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2A0B43 0%, #4A1B6D 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    font-weight: 600;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #fff;
}

.author-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.author-rating {
    color: #D4AF37;
    font-size: 0.9rem;
}

/* CTA区域 */
.bazi-cta {
    padding: 100px 0;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.3;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cta-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #D4AF37;
    font-weight: 500;
}

.cta-feature i {
    font-size: 1.1rem;
}

.price-card {
    background: rgba(42, 11, 67, 0.9);
    border-radius: 25px;
    padding: 40px;
    border: 2px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #D4AF37, #F4DF9A, #D4AF37);
}

.price-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.price-header h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.price {
    color: #D4AF37;
    font-weight: 700;
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.amount {
    font-size: 3.5rem;
    line-height: 1;
}

.period {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

.price-features {
    list-style: none;
    margin-bottom: 30px;
}

.price-features li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.price-features li i {
    position: absolute;
    left: 0;
    top: 2px;
    color: #D4AF37;
}

.price-action {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.price-action .btn {
    flex: 1;
    justify-content: center;
}

.price-note {
    text-align: center;
    padding: 15px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    color: #D4AF37;
    font-weight: 500;
}

.price-note i {
    margin-right: 8px;
}

/* FAQ常见问题 */
.bazi-faq {
    padding: 100px 0;
    background: rgba(42, 11, 67, 0.3);
    border-radius: 40px;
    margin: 40px 0;
}

.faq-grid {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    background: rgba(42, 11, 67, 0.7);
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(212, 175, 55, 0.05);
}

.faq-question h3 {
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
}

.faq-question i {
    color: #D4AF37;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 30px 30px;
    max-height: 500px;
}

.faq-answer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .bazi-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .bazi-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .bazi-tagline {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .intro-content,
    .cta-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .step, .step:nth-child(even) {
        flex-direction: column;
        text-align: center;
        margin-bottom: 40px;
    }
    
    .step-content {
        padding: 20px 0 !important;
    }
    
    .features-grid,
    .advantages-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .bazi-title {
        font-size: 2.8rem;
    }
    
    .bazi-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .intro-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .price-action {
        flex-direction: column;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .bazi-title {
        font-size: 2.2rem;
    }
    
    .bazi-subtitle {
        font-size: 1.1rem;
    }
    
    .bazi-hero-visual {
        height: 300px;
    }
    
    .bazi-window {
        transform: scale(0.8);
    }
    
    .price-card {
        padding: 25px;
    }
    
    .amount {
        font-size: 2.8rem;
    }
}