/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B9D;
    --secondary-color: #FF8E9E;
    --accent-color: #FFB3C7;
    --highlight-color: #FFD1DC;
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --border-color: #FFB3C7;
    --shadow-light: 0 2px 10px rgba(255, 107, 157, 0.1);
    --shadow-medium: 0 4px 20px rgba(255, 107, 157, 0.2);
    --shadow-heavy: 0 8px 30px rgba(255, 107, 157, 0.3);
    --gradient-primary: linear-gradient(135deg, #FF6B9D 0%, #FF8E9E 50%, #FFB3C7 100%);
    --gradient-accent: linear-gradient(135deg, #FFB3C7 0%, #FFD1DC 50%, #FFE4E6 100%);
    --gradient-island: linear-gradient(45deg, #FF6B9D, #FF8E9E, #FFB3C7, #FFD1DC);
    --border-radius: 20px;
    --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: linear-gradient(135deg, #FFF5F7 0%, #FFE4E6 50%, #FFD1DC 100%);
    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: 100%;
        height: 100vh;
        background: rgba(255, 107, 157, 0.95);
        backdrop-filter: blur(10px);
        z-index: 2001;
        padding: 80px 20px 20px;
    }
    nav.active {
        display: flex !important;
    }
    .mobile-nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 107, 157, 0.3);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    .mobile-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    nav a, .dropdown-content a {
        color: white;
        font-size: 1.2rem;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
        text-align: left;
    }
    .dropdown-content {
        position: static;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        padding-left: 20px;
    }
    .nav-dropdown:focus-within .dropdown-content,
    .nav-dropdown:hover .dropdown-content {
        display: block;
    }
    main {
        padding-top: 60px;
    }
    .section, .section-title, .hero, .gallery-grid, .reviews-grid, .download-section-full, .game-spec-table-wrap, .footer-content, .footer-section {
        padding: 20px 15px !important;
        margin: 0 !important;
        max-width: 100vw !important;
        box-sizing: border-box;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .gallery-item img, .gallery-img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }
    .game-spec-table-wrap {
        overflow-x: auto;
        max-width: 100vw;
    }
    .game-spec-table {
        min-width: 600px;
        font-size: 0.9rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    .footer-section {
        text-align: center;
    }
    .footer-bottom {
        text-align: center;
        padding: 15px;
    }
}

.island-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: linear-gradient(45deg, #FFB3C7, #FFD1DC);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
    transition: var(--transition);
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
}

.logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-dropdown {
    position: relative;
}

.nav-more {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-more i {
    transition: var(--transition);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-medium);
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-content,
.nav-dropdown:focus-within .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background: var(--gradient-accent);
    color: var(--primary-color);
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

nav a:hover {
    color: var(--primary-color);
    background: var(--gradient-accent);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 80%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--border-radius);
    background: var(--gradient-accent);
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: var(--gradient-primary);
    padding: 120px 20px 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="island" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23FFB3C7" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23island)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #FFFFFF, #FFD1DC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 107, 157, 0.8);
    }
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--highlight-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero .tagline {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* 英雄特色项目动画效果 */
.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out;
}

.feature-item:nth-child(7) {
    animation-delay: 0.1s;
}

.feature-item:nth-child(8) {
    animation-delay: 0.2s;
}

.feature-item:nth-child(9) {
    animation-delay: 0.3s;
}

.feature-item:nth-child(10) {
    animation-delay: 0.4s;
}

.feature-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-heavy);
}

.feature-item i {
    color: var(--highlight-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.feature-item:hover i {
    transform: scale(1.2);
    color: var(--accent-color);
}

.feature-item span {
    color: white;
    font-weight: 500;
    transition: var(--transition);
}

.feature-item:hover span {
    color: var(--highlight-color);
}

/* 新增特色项目的特殊效果 */
.feature-item:nth-child(7) i {
    color: #FF6B9D;
}

.feature-item:nth-child(8) i {
    color: #4ECDC4;
}

.feature-item:nth-child(9) i {
    color: #FFD93D;
}

.feature-item:nth-child(10) i {
    color: #6C5CE7;
}

.download-section {
    margin-bottom: 30px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: var(--gradient-island);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.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: var(--transition);
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.download-info {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.platform-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.badge:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.3);
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-item i {
    color: var(--highlight-color);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section {
    margin-bottom: 80px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 游戏截图3列布局优化 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 修改为3列布局 */
    gap: 25px; /* 增加间距 */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* 添加左右内边距 */
}

.gallery-grid div {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
    background: var(--gradient-accent);
    aspect-ratio: 4/3; /* 保持统一的宽高比 */
    min-height: 200px; /* 设置最小高度 */
}

.gallery-grid div:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.gallery-grid div:hover img {
    transform: scale(1.05);
}

/* 游戏截图特殊效果 */
.gallery-grid div::before {
    content: '点击查看大图';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: 2;
}

.gallery-grid div:hover::before {
    opacity: 1;
}

.gallery-grid div::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 107, 157, 0.1), rgba(255, 142, 158, 0.1));
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.gallery-grid div:hover::after {
    opacity: 1;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 107, 157, 0.8), rgba(255, 142, 158, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.gallery-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 5px;
}

.download-section-full {
    background: white;
    padding: 60px 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.download-option {
    padding: 40px 30px;
    background: var(--gradient-accent);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.download-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.download-option h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.download-option p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.download-option .btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.download-option .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.rating-section {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    margin: 40px auto;
    max-width: 600px;
}

.rating-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.rating-score {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
}

.rating-score .score {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.rating-score .stars {
    color: #FFD700;
    font-size: 1.5rem;
}

.rating-score .rating-count {
    color: var(--text-secondary);
    font-size: 1rem;
}

.rating-desc {
    color: var(--text-secondary);
    font-size: 1rem;
}

.reviews-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 60px 40px;
    box-shadow: var(--shadow-light);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.review-card {
    background: var(--gradient-accent);
    padding: 25px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-name {
    font-weight: 600;
    color: var(--primary-color);
}

.review-stars {
    color: #FFD700;
}

.review-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

footer {
    background: var(--gradient-primary);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--highlight-color);
}

.footer-section p, .footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
}

.footer-section a:hover {
    color: var(--highlight-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.game-intro-section, .game-spec-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 60px 40px;
    box-shadow: var(--shadow-light);
}

.game-intro-content, .game-spec-table-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.game-intro-list {
    list-style: none;
    margin-top: 30px;
}

.game-intro-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.game-intro-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.game-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.game-spec-table th, .game-spec-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.game-spec-table th {
    background: var(--gradient-accent);
    color: var(--primary-color);
    font-weight: 600;
}

.game-spec-table tr:last-child td {
    border-bottom: none;
}

.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
}

.gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.gallery-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.gallery-modal-img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.gallery-modal-close:hover {
    background: white;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gallery-modal-img {
        max-width: 95%;
    }
    .gallery-modal-content {
        max-width: 95%;
    }
    .gallery-modal-close {
        top: 10px;
        right: 10px;
    }
}

@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: none !important;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 107, 157, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2001;
    padding: 80px 20px 20px;
  }
  nav.active {
    display: flex !important;
  }
  nav a, .dropdown-content a {
    color: white;
    font-size: 1.2rem;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    text-align: left;
  }
  .dropdown-content {
    position: static;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding-left: 20px;
  }
  .nav-dropdown:focus-within .dropdown-content,
  .nav-dropdown:hover .dropdown-content {
    display: block;
  }
} 

/* 添加页面加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 为不同元素添加动画 */
.feature-card {
    animation: fadeInUp 0.6s ease-out;
}

.gallery-grid div {
    animation: scaleIn 0.6s ease-out;
}

.review-card {
    animation: slideInLeft 0.6s ease-out;
}

.download-option {
    animation: slideInRight 0.6s ease-out;
}

/* 添加悬停效果改进 */
.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.gallery-grid div:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.review-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

.download-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

/* 添加加载状态样式 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 添加焦点样式改进 */
.download-btn:focus,
.btn:focus,
nav a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 添加滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gradient-accent);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* 添加选择文本样式 */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
} 

/* 角色介绍模块样式 */
.characters-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 60px 40px;
    box-shadow: var(--shadow-light);
    margin-bottom: 80px;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.character-card {
    background: var(--gradient-accent);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
}

.character-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.character-image {
    width: 100%;
    height: 350px; /* 增加高度以更好地显示竖图 */
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.character-image::after {
    content: '点击查看大图';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.character-image:hover::after {
    opacity: 1;
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 改为contain以完整显示图片 */
    object-position: center; /* 居中显示 */
    transition: var(--transition);
    background: var(--gradient-accent); /* 添加背景色 */
    border-radius: var(--border-radius) var(--border-radius) 0 0; /* 添加圆角 */
    padding: 10px; /* 添加内边距，让图片不会贴边 */
}

.character-card:hover .character-image img {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.character-info {
    padding: 25px;
}

.character-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.character-name::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.character-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.character-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trait {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(255, 107, 157, 0.1);
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.trait:hover {
    background: rgba(255, 107, 157, 0.2);
    transform: translateY(-2px);
}

.trait i {
    font-size: 0.8rem;
}

/* 角色卡片特殊效果 */
.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.character-card:hover::before {
    transform: scaleX(1);
}

/* 角色卡片动画 */
.character-card {
    animation: fadeInUp 0.8s ease-out;
}

.character-card:nth-child(1) {
    animation-delay: 0.1s;
}

.character-card:nth-child(2) {
    animation-delay: 0.2s;
}

.character-card:nth-child(3) {
    animation-delay: 0.3s;
}

.character-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .characters-section {
        padding: 40px 20px;
    }
    
    .characters-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .character-image {
        height: 280px; /* 移动端也增加高度以更好地显示竖图 */
    }
    
    .character-info {
        padding: 20px;
    }
    
    .character-name {
        font-size: 1.2rem;
    }
    
    .character-desc {
        font-size: 0.95rem;
    }
    
    .trait {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

/* 角色卡片悬停效果改进 */
.character-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.character-card:hover .character-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 107, 157, 0.1), rgba(255, 142, 158, 0.1));
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
} 

/* 角色介绍模块额外视觉效果 */
.characters-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 60px 40px;
    box-shadow: var(--shadow-light);
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.characters-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.6s ease-out;
}

.characters-section:hover::before {
    transform: scaleX(1);
}

.characters-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
    pointer-events: none;
}

/* 角色卡片特殊效果 */
.character-card {
    position: relative;
    overflow: hidden;
}

.character-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 157, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease-out;
    pointer-events: none;
}

.character-card:hover::after {
    transform: translateX(100%);
}

/* 角色卡片加载动画 */
@keyframes characterSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.character-card {
    animation: characterSlideIn 0.8s ease-out;
}

.character-card:nth-child(1) {
    animation-delay: 0.1s;
}

.character-card:nth-child(2) {
    animation-delay: 0.2s;
}

.character-card:nth-child(3) {
    animation-delay: 0.3s;
}

.character-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* 特征标签动画 */
@keyframes traitPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.trait:hover {
    background: rgba(255, 107, 157, 0.2);
    transform: translateY(-2px);
    animation: traitPulse 0.6s ease-in-out;
}

/* 角色名称装饰效果 */
.character-name::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease-out;
}

.character-card:hover .character-name::after {
    width: 30px;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .character-image::after {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    
    .characters-section {
        padding: 40px 20px;
    }
    
    .characters-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .character-image {
        height: 280px; /* 移动端也增加高度以更好地显示竖图 */
    }
    
    .character-info {
        padding: 20px;
    }
    
    .character-name {
        font-size: 1.2rem;
    }
    
    .character-desc {
        font-size: 0.95rem;
    }
    
    .trait {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
} 

/* 游戏截图动画效果 */
.gallery-grid div {
    animation: fadeInUp 0.6s ease-out;
}

.gallery-grid div:nth-child(1) {
    animation-delay: 0.1s;
}

.gallery-grid div:nth-child(2) {
    animation-delay: 0.2s;
}

.gallery-grid div:nth-child(3) {
    animation-delay: 0.3s;
}

.gallery-grid div:nth-child(4) {
    animation-delay: 0.4s;
}

.gallery-grid div:nth-child(5) {
    animation-delay: 0.5s;
}

.gallery-grid div:nth-child(6) {
    animation-delay: 0.6s;
}

/* 游戏截图加载状态 */
.gallery-grid img {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.gallery-grid img.loaded {
    opacity: 1;
}

/* 游戏截图特殊装饰效果 */
.gallery-grid div::before {
    content: '点击查看大图';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: 2;
    backdrop-filter: blur(5px);
}

.gallery-grid div:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

/* 游戏截图悬停效果改进 */
.gallery-grid div:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.gallery-grid div:hover img {
    transform: scale(1.08);
}

/* 移动端优化 */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 15px;
    }
    
    .gallery-grid div {
        min-height: 180px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }
    
    .gallery-grid div {
        min-height: 160px;
    }
    
    .gallery-grid div::before {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }
    
    .gallery-grid div {
        min-height: 200px;
    }
} 

/* 评论卡片样式优化 */
.review-card {
    background: var(--gradient-accent);
    padding: 25px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 157, 0.1);
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.review-card:hover::before {
    transform: scaleX(1);
}

/* 评论者名字样式优化 */
.reviewer-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    position: relative;
}

.reviewer-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.review-card:hover .reviewer-name::after {
    width: 100%;
}

/* 星星评分样式优化 */
.review-stars {
    color: #FFD700;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.review-stars i {
    transition: transform 0.2s ease;
}

.review-card:hover .review-stars i {
    transform: scale(1.1);
}

/* 评论内容样式优化 */
.review-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    position: relative;
    z-index: 1;
} 

/* 评论卡片动画延迟 */
.review-card:nth-child(10) {
    animation-delay: 0.1s;
}

.review-card:nth-child(11) {
    animation-delay: 0.2s;
}

.review-card:nth-child(12) {
    animation-delay: 0.3s;
}

/* 评论卡片悬停效果改进 */
.review-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
} 

/* 移动端特色项目优化 */
@media (max-width: 768px) {
    .hero-features {
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .feature-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .feature-item i {
        font-size: 1rem;
    }
    
    .feature-item span {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-features {
        gap: 10px;
        flex-direction: column;
        align-items: center;
    }
    
    .feature-item {
        width: 80%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .feature-item i {
        font-size: 1.1rem;
    }
    
    .feature-item span {
        font-size: 0.9rem;
    }
} 

/* 攻略页面动画效果 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 攻略页面交互样式 */
.guide-toggle-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.guide-toggle-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.guide-toggle-btn.expanded {
    transform: rotate(180deg);
}

.guide-section h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.guide-section h2:hover {
    color: var(--accent-color);
}

.guide-section h2:hover .guide-toggle-btn {
    background: var(--accent-color);
    color: white;
}

.guide-tips {
    transition: all 0.3s ease;
    overflow: hidden;
}

.guide-tip {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    padding: 15px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 182, 193, 0.3);
}

.guide-tip:hover {
    background: rgba(255, 182, 193, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.guide-tip h4 {
    color: var(--accent-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-tip p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* 攻略提示弹窗 */
.guide-tip-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--gradient-accent);
    color: white;
    padding: 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-large);
    z-index: 1000;
    max-width: 350px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.guide-tip-popup.show {
    transform: translateX(0);
    opacity: 1;
}

.guide-tip-popup.info {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.guide-tip-popup.warning {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.guide-tip-popup.error {
    background: linear-gradient(135deg, #F44336, #D32F2F);
}

.tip-content {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.tip-message {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.tip-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tip-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* 攻略页面高亮效果 */
@keyframes highlightSection {
    0% {
        background: rgba(255, 182, 193, 0.1);
        transform: scale(1);
    }
    50% {
        background: rgba(255, 182, 193, 0.3);
        transform: scale(1.02);
    }
    100% {
        background: rgba(255, 182, 193, 0.1);
        transform: scale(1);
    }
}

/* 攻略页面淡入动画 */
.guide-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.guide-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* 攻略搜索框样式 */
.guide-search {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    margin-bottom: 30px;
    background: white;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.guide-search:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 182, 193, 0.3);
}

.guide-search::placeholder {
    color: var(--text-secondary);
}

/* 攻略分类样式 */
.guide-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.guide-category {
    background: var(--gradient-accent);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.guide-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.guide-category:hover::before {
    left: 100%;
}

.guide-category:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-large);
}

.guide-category h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.guide-category h3:hover {
    transform: translateX(5px);
}

.guide-category h3 i {
    font-size: 1.5rem;
}

.guide-category p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-list li {
    margin: 8px 0;
    transition: all 0.3s ease;
}

.guide-list li:hover {
    transform: translateX(5px);
}

.guide-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.guide-list a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding-left: 8px;
}

.guide-list i {
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.guide-list a:hover i {
    transform: translateX(3px);
    color: var(--accent-color);
}

/* 攻略页面响应式优化 */
@media (max-width: 768px) {
    .guide-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .guide-category {
        padding: 20px;
    }
    
    .guide-category h3 {
        font-size: 1.2rem;
    }
    
    .guide-list li {
        margin: 6px 0;
    }
    
    .guide-toggle-btn {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }
    
    .guide-section h2 {
        font-size: 1.1rem;
        flex-wrap: wrap;
    }
    
    .guide-tip {
        padding: 12px;
        margin: 8px 0;
    }
    
    .guide-tip-popup {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .guide-tip-popup.show {
        transform: translateY(0);
    }
    
    .guide-search {
        max-width: none;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .guide-categories {
        gap: 15px;
    }
    
    .guide-category {
        padding: 15px;
    }
    
    .guide-category h3 {
        font-size: 1.1rem;
    }
    
    .guide-category p {
        font-size: 0.9rem;
    }
    
    .guide-list a {
        font-size: 0.9rem;
    }
    
    .guide-section h2 {
        font-size: 1rem;
    }
    
    .guide-tip h4 {
        font-size: 0.9rem;
    }
    
    .guide-tip p {
        font-size: 0.85rem;
    }
    
    .tip-content {
        padding: 12px 15px;
    }
    
    .tip-message {
        font-size: 0.85rem;
    }
} 

/* 返回首页按钮样式 */
.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    font-weight: 500;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
    box-shadow: var(--shadow-medium);
}

.back-btn i {
    font-size: 1rem;
    transition: var(--transition);
}

.back-btn:hover i {
    transform: translateX(-3px);
}

/* 子页面header容器样式调整 */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 移动端返回按钮优化 */
@media (max-width: 768px) {
    .back-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .back-btn i {
        font-size: 0.9rem;
    }
} 

 