/* 星空背景 */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #0a0e17 0%, #1a1f3a 100%);
    z-index: -2;
    overflow: hidden;
}

.starfield::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, #fff, transparent),
        radial-gradient(1px 1px at 90px 40px, #ddd, transparent),
        radial-gradient(1px 1px at 130px 80px, #fff, transparent),
        radial-gradient(1px 1px at 160px 120px, #ddd, transparent);
    background-repeat: repeat;
    animation: stars 200s linear infinite;
}

.starfield2 {
    z-index: -1;
    opacity: 0.5;
}

.starfield2::before {
    background-image: 
        radial-gradient(3px 3px at 10px 20px, #fff, transparent),
        radial-gradient(2px 2px at 60px 90px, #eee, transparent),
        radial-gradient(1px 1px at 110px 60px, #ddd, transparent),
        radial-gradient(1px 1px at 150px 100px, #fff, transparent),
        radial-gradient(1px 1px at 180px 140px, #ddd, transparent);
    animation: stars 150s linear infinite reverse;
}

@keyframes stars {
    from {
        transform: translateY(0) translateX(0);
    }
    to {
        transform: translateY(-1000px) translateX(-500px);
    }
}

/* 英雄区域 */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 60px;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 0 20px;
}

.hero-text {
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 30%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.yin-yang {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #2A0B43 0%, #4A1B6D 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.3);
    animation: rotate 20s linear infinite;
}

.yin-yang::before,
.yin-yang::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.yin-yang::before {
    width: 100px;
    height: 100px;
    background: #D4AF37;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.yin-yang::after {
    width: 100px;
    height: 100px;
    background: #2A0B43;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.zodiac-ring {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: rotate 30s linear infinite reverse;
}

.zodiac-ring::before {
    content: '♈♉♊♋♌♍♎♏♐♑♒♓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: #D4AF37;
    letter-spacing: 0.8em;
    padding-left: 0.8em;
}

.tarot-card {
    position: absolute;
    width: 120px;
    height: 180px;
    background: linear-gradient(135deg, #D4AF37 0%, #F4DF9A 100%);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: #2A0B43;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    right: 20px;
    bottom: 40px;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #D4AF37;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

/* 服务网格 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: rgba(42, 11, 67, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.service-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: 20px;
    font-size: 1.8rem;
    color: #D4AF37;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.service-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.tag {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.service-cta {
    color: #D4AF37;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-cta i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-cta i {
    transform: translateX(5px);
}

/* 特色优势 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: rgba(42, 11, 67, 0.5);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.feature-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;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.feature-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* 用户评价 */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: rgba(42, 11, 67, 0.7);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.testimonial-content {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 25px;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: rgba(212, 175, 55, 0.3);
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    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.2rem;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.author-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* CTA区域 */
.cta-section {
    background: linear-gradient(135deg, rgba(42, 11, 67, 0.9) 0%, rgba(74, 27, 109, 0.9) 100%);
    border-radius: 20px;
    margin: 80px auto;
    max-width: 1200px;
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    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;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

.cta-note {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* 动画 */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-section {
        padding: 40px 20px;
        margin: 60px 20px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .service-card, .feature-card, .testimonial-card {
        padding: 20px;
    }
}