/* ========== 全局变量 ========== */
:root {
    --primary-color: #D2691E;
    --primary-dark: #B85C1A;
    --primary-light: #FFD966;
    --secondary-color: #8B4513;
    --dark-bg: #2C1A0E;
    --light-bg: #FFF8F0;
    --text-dark: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-dark);
    background: var(--light-bg);
    line-height: 1.6;
}

/* ========== 顶部导航 ========== */
.top-bar {
    background: var(--dark-bg);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar a {
    color: var(--white);
    margin-left: 20px;
    text-decoration: none;
}

.top-bar a:hover {
    color: var(--primary-light);
}

/* ========== 主导航 ========== */
.main-nav {
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0;
}

.logo p {
    font-size: 12px;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.lottery-btn {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: bold;
}

.lottery-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(210,105,30,0.3);
}

/* ========== 页脚 ========== */
footer {
    background: var(--dark-bg);
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 60px;
}
footer a {color: #2d43ed;}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p,
.footer-section a {
    color: #aaa;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

/* ========== 通用组件 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(210,105,30,0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .main-nav .container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        justify-content: center;
    }
    
    .section-title {
        font-size: 28px;
    }
}