/* 彩票网站样式 - 移动端优先设计 */

/* 基础重置和变量 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d32f2f;
    --secondary-color: #1976d2;
    --accent-color: #ffa000;
    --text-dark: #212121;
    --text-light: #757575;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --success: #388e3c;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    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 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
header {
    background: var(--gradient-1);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.site-name {
    color: var(--white);
    font-size: 20px;
    font-weight: bold;
}

nav {
    margin-top: 15px;
    width: 100%;
}

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

.nav-menu li a {
    display: block;
    padding: 10px 15px;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s;
}

.nav-menu li a:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

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

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

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

/* Hero横幅 */
.hero-section {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
}

/* 主要内容区域 */
main {
    padding: 30px 0;
}

section {
    margin-bottom: 40px;
}

h1 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: bold;
}

h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent-color);
    font-weight: bold;
}

h3 {
    font-size: 20px;
    color: var(--secondary-color);
    margin: 20px 0 10px;
    font-weight: bold;
}

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

/* 游戏卡片网格 */
.games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 25px 0;
}

.game-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.game-card img {
    width: 100%;
    height: auto;
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    margin-top: 0;
    color: var(--text-dark);
}

.game-info p {
    color: var(--text-light);
    font-size: 14px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-2);
    color: var(--white);
    border-radius: 25px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 特色图标网格 */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 25px 0;
}

.feature-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.feature-item img {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 10px;
}

.feature-item h3 {
    font-size: 18px;
    margin: 10px 0;
}

/* 支付方式 */
.payment-section img {
    width: 100%;
    margin: 20px 0;
}

/* 牌照展示 */
.license-section {
    text-align: center;
    padding: 30px 0;
    background: var(--bg-light);
    border-radius: 10px;
}

.license-badge {
    width: 150px;
    height: 150px;
    margin: 20px auto;
}

/* FAQ部分 */
.faq-item {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.faq-question {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 10px;
}

.faq-answer {
    color: var(--text-dark);
    line-height: 1.7;
}

/* 用户评论 */
.reviews-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 25px 0;
}

.review-card {
    background: var(--white);
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

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

.reviewer-name {
    font-weight: bold;
    color: var(--text-dark);
}

.review-rating {
    color: var(--accent-color);
    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;
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.age-restriction {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin: 10px 0;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background: var(--gradient-1);
    color: var(--white);
    font-weight: bold;
}

/* 平板设备 */
@media (min-width: 768px) {
    nav {
        margin-top: 0;
        width: auto;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-menu li a {
        font-size: 15px;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    h1 {
        font-size: 32px;
    }
}

/* 桌面设备 */
@media (min-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .reviews-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    h1 {
        font-size: 36px;
    }
}

/* 性能优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
