/* 360-game-hall.css - 360游戏大厅完整样式 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 颜色变量 */
:root {
    --primary-blue: #0A74DA;
    --primary-yellow: #FFCC00;
    --primary-red: #FF3B30;
    --primary-orange: #FF7D00;
    --primary-purple: #9C27B0;
    --light-gray: #f8f9fa;
    --dark-gray: #333;
    --border-color: #e9ecef;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 通用样式 */
.section {
    padding: 70px 0;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
}

.section-title .subtitle {
    font-size: 16px;
    color: #6c757d;
    font-weight: normal;
    margin-left: 20px;
}

.section-title i {
    margin-right: 15px;
    font-size: 24px;
}

/* 顶部导航栏 */
.site-header {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-area {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
}

.logo-area i {
    font-size: 28px;
    margin-right: 15px;
}

.main-nav {
    display: flex;
    gap: 8px;
}

.main-nav a {
    padding: 14px 24px;
    font-weight: 500;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.download-btn {
    background-color: var(--primary-yellow);
    color: #333;
    font-weight: bold;
    padding: 14px 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.download-btn:hover {
    background-color: #ffd633;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.download-btn i {
    margin-right: 10px;
    font-size: 18px;
}

/* 主横幅区域 */
.hero-section {
    background: linear-gradient(to bottom, #e3f2fd, white);
    padding: 70px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text .highlight {
    color: var(--primary-blue);
}

.hero-text .subtitle {
    font-size: 20px;
    color: #6c757d;
    margin-bottom: 35px;
}

.main-download-btn {
    background-color: var(--primary-yellow);
    color: #333;
    font-weight: bold;
    padding: 18px 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
}

.main-download-btn:hover {
    background-color: #ffd633;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.main-download-btn i {
    margin-right: 12px;
    font-size: 22px;
}

.security-note {
    margin-top: 25px;
    font-size: 16px;
    color: #6c757d;
}

.security-note i {
    color: #28a745;
    margin-right: 8px;
}

.hero-banner {
    flex: 1.8;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    height: 400px;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

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

/* 右侧缩略图导航 */
.banner-thumbnails {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 140px;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.thumb-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumb-item.active {
    background-color: rgba(255, 255, 255, 0.3);
}

.thumb-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.thumb-item img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    margin-right: 10px;
    object-fit: cover;
}

.thumb-item span {
    color: white;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.banner-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: white;
    transform: scale(1.3);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 热门推荐 */
.hot-section .section-title i {
    color: var(--primary-red);
}

.hot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.hot-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.hot-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.hot-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.hot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hot-card:hover .hot-image img {
    transform: scale(1.05);
}

.hot-badge {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hot-badge.hot {
    background-color: var(--primary-red);
    left: 20px;
}

.hot-badge.active {
    background-color: var(--primary-orange);
    right: 20px;
}

.hot-badge.new {
    background-color: var(--primary-blue);
    left: 20px;
}

.hot-badge.free {
    background-color: #28a745;
    left: 20px;
}

.hot-badge.gift {
    background-color: var(--primary-red);
    right: 20px;
}

.hot-info {
    padding: 25px;
}

.hot-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.hot-title-row h3 {
    font-size: 24px;
    font-weight: bold;
}

.hot-rating {
    font-size: 22px;
    font-weight: bold;
    background: linear-gradient(to right, #FFD700, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hot-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hot-details span {
    color: #6c757d;
    font-size: 16px;
}

.play-btn {
    background-color: var(--primary-yellow);
    color: #333;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
}

.play-btn:hover {
    background-color: #ffd633;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.play-btn i {
    margin-right: 8px;
}

/* 精选游戏 */
.featured-section {
    background: linear-gradient(to bottom, white, #f8f9fa);
}

.featured-section .section-title i {
    color: var(--primary-yellow);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.featured-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.featured-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 25px 15px 15px;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.featured-card:hover .card-overlay {
    transform: translateY(0);
    opacity: 1;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.game-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    border: 2px solid white;
    margin-right: 12px;
    object-fit: cover;
}

.game-name {
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.game-type {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.overlay-btn {
    background: linear-gradient(to right, var(--primary-yellow), #ffd633);
    color: #333;
    font-weight: bold;
    padding: 10px 25px;
    border-radius: 10px;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.overlay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.overlay-btn i {
    margin-right: 8px;
}

.featured-info {
    padding: 15px;
}

.featured-info h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-tags {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag {
    background-color: #f1f3f5;
    color: #6c757d;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.rating {
    color: #FFD700;
    font-weight: bold;
    font-size: 16px;
}

.rating i {
    margin-right: 4px;
}

/* 热门榜单 */
.rank-section {
    background: linear-gradient(to bottom, #f8f9fa, white);
}

.rank-section .section-title i {
    color: #FFD700;
}

.rank-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.rank-card {
    background-color: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.rank-header {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    font-weight: bold;
    font-size: 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(to right, #e3f2fd, #f3f8ff);
}

.rank-header.download-header {
    background: linear-gradient(to right, #fff3e0, #fff8f0);
}

.rank-header.new-server-header {
    background: linear-gradient(to right, #f3e5f5, #f9f0ff);
}

.rank-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.download-header .rank-number {
    background-color: var(--primary-orange);
}

.new-server-header .rank-number {
    background-color: var(--primary-purple);
}

.rank-header i {
    margin-left: auto;
    font-size: 24px;
    color: var(--primary-blue);
}

.download-header i {
    color: var(--primary-orange);
}

.new-server-header i {
    color: var(--primary-purple);
}

.rank-list {
    padding: 0;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.rank-item:hover {
    background-color: #f8f9fa;
    padding-left: 28px;
}

.rank-order {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    margin-right: 20px;
}

.rank-item:nth-child(1) .rank-order {
    color: var(--primary-red);
    font-size: 22px;
}

.rank-item:nth-child(2) .rank-order {
    color: var(--primary-red);
    font-size: 22px;
}

.rank-item:nth-child(3) .rank-order {
    color: var(--primary-red);
    font-size: 22px;
}

.rank-item:nth-child(4) .rank-order,
.rank-item:nth-child(5) .rank-order {
    color: #6c757d;
}

.rank-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    margin-right: 20px;
    object-fit: cover;
}

.rank-info {
    flex: 1;
}

.rank-info h4 {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 6px;
}

.rank-info p {
    color: #6c757d;
    font-size: 15px;
    margin-bottom: 10px;
}

.rank-tags {
    display: flex;
    gap: 10px;
}

.rank-tag {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

.hot-tag {
    background-color: #ffeaea;
    color: var(--primary-red);
}

.recommend {
    background-color: #e3f2fd;
    color: var(--primary-blue);
}

.classic {
    background-color: #fff3e0;
    color: var(--primary-orange);
}

.score {
    background-color: #e8f5e9;
    color: #28a745;
}

.download-count {
    background-color: #e8f5e9;
    color: #28a745;
}

.new-today {
    background-color: #f3e5f5;
    color: var(--primary-purple);
}

.new-game {
    background-color: #f3e5f5;
    color: var(--primary-purple);
}

.nostalgia {
    background-color: #e3f2fd;
    color: var(--primary-blue);
}

.reservation {
    background-color: #e8f5e9;
    color: #28a745;
}

.coming-soon {
    background-color: #f3e5f5;
    color: var(--primary-purple);
}

.rank-btn {
    background-color: var(--primary-blue);
    color: white;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.rank-btn:hover {
    background-color: #0969c2;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.download-btn {
    background-color: var(--primary-orange);
}

.download-btn:hover {
    background-color: #e66a00;
}

.server-btn {
    background-color: var(--primary-purple);
}

.server-btn:hover {
    background-color: #7b1fa2;
}

.rank-footer {
    padding: 20px 25px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background-color: #f8f9fa;
}

.rank-footer a {
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
}

.rank-footer a:hover {
    color: #0969c2;
}

.rank-footer i {
    margin-left: 8px;
}

/* 下载推广区 */
.download-section {
    background: linear-gradient(to right, var(--primary-blue), #0969c2, #064785);
    color: white;
    padding: 80px 0;
}

.download-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.download-info {
    flex: 1;
}

.download-title {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.download-title i {
    font-size: 48px;
    color: var(--primary-yellow);
    margin-right: 25px;
}

.download-title h2 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 12px;
}

.download-title p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 22px;
}

.download-desc {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 700px;
}

.download-buttons {
    display: flex;
    gap: 25px;
}

.primary-download-btn {
    background-color: white;
    color: var(--primary-blue);
    font-weight: bold;
    padding: 20px 40px;
    border-radius: 14px;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.primary-download-btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.primary-download-btn i {
    margin-right: 12px;
    font-size: 24px;
}

.secondary-download-btn {
    background-color: transparent;
    color: white;
    border: 3px solid white;
    font-weight: bold;
    padding: 20px 40px;
    border-radius: 14px;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
}

.secondary-download-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.secondary-download-btn i {
    margin-right: 12px;
    font-size: 24px;
}

/* 底部广告条 */
.bottom-banner {
    background: linear-gradient(to right, #212529, #343a40);
    color: white;
    padding: 25px 0;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.banner-text {
    display: flex;
    align-items: center;
    font-size: 22px;
}

.banner-text i {
    color: var(--primary-yellow);
    margin-right: 15px;
    font-size: 28px;
}

.banner-btn {
    background-color: var(--primary-yellow);
    color: #333;
    font-weight: bold;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 18px;
    box-shadow: var(--shadow-md);
}

.banner-btn:hover {
    background-color: #ffd633;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* 页脚 */
.site-footer {
    background-color: #212529;
    color: #adb5bd;
    padding: 50px 0;
}

.footer-content {
    text-align: center;
    border-top: 1px solid #343a40;
    padding-top: 40px;
}

.footer-content p {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-note {
    font-size: 14px;
    color: #6c757d;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
    }
    
    .featured-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
    
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .rank-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rank-grid .rank-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 800px;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-banner {
        width: 100%;
    }
    
    .banner-thumbnails {
        display: none;
    }
    
    .hot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hot-grid .hot-card:last-child {
        grid-column: span 2;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rank-grid {
        grid-template-columns: 1fr;
    }
    
    .rank-grid .rank-card:last-child {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }
    
    .logo-area {
        margin-bottom: 20px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 20px;
        gap: 5px;
    }
    
    .main-nav a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .hero-text .subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 24px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-title .subtitle {
        margin-left: 0;
        margin-top: 8px;
        font-size: 14px;
    }
    
    .hot-grid {
        grid-template-columns: 1fr;
    }
    
    .hot-grid .hot-card:last-child {
        grid-column: span 1;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-content {
        flex-direction: column;
        text-align: center;
    }
    
    .download-title {
        justify-content: center;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    
    .banner-text {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-banner {
        height: 300px;
    }
    
    .hot-image {
        height: 250px;
    }
    
    .download-title h2 {
        font-size: 32px;
    }
    
    .download-title p {
        font-size: 18px;
    }
    
    .download-desc {
        font-size: 18px;
    }
    
    .primary-download-btn,
    .secondary-download-btn {
        padding: 16px 30px;
        font-size: 18px;
    }
}