/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #c8102e;
    --primary-gold: #d4af37;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f8f8;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: #fff;
    font-size: 16px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-red);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-gold));
    border-radius: 2px;
}

/* 头部导航 */
.header {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2d2d2d 100%);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.site-name {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-gold);
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: #fff;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-menu a:hover {
    background-color: var(--primary-red);
    transform: translateY(-2px);
}

/* Hero区域 */
.hero-section {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-red), #a00d27);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(200,16,46,0.4);
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(200,16,46,0.6);
}

/* 游戏卡片网格 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.game-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-gold);
}

.game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-card-content {
    padding: 20px;
}

.game-card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-red);
}

.game-card-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 开奖结果模块 */
.lottery-results {
    background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.results-table th,
.results-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.results-table th {
    background: linear-gradient(135deg, var(--primary-red), #a00d27);
    color: #fff;
    font-weight: bold;
}

.lottery-ball {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    margin: 0 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.ball-red { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.ball-blue { background: linear-gradient(135deg, #3498db, #2980b9); }
.ball-green { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.ball-gold { background: linear-gradient(135deg, var(--primary-gold), #b8941f); }

/* 统计图表区域 */
.chart-container {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-top: 30px;
}

.chart-image {
    width: 100%;
    border-radius: 8px;
}

/* FAQ区域 */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border-left: 4px solid var(--primary-gold);
}

.faq-question {
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-red);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--text-light);
    line-height: 1.8;
}

/* 评论区域 */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary-gold);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-name {
    font-weight: bold;
    color: var(--primary-red);
}

.review-rating {
    color: var(--primary-gold);
    font-size: 18px;
}

.review-location {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
}

.review-text {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 10px;
}

.review-date {
    color: var(--text-light);
    font-size: 13px;
}

/* 支付方式 */
.payment-section {
    background: var(--light-bg);
    text-align: center;
}

.payment-image {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* 牌照信息 */
.license-section {
    text-align: center;
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
}

.license-badge {
    max-width: 300px;
    margin: 20px auto;
}

.license-info {
    max-width: 700px;
    margin: 0 auto;
    line-height: 2;
    color: var(--text-dark);
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2d2d2d 100%);
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-gold);
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
}

.age-restriction {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px 20px;
    background: rgba(200,16,46,0.1);
    border-radius: 8px;
    border: 2px solid var(--primary-red);
}

.age-icon {
    width: 40px;
    height: 40px;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    background: var(--light-bg);
    font-size: 14px;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb-list li::after {
    content: '›';
    margin-left: 10px;
    color: var(--text-light);
}

.breadcrumb-list li:last-child::after {
    content: '';
}

.breadcrumb-list a {
    color: var(--primary-red);
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .results-table {
        font-size: 14px;
    }
    
    .results-table th,
    .results-table td {
        padding: 10px 5px;
    }
    
    .lottery-ball {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 13px;
    }
}

/* 内容文本样式 */
.content-text {
    max-width: 900px;
    margin: 0 auto;
    line-height: 2;
}

.content-text h2 {
    font-size: 26px;
    color: var(--primary-red);
    margin: 30px 0 15px;
    padding-left: 15px;
    border-left: 4px solid var(--primary-gold);
}

.content-text h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin: 25px 0 12px;
}

.content-text p {
    margin-bottom: 15px;
    text-align: justify;
}

.content-text ul {
    margin: 15px 0;
    padding-left: 30px;
}

.content-text li {
    margin-bottom: 10px;
}

.highlight-box {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-left: 4px solid var(--primary-red);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.info-box {
    background: linear-gradient(135deg, #fffbf0 0%, #fff4d9 100%);
    border-left: 4px solid var(--primary-gold);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}
