/* 
 * 博彩游戏网站样式表
 * 独特配色：深紫色 + 金色 + 渐变效果
 * 移动端优先设计
 */

:root {
    --primary-purple: #4a1a6b;
    --secondary-purple: #7b2d9e;
    --accent-gold: #ffd700;
    --accent-orange: #ff8c00;
    --dark-bg: #1a0a2e;
    --card-bg: #2d1548;
    --text-light: #f5f5f5;
    --text-muted: #b8a9c9;
    --success-green: #00d084;
    --border-glow: rgba(255, 215, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-purple) 50%, var(--dark-bg) 100%);
    color: var(--text-light);
    line-height: 1.8;
    min-height: 100vh;
}

/* 导航栏 - 非sticky */
.main-header {
    background: linear-gradient(180deg, rgba(26, 10, 46, 0.98) 0%, rgba(74, 26, 107, 0.95) 100%);
    padding: 0.8rem 0;
    border-bottom: 2px solid var(--accent-gold);
    position: relative;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-wrapper img {
    height: 48px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.main-nav a:hover {
    background: rgba(255, 215, 0, 0.2);
    color: var(--accent-gold);
}

.cta-button {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-orange) 100%);
    color: var(--dark-bg) !important;
    font-weight: 700 !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 25px !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(255, 215, 0, 0.7); }
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Hero区域 */
.hero-section {
    background: linear-gradient(rgba(26, 10, 46, 0.7), rgba(74, 26, 107, 0.8)), url('../images/hero-banner.webp') center/cover no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-title span {
    color: var(--accent-gold);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-orange) 100%);
    color: var(--dark-bg);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
}

/* 内容区域 */
.content-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1.5rem auto 0;
}

/* 游戏卡片网格 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card {
    background: linear-gradient(145deg, var(--card-bg) 0%, rgba(45, 21, 72, 0.8) 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-glow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
}

.game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-card-content {
    padding: 1.5rem;
}

.game-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--accent-gold);
}

.game-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.game-card-link {
    display: inline-block;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.game-card-link:hover {
    color: var(--accent-orange);
}

/* 特色区块 */
.features-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-box {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--accent-gold);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateX(10px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--accent-gold);
}

.feature-text {
    color: var(--text-muted);
    line-height: 1.7;
}

/* 评论区域 */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.review-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(123, 45, 158, 0.3) 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
}

.reviewer-info h4 {
    font-size: 1.1rem;
    color: var(--text-light);
}

.reviewer-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.review-stars {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-text {
    color: var(--text-light);
    line-height: 1.7;
    font-style: italic;
}

.review-date {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* FAQ区域 */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 215, 0, 0.1);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--text-muted);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

/* 支付方式 */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.payment-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.payment-item:hover {
    transform: scale(1.05);
}

.payment-item img {
    height: 50px;
    margin-bottom: 0.8rem;
}

.payment-item span {
    display: block;
    font-weight: 600;
    color: var(--text-light);
}

/* 面包屑导航 */
.breadcrumb-nav {
    background: rgba(26, 10, 46, 0.8);
    padding: 1rem;
}

.breadcrumb-list {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    list-style: none;
    font-size: 0.9rem;
}

.breadcrumb-list li::after {
    content: '>';
    margin-left: 0.5rem;
    color: var(--text-muted);
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: var(--accent-gold);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

/* 页脚 */
.main-footer {
    background: linear-gradient(180deg, var(--primary-purple) 0%, var(--dark-bg) 100%);
    padding: 4rem 1rem 2rem;
    border-top: 2px solid var(--accent-gold);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul a:hover {
    color: var(--accent-gold);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.footer-social a:hover {
    background: var(--accent-gold);
    color: var(--dark-bg);
}

.footer-bottom {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    text-align: center;
}

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-badges img {
    height: 50px;
}

.age-restriction {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #c0392b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 内页样式 */
.page-hero {
    background: linear-gradient(rgba(26, 10, 46, 0.85), rgba(74, 26, 107, 0.9)), url('../images/page-bg.webp') center/cover no-repeat;
    padding: 4rem 1rem;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.page-hero p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--text-light);
    margin: 2rem 0 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content ul, .article-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-image {
    width: 100%;
    border-radius: 12px;
    margin: 2rem 0;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
}

.info-table th, .info-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.info-table th {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-gold);
    font-weight: 600;
}

.info-table tr:hover {
    background: rgba(255, 215, 0, 0.05);
}

/* 标签页面 */
.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.tag-item {
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--accent-gold);
}

.tag-item a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 215, 0, 0.2);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav a {
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    }
    
    .hero-section {
        min-height: 60vh;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .content-section {
        padding: 2rem 0.8rem;
    }
    
    .game-card-content {
        padding: 1rem;
    }
    
    .review-card {
        padding: 1.5rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* 加载动画 */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--card-bg);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* 标签分类页面样式 */
.tags-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tag-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.tag-category h3 {
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag-list .tag-item {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 215, 0, 0.08);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.tag-list .tag-item:hover {
    background: var(--accent-gold);
    color: var(--dark-bg);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

/* APP下载页面样式 */
.app-download-container {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.app-info {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.app-screenshot {
    flex: 1;
    min-width: 300px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.app-details {
    flex: 1;
    min-width: 300px;
}

.app-details h2 {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
}

.app-version {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.app-desc {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.app-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.app-tip {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 打印样式优化 */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .main-header,
    .main-footer,
    .hero-section,
    .page-hero,
    .cta-button,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }
    
    .article-content,
    .content-section {
        background: white;
        color: black;
        padding: 0;
    }
    
    .game-card,
    .feature-box,
    .review-card {
        background: #f5f5f5;
        border: 1px solid #ddd;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}
