/* 
 * 彩票网站主样式表
 * 版本: 1.0.0
 * 2026年SEO优化版本
 */

/* ===== 基础重置与变量 ===== */
:root {
    --primary-color: #c41e3a;
    --secondary-color: #1a4b8c;
    --accent-color: #d4af37;
    --dark-bg: #0d1b2a;
    --light-bg: #f8f9fa;
    --text-dark: #1b1b1b;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --gradient-primary: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    --gradient-secondary: linear-gradient(135deg, #1a4b8c 0%, #0d2b4a 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-primary: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--light-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
}

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

.section {
    padding: 60px 0;
}

.section-alt {
    background-color: #ffffff;
}

.section-dark {
    background: var(--gradient-secondary);
    color: var(--text-light);
}

/* ===== 头部导航 ===== */
.site-header {
    background: var(--gradient-secondary);
    padding: 15px 0;
    position: relative;
    z-index: 100;
}

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

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

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-light);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* 主导航 */
.main-nav {
    display: flex;
    align-items: center;
}

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

.nav-list li a {
    display: block;
    padding: 10px 18px;
    color: var(--text-light);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-list li a:hover,
.nav-list li a.active {
    background: rgba(255,255,255,0.15);
    color: var(--accent-color);
}

.cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--gradient-gold);
    color: var(--text-dark) !important;
    font-weight: 700;
    border-radius: var(--radius-md);
    margin-left: 15px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Hero区域 ===== */
.hero-section {
    background: var(--gradient-secondary);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-banner.webp') center/cover no-repeat;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-light);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-block;
    padding: 16px 40px;
    background: var(--gradient-gold);
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
    padding: 15px 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-size: 0.9rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '>';
    margin: 0 10px;
    color: var(--text-muted);
}

.breadcrumb-list li a {
    color: var(--secondary-color);
}

.breadcrumb-list li:last-child {
    color: var(--text-muted);
}

/* ===== 标题样式 ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 20px auto 0;
}

/* ===== 卡片网格 ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.game-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

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

.game-card-body {
    padding: 25px;
}

.game-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.game-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.game-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.game-card-link:hover {
    gap: 12px;
}

/* ===== 特色区块 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 35px 25px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
}

.feature-icon img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== 关于我们 ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.about-text p {
    margin-bottom: 18px;
    color: var(--text-muted);
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ===== 支付方式 ===== */
.payment-section {
    background: #ffffff;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.payment-icon {
    width: 100px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: var(--transition-fast);
}

.payment-icon:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

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

.faq-item {
    background: #ffffff;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 20px 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.faq-question:hover {
    background: var(--light-bg);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== 用户评论 ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.review-card {
    background: #ffffff;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
}

.review-info h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.review-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-stars {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.review-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.review-date {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== 牌照区域 ===== */
.license-section {
    text-align: center;
    padding: 50px 0;
    background: var(--light-bg);
}

.license-badge {
    max-width: 200px;
    margin: 0 auto 25px;
}

.license-info {
    max-width: 600px;
    margin: 0 auto;
}

.license-info p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* ===== 客服支持 ===== */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.support-item {
    text-align: center;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.support-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
}

.support-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.support-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== 页脚 ===== */
.site-footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 60px 0 30px;
}

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

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-payment {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-payment img {
    height: 30px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.age-restriction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-copyright {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

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

/* ===== 内页样式 ===== */
.page-header {
    background: var(--gradient-secondary);
    padding: 60px 0;
    text-align: center;
    color: var(--text-light);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.content-section {
    padding: 50px 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--text-dark);
}

.content-wrapper h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: var(--secondary-color);
}

.content-wrapper p {
    margin-bottom: 18px;
    color: var(--text-muted);
}

.content-wrapper ul,
.content-wrapper ol {
    margin: 20px 0;
    padding-left: 25px;
}

.content-wrapper li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.content-image {
    margin: 30px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ===== APP下载页 ===== */
.app-download-section {
    background: var(--gradient-secondary);
    padding: 80px 0;
    text-align: center;
    color: var(--text-light);
}

.app-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.app-feature {
    padding: 25px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
}

.app-feature h4 {
    margin-bottom: 10px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: #ffffff;
    color: var(--text-dark);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-normal);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        padding: 20px;
        display: none;
        flex-direction: column;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-list li a {
        padding: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .cta-btn {
        margin: 15px 0 0;
        text-align: center;
        width: 100%;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 动画效果 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== 工具类 ===== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* ===== 负责任博彩 ===== */
.responsible-gaming {
    background: #fff3cd;
    padding: 30px;
    border-radius: var(--radius-md);
    margin: 30px 0;
}

.responsible-gaming h3 {
    color: var(--warning-color);
    margin-bottom: 15px;
}

.responsible-gaming p {
    color: #856404;
}

.responsible-gaming a {
    color: #856404;
    text-decoration: underline;
}
