/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #8B5CF6;
    --primary-purple-dark: #6D28D9;
    --primary-purple-light: #A78BFA;
    --bg-dark: #0A0A0F;
    --bg-darker: #050508;
    --card-bg: rgba(139, 92, 246, 0.1);
    --card-border: rgba(139, 92, 246, 0.3);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 星空背景动画 */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 40%, white, transparent),
        radial-gradient(1px 1px at 33% 60%, white, transparent),
        radial-gradient(1px 1px at 55% 80%, white, transparent),
        radial-gradient(2px 2px at 10% 90%, white, transparent);
    background-size: 200% 200%;
    animation: starsMove 20s linear infinite;
    opacity: 0.6;
}

@keyframes starsMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--primary-purple-light);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* 英雄区 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-light), #C084FC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-dark));
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--primary-purple);
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary-purple-light);
}

/* 星座轮盘 */
.zodiac-wheel {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    animation: rotate 20s linear infinite;
}

.wheel-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(139, 92, 246, 0.3) 0deg,
        rgba(167, 139, 250, 0.2) 30deg,
        rgba(139, 92, 246, 0.3) 60deg,
        rgba(167, 139, 250, 0.2) 90deg,
        rgba(139, 92, 246, 0.3) 120deg,
        rgba(167, 139, 250, 0.2) 150deg,
        rgba(139, 92, 246, 0.3) 180deg,
        rgba(167, 139, 250, 0.2) 210deg,
        rgba(139, 92, 246, 0.3) 240deg,
        rgba(167, 139, 250, 0.2) 270deg,
        rgba(139, 92, 246, 0.3) 300deg,
        rgba(167, 139, 250, 0.2) 330deg,
        rgba(139, 92, 246, 0.3) 360deg
    );
    border: 2px solid rgba(139, 92, 246, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.yin-yang {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(167, 139, 250, 0.6));
    position: relative;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
}

.yin-yang::before,
.yin-yang::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.yin-yang::before {
    width: 60px;
    height: 60px;
    background: rgba(10, 10, 15, 0.8);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.yin-yang::after {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 功能区域 */
.features {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-purple);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card.large-card {
    grid-column: span 2;
}

.feature-icon {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.icon-yin-yang-globe,
.icon-yin-yang-gear,
.icon-astrology-symbol,
.icon-life-report,
.icon-compatibility,
.icon-aura,
.icon-discover {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-yin-yang-globe::before {
    content: '☯';
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.icon-yin-yang-gear::before {
    content: '⚙';
    font-size: 2rem;
}

.icon-astrology-symbol::before {
    content: '♁';
    font-size: 2rem;
}

.icon-life-report::before {
    content: '📜';
    font-size: 2rem;
}

.icon-compatibility::before {
    content: '💕';
    font-size: 2rem;
}

.icon-aura::before {
    content: '🌀';
    font-size: 2rem;
}

.icon-discover::before {
    content: '🧭';
    font-size: 2rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.decorative-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-purple), transparent);
    margin: 1rem 0;
    position: relative;
    z-index: 1;
}

.feature-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.read-more {
    color: var(--primary-purple-light);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.read-more:hover {
    color: var(--primary-purple);
    gap: 1rem;
}

.arrow {
    transition: transform 0.3s;
}

.read-more:hover .arrow {
    transform: translateX(5px);
}

/* 关于区域 */
.about {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.zodiac-wheel-large {
    width: 100%;
    max-width: 500px;
    height: 500px;
    margin: 0 auto;
    animation: rotate 30s linear infinite reverse;
}

.wheel-inner-large {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(139, 92, 246, 0.4) 0deg,
        rgba(167, 139, 250, 0.3) 30deg,
        rgba(139, 92, 246, 0.4) 60deg,
        rgba(167, 139, 250, 0.3) 90deg,
        rgba(139, 92, 246, 0.4) 120deg,
        rgba(167, 139, 250, 0.3) 150deg,
        rgba(139, 92, 246, 0.4) 180deg,
        rgba(167, 139, 250, 0.3) 210deg,
        rgba(139, 92, 246, 0.4) 240deg,
        rgba(167, 139, 250, 0.3) 270deg,
        rgba(139, 92, 246, 0.4) 300deg,
        rgba(167, 139, 250, 0.3) 330deg,
        rgba(139, 92, 246, 0.4) 360deg
    );
    border: 3px solid rgba(139, 92, 246, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.yin-yang-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(167, 139, 250, 0.7));
    position: relative;
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.8);
}

.yin-yang-large::before,
.yin-yang-large::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.yin-yang-large::before {
    width: 75px;
    height: 75px;
    background: rgba(10, 10, 15, 0.9);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.yin-yang-large::after {
    width: 75px;
    height: 75px;
    background: rgba(255, 255, 255, 0.4);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* 下载区域 */
.download {
    padding: 100px 0;
    text-align: center;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.05));
}

.download-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    min-width: 200px;
}

.download-btn:hover {
    transform: translateY(-5px);
    border-color: var(--primary-purple);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.15);
}

.download-btn svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary-purple-light);
}

.download-label {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.download-text {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 页脚 */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-purple-light);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.social-link:hover {
    color: var(--primary-purple-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .zodiac-wheel {
        width: 300px;
        height: 300px;
    }

    .feature-card.large-card {
        grid-column: span 1;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        padding: 2rem;
        transition: left 0.3s;
        border-top: 1px solid rgba(139, 92, 246, 0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .download-btn {
        justify-content: center;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选中文本样式 */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}

