﻿/* 
 * {$keywords} - 现代博彩网站样式表
 * 顶部导航设计 - 移动端优化版
 */

/* 基础变量 */
:root {
    --primary-color: #2196F3;    /* 主要蓝色 */
    --primary-light: #64B5F6;    /* 浅蓝色 */
    --primary-dark: #1976D2;     /* 深蓝色 */
    --secondary-color: #4CAF50;  /* 次要绿色 */
    --secondary-light: #81C784;  /* 浅绿色 */
    --secondary-dark: #388E3C;   /* 深绿色 */
    --accent-color: #FF5722;     /* 强调橙色 */
    --light-color: #FFFFFF;      /* 白色 */
    --light-gray: #F5F5F5;       /* 浅灰色 */
    --medium-gray: #E0E0E0;      /* 中灰色 */
    --dark-gray: #757575;        /* 深灰色 */
    --text-color: #333333;       /* 文本色 */
    --success-color: #28a745;    /* 成功色 */
    --warning-color: #ffc107;    /* 警告色 */
    --danger-color: #dc3545;     /* 危险色 */
    --border-radius: 8px;        /* 边框圆角 */
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* 阴影 */
    --transition: all 0.3s ease; /* 过渡效果 */
    --header-height: 70px;       /* 顶部导航高度 */
    --mobile-nav-height: 60px;   /* 移动端底部导航高度 */
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
}

/* 页面加载动画 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(33, 150, 243, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 顶部导航栏 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    height: 100%;
    display: flex;
    align-items: center;
}

.site-logo {
    max-height: 45px;
}

.header-nav {
    display: flex;
    height: 100%;
}

.nav-links-horizontal {
    display: flex;
    height: 100%;
}

.nav-links-horizontal li {
    height: 100%;
}

.nav-links-horizontal .nav-link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-links-horizontal .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links-horizontal .nav-link:hover::after,
.nav-links-horizontal .nav-link.active::after {
    width: 100%;
}

.nav-links-horizontal .nav-link:hover,
.nav-links-horizontal .nav-link.active {
    color: var(--primary-color);
}

.auth-container {
    display: flex;
    gap: 15px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
}

/* 移动端底部导航 */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--mobile-nav-height);
    background-color: var(--light-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 99;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 5px 0;
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 5px;
    width: 25%;
    text-align: center;
}

.mobile-nav-link i {
    font-size: 1.3rem;
    margin-bottom: 3px;
}

.mobile-nav-link.active {
    color: var(--primary-color);
}

.mobile-nav-link:hover {
    color: var(--primary-color);
}

/* 主内容区 */
.main-content {
    padding-top: var(--header-height);
}

/* 通用部分样式 */
.section {
    padding: 80px 40px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--dark-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.login-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.login-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.register-btn {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.register-btn:hover {
    background-color: var(--secondary-dark);
}

.cta-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--light-color);
    font-size: 1.1rem;
    padding: 14px 28px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.cta-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(33, 150, 243, 0.4);
}

.outline-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.outline-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.bonus-btn {
    background-color: var(--accent-color);
    color: var(--light-color);
    padding: 10px 20px;
    font-size: 0.9rem;
    width: 100%;
    margin-top: 15px;
}

.bonus-btn:hover {
    background-color: var(--light-color);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

/* 首页区域 */
.hero-section {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-gray), var(--light-color));
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(76, 175, 80, 0.1), transparent 70%);
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
}

.hero-text {
    flex: 1;
    padding-right: 40px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero-description {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.hero-cta {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-promo {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    padding: 15px 0;
    text-align: center;
    width: 100%;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    color: var(--light-color);
    font-weight: 600;
    font-size: 1.2rem;
}

.promo-badge i {
    margin-right: 10px;
    font-size: 1.5rem;
}

/* 特性区域 */
.features-section {
    background-color: var(--light-color);
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    min-width: 50px;
    text-align: center;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature-desc {
    color: var(--text-color);
}

/* 关于我们 */
.about-section {
    background-color: var(--light-gray);
}

.about-content {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--dark-gray);
}

/* 奖金区域 */
.bonus-section {
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.bonus-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom left, rgba(33, 150, 243, 0.1), transparent 70%);
    z-index: 1;
}

.bonus-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 2;
}

.bonus-card {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--medium-gray);
}

.bonus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.bonus-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.bonus-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.bonus-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.bonus-desc {
    color: var(--text-color);
    margin-bottom: 20px;
}

.bonus-terms {
    text-align: center;
    color: var(--dark-gray);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

/* 页脚 */
.site-footer {
    background-color: var(--primary-dark);
    color: var(--light-color);
    padding: 60px 40px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo-img {
    max-width: 180px;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--light-color);
}

.footer-menu li, .footer-contact li {
    margin-bottom: 10px;
}

.footer-menu a, .footer-contact li {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--light-color);
    padding-left: 5px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-light);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

/* 法律页面模态框 */
.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.legal-modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 30px;
}

.legal-content {
    display: none;
}

.legal-content.active {
    display: block;
}

.legal-content p {
    margin-bottom: 20px;
}

/* 回到顶部按钮 */
.scroll-top {
    position: fixed;
    bottom: 80px; /* 调整位置，避免被移动端导航遮挡 */
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 1199px) {
    .header-container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-title {
        font-size: 1.3rem;
    }
    
    .bonus-title {
        font-size: 1.3rem;
    }
    
    .bonus-amount {
        font-size: 2.2rem;
    }
}

@media (max-width: 991px) {
    .nav-links-horizontal .nav-link {
        padding: 0 15px;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .features-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .bonus-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 767px) {
    .site-header {
        height: 60px;
    }
    
    .header-nav {
        display: none;
    }
    
    .auth-container {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    body {
        font-size: 1rem;
        padding-bottom: var(--mobile-nav-height); /* 为底部导航留出空间 */
    }
    
    .main-content {
        padding-top: 60px;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .hero-section {
        min-height: calc(100vh - 60px);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .feature-title {
        font-size: 1.2rem;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-right: 15px;
    }
    
    .footer-links {
        flex-direction: column;
    }
    
    .footer-column {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }
    
    .mobile-nav {
        display: flex;
    }
    
    .site-footer {
        padding-bottom: 80px; /* 为底部导航留出空间 */
    }
    
    .bonus-card {
        padding: 20px;
    }
    
    .bonus-icon {
        font-size: 2.5rem;
    }
    
    .bonus-title {
        font-size: 1.3rem;
    }
    
    .bonus-amount {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
    }
    
    .site-logo {
        max-height: 35px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .bonus-container {
        grid-template-columns: 1fr;
    }
    
    .promo-badge span {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .cta-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* 辅助类 */
.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
} 