/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1A1A2E;
    --secondary-color: #16213E;
    --accent-color: #FF6B35;
    --highlight-color: #FF8E53;
    --text-primary: #ffffff;
    --text-secondary: #E8F4FD;
    --text-muted: #B8D4E3;
    --border-color: #0F3460;
    --shadow-light: 0 2px 10px rgba(255, 107, 53, 0.1);
    --shadow-medium: 0 4px 20px rgba(255, 107, 53, 0.2);
    --shadow-heavy: 0 8px 30px rgba(255, 107, 53, 0.3);
    --gradient-primary: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
    --gradient-accent: linear-gradient(135deg, #FF6B35 0%, #FF8E53 50%, #FFB366 100%);
    --gradient-magic: linear-gradient(45deg, #FF6B35, #FF8E53, #FFB366, #FFD93D);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--gradient-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

html, body, header, nav {
    max-width: 100vw;
    overflow-x: hidden;
}

/* 全局防止横向滚动和溢出 */
html, body, #app, main, header, nav, .section, .gallery-grid, .footer-content, .footer-section {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* 全局自适应和防溢出加强 */
@media (max-width: 768px) {
  html, body, header, nav, main, section, footer,
  .hero, .story-hero, .legal-hero, .privacy-hero, .terms-hero,
  .story-content, .legal-content, .privacy-content, .terms-content {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
  }
  .story-section, .legal-section, .privacy-section, .terms-section {
    padding: 18px 6vw !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  table, pre, code, img {
    max-width: 100vw !important;
    overflow-x: auto !important;
    box-sizing: border-box;
    word-break: break-all;
  }
}

/* 手机端优化 */
@media (max-width: 768px) {
    header {
        min-height: 60px;
    }
    .header-container {
        height: 60px;
        min-height: 60px;
        padding: 0 8px;
    }
    .logo {
        min-width: 120px;
        flex-shrink: 0;
    }
    .logo span {
        font-size: 1.5rem;
        font-weight: 700;
        white-space: nowrap;
        letter-spacing: 0.02em;
        line-height: 1.1;
    }
    .mobile-menu-btn {
        display: block;
        z-index: 2002;
    }
    nav {
        display: none !important;
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        min-width: 0;
        background: rgba(30,27,75,0.98);
        box-sizing: border-box;
        padding-top: 70px;
        z-index: 2001;
        transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
        transform: translateY(-100%);
        opacity: 0;
    }
    nav.active {
        display: flex !important;
        transform: translateY(0);
        opacity: 1;
    }
    .mobile-nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(30,27,75,0.5);
        z-index: 2000;
        transition: opacity 0.3s;
        opacity: 0;
    }
    .mobile-nav-overlay.active {
        display: block;
        opacity: 1;
    }
    nav a, .dropdown-content a {
        width: 100vw;
        max-width: 100vw;
        min-width: 0;
        box-sizing: border-box;
        padding: 18px 28px;
        font-size: 1.15rem;
        border-bottom: 1px solid rgba(139,92,246,0.08);
        color: var(--text-primary);
        background: none;
        text-align: left;
    }
    .dropdown-content {
        width: 100vw;
        max-width: 100vw;
        min-width: 0;
        left: 0;
        right: 0;
        box-shadow: none;
        border-radius: 0;
        background: none;
        padding: 0;
        display: none;
    }
    .nav-dropdown:focus-within .dropdown-content,
    .nav-dropdown.open .dropdown-content {
        display: block;
    }
    main {
        margin-top: 60px;
        width: 100vw;
        max-width: 100vw;
        min-width: 0;
        padding: 0 2vw;
        box-sizing: border-box;
    }
    .section, .section-title, .hero, .gallery-grid, .reviews-grid, .download-section-full, .game-spec-table-wrap, .footer-content, .footer-section {
        width: 100vw;
        max-width: 100vw;
        min-width: 0;
        box-sizing: border-box;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .gallery-item img, .gallery-img {
        width: 100%;
        height: auto;
        max-width: 100vw;
        display: block;
    }
    .game-spec-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .game-spec-table {
        width: 100% !important;
        min-width: unset !important;
        font-size: 0.95rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        padding: 10px 4px;
    }
    .footer-section {
        width: 100%;
        margin-bottom: 8px;
    }
    .footer-bottom {
        font-size: 0.9rem;
        padding: 8px 0;
    }
}

/* Animated Background */
.magic-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--highlight-color);
    border-radius: 50%;
    animation: float 6s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(30, 27, 75, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

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

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
}

.logo span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    gap: 40px;
    align-items: center;
    position: relative;
}
.nav-dropdown {
    position: relative;
    display: inline-block;
}
.nav-more {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-more i {
    font-size: 0.9em;
}
.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(49,46,129,0.98);
    min-width: 140px;
    box-shadow: var(--shadow-light);
    border-radius: var(--border-radius);
    z-index: 2000;
    top: 100%;
    left: 0;
    padding: 10px 0;
}
.nav-dropdown:hover .dropdown-content,
.nav-dropdown:focus-within .dropdown-content {
    display: block;
}
.dropdown-content a {
    color: var(--text-secondary);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 1rem;
    transition: var(--transition);
}
.dropdown-content a:hover {
    color: var(--highlight-color);
    background: rgba(139,92,246,0.08);
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 10px 0;
}

nav a:hover {
    color: var(--highlight-color);
    transform: translateY(-2px);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-accent);
    transition: var(--transition);
    border-radius: 2px;
}

nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 70vh;
    padding: 80px 10px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
    background: var(--gradient-magic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 24px rgba(255, 107, 53, 0.3);
}

@keyframes glow {
    from {
        text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
    }
    to {
        text-shadow: 0 0 40px rgba(255, 107, 53, 0.8), 0 0 60px rgba(255, 142, 83, 0.6);
    }
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-weight: 400;
}

.hero .tagline {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 32px;
    font-weight: 400;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 36px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 12px;
    background: rgba(255, 107, 53, 0.10);
    border-radius: 18px;
    border: 1px solid rgba(255, 107, 53, 0.13);
    transition: var(--transition);
    min-width: 90px;
    min-height: 90px;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.06);
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 107, 53, 0.2);
    box-shadow: var(--shadow-medium);
}

.feature-item i {
    font-size: 2.2rem;
    color: var(--highlight-color);
    filter: drop-shadow(0 0 8px rgba(255, 142, 83, 0.3));
}

.feature-item span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.download-section {
    margin-bottom: 24px;
}

.download-btn {
    background: var(--gradient-accent);
    color: white;
    padding: 16px 44px;
    border: none;
    border-radius: 22px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 18px rgba(255, 107, 53, 0.18);
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.download-info {
    margin-top: 20px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.platform-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 107, 53, 0.18);
    color: var(--highlight-color);
    padding: 8px 18px;
    border-radius: 18px;
    font-size: 0.98rem;
    font-weight: 500;
    border: 1.5px solid rgba(255, 107, 53, 0.18);
    transition: var(--transition);
    backdrop-filter: blur(6px);
}

.badge:hover {
    background: rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 10px 20px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.info-item i {
    color: var(--highlight-color);
    font-size: 1.2rem;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section {
    padding: 50px 0 40px 0;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 22px;
    color: var(--text-primary);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Game Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px;
    margin-bottom: 40px;
}
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr !important;
  }
}

.feature-card {
    background: rgba(49, 46, 129, 0.3);
    border-radius: var(--border-radius);
    padding: 40px;
    transition: var(--transition);
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    background: rgba(49, 46, 129, 0.5);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--highlight-color);
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px rgba(192, 132, 252, 0.5));
}

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

.feature-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 32px;
}
.gallery-grid div {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
}
.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    box-shadow: none;
    transition: none;
    cursor: default;
}

.gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    transition: var(--transition);
    border: 1.5px solid rgba(139, 92, 246, 0.13);
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.06);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-heavy);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    filter: brightness(0.8) saturate(1.2);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(30, 27, 75, 0.9));
    padding: 30px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.gallery-desc {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Download Section */
.download-section-full {
    background: rgba(49, 46, 129, 0.3);
    border-radius: var(--border-radius);
    padding: 35px;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
    margin-bottom: 40px;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.download-option {
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 2px solid rgba(139, 92, 246, 0.2);
    transition: var(--transition);
}

.download-option:hover {
    transform: translateY(-5px);
    background: rgba(139, 92, 246, 0.2);
    box-shadow: var(--shadow-medium);
}

.download-option h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--highlight-color);
}

.download-option p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.download-option .btn {
    background: var(--gradient-accent);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.download-option .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Rating Section */
.rating-section {
    background: rgba(49,46,129,0.13);
    padding: 18px 0 10px 0;
    text-align: center;
    border-radius: 14px;
    margin-bottom: 18px;
}
.rating-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.rating-score {
    font-size: 2rem;
    font-weight: 700;
    color: var(--highlight-color);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}
.rating-score .score {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--highlight-color);
}
.rating-score .stars {
    color: #FFD700;
    font-size: 1.5rem;
}
.rating-score .rating-count {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-left: 10px;
}
.rating-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Reviews Section */
.reviews-section {
    background: rgba(49,46,129,0.10);
    border-radius: 14px;
    margin-bottom: 16px;
    padding: 16px 0 10px 0;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}
.review-card {
    background: rgba(139,92,246,0.10);
    border-radius: 14px;
    padding: 16px 12px 14px 12px;
    border: 1px solid rgba(139,92,246,0.13);
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.06);
    transition: var(--transition);
}
.review-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-3px);
}
.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.reviewer-name {
    font-weight: 600;
    color: var(--highlight-color);
    font-size: 1.1rem;
}
.review-stars {
    color: #FFD700;
    font-size: 1.1rem;
}
.review-content {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Footer */
footer {
    background: rgba(30, 27, 75, 0.8);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    padding: 60px 0 30px;
    margin-top: 100px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: var(--highlight-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p, .footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--highlight-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-muted);
}

.game-intro-section, .game-spec-section {
    background: rgba(49,46,129,0.08);
    border-radius: 14px;
    margin-bottom: 18px;
    padding: 16px 0 10px 0;
}
.game-intro-content, .game-spec-table-wrap {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}
.game-intro-list {
    margin-top: 18px;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 32px;
}
.game-intro-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}
.game-intro-list i {
    color: var(--highlight-color);
    font-size: 1.1rem;
}

.game-spec-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(139,92,246,0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
    font-size: 1rem;
}
.game-spec-table th, .game-spec-table td {
    padding: 16px 12px;
    border-bottom: 1px solid rgba(139,92,246,0.13);
    text-align: left;
    color: var(--text-secondary);
}
.game-spec-table th {
    background: rgba(139,92,246,0.18);
    color: var(--highlight-color);
    font-weight: 700;
    font-size: 1.08rem;
}
.game-spec-table tr:last-child td {
    border-bottom: none;
}

/* Gallery Modal (Image Preview) */
.gallery-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30,27,75,0.85);
    z-index: 1;
}
.gallery-modal-content {
    position: relative;
    z-index: 2;
    background: none;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(139,92,246,0.25);
    padding: 0;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gallery-modal-img {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(139,92,246,0.18);
    background: #fff;
}
.gallery-modal-close {
    position: absolute;
    top: -32px;
    right: 0;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 3;
    background: none;
    border: none;
    line-height: 1;
    padding: 0 10px;
    transition: color 0.2s;
}
.gallery-modal-close:hover {
    color: var(--highlight-color);
}
@media (max-width: 768px) {
    .gallery-modal-img {
        max-width: 98vw;
        max-height: 60vh;
    }
    .gallery-modal-content {
        max-width: 98vw;
        max-height: 70vh;
    }
    .gallery-modal-close {
        top: -24px;
        font-size: 2rem;
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
} 

/* 移除弹窗菜单相关样式 */
#quick-menu-btn, #quick-nav-popup { display: none !important; }

/* 手机端导航栏自适应竖排 */
@media (max-width: 768px) {
  nav {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    position: static;
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    background: rgba(30,27,75,0.98);
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    z-index: 1001;
    gap: 0;
  }
  nav a, .dropdown-content a {
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    box-sizing: border-box;
    padding: 18px 28px;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(139,92,246,0.08);
    color: var(--text-primary);
    background: none;
    text-align: left;
  }
  .dropdown-content {
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    left: 0;
    right: 0;
    box-shadow: none;
    border-radius: 0;
    background: none;
    padding: 0;
    display: none;
  }
  .nav-dropdown:focus-within .dropdown-content,
  .nav-dropdown.open .dropdown-content {
    display: block;
  }
} 