/* 
 * 皇冠娱乐城 - 主样式表
 * 独特的紫金配色方案与现代中式设计
 * 移动优先响应式设计
 */

/* CSS变量定义 */
:root {
    --primary-purple: #4a1a6b;
    --secondary-purple: #6b2d9e;
    --accent-gold: #d4af37;
    --light-gold: #f5e6a3;
    --dark-bg: #1a0a2e;
    --card-bg: #2d1548;
    --text-light: #f8f4ff;
    --text-muted: #b8a8c8;
    --success-green: #28a745;
    --warning-red: #dc3545;
    --gradient-purple: linear-gradient(135deg, #4a1a6b 0%, #6b2d9e 50%, #8b4db8 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f5e6a3 50%, #d4af37 100%);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.3);
    --font-main: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    --font-heading: 'Noto Serif SC', 'SimSun', serif;
    --border-radius: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础重置 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background: var(--dark-bg);
    color: var(--text-light);
    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-smooth);
}

a:hover {
    color: var(--light-gold);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 头部导航 - 非sticky */
.site-header {
    background: linear-gradient(180deg, var(--primary-purple) 0%, var(--dark-bg) 100%);
    padding: 16px 0;
    border-bottom: 2px solid var(--accent-gold);
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 60px;
    height: auto;
    border-radius: 8px;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 主导航 */
.main-nav {
    width: 100%;
}

.nav-toggle {
    display: block;
    background: var(--gradient-gold);
    color: var(--primary-purple);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.nav-menu {
    display: none;
    flex-direction: column;
    list-style: none;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    margin-top: 12px;
    overflow: hidden;
}

.nav-menu.active {
    display: flex;
}

.nav-menu li {
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.nav-menu li:last-child {
    border-bottom: none;
}

.nav-menu a {
    display: block;
    padding: 14px 20px;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--secondary-purple);
    color: var(--accent-gold);
}

/* CTA按钮 */
.cta-button {
    display: inline-block;
    background: var(--gradient-gold);
    color: var(--primary-purple);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
    color: var(--primary-purple);
}

/* Hero区域 */
.hero-section {
    position: relative;
    padding: 40px 0;
    background: var(--gradient-purple);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-banner.webp') center/cover no-repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 16px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    margin-top: 24px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 12px 0;
    background: rgba(45, 21, 72, 0.8);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 8px;
    font-size: 0.9rem;
}

.breadcrumb-list li::after {
    content: '›';
    margin-left: 8px;
    color: var(--text-muted);
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: var(--text-muted);
}

.breadcrumb-list a:hover {
    color: var(--accent-gold);
}

/* 内容区块 */
.content-section {
    padding: 48px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    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);
    max-width: 700px;
    margin: 0 auto;
}

/* 游戏卡片网格 */
.games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.game-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-gold);
}

.game-card-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.game-card-content {
    padding: 20px;
}

.game-card-title {
    font-size: 1.25rem;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.game-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.game-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rtp-badge {
    background: var(--success-green);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* 特色区块 */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.feature-item {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition-smooth);
}

.feature-item:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.feature-title {
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 关于我们 */
.about-section {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--primary-purple) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.about-text h3 {
    color: var(--accent-gold);
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.about-text p {
    margin-bottom: 16px;
    text-align: justify;
}

/* 作者信息 */
.author-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--border-radius);
    margin: 32px 0;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
}

.author-info {
    text-align: center;
}

.author-name {
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 4px;
}

.author-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.author-bio {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 用户评论 */
.reviews-section {
    background: var(--dark-bg);
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.review-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-gold);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-light);
}

.reviewer-location {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-rating {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.review-content {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FAQ区块 */
.faq-section {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--card-bg) 100%);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    margin-bottom: 16px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    text-align: left;
    color: var(--accent-gold);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: rgba(212, 175, 55, 0.1);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 20px 20px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* 支付方式 */
.payment-section {
    text-align: center;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.payment-icon {
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    min-width: 80px;
}

.payment-icon img {
    height: 32px;
    width: auto;
    margin: 0 auto;
}

/* 牌照信息 */
.license-section {
    background: var(--card-bg);
    text-align: center;
}

.license-badge {
    max-width: 200px;
    margin: 0 auto 24px;
    border-radius: var(--border-radius);
}

.license-info {
    max-width: 600px;
    margin: 0 auto;
}

.license-number {
    font-family: monospace;
    background: var(--dark-bg);
    padding: 8px 16px;
    border-radius: 4px;
    display: inline-block;
    margin: 12px 0;
    color: var(--accent-gold);
}

/* 负责任博彩 */
.responsible-gaming {
    background: linear-gradient(135deg, #1a3a2a 0%, #0d1f17 100%);
    border-top: 3px solid var(--success-green);
}

.responsible-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.responsible-image {
    max-width: 200px;
    margin: 0 auto;
}

.responsible-text h3 {
    color: var(--success-green);
    margin-bottom: 16px;
}

.responsible-list {
    list-style: none;
}

.responsible-list li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
}

.responsible-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
}

/* 客户支持 */
.support-section {
    background: var(--primary-purple);
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.support-item {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--border-radius);
    text-align: center;
}

.support-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.support-title {
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.support-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 页脚 */
.site-footer {
    background: linear-gradient(180deg, var(--dark-bg) 0%, #0a0415 100%);
    padding: 48px 0 24px;
    border-top: 2px solid var(--accent-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h4 {
    color: var(--accent-gold);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--primary-purple);
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 24px;
    text-align: center;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.age-restriction {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--warning-red);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    margin-bottom: 16px;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 内页样式 */
.page-header {
    background: var(--gradient-purple);
    padding: 48px 0;
    text-align: center;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.page-subtitle {
    color: var(--text-muted);
}

.article-content {
    background: var(--card-bg);
    padding: 32px 20px;
    border-radius: var(--border-radius);
    margin: -24px auto 48px;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.article-content h2 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.article-content h3 {
    color: var(--light-gold);
    font-size: 1.2rem;
    margin: 24px 0 12px;
}

.article-content p {
    margin-bottom: 16px;
    text-align: justify;
}

.article-content ul,
.article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-image {
    margin: 24px 0;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.info-table th,
.info-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.info-table th {
    background: var(--primary-purple);
    color: var(--accent-gold);
}

.info-table tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

/* 响应式设计 - 平板 */
@media (min-width: 768px) {
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex;
        flex-direction: row;
        background: transparent;
        margin-top: 0;
    }
    
    .nav-menu li {
        border-bottom: none;
    }
    
    .nav-menu a {
        padding: 10px 16px;
        border-radius: 4px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .responsible-content {
        grid-template-columns: auto 1fr;
        align-items: center;
    }
    
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .author-box {
        flex-direction: row;
        text-align: left;
    }
    
    .author-info {
        text-align: left;
    }
}

/* 响应式设计 - 桌面 */
@media (min-width: 1024px) {
    .site-title {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .support-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .article-content {
        padding: 48px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.cta-button {
    animation: pulse 2s infinite;
}

/* 懒加载占位 */
img[loading="lazy"] {
    background: var(--card-bg);
}

/* 打印样式 */
@media print {
    .site-header,
    .site-footer,
    .cta-button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
