/* 
 * c7娱乐 - 顶级在线娱乐平台
 * 主样式表 - 2026年SEO优化版本
 * 独特配色方案：深紫色 + 金色 + 渐变效果
 */

/* ========== CSS变量定义 ========== */
:root {
    --primary-gold: #D4AF37;
    --primary-gold-light: #F4D03F;
    --primary-purple: #2D1B4E;
    --primary-purple-dark: #1A0F2E;
    --primary-purple-light: #4A2C7A;
    --accent-red: #E74C3C;
    --accent-green: #27AE60;
    --text-white: #FFFFFF;
    --text-light: #E8E8E8;
    --text-muted: #B8B8B8;
    --bg-dark: #0D0D0D;
    --bg-card: rgba(45, 27, 78, 0.85);
    --border-gold: rgba(212, 175, 55, 0.3);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.25);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F4D03F 50%, #D4AF37 100%);
    --gradient-purple: linear-gradient(180deg, #2D1B4E 0%, #1A0F2E 100%);
    --gradient-hero: linear-gradient(135deg, rgba(45, 27, 78, 0.95) 0%, rgba(26, 15, 46, 0.98) 100%);
    --font-primary: 'Noto Sans SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
    --font-heading: 'Noto Serif SC', 'SimSun', serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* ========== 基础重置 ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--gradient-purple);
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== 排版系统 ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-gold);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.25rem;
    text-align: justify;
}

a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-gold-light);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== 布局容器 ========== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background: rgba(0, 0, 0, 0.3);
}

/* ========== 头部导航 ========== */
.site-header {
    background: var(--primary-purple-dark);
    border-bottom: 2px solid var(--border-gold);
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 主导航 */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-link {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--text-light);
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-purple-light);
    color: var(--primary-gold);
    text-decoration: none;
}

/* CTA按钮 */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--gradient-gold);
    color: var(--primary-purple-dark);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    box-shadow: var(--shadow-gold);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
    color: var(--primary-purple-dark);
    text-decoration: none;
}

/* 移动端菜单 */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.5rem;
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item::after {
    content: '›';
    color: var(--text-muted);
}

.breadcrumb-item:last-child::after {
    display: none;
}

.breadcrumb-link {
    color: var(--text-muted);
}

.breadcrumb-link:hover {
    color: var(--primary-gold);
}

.breadcrumb-current {
    color: var(--primary-gold);
}

/* ========== Hero区域 ========== */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-gold-light);
    font-weight: 500;
}

.hero-feature-icon {
    font-size: 1.5rem;
}

/* ========== 游戏卡片网格 ========== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-gold);
    transition: var(--transition-normal);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
    border-color: var(--primary-gold);
}

.game-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.game-card:hover .game-card-image img {
    transform: scale(1.08);
}

.game-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-red);
    color: var(--text-white);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.game-card-content {
    padding: 1.5rem;
}

.game-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.game-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gold);
}

.game-rtp {
    font-size: 0.85rem;
    color: var(--accent-green);
}

.game-play-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* ========== 特色区块 ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-box {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-gold);
    text-align: center;
    transition: var(--transition-normal);
}

.feature-box:hover {
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-gold);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========== 支付方式 ========== */
.payment-section {
    background: rgba(0, 0, 0, 0.4);
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.payment-item {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-gold);
}

.payment-item img {
    max-height: 50px;
    margin: 0 auto 1rem;
}

.payment-name {
    font-weight: 600;
    color: var(--primary-gold);
}

.payment-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ========== 用户评论 ========== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-gold);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple-dark);
}

.review-info h4 {
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.review-location {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-stars {
    color: var(--primary-gold);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.review-text {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========== FAQ手风琴 ========== */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid var(--border-gold);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--primary-gold);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.faq-question:hover {
    background: rgba(212, 175, 55, 0.1);
}

.faq-icon {
    font-size: 1.5rem;
    transition: var(--transition-normal);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-light);
}

/* ========== 关于我们 ========== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 3px solid var(--primary-gold);
}

.about-text h3 {
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========== 牌照区域 ========== */
.license-section {
    background: rgba(0, 0, 0, 0.5);
}

.license-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.license-badge {
    flex-shrink: 0;
}

.license-badge img {
    max-width: 180px;
    border-radius: var(--border-radius);
}

.license-info h3 {
    margin-bottom: 1rem;
}

.license-details {
    list-style: none;
}

.license-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-gold);
    display: flex;
    gap: 0.5rem;
}

.license-details li:last-child {
    border-bottom: none;
}

/* ========== 客服支持 ========== */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.support-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid var(--border-gold);
    transition: var(--transition-normal);
}

.support-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
}

.support-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.support-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.support-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========== 负责任博彩 ========== */
.responsible-section {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(45, 27, 78, 0.9) 100%);
}

.responsible-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.responsible-badge {
    text-align: center;
}

.responsible-badge img {
    max-width: 200px;
    margin: 0 auto;
}

.responsible-text h3 {
    color: var(--accent-red);
}

.responsible-list {
    list-style: none;
    margin-top: 1.5rem;
}

.responsible-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

.responsible-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

/* ========== 页脚 ========== */
.site-footer {
    background: var(--bg-dark);
    border-top: 3px solid var(--primary-gold);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
}

.footer-brand .logo-wrapper {
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    font-size: 1.25rem;
    transition: var(--transition-normal);
    border: 1px solid var(--border-gold);
}

.social-link:hover {
    background: var(--primary-gold);
    color: var(--primary-purple-dark);
}

.footer-column h4 {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-gold);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-payments {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-payments img {
    max-height: 35px;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.footer-payments img:hover {
    opacity: 1;
}

.footer-badges {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-badges img {
    max-height: 50px;
}

.copyright {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== 内页样式 ========== */
.page-header {
    background: var(--gradient-hero);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 2px solid var(--border-gold);
}

.page-title {
    margin-bottom: 1rem;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.content-section {
    padding: 4rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.main-content {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-gold);
}

.main-content h2 {
    margin-top: 2rem;
}

.main-content h2:first-child {
    margin-top: 0;
}

.main-content ul,
.main-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.main-content li {
    margin-bottom: 0.5rem;
}

.content-image {
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid var(--border-gold);
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-gold);
}

.sidebar-widget h4 {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-gold);
}

.related-games {
    list-style: none;
}

.related-games li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.related-games li:last-child {
    border-bottom: none;
}

.related-games a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
}

.related-games a:hover {
    color: var(--primary-gold);
}

.game-info-table {
    width: 100%;
    border-collapse: collapse;
}

.game-info-table tr {
    border-bottom: 1px solid var(--border-gold);
}

.game-info-table tr:last-child {
    border-bottom: none;
}

.game-info-table th,
.game-info-table td {
    padding: 0.75rem 0;
    text-align: left;
}

.game-info-table th {
    color: var(--text-muted);
    font-weight: 500;
    width: 40%;
}

.game-info-table td {
    color: var(--primary-gold);
    font-weight: 600;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-content,
    .responsible-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .license-content {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
    }
    
    .main-nav {
        width: 100%;
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-link {
        text-align: center;
        padding: 1rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-section {
        min-height: 500px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========== 动画效果 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ========== 工具类 ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-gold { color: var(--primary-gold); }
.text-white { color: var(--text-white); }
.text-muted { color: var(--text-muted); }
.bg-dark { background: var(--bg-dark); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
