/* 全局变量定义 */
:root {
    --primary-color: #00f3ff;
    --secondary-color: #bc13fe;
    --accent-color: #ff0055;
    --bg-dark: #0a0a12;
    --bg-darker: #050508;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --card-bg: rgba(20, 20, 30, 0.7);
    --border-glow: 0 0 20px rgba(0, 243, 255, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 18, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    padding: 1rem 2rem;
}

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

.nav-logo {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
}

.logo-text {
    color: var(--text-primary);
}

.logo-highlight {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

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

.hamburger {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* 英雄区域 */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.grid-bg {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-large {
    font-size: 5rem;
    margin-top: 1rem;
    display: block;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 主要内容区域 */
.content-section {
    padding: 4rem 2rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* 游戏网格 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.game-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(0, 243, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: var(--border-glow);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

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

.game-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: var(--transition);
}

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

.game-info {
    padding: 1.5rem;
}

.game-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 加载动画 */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    gap: 1rem;
}

.spinner-circle {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: bounce 1.5s infinite ease-in-out;
}

.spinner-circle:nth-child(1) { animation-delay: -0.3s; }
.spinner-circle:nth-child(2) { animation-delay: -0.15s; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* 特性区域 */
.features-section {
    background: linear-gradient(180deg, var(--bg-darker) 0%, rgba(0, 243, 255, 0.02) 100%);
    padding: 5rem 2rem;
}

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

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 243, 255, 0.1);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-secondary);
}

/* 关于区域 */
.about-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--bg-darker), rgba(188, 19, 254, 0.05));
}

.about-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-primary);
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
}

/* 页脚 */
.site-footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(0, 243, 255, 0.1);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
}

.footer-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 243, 255, 0.1);
}

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

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

/* 页面内容样式 */
.page-content {
    padding: 8rem 2rem 4rem;
    min-height: 80vh;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* 关于页面 */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.features-list {
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 243, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.feature-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* 联系页面 */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(0, 243, 255, 0.1);
}

.method-icon {
    font-size: 2rem;
}

.method-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.method-info p {
    color: var(--text-secondary);
    margin: 0.2rem 0;
}

.method-info a {
    color: var(--primary-color);
}

.method-info a:hover {
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.response-time {
    padding: 1.5rem;
    background: rgba(188, 19, 254, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(188, 19, 254, 0.3);
}

.response-time h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.response-time p {
    color: var(--text-secondary);
    margin: 0;
}

.contact-form-container {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 243, 255, 0.1);
}

.contact-form-container h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

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

/* 法律页面 */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-text {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 243, 255, 0.1);
}

.legal-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.legal-text h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.legal-text ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-text ul li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-text a {
    color: var(--primary-color);
}

.legal-text a:hover {
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

/* 游戏详情页 */
.detail-page {
    padding: 8rem 2rem 4rem;
}

.detail-container {
    max-width: 1400px;
    margin: 0 auto;
}

.game-header {
    margin-bottom: 5rem;
}

.game-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.banner-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, var(--bg-darker), transparent);
}

.game-info h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.game-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    /* margin-bottom: 2rem; */
}

/* 详情页游戏描述完整显示 */
.detail-page .game-info .game-desc {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: horizontal;
}

.game-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-primary);
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    font-size: 0.9rem;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
}

.play-btn.large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-text {
    font-size: 0.9rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 2rem;
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    border: 1px solid var(--primary-color);
    cursor: pointer;
}

.share-btn:hover {
    background: rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

/* 返回主页按钮 */
.back-to-home {
    text-align: left;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.back-to-home .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1.2rem;
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary-color);
    font-weight: 500;
    border-radius: 25px;
    transition: var(--transition);
    border: 1px solid var(--primary-color);
    font-size: 0.8rem;
}

.back-to-home .back-btn:hover {
    background: rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    transform: translateY(-1px);
}

.related-section {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 243, 255, 0.1);
}

.section-title {
    font-size: 2rem;
    /* margin-bottom: 2rem; */
    color: var(--text-primary);
}

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

.related-game-card {
    display: block;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

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

.related-game-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: var(--transition);
}

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

.game-card-info {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
}

.game-card-info h3 {
    font-size: 1rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero-title { font-size: 3rem; }
    .logo-large { font-size: 4rem; }
}

@media (max-width: 992px) {
    .hero-title { font-size: 2.5rem; }
    .logo-large { font-size: 3rem; }
    .hero-stats { gap: 2rem; }
    .stat-number { font-size: 2rem; }
    
    .contact-container { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .footer-links { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(0, 243, 255, 0.1);
        transform: translateY(-150%);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .hero-section { padding: 6rem 1.5rem 3rem; }
    .hero-title { font-size: 2rem; }
    .logo-large { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    
    .section-title { font-size: 2rem; }
    
    .games-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    
    .detail-page { padding: 6rem 1.5rem 3rem; }
    .game-banner { border-radius: 15px; }
    .banner-image { height: 350px; }
    .game-info h1 { font-size: 2.5rem; }
    .game-actions { flex-direction: column; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.8rem; }
    .logo-large { font-size: 2rem; }
    .stat-number { font-size: 1.8rem; }
    .stat-label { font-size: 0.8rem; }
    
    .page-title { font-size: 2.5rem; }
    
    .legal-text { padding: 2rem; }
    
    .game-info h1 { font-size: 2rem; }
    .banner-image { height: 280px; }
}

/* 详情页导航按钮 */
.nav-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}
