/* ========================================
   天机阁首页 - 主样式
   Home Page Main Styles
   ======================================== */

/* 基础设置 */
.home-page {
    min-height: 100vh;
    background: var(--tj-bg-dark);
    color: var(--tj-text-light);
    overflow-x: hidden;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 导航栏 */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
    background: transparent;
}

.main-nav.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 40px;
}

.nav-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--tj-gold-primary);
    letter-spacing: 0.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.1em;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tj-gold-primary);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--tj-gold-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 3D太极容器 */
.yinyang-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    z-index: 2;
}

#yinyang-canvas {
    width: 100%;
    height: 100%;
}

/* 星空粒子背景 */
.starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Hero 内容 */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
}

.hero-title {
    font-size: clamp(36px, 8vw, 72px);
    font-weight: 700;
    letter-spacing: 0.4em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, 
        var(--tj-gold-primary) 0%, 
        #fff 50%, 
        var(--tj-gold-primary) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 60px rgba(212, 175, 55, 0.3);
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.hero-subtitle {
    font-size: clamp(16px, 3vw, 24px);
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.3em;
    margin-bottom: 15px;
}

.hero-tagline {
    font-size: clamp(14px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-bottom: 50px;
    letter-spacing: 0.15em;
}

/* CTA 按钮 */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 60px;
    background: linear-gradient(135deg, 
        rgba(212, 175, 37, 0.9) 0%, 
        rgba(184, 150, 12, 0.9) 100%
    );
    color: var(--tj-bg-dark);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 
        0 10px 40px rgba(212, 175, 55, 0.4),
        0 0 0 1px rgba(212, 175, 55, 0.3);
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    transition: left 0.6s;
}

.hero-cta:hover::before {
    left: 100%;
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 50px rgba(212, 175, 55, 0.6),
        0 0 0 2px rgba(212, 175, 55, 0.5);
}

.hero-cta i {
    font-size: 24px;
    animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 滚动提示 */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    letter-spacing: 0.2em;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-hint i {
    font-size: 20px;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* 光束效果 */
.divine-light {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 600px;
    background: linear-gradient(180deg, 
        rgba(212, 175, 55, 0.4) 0%,
        rgba(212, 175, 55, 0.1) 50%,
        transparent 100%
    );
    filter: blur(40px);
    z-index: 3;
    pointer-events: none;
    animation: lightPulse 4s ease-in-out infinite;
}

@keyframes lightPulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scaleY(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scaleY(1.1); }
}

/* 响应式 */
@media (max-width: 768px) {
    .main-nav {
        padding: 15px 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .yinyang-container {
        width: 250px;
        height: 250px;
    }
    
    .hero-title {
        letter-spacing: 0.2em;
    }
    
    .hero-cta {
        padding: 15px 40px;
        font-size: 16px;
    }
}

/* 打印隐藏 */
@media print {
    .main-nav,
    .scroll-hint,
    .starfield {
        display: none;
    }
}
