/* ===================================
   AI Fortune Teller - Shared Styles
   统一样式表 - 所有页面共用
   =================================== */

:root {
    --primary: #8B4513;
    --primary-light: #CD853F;
    --gold: #D4AF37;
    --gold-light: #F4E4BC;
    --crimson: #8B0000;
    --jade: #00A86B;
    --purple: #4B0082;
    --bg-dark: #0a0806;
    --bg-card: rgba(26, 20, 16, 0.95);
    --text: #f5e6d3;
    --text-secondary: #a08060;
    --shadow: 0 8px 32px rgba(0,0,0,0.6);
    --glow: 0 0 30px rgba(212,175,55,0.4);
    --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    min-height: 100vh;
    color: var(--text);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Mystical Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(139,0,0,0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(75,0,130,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(212,175,55,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 30%, rgba(0,168,107,0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Animated Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139,0,0,0.7) 0%, transparent 70%);
    top: 5%;
    left: -10%;
}
.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(75,0,130,0.6) 0%, transparent 70%);
    top: 50%;
    right: -10%;
    animation-delay: -8s;
}
.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212,175,55,0.5) 0%, transparent 70%);
    bottom: 10%;
    left: 20%;
    animation-delay: -16s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -40px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.95); }
    75% { transform: translate(30px, 20px) scale(1.05); }
}

/* Stars */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 8, 6, 0.95);
    border-bottom: 1px solid rgba(212,175,55,0.2);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 12px 0;
}

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

.navbar-brand {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 1.5rem;
    color: var(--gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.navbar-brand:hover {
    color: var(--gold-light);
}

.navbar-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(212,175,55,0.3);
    color: var(--gold);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.navbar-toggle:hover {
    background: rgba(212,175,55,0.1);
}

.navbar-menu {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    margin: 0;
}

.navbar-menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 0;
}

.navbar-menu a:hover {
    color: var(--gold);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 8, 6, 0.98);
        flex-direction: column;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(212,175,55,0.2);
        border-top: 1px solid rgba(212,175,55,0.1);
        box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    }
    
    .navbar-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .navbar-menu li {
        padding: 0;
        border-bottom: 1px solid rgba(212,175,55,0.05);
    }
    
    .navbar-menu li:last-child {
        border-bottom: none;
    }
    
    /* 整行可点击 */
    .navbar-menu a {
        display: block;
        padding: 14px 12px;
        margin: 0 -12px;
        border-radius: 8px;
        transition: all 0.3s;
    }
    
    .navbar-menu a:hover {
        background: rgba(212,175,55,0.1);
        padding-left: 16px;
    }
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px 40px;
    position: relative;
    z-index: 1;
}

/* Page Title */
.page-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 20px rgba(212,175,55,0.3);
}

@media (max-width: 600px) {
    .page-title {
        font-size: 2rem;
    }
}

/* Content Card */
.content-card {
    background: var(--bg-card);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.content-card h2 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    margin: 24px 0 16px;
    font-size: 1.5rem;
}

.content-card h2:first-child {
    margin-top: 0;
}

.content-card h3 {
    color: var(--gold-light);
    margin: 20px 0 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

.content-card h3:first-child {
    margin-top: 0;
}

.content-card p {
    margin-bottom: 16px;
    color: var(--text);
    line-height: 1.8;
}

.content-card ul {
    margin: 16px 0 16px 24px;
    color: var(--text-secondary);
}

.content-card li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.content-card a {
    color: var(--gold);
    text-decoration: none;
    transition: all 0.3s;
}

.content-card a:hover {
    text-decoration: underline;
    color: var(--gold-light);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-top: 1px solid rgba(212,175,55,0.1);
    margin-top: 60px;
    position: relative;
    z-index: 1;
    background: rgba(10, 8, 6, 0.8);
}

footer a {
    color: var(--gold);
    text-decoration: none;
    transition: all 0.3s;
}

footer a:hover {
    text-decoration: underline;
    color: var(--gold-light);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.85rem;
}

.disclaimer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(212,175,55,0.05);
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--gold);
    color: var(--bg-dark);
    padding: 8px 16px;
    z-index: 2000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}
