/**
 * Rikvip Theme 主样式表
 *
 * @package Rikvip_Theme
 */

/* ====================
   CSS变量定义
   ==================== */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --accent-hover: #c73e54;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --border-color: #2a2a3e;
    --gradient-primary: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

/* ====================
   基础重置
   ==================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    min-height: 100vh;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ====================
   布局容器
   ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================
   按钮样式
   ==================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
    color: var(--text-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--text-primary);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-login {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
}

.btn-login:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-register {
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 8px 20px;
}

.btn-register:hover {
    transform: translateY(-1px);
    color: var(--text-primary);
}

/* ====================
   头部导航
   ==================== */
.site-header {
    background: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand .site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-brand .site-name:hover {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-menu .nav-link:hover {
    color: var(--text-primary);
}

.nav-menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-menu .nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 12px;
}

/* 移动端导航 */
.nav-mobile {
    display: none;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-menu a {
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: block;
    padding: 10px 0;
}

.mobile-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
}

/* ====================
   页面标题区
   ==================== */
.page-header {
    background: var(--secondary-color);
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* ====================
   Hero区域
   ==================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ====================
   内容区域通用样式
   ==================== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-primary);
}

/* ====================
   特色区域
   ==================== */
.features-section {
    background: var(--bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.feature-desc {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ====================
   游戏区域
   ==================== */
.games-section {
    background: var(--secondary-color);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.game-card:hover {
    transform: scale(1.02);
    border-color: var(--accent-color);
}

.game-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.game-desc {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ====================
   优势区域
   ==================== */
.advantages-section {
    background: var(--bg-dark);
}

.advantages-content {
    max-width: 900px;
    margin: 0 auto;
}

.advantage-item {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.advantage-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.advantage-desc {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ====================
   安全区域
   ==================== */
.security-section {
    background: var(--secondary-color);
}

.security-content {
    max-width: 900px;
    margin: 0 auto;
}

.security-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.security-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.security-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.security-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.security-desc {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ====================
   评价区域
   ==================== */
.testimonials-section {
    background: var(--bg-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-author {
    color: var(--accent-color);
    font-weight: 600;
}

/* ====================
   CTA区域
   ==================== */
.cta-section {
    background: var(--gradient-primary);
    padding: 100px 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.cta-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-secondary {
    border-color: var(--text-primary);
}

.cta-section .btn-secondary:hover {
    background: var(--text-primary);
    color: var(--accent-color);
}

/* ====================
   FAQ区域
   ==================== */
.faq-section {
    background: var(--secondary-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    padding: 25px 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ====================
   页面内容区
   ==================== */
.page-content {
    background: var(--bg-dark);
    padding: 60px 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto 60px;
}

.entry-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.entry-content h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin: 40px 0 20px;
}

.entry-content p {
    margin-bottom: 20px;
}

.page-extra-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.page-extra-content h2 {
    color: var(--text-primary);
    font-size: 1.6rem;
    margin: 30px 0 15px;
}

.page-extra-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ====================
   相关推荐
   ==================== */
.related-section {
    background: var(--secondary-color);
    padding: 60px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.related-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.related-card:hover {
    border-color: var(--accent-color);
}

.related-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.related-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.related-link {
    color: var(--accent-color);
    font-weight: 600;
}

.related-link:hover {
    color: var(--accent-hover);
}

/* ====================
   游戏介绍页
   ==================== */
.games-intro-section {
    background: var(--bg-dark);
    padding: 60px 0;
}

.games-intro h2,
.games-categories h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin: 40px 0 20px;
}

.games-intro p,
.games-categories p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.category-item {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.category-item h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* ====================
   优惠活动页
   ==================== */
.promotions-section {
    background: var(--bg-dark);
    padding: 60px 0;
}

.promotions-intro h2,
.promotion-rules h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin: 40px 0 20px;
}

.promotions-intro p,
.promotion-rules p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ====================
   底部
   ==================== */
.site-footer {
    background: var(--primary-color);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
}

.copyright {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.footer-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ====================
   响应式设计
   ==================== */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .nav-mobile {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .hero-actions,
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-card,
    .game-card,
    .testimonial-card {
        padding: 20px;
    }
}

/* ====================
   默认内容区
   ==================== */
.default-content {
    background: var(--bg-dark);
    padding: 100px 0;
    text-align: center;
}

.default-content h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.default-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 20px;
}

/* ====================
   图片样式
   ==================== */
.hero-image,
.feature-image,
.game-image,
.advantage-image,
.security-image,
.testimonial-image,
.extra-content-image,
.related-image,
.intro-image,
.category-image,
.promo-image,
.rules-image,
.about-image,
.value-image,
.help-image,
.faq-image,
.download-image,
.device-image {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.hero-image img,
.feature-image img,
.game-image img,
.advantage-image img,
.security-image img,
.testimonial-image img,
.extra-content-image img,
.related-image img,
.intro-image img,
.category-image img,
.promo-image img,
.rules-image img,
.about-image img,
.value-image img,
.help-image img,
.faq-image img,
.download-image img,
.device-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: var(--transition);
}

.hero-image img:hover,
.feature-image img:hover,
.game-image img:hover,
.advantage-image img:hover,
.security-image img:hover,
.testimonial-image img:hover,
.related-image img:hover,
.category-image img:hover,
.value-image img:hover,
.faq-image img:hover,
.device-image img:hover {
    transform: scale(1.05);
}

.hero-image {
    max-width: 600px;
    margin: 0 auto 30px;
}

.feature-image,
.game-image {
    height: 180px;
    overflow: hidden;
}

.feature-image img,
.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advantage-image {
    max-width: 400px;
    margin: 0 auto 20px;
}

.security-image {
    max-width: 500px;
    margin: 0 auto 30px;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.extra-content-image {
    max-width: 700px;
    margin: 30px auto 20px;
}

.related-image {
    height: 150px;
    overflow: hidden;
    margin-bottom: 15px;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-image {
    max-width: 600px;
    margin: 30px auto 20px;
}

.category-image {
    height: 160px;
    overflow: hidden;
    margin-bottom: 15px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-image {
    max-width: 600px;
    margin: 30px auto 20px;
}

.rules-image {
    max-width: 500px;
    margin: 30px auto 20px;
}

.about-image {
    max-width: 600px;
    margin: 30px auto 20px;
}

.value-image {
    height: 140px;
    overflow: hidden;
    margin-bottom: 15px;
}

.value-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.help-image {
    max-width: 600px;
    margin: 30px auto 20px;
}

.faq-image {
    height: 120px;
    overflow: hidden;
    margin-bottom: 15px;
}

.faq-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-image {
    max-width: 600px;
    margin: 30px auto 20px;
}

.device-image {
    height: 180px;
    overflow: hidden;
    margin-bottom: 20px;
}

.device-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
