/**
 * GameLive 网站样式表
 * 现代简约风格设计
 */

/* ===== 基础样式重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* ===== 导航栏样式 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    text-decoration: none;
    font-weight: 700;
    font-size: 24px;
    color: #4A90E2;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: #357ABD;
}

.logo-text {
    background: linear-gradient(135deg, #4A90E2, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #4A90E2;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4A90E2;
    transition: width 0.3s ease;
}

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

/* ===== 移动端菜单按钮 ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-toggle:hover {
    background-color: rgba(74, 144, 226, 0.1);
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #4A90E2;
    margin: 3px 0;
    transition: 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ===== 主要内容区域 ===== */
.main-content {
    margin-top: 70px;
    padding: 40px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 网站介绍区域 ===== */
.site-intro {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
}

.intro-title {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.intro-text {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== 游戏展示区域 ===== */
.games-section {
    margin-bottom: 60px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* ===== 游戏卡片样式 ===== */
.game-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.game-card.hovered {
    transform: translateY(-10px) scale(1.02);
}

.game-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-image {
    position: relative;
    overflow: hidden;
    /* height: 200px; */
}

.game-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-thumb {
    transform: scale(1.1);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.8), rgba(118, 75, 162, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-info {
    padding: 20px;
}

.game-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.game-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 首页游戏卡片描述 - 限制3行 */
.game-card .game-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 详情页样式 ===== */
.detail-main {
    margin-top: 70px;
    padding: 40px 0;
    min-height: calc(100vh - 70px);
}

.back-section {
    margin-bottom: 30px;
}

.back-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: white;
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.game-info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: start;
}

.game-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.game-detail-img {
    width: 100%;
    height: auto;
    display: block;
}

.game-details {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.game-details .game-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.game-details .game-description {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.play-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4A90E2, #764ba2);
    color: white;
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.4);
}

/* ===== 相关游戏推荐样式 ===== */
.related-games-section {
    margin-top: 60px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 40px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.related-game-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.related-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.related-game-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-game-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.related-game-title {
    font-size: 16px;
    font-weight: 600;
    padding: 15px;
    text-align: center;
    color: #333;
}

/* ===== 页脚样式 ===== */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.footer-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #4A90E2;
}

.footer-subtitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ccc;
}

.footer-text {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-text a {
    color: #4A90E2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: #357ABD;
}

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

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

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4A90E2;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: #888;
    font-size: 14px;
}

/* ===== 错误消息样式 ===== */
.error-message {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.error-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.error-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.retry-btn {
    background: linear-gradient(135deg, #4A90E2, #764ba2);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
}

/* ===== 页面内容样式 ===== */
.page-title {
    font-size: 42px;
    font-weight: 700;
    color: #4A90E2;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.policy-section,
.about-section,
.contact-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
}

.policy-content,
.about-content,
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-updated {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-style: italic;
}

.policy-intro,
.contact-intro {
    margin-bottom: 40px;
    line-height: 1.8;
    color: #555;
}

.policy-section-content {
    margin-bottom: 40px;
}

.policy-section-content h2 {
    color: #4A90E2;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
}

.policy-section-content h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    margin-top: 25px;
    font-weight: 600;
}

.policy-section-content p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.policy-section-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.policy-section-content li {
    line-height: 1.8;
    color: #555;
    margin-bottom: 10px;
}

.contact-details {
    background: rgba(74, 144, 226, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.contact-details p {
    margin-bottom: 10px;
    color: #555;
}

/* ===== 联系表单样式 ===== */
.contact-form-section {
    margin: 40px 0;
}

.contact-form-section h2 {
    color: #4A90E2;
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, #4A90E2, #764ba2);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
}

.form-status {
    margin-top: 20px;
    text-align: center;
}

.success-message {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
}

/* ===== 联系方法样式 ===== */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.contact-method {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.method-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.contact-method h3 {
    color: #4A90E2;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-method p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-link {
    color: #4A90E2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #357ABD;
    text-decoration: underline;
}

/* ===== 响应时间样式 ===== */
.response-time,
.office-hours {
    margin: 40px 0;
    padding: 30px;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 12px;
    border-left: 4px solid #4A90E2;
}

.response-time h3,
.office-hours h3 {
    color: #4A90E2;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.response-info {
    display: grid;
    gap: 15px;
}

.response-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.office-hours p {
    line-height: 1.8;
    color: #555;
}

/* ===== 关于页面样式 ===== */
.about-intro {
    text-align: center;
    margin-bottom: 40px;
}

.about-intro h2 {
    color: #4A90E2;
    font-size: 32px;
    margin-bottom: 20px;
}

.about-mission,
.about-team,
.about-contact {
    margin: 40px 0;
}

.about-mission h3,
.about-team h3,
.about-contact h3 {
    color: #4A90E2;
    font-size: 24px;
    margin-bottom: 15px;
}

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

.value-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.value-item h4 {
    color: #4A90E2;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    background: rgba(74, 144, 226, 0.1);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid #4A90E2;
    color: #555;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        gap: 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 18px;
        padding: 15px 30px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background-color: rgba(74, 144, 226, 0.1);
        color: #4A90E2;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .intro-title {
        font-size: 36px;
    }
    
    .intro-text {
        font-size: 18px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .game-info-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .game-details {
        padding: 30px;
    }
    
    .game-details .game-title {
        font-size: 28px;
    }
    
    .related-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .intro-title {
        font-size: 28px;
    }
    
    .intro-text {
        font-size: 16px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-info {
        padding: 15px;
    }
    
    .game-title {
        font-size: 18px;
    }
    
    .game-details {
        padding: 20px;
    }
    
    .game-details .game-title {
        font-size: 24px;
    }
    
    .play-btn {
        padding: 14px 30px;
        font-size: 16px;
    }
    
    .related-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== 动画效果 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== 加载动画 ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== 辅助类 ===== */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ===== 打印样式 ===== */
@media print {
    .navbar,
    .footer,
    .back-btn,
    .play-btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .game-info-section {
        grid-template-columns: 1fr;
    }
}