/* 全局样式 */
:root {
    --primary-color: #e74c3c;
    --secondary-color: #2c3e50;
    --accent-color: #f39c12;
    --text-color: #333;
    --light-bg: #f4f4f9;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

/* 头部样式 */
header {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo h1 {
    font-size: 24px;
    color: var(--white);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-color);
}

.login-register {
    display: flex;
    gap: 10px;
}

.btn-login,
.btn-register {
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-login {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

.btn-register {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-login:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

.btn-register:hover {
    background-color: #c0392b;
}

/* 主要内容区域 */
main {
    margin-top: 80px;
    padding: 20px;
}

/* Banner样式 */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
	border-radius:15px 15px 0 0;
	
}

.banner-slider {
    width: 100%;
    height: 100%;
	
    position: relative;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.7);
}

.banner-content {
	left: 20%;
    max-width: 800px;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.banner h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner p {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.banner-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.banner-dot.active {
    background-color: var(--white);
    transform: scale(1.2);
}

/* 特性区域 */
.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 50px 0;
    background-color: var(--white);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 20px;
    max-width: 300px;
}

.feature-item i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* 游戏预览 */
.games-preview {
    padding: 50px 0;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.games-preview h2 {
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.game-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-card h3 {
    padding: 15px;
    color: var(--secondary-color);
}

.game-card p {
    padding: 0 15px 15px;
    color: #666;
}

/* 优惠活动 */
.promotions {
    padding: 50px 0;
    background-color: var(--white);
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.promotions h2 {
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.promotion-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.promotion-card:hover {
    transform: translateY(-5px);
}

.promotion-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.promotion-card-content {
    padding: 20px;
}

.promotion-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.promotion-card p {
    color: #666;
    margin-bottom: 15px;
}

/* 页脚样式 */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }

    nav ul {
        margin: 20px 0;
    }

    .features {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        margin-bottom: 30px;
    }

    .banner {
        height: 400px;
    }

    .banner h2 {
        font-size: 36px;
    }

    .banner p {
        font-size: 18px;
    }
}

/* 面包屑导航样式 */
.breadcrumb {
    padding: 15px 0;
    background-color: var(--light-bg);
    margin-bottom: 20px;
}

.breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: #999;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #c0392b;
}

/* 图片优化 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 延迟加载图片样式 */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* 性能优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 打印样式 */
@media print {
    .header-container,
    .footer-container,
    .breadcrumb,
    .btn-primary,
    .btn-secondary {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #ff6b6b;
        --secondary-color: #f8f9fa;
        --light-bg: #2d3436;
        --white: #1e272e;
    }
    
    body {
        background-color: #121212;
        color: #f8f9fa;
    }
    
    .breadcrumb {
        background-color: #2d3436;
    }
    
    .breadcrumb a {
        color: #ff6b6b;
    }
}

/* 无障碍支持 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 焦点样式 */
:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* 键盘导航 */
[tabindex="0"]:focus {
    box-shadow: 0 0 0 3px var(--primary-color);
}

/* 高对比度模式 */
@media (forced-colors: active) {
    :root {
        --primary-color: Highlight;
        --secondary-color: CanvasText;
        --light-bg: Canvas;
        --white: Canvas;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }
}

/* 公告栏 */
.announcement {
    background-color: var(--secondary-color);
    padding: 10px 0;
    color: var(--white);
	border-radius:0 0 15px 15px;
}

.announcement-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.announcement-icon {
    margin-right: 15px;
    font-size: 20px;
    color: var(--accent-color);
}

.announcement-content {
    overflow: hidden;
    flex: 1;
}

.announcement-slider {
    position: relative;
    height: 24px;
}

.announcement-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s;
}

.announcement-slide:first-child {
    opacity: 1;
}

/* 快速链接 */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.quick-link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.quick-link-item i {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.quick-link-item span {
    font-weight: bold;
    color: var(--secondary-color);
}

/* 游戏预览 */
.games-preview {
    padding: 50px 0;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 10px;
}

.category-tab {
    padding: 10px 20px;
    background-color: var(--light-bg);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.category-tab.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.category-content {
    display: none;
}

.category-content.active {
    display: grid;
}

.game-card {
    position: relative;
}

.game-card-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.game-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px 15px;
}

.game-provider {
    font-size: 12px;
    color: #999;
}

/* 奖池区域 */
.jackpot-section {
    padding: 50px 0;
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
}

.jackpot-section h2 {
    margin-bottom: 30px;
    color: var(--white);
}

.jackpot-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.jackpot-amount {
    margin-bottom: 30px;
}

.jackpot-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--accent-color);
    display: block;
}

.jackpot-label {
    font-size: 18px;
    color: var(--white);
}

.jackpot-winners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.jackpot-winner {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    min-width: 200px;
}

.winner-name, .winner-amount, .winner-game {
    display: block;
    margin: 5px 0;
}

.winner-amount {
    font-weight: bold;
    color: var(--accent-color);
}

/* 用户评价 */
.testimonials {
    padding: 50px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.testimonials h2 {
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    min-height: 200px;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 0 20px;
}

.testimonial-rating {
    color: var(--accent-color);
    font-size: 20px;
    margin-bottom: 15px;
}

.testimonial-author {
    margin-top: 20px;
    font-style: italic;
}

.author-name {
    font-weight: bold;
    display: block;
}

.author-title {
    color: #666;
    font-size: 14px;
}

.testimonial-controls {
    margin-top: 220px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.testimonial-dot.active {
    background-color: var(--primary-color);
}

/* 新闻区域 */
.news-section {
    padding: 50px 0;
    background-color: var(--white);
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.news-section h2 {
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.news-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-align: left;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card-image {
    position: relative;
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-date-index {

	background-color: var(--primary-color);
	color: var(--white);
	padding: 5px 10px;
	border-radius: 4px;
	text-align: center;
}
.news-date {
    position: absolute;
	top:200px;
    /* bottom: 10px; */
    left: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    text-align: center;
}

.news-day {
    font-size: 18px;
    font-weight: bold;
    display: block;
}

.news-month {
    font-size: 12px;
}

.news-card-content {
    padding: 20px;
}

.news-card h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.news-card p {
    color: #666;
    margin-bottom: 15px;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

.news-link:hover {
    text-decoration: underline;
}

.news-link::after {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    margin-left: 5px;
}

/* 支付方式 */
.payment-methods {
    padding: 30px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.payment-methods h2 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.payment-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.payment-icon {
    background-color: var(--white);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.payment-icon img {
    height: 40px;
}

/* 行动召唤区域 */
.cta-section {
    padding: 50px 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/banner.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-outline {
    display: inline-block;
    padding: 15px 30px;
    background-color: transparent;
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 18px;
    border: 2px solid var(--white);
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 18px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #c0392b;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #e67e22;
}

/* 每日资讯样式 */
.daily-news {
    background: #fff8f2;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.06);
    margin: 40px auto 32px auto;
    max-width: 900px;
    padding: 32px 24px 20px 24px;
}

.daily-news h2 {
    font-size: 1.6rem;
    color: #e74c3c;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: 2px;
}

.daily-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
}

.daily-news-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #f1c4b2;
    font-size: 1.08rem;
    transition: background 0.2s;
    border-right: none;
}

.daily-news-list li:last-child {
    border-bottom: none;
}

.daily-news-list .news-date {
    color: #b94a2c;
    background: #ffe5db;
    border-radius: 4px;
    font-size: 0.98rem;
    padding: 2px 10px;
    margin-right: 16px;
    min-width: 90px;
    text-align: center;
    font-family: 'Consolas', 'Menlo', 'Monaco', monospace;
}

.daily-news-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.daily-news-list a:hover {
    color: #e74c3c;
    text-decoration: underline;
}

@media (max-width: 700px) {
    .daily-news-list {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 600px) {
    .daily-news {
        padding: 18px 8px 10px 8px;
    }
    .daily-news-list .news-date {
        min-width: 70px;
        font-size: 0.92rem;
        padding: 2px 6px;
    }
    .daily-news h2 {
        font-size: 1.2rem;
    }
    .daily-news-list li {
        font-size: 0.98rem;
    }
}