/* ==================================== */
/* 全局和基础样式              */
/* ==================================== */

:root {
    --primary-color: #E74C3C;
    --secondary-color: #2980B9;
    --light-bg: #f8f9fa;
    --text-dark: #2C3E50;
    --text-light: #ECF0F1;
    --player-bg: #2C3E50;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

h1 { font-size: 2.5rem; color: var(--primary-color); }
h2 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--secondary-color); text-align: center; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

/* ==================================== */
/* 导航栏样式              */
/* ==================================== */

.main-nav {
    background: var(--player-bg);
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.logo:hover {
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    z-index: 100;
}
  
.hamburger .bar {
    width: 25px;
    height: 2px;
    background: var(--text-light);
    transition: all 0.3s;
}

.lang-switcher {
    position: relative;
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
    color: #fff;
    font-size: 1rem;
}

.current-lang:hover {
    background: rgba(255,255,255,0.1);
}

.lang-toggle {
    font-size: 0.8rem;
    color: var(--text-light);
}

.lang-list {
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--player-bg);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: none;
    min-width: 160px;
    z-index: 100;
    list-style-type: none;
}

.lang-list li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text-light);
    text-decoration: none;
    transition: background 0.3s;
}

.lang-item:hover {
    background: rgba(255,255,255,0.05);
}

.lang-item img {
    border-radius: 2px;
}

/* ==================================== */
/* 游戏/视频播放器样式         */
/* ==================================== */

.hero-section {
    max-width: 1200px;
    margin: 2rem auto;
    overflow: hidden;
}

.hero-container {
    display: flex;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.game-main {
    /* 解决宽度被压缩的问题 */
    flex: 1;
    min-width: 0;
}

.iframe-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0px auto;
    background: #000;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.iframe-container iframe {
    display: block;
    width: 100%;
    height: 550px;
    border: none;
    background: #000;
    border-radius: 8px 8px 0 0;
}

.iframe-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--player-bg);
    color: white;
    position: relative;
    border-radius: 0 0 8px 8px;
}

.game-title {
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.control-buttons {
    display: flex;
    align-items: center;
}

.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    position: relative;
}

.control-btn:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

.control-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.control-btn::before {
    content: attr(data-title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    margin-bottom: 5px;
}

.control-btn:hover::before {
    opacity: 1;
}

/* ==================================== */
/* 全屏和剧场模式样式            */
/* ==================================== */

.exit-fullscreen {
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 2147483647 !important;
    width: 40px !important;
    height: 40px !important;
    padding: 8px !important;
    background: rgba(0, 0, 0, 0.65) !important;
    cursor: pointer !important;
    display: none !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    transition: opacity 0.3s ease !important;
}

.exit-fullscreen.show {
    display: block !important;
}

.exit-fullscreen:hover {
    background: rgba(0, 0, 0, 0.8);
}

.exit-fullscreen svg {
    width: 100%;
    height: 100%;
    fill: white;
}

.force-full-screen {
    position: fixed !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #000 !important;
    border-radius: 0 !important;
}

.force-theater-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 887;
    width: 100% !important;
    height: calc(100% - 60px) !important;
    background: #000;
    border-radius: 0 !important;
}

.theater-mode-controls {
    position: fixed;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 887;
    width: 100%;
    padding: 0 10px;
    background: var(--player-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

body.theater-mode {
    overflow: hidden;
}

/* ==================================== */
/* 分享弹出层样式             */
/* ==================================== */

.share-popup {
    position: absolute;
    bottom: 100%;
    right: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    width: 220px;
    padding: 15px;
    display: none;
    margin-bottom: 5px;
}

.share-popup.show {
    display: block;
}

.share-header {
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
    font-size: 16px;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.share-platforms {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
    cursor: pointer;
}

.share-item:hover {
    background: #f5f5f5;
}

.share-item svg {
    margin-right: 10px;
    flex-shrink: 0;
}

.copy-success {
    color: #4CAF50 !important;
}

/* ==================================== */
/* 侧边栏广告样式              */
/* ==================================== */

.ad-sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    max-height: 492px;
}

.ad-content {
    background: #f8f8f8;
    border-radius: 8px;
    text-align: center;
    position: sticky;
    height: fit-content;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 90px);
    grid-auto-rows: 90px;
    gap: 10px;
    justify-content: center;
}

.image-cell {
    width: 90px;
    height: 90px;
    transition: transform 0.2s;
}

.image-cell a {
    display: block;
    width: 100%;
    height: 100%;
}

.image-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.image-cell:hover {
    transform: scale(1.05);
}

/* ==================================== */
/* 更多游戏部分样式           */
/* ==================================== */

.more-games {
    padding: 2rem 1.5rem;
    background: white;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.games-grid a {
    text-decoration: none;
}

.game-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 2px solid var(--primary-color);
}

.game-card h3 {
    padding: .1rem 1rem;
    font-size: 1rem;
    color: var(--text-dark);
}

/* ==================================== */
/* 游戏介绍区域样式           */
/* ==================================== */

.game-info {
    padding: 4rem 1.5rem;
    background: #ffffff;
    border-top: 5rem solid var(--light-bg);
}

.info-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.info-content img {
    flex: 0 0 45%;
    max-width: 550px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.info-content img:hover {
    transform: scale(1.02);
}

.text-content {
    flex: 1;
}

.text-content h3 {
    color: var(--secondary-color);
    margin: 1rem 0;
    font-size: 1.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.text-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 70%;
    background: var(--primary-color);
    border-radius: 3px;
}

.controls-list {
    list-style: none;
    margin: 1.5rem 0;
}

.controls-list li {
    padding: 0.8rem 1rem;
    margin-bottom: 0.75rem;
    background: rgba(231, 76, 60, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.controls-list li::before {
    content: "➤";
    color: var(--primary-color);
    font-size: 0.9rem;
}

.feature-list {
    columns: 2;
    column-gap: 2rem;
    margin: 2rem 0;
}

.feature-list li {
    padding: 0.75rem;
    margin-bottom: 1rem;
    break-inside: avoid;
    background: var(--light-bg);
    border-radius: 6px;
    position: relative;
    padding-left: 2.5rem;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 1rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* ==================================== */
/* 常见问题和评论区域          */
/* ==================================== */

.faq-comments-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0;
}

.faq-column, .comments-column {
    min-width: 0;
}

.faq-column {
    flex: 3;
}

.comments-column {
    flex: 2;
}

.faq-section {
    padding: 4rem 1.5rem;
    background: var(--light-bg);
}

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

.faq-item {
    margin-bottom: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border-left: 4px solid var(--secondary-color);
}

.comments-container {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #4a6fa5;
    color: white;
}

.comments-header h2 {
    font-weight: 600;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: auto;
    color: var(--text-light);
}

.comments-header svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.comments-list {
    max-height: 520px;
    overflow-y: auto;
    padding: 15px;
    background: #f9fafc;
}

.empty-comments {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-comments svg {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    color: #dee2e6;
}

.comment-item {
    background: white;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    border: 1px solid #f0f0f0;
}

.comment-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #eaeaea;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    color: #2c3e50;
}

.comment-date {
    font-size: 13px;
    color: #7a7d85;
}

.rating {
    display: flex;
    gap: 2px;
    margin-top: 5px;
}

.rating .star-icon {
    width: 16px;
    height: 16px;
    color: #ffc107;
}

.comment-content {
    margin: 15px 0 10px;
}

.comment-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.comment-text {
    color: #555;
    line-height: 1.7;
}

.comment-actions {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    margin-top: 15px;
}

.action-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}

.action-btn:hover {
    color: #4a6fa5;
}

.submit-btn {
    background: #4a6fa5;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.review-form {
    padding: 25px;
    background: white;
    border-top: 1px solid #eaeaea;
}

.form-title {
    margin-bottom: 20px;
    font-size: 22px;
    color: #2c3e50;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    transition: border 0.3s;
}

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

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

.rating-input {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.rating-input .star {
    font-size: 30px; /* 增加字体大小 */
    color: #ddd; /* 未激活星星的颜色 */
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.rating-input .star.active {
    color: #ffc107; /* 激活星星的颜色 */
}

/* ==================================== */
/* 通知消息样式              */
/* ==================================== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    transform: translateX(200%);
    transition: transform 0.3s ease-out;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

/* ==================================== */
/* 页脚样式              */
/* ==================================== */

.main-footer {
    background: var(--player-bg);
    color: var(--text-light);
    padding: 25px 0 15px;
    text-align: center;
    position: relative;
    width: 100%;
}

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

.copyright {
    margin-bottom: 15px;
    font-size: 16px;
}

.copyright a {
    color: #fdbb2d;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.copyright a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-languages {
    margin: 20px 0;
}

.footer-languages-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.footer-flags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 auto;
    max-width: 800px;
}

.footer-flag {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.4);
    position: relative;
}

.footer-flag:hover {
    transform: scale(1.15);
    border-color: #fdbb2d;
    box-shadow: 0 5px 12px rgba(0,0,0,0.4);
}

.footer-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-flag-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.footer-flag:hover .footer-flag-tooltip {
    opacity: 1;
}

/* ==================================== */
/* 响应式设计样式            */
/* ==================================== */

@media (max-width: 1024px) {
    .info-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .info-content img {
        flex: none;
        width: 80%;
        max-width: 100%;
        height: auto;
    }
    
    .feature-list {
        columns: 1;
    }
    
    .hero-section {
        margin: 2rem 1rem;
    }

    .hero-container {
        flex-direction: column;
    }
    
    .ad-sidebar {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        order: -1;
    }
    
    .faq-comments-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--player-bg);
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        z-index: 99;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .comment-actions {
        justify-content: space-between;
        gap: 10px;
    }
    
    .action-btn span {
        display: none;
    }
  
    .ad-sidebar,.ad-google {
        display: none !important;
    }
    
    .hero-container {
        flex-direction: column;
    }
  
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        line-height: .4rem;
    }
    
    .nav-menu a {
        padding: 12px;
        display: block;
    }
    
    .lang-switcher {
        margin-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 15px;
    }
    
    .lang-list {
        position: static;
        width: 100%;
        box-shadow: none;
    }
    
    .current-lang {
        justify-content: center;
    }

    .game-card {
        margin-bottom: 1rem;
    }
    
    .game-info {
        padding: 3rem 1rem;
    }
  
    .info-content img {
        width: 100%;
    }
  
    .text-content h3 {
        font-size: 1.5rem;
        padding-left: 1rem;
    }
  
    .controls-list li {
        padding: 0.75rem;
    }

    .footer-flags {
        gap: 10px;
    }
    
    .footer-flag {
        width: 36px;
        height: 36px;
    }
    
    .footer-languages-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        margin: 1rem;
        border-radius: 8px;
    }
    
    .iframe-container iframe{
        height: 350px;
    }
    .game-card {
        margin-bottom: 1rem;
    }
    
    .footer-flags {
        gap: 8px;
    }
    
    .footer-flag {
        width: 32px;
        height: 32px;
    }
}