/* 
 * 皇冠娱乐城 - 主样式表
 * 独特的紫金配色方案
 * 移动端优先响应式设计
 */

/* CSS变量定义 */
:root {
    --primary-gold: #D4AF37;
    --primary-purple: #2D1B4E;
    --secondary-purple: #4A2C7A;
    --accent-gold: #FFD700;
    --dark-bg: #1A0F2E;
    --light-text: #F5F5F5;
    --muted-text: #B8B8B8;
    --success-green: #28A745;
    --warning-orange: #FFA500;
    --card-bg: rgba(45, 27, 78, 0.85);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #FFD700 50%, #D4AF37 100%);
    --gradient-purple: linear-gradient(180deg, #2D1B4E 0%, #1A0F2E 100%);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
    --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.4);
    --border-radius: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', sans-serif;
    background: var(--gradient-purple);
    background-attachment: fixed;
    color: var(--light-text);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 链接样式 */
a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* 图片响应式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 顶部导航 - 非sticky */
.site-header {
    background: linear-gradient(180deg, rgba(26, 15, 46, 0.98) 0%, rgba(45, 27, 78, 0.95) 100%);
    border-bottom: 2px solid var(--primary-gold);
    padding: 0.75rem 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
}

.site-logo h1 {
    font-size: 1.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 1px;
}

/* 主导航 */
.main-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--light-text);
    background: transparent;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

/* CTA按钮 */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-gold);
    color: var(--primary-purple) !important;
    font-weight: 700;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-gold);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}

/* 面包屑导航 */
.breadcrumb {
    background: rgba(26, 15, 46, 0.8);
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
}

.breadcrumb-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--muted-text);
}

.breadcrumb span {
    color: var(--primary-gold);
}

.breadcrumb-separator {
    color: var(--muted-text);
}

/* Hero区域 */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem 1rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    background: rgba(26, 15, 46, 0.7);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero-content h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--muted-text);
    margin-bottom: 1.5rem;
}

/* 主内容区域 */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* 内容区块 */
.content-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: var(--shadow-dark);
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: var(--gradient-gold);
    border-radius: 2px;
}

/* 游戏卡片网格 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.game-card {
    background: linear-gradient(145deg, rgba(74, 44, 122, 0.8) 0%, rgba(45, 27, 78, 0.9) 100%);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: var(--transition-smooth);
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-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-smooth);
}

.game-card:hover .game-card-image img {
    transform: scale(1.1);
}

.game-card-content {
    padding: 1.25rem;
}

.game-card-content h3 {
    font-size: 1.2rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.game-card-content p {
    font-size: 0.9rem;
    color: var(--muted-text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* 特色列表 */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(74, 44, 122, 0.5);
    border-radius: var(--border-radius);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.feature-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    border-radius: 50%;
    font-size: 1.5rem;
}

.feature-item h4 {
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--muted-text);
}

/* 用户评论 */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.review-card {
    background: linear-gradient(145deg, rgba(74, 44, 122, 0.6) 0%, rgba(45, 27, 78, 0.8) 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    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);
}

.reviewer-info h4 {
    color: var(--light-text);
    font-size: 1rem;
}

.reviewer-info span {
    font-size: 0.85rem;
    color: var(--muted-text);
}

.review-rating {
    color: var(--accent-gold);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.review-content {
    font-size: 0.95rem;
    color: var(--muted-text);
    line-height: 1.7;
    font-style: italic;
}

.review-date {
    font-size: 0.8rem;
    color: var(--muted-text);
    margin-top: 1rem;
    text-align: right;
}

/* FAQ手风琴 */
.faq-container {
    margin-top: 1.5rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem;
    background: rgba(74, 44, 122, 0.5);
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--light-text);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: rgba(74, 44, 122, 0.7);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-gold);
    transition: var(--transition-smooth);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(26, 15, 46, 0.5);
}

.faq-item.active .faq-answer {
    padding: 1.25rem;
    max-height: 500px;
}

.faq-answer p {
    color: var(--muted-text);
    line-height: 1.8;
}

/* 支付方式 */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.payment-icon {
    width: 80px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.payment-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 牌照信息 */
.license-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}

.license-badge {
    text-align: center;
}

.license-badge img {
    max-width: 150px;
    margin: 0 auto 1rem;
}

/* 页脚 */
.site-footer {
    background: linear-gradient(180deg, rgba(26, 15, 46, 0.98) 0%, #0D0714 100%);
    border-top: 2px solid var(--primary-gold);
    padding: 3rem 1rem 1.5rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    color: var(--primary-gold);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--muted-text);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-column a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-badges img {
    height: 40px;
    width: auto;
}

.age-restriction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #DC3545;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    margin: 1rem auto;
}

.copyright {
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-top: 1rem;
}

/* 社交媒体链接 */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--primary-gold);
    border-radius: 50%;
    color: var(--primary-gold);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--primary-gold);
    color: var(--primary-purple);
}

/* 作者信息 */
.author-box {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: rgba(74, 44, 122, 0.5);
    border-radius: var(--border-radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin-top: 1.5rem;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-gold);
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.author-info .title {
    color: var(--muted-text);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.author-info p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav {
        width: 100%;
        justify-content: center;
    }
    
    .main-nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .hero-section {
        min-height: 50vh;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .reviews-container {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .site-logo h1 {
        font-size: 1.2rem;
    }
    
    .main-nav {
        gap: 0.25rem;
    }
    
    .main-nav a {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@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;
}

/* 表格样式 */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.info-table th,
.info-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.info-table th {
    background: rgba(74, 44, 122, 0.5);
    color: var(--primary-gold);
    font-weight: 600;
}

.info-table td {
    color: var(--light-text);
}

.info-table tr:hover td {
    background: rgba(74, 44, 122, 0.3);
}

/* 内页样式 */
.page-header {
    background: linear-gradient(180deg, rgba(45, 27, 78, 0.9) 0%, rgba(26, 15, 46, 0.95) 100%);
    padding: 3rem 1rem;
    text-align: center;
    border-bottom: 2px solid var(--primary-gold);
}

.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--muted-text);
    font-size: 1.1rem;
}

/* 游戏详情页 */
.game-detail-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.game-detail-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid var(--primary-gold);
}

.game-detail-info h1 {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-item {
    background: rgba(74, 44, 122, 0.5);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.stat-item .label {
    font-size: 0.85rem;
    color: var(--muted-text);
    display: block;
    margin-bottom: 0.25rem;
}

.stat-item .value {
    font-size: 1.2rem;
    color: var(--primary-gold);
    font-weight: 700;
}

@media (max-width: 768px) {
    .game-detail-header {
        grid-template-columns: 1fr;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* 工具类 */
.text-center { text-align: center; }
.text-gold { color: var(--primary-gold); }
.text-muted { color: var(--muted-text); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
