/* 
 * c7娱乐 - 娱乐城网站样式
 * 独特配色方案：深紫色 + 金色 + 渐变效果
 * 移动优先响应式设计
 */

/* CSS变量定义 */
:root {
    --primary-purple: #1a0a2e;
    --secondary-purple: #2d1b4e;
    --accent-gold: #d4af37;
    --accent-gold-light: #f4d03f;
    --text-white: #ffffff;
    --text-light: #e0e0e0;
    --text-muted: #a0a0a0;
    --bg-dark: #0d0518;
    --bg-card: rgba(45, 27, 78, 0.8);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
    --gradient-purple: linear-gradient(180deg, #1a0a2e 0%, #0d0518 100%);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* 重置样式 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', sans-serif;
    background: var(--gradient-purple);
    color: var(--text-white);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 图片优化 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 链接样式 */
a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-gold-light);
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 头部导航 - 非sticky */
.site-header {
    background: var(--primary-purple);
    padding: 12px 0;
    border-bottom: 2px solid var(--accent-gold);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-wrapper img {
    height: 48px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* 主导航 */
.main-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.main-nav a {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-white);
    background: transparent;
    border: 1px solid transparent;
}

.main-nav a:hover {
    background: var(--bg-card);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* CTA按钮 */
.cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--gradient-gold);
    color: var(--primary-purple) !important;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-gold);
    transition: var(--transition);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.5);
}

/* Hero区域 */
.hero-section {
    position: relative;
    padding: 60px 0;
    background: linear-gradient(rgba(13, 5, 24, 0.7), rgba(13, 5, 24, 0.9)), url('../images/hero-main.png') center/cover no-repeat;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-gold);
    font-weight: 500;
}

.hero-feature::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--accent-gold);
    color: var(--primary-purple);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

/* 区块标题 */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

/* 内容区块 */
.content-section {
    padding: 60px 0;
}

.content-section:nth-child(even) {
    background: var(--secondary-purple);
}

/* 游戏卡片网格 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.game-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-card-image img {
    transform: scale(1.1);
}

.game-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-gold);
    color: var(--primary-purple);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.game-card-content {
    padding: 20px;
}

.game-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}

.game-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.game-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-gold);
    font-weight: 600;
}

.game-card-link::after {
    content: "→";
    transition: var(--transition);
}

.game-card-link:hover::after {
    transform: translateX(4px);
}

/* 特色区块 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.feature-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--accent-gold);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    border-radius: 50%;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 奖金横幅 */
.bonus-banner {
    background: linear-gradient(135deg, var(--secondary-purple) 0%, var(--primary-purple) 100%);
    border: 2px solid var(--accent-gold);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    margin: 40px 0;
}

.bonus-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.bonus-amount {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.bonus-desc {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* 支付方式 */
.payment-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
}

.payment-item {
    background: var(--bg-card);
    padding: 16px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.payment-item img {
    height: 32px;
    width: auto;
}

/* 用户评论 */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.review-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
}

.review-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
}

.review-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-stars {
    color: var(--accent-gold);
    font-size: 1rem;
    margin-bottom: 12px;
}

.review-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.review-date {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FAQ手风琴 */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.faq-question {
    padding: 20px 24px;
    font-weight: 700;
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--accent-gold);
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.faq-item.active .faq-question::after {
    content: "−";
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 关于我们 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
}

/* 作者信息 */
.author-box {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--border-radius);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 30px 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin-bottom: 4px;
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.author-bio {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 牌照区域 */
.license-section {
    text-align: center;
    padding: 40px 0;
}

.license-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.license-badge {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 150px;
}

.license-badge img {
    height: 60px;
    width: auto;
}

.license-badge span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.9rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item:not(:last-child)::after {
    content: "›";
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--text-muted);
}

.breadcrumb-item a:hover {
    color: var(--accent-gold);
}

.breadcrumb-item.active {
    color: var(--accent-gold);
}

/* 页脚 */
.site-footer {
    background: var(--bg-dark);
    padding: 60px 0 30px;
    border-top: 2px solid var(--accent-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 4px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--accent-gold);
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-gold);
    color: var(--primary-purple);
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 30px;
    text-align: center;
}

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-badges img {
    height: 40px;
    width: auto;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 内页样式 */
.page-header {
    background: linear-gradient(rgba(13, 5, 24, 0.8), rgba(13, 5, 24, 0.95)), url('../images/hero-main.png') center/cover no-repeat;
    padding: 80px 0 60px;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.page-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: 60px 0;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--text-white);
    margin: 30px 0 16px;
}

.article-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.9;
}

.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 24px;
    color: var(--text-light);
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-content img {
    border-radius: var(--border-radius);
    margin: 24px 0;
    box-shadow: var(--shadow-card);
}

.article-content blockquote {
    background: var(--bg-card);
    border-left: 4px solid var(--accent-gold);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.article-content blockquote p {
    margin: 0;
    font-style: italic;
}

/* 信息表格 */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.info-table th, .info-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.info-table th {
    background: var(--secondary-purple);
    color: var(--accent-gold);
    font-weight: 700;
}

.info-table td {
    color: var(--text-light);
}

.info-table tr:last-child td {
    border-bottom: none;
}

/* 标签页面 */
.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tag-item {
    background: var(--bg-card);
    padding: 12px 24px;
    border-radius: 50px;
    color: var(--text-light);
    font-size: 0.95rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
}

.tag-item:hover {
    background: var(--accent-gold);
    color: var(--primary-purple);
    border-color: var(--accent-gold);
}

/* APP下载页面 */
.app-download-section {
    text-align: center;
    padding: 60px 0;
}

.app-preview {
    max-width: 600px;
    margin: 0 auto 40px;
}

.app-preview img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-gold);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--bg-card);
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    color: var(--text-white);
    transition: var(--transition);
}

.download-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-purple);
}

.download-btn-icon {
    font-size: 2rem;
}

.download-btn-text {
    text-align: left;
}

.download-btn-text small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.download-btn-text span {
    font-size: 1.1rem;
    font-weight: 700;
}

/* 响应式设计 - 移动优先 */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-top: 16px;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav a {
        padding: 12px;
        text-align: center;
        border: 1px solid rgba(212, 175, 55, 0.2);
    }
    
    .hero-section {
        padding: 40px 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 12px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .bonus-amount {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 打印样式 */
@media print {
    .site-header, .site-footer, .cta-btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* 预加载优化 */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}
