/* ============================================
   八字分析系统 - 主样式表
   ============================================ */

:root {
    --primary-color: #8B4513;
    --primary-dark: #654321;
    --secondary-color: #DAA520;
    --bg-dark: #1a1a2e;
    --bg-light: #16213e;
    --text-light: #f5f5f5;
    --text-muted: #a0a0a0;
    --gold: #FFD700;
    --success: #4CAF50;
    --error: #f44336;
    --gradient-primary: linear-gradient(135deg, #8B4513 0%, #DAA520 100%);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   导航栏
   ============================================ */

.navbar {
    background: rgba(26, 26, 46, 0.95);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

/* ============================================
   按钮
   ============================================ */

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(218, 165, 32, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--bg-dark);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ============================================
   英雄区域
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 69, 19, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(218, 165, 32, 0.2) 0%, transparent 50%),
        var(--bg-dark);
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ============================================
   功能特点
   ============================================ */

.features {
    padding: 100px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--gold);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(26, 26, 46, 0.8);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(218, 165, 32, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--gold);
}

.feature-card p {
    color: var(--text-muted);
}

/* ============================================
   关于
   ============================================ */

.about {
    padding: 100px 0;
    background: var(--bg-dark);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* ============================================
   页脚
   ============================================ */

.footer {
    background: var(--bg-light);
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
}

/* ============================================
   认证页面
   ============================================ */

.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
}

.auth-card {
    background: var(--bg-light);
    padding: 50px 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(218, 165, 32, 0.2);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--gold);
    font-size: 2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(218, 165, 32, 0.3);
    border-radius: 10px;
    background: rgba(26, 26, 46, 0.8);
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.error-message {
    color: var(--error);
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-align: center;
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--gold);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   分析页面
   ============================================ */

.analyze-section {
    padding: 100px 20px 40px;
    min-height: 100vh;
}

.analyze-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(218, 165, 32, 0.2);
}

.analyze-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--gold);
    font-size: 1.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* ============================================
   结果展示
   ============================================ */

.result-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(218, 165, 32, 0.2);
}

.result-card h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.4rem;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(218, 165, 32, 0.3);
}

.bazi-pillars {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.pillar {
    text-align: center;
    background: rgba(26, 26, 46, 0.8);
    padding: 20px;
    border-radius: 12px;
    min-width: 80px;
}

.pillar-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.pillar-gan {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 5px;
}

.pillar-zhi {
    font-size: 2rem;
    color: var(--secondary-color);
}

.score-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.score-high {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.score-medium {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.score-low {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.dayun-timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.dayun-item {
    background: rgba(26, 26, 46, 0.8);
    padding: 15px 20px;
    border-radius: 10px;
    min-width: 120px;
    text-align: center;
    border: 1px solid rgba(218, 165, 32, 0.2);
}

.dayun-item.golden {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.dayun-ganzhi {
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 5px;
}

.dayun-age {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   响应式
   ============================================ */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .nav-links {
        gap: 10px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .bazi-pillars {
        flex-wrap: wrap;
    }
    
    .analyze-card {
        padding: 30px 20px;
    }
}
