/* ========================================
   Know Fate 官网样式
   深色主题 + 响应式设计
   ======================================== */

/* 基础样式重置 */
.website-body {
    background-color: #0A0118;
    color: #F8FAFC;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

/* 显示控制 */
.desktop-only {
    display: none !important;
}

.mobile-only {
    display: block !important;
}

@media (min-width: 768px) {
    .desktop-only {
        display: block !important;
    }
    .mobile-only {
        display: none !important;
    }
}

/* ========================================
   导航栏
   ======================================== */
.website-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 1, 24, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(to bottom, #fff, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.logo-icon {
    font-size: 40px;
    line-height: 1;
    filter: brightness(1.1) drop-shadow(0 0 3px rgba(0,0,0,0.5));
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: none;
    gap: 100px; /* 大幅增加间距 */
}

.nav-links a {
    color: #F8FAFC;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #D4AF37;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 用户中心菜单修复 */
.user-profile-menu {
    position: relative;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1002;
}

.user-profile-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px; /* 桥接鼠标滑动间隙 */
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    width: 160px;
    background: #1a0b3e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    z-index: 1001;
}

.user-profile-menu:hover .user-dropdown {
    display: flex;
}

.user-dropdown a {
    padding: 12px 16px;
    font-size: 14px;
    color: #F8FAFC;
    text-decoration: none;
    transition: background 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.user-dropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #D4AF37;
}

/* ========================================
   按钮样式
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #D4AF37, #b8941f);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid #D4AF37;
    color: #D4AF37;
}

.btn-outline:hover {
    background: #D4AF37;
    color: #000;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-content {
        grid-template-columns: 1.2fr 1fr;
    }
}

.hero-text {
    text-align: center;
}

@media (min-width: 992px) {
    .hero-text {
        text-align: left;
    }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
}

.title-line {
    display: block;
    background: linear-gradient(to bottom, #fff, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-line.highlight {
    background: linear-gradient(to bottom, #D4AF37, #A855F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: #94A3B8;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    flex-direction: row; /* 强制横向并排 */
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .hero-cta {
        justify-content: flex-start;
    }
}

.hero-cta .btn-outline {
    width: auto; /* 自动宽度，不再拉长 */
    padding-left: 30px;
    padding-right: 30px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 500px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #94A3B8;
}

.hero-hand-illustration {
    font-size: 240px;
    filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ========================================
   其他通用样式 (保留)
   ======================================== */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #94A3B8;
}

.website-footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 30px;
}

.footer-bottom {
    text-align: center;
    color: #94A3B8;
    font-size: 14px;
}
