/* 
 * 皇冠娱乐城 - 主样式表
 * 澳门娱乐城官方网站
 * 2026年版本 - 移动优先设计
 */

/* CSS变量定义 */
:root {
    --primary-gold: #d4af37;
    --primary-red: #8b0000;
    --dark-bg: #1a1a2e;
    --darker-bg: #0f0f1a;
    --text-light: #f5f5f5;
    --text-gold: #ffd700;
    --accent-purple: #4a0e4e;
    --card-bg: rgba(26, 26, 46, 0.95);
    --border-gold: rgba(212, 175, 55, 0.3);
    --shadow-gold: rgba(212, 175, 55, 0.2);
    --gradient-luxury: linear-gradient(135deg, #1a1a2e 0%, #2d1f3d 50%, #1a1a2e 100%);
}

/* 基础重置 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    background: var(--gradient-luxury);
    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(--primary-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--text-gold);
    text-shadow: 0 0 10px var(--shadow-gold);
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 头部导航 - 非sticky */
.site-header {
    background: linear-gradient(180deg, var(--darker-bg) 0%, transparent 100%);
    padding: 1rem 0;
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-wrap img {
    height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 主导航 */
.main-nav {
    width: 100%;
}

.nav-toggle {
    display: block;
    background: var(--primary-gold);
    color: var(--dark-bg);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
    width: 100%;
    font-weight: 600;
}

.nav-menu {
    display: none;
    flex-direction: column;
    list-style: none;
    background: var(--card-bg);
    border-radius: 12px;
    margin-top: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--border-gold);
}

.nav-menu.active {
    display: flex;
}

.nav-menu li a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-gold);
    transition: all 0.3s ease;
}

.nav-menu li:last-child a {
    border-bottom: none;
}

.nav-menu li a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
    padding-left: 2rem;
}

/* Hero区域 */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-gold);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #f4d03f 50%, var(--primary-gold) 100%);
    color: var(--dark-bg);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px var(--shadow-gold);
    transition: all 0.4s ease;
    animation: pulse 2s infinite;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px var(--shadow-gold);
    color: var(--dark-bg);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 25px var(--shadow-gold); }
    50% { box-shadow: 0 8px 40px var(--primary-gold); }
}

/* 面包屑导航 */
.breadcrumb {
    padding: 1rem;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-gold);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-size: 0.9rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li::after {
    content: '›';
    margin: 0 0.5rem;
    color: var(--primary-gold);
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: var(--text-light);
}

.breadcrumb-list .current {
    color: var(--primary-gold);
}

/* 内容区块 */
.content-section {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.75rem;
    color: var(--primary-gold);
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

.section-desc {
    color: #aaa;
    font-size: 1rem;
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* 游戏卡片网格 */
.game-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
}

.game-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-gold);
    transition: all 0.4s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
    border-color: var(--primary-gold);
}

.game-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.game-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-card-img img {
    transform: scale(1.1);
}

.game-card-body {
    padding: 1.5rem;
}

.game-card-title {
    font-size: 1.25rem;
    color: var(--primary-gold);
    margin-bottom: 0.75rem;
}

.game-card-text {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.game-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gold);
    font-weight: 600;
}

.game-card-link:hover {
    gap: 0.75rem;
}

/* 特色区块 */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
}

.feature-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-gold);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.05);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-gold), #f4d03f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-title {
    font-size: 1.2rem;
    color: var(--primary-gold);
    margin-bottom: 0.75rem;
}

.feature-text {
    color: #bbb;
    font-size: 0.95rem;
}

/* 文章内容 */
.article-content {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    margin: 0 1rem;
    border: 1px solid var(--border-gold);
}

.article-content h2 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-gold);
}

.article-content h3 {
    color: var(--text-gold);
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1.25rem;
    text-align: justify;
}

.article-content ul, .article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--primary-gold);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* 评论区 */
.reviews-section {
    padding: 3rem 1rem;
}

.review-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-gold);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-weight: 700;
    color: var(--primary-gold);
}

.reviewer-location {
    font-size: 0.85rem;
    color: #888;
}

.review-rating {
    color: var(--text-gold);
    font-size: 1.1rem;
}

.review-content {
    color: #ddd;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.review-date {
    font-size: 0.85rem;
    color: #666;
}

/* FAQ区域 */
.faq-section {
    padding: 3rem 1rem;
}

.faq-item {
    background: var(--card-bg);
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-gold);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-gold);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(212, 175, 55, 0.1);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: #ccc;
    line-height: 1.7;
}

/* 支付方式 */
.payment-section {
    padding: 3rem 1rem;
    text-align: center;
}

.payment-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.payment-item {
    background: var(--card-bg);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-gold);
    min-width: 120px;
}

.payment-item img {
    height: 40px;
    margin: 0 auto 0.75rem;
}

.payment-name {
    color: #ccc;
    font-size: 0.9rem;
}

/* 页脚 */
.site-footer {
    background: var(--darker-bg);
    padding: 3rem 0 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem 2rem;
}

.footer-col h4 {
    color: var(--primary-gold);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #aaa;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-gold);
    padding-left: 0.5rem;
}

.footer-contact p {
    color: #aaa;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    font-size: 1.2rem;
    border: 1px solid var(--border-gold);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
}

.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 1.5rem 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    margin: 1rem 0;
}

.license-info {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    display: inline-block;
}

.license-info img {
    height: 60px;
    margin: 0 auto;
}

/* 标签页面 */
.tags-section {
    padding: 3rem 1rem;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tag-item {
    background: var(--card-bg);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: 1px solid var(--border-gold);
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
    transform: scale(1.05);
}

/* 作者信息 */
.author-box {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 1rem;
    border: 1px solid var(--border-gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary-gold);
    object-fit: cover;
}

.author-name {
    font-size: 1.25rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.author-title {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.author-bio {
    color: #ccc;
    line-height: 1.7;
}

/* 表格样式 */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 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 var(--border-gold);
}

.info-table th {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
    font-weight: 600;
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table tr:hover td {
    background: rgba(212, 175, 55, 0.05);
}

/* 响应式媒体查询 */
@media (min-width: 480px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@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;
        border: none;
        margin-top: 0;
    }
    
    .nav-menu li a {
        padding: 0.75rem 1.25rem;
        border-bottom: none;
        border-radius: 8px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .article-content {
        padding: 3rem;
        margin: 0 2rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .author-box {
        flex-direction: row;
        text-align: left;
    }
}

@media (min-width: 992px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
    
    .game-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* 懒加载占位 */
.lazy-placeholder {
    background: linear-gradient(90deg, var(--card-bg) 25%, rgba(212, 175, 55, 0.1) 50%, var(--card-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 负责任博彩提示 */
.responsible-gaming {
    background: linear-gradient(135deg, var(--primary-red), #5c0000);
    padding: 2rem 1rem;
    text-align: center;
    margin: 2rem 0;
    border-radius: 16px;
}

.responsible-gaming h3 {
    color: white;
    margin-bottom: 1rem;
}

.responsible-gaming p {
    color: rgba(255,255,255,0.9);
    max-width: 800px;
    margin: 0 auto;
}

.responsible-gaming a {
    color: var(--text-gold);
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gold);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px var(--shadow-gold);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-gold);
}
