* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    background-color: #f9f9f9;
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color)) !important;
    color: white !important;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

/* 确保header内的container不受游戏页面样式影响 */
header .container {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 30px !important;
    box-shadow: none !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

/* 确保header内的所有文字元素都是白色 */
header a,
header .logo,
header .logo-text,
header .logo-icon,
header nav a,
header nav li,
header .header-content,
header .container {
    color: white !important;
}

/* 确保header内的链接在hover时也保持可见 */
header a:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
}

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

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

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    color: white;
    gap: 10px;
}

.logo:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.logo-icon {
    font-size: 2.5rem;
    display: inline-block;
    flex-shrink: 0;
    color: currentColor;
    align-self: flex-start;
    line-height: 1;
    font-weight: 300;
    transform: translateY(-2px);
}

.logo-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover, nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1532094349884-543bc11b234d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #27ae60;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.section-title {
    text-align: center;
    margin: 2rem 0;
    color: var(--dark-color);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0.5rem auto;
    border-radius: 2px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
}

#tech-games-preview,
#science-games-preview {
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
    justify-content: center;
}

/* 首页预览卡片样式 - 缩短高度 */
#tech-games-preview .game-card,
#science-games-preview .game-card {
    max-height: 480px; /* 限制最大高度 */
}

#tech-games-preview .game-image,
#science-games-preview .game-image {
    height: 170px; /* 从200px减少到170px */
    font-size: 2.8rem; /* 稍微减小图标 */
}

#tech-games-preview .game-content,
#science-games-preview .game-content {
    padding: 1.2rem 1.25rem; /* 从1.5rem减少到1.2rem */
}

#tech-games-preview .game-title,
#science-games-preview .game-title {
    font-size: 1.2rem; /* 从1.3rem稍微减小 */
    margin-bottom: 0.5rem;
}

#tech-games-preview .game-description,
#science-games-preview .game-description {
    font-size: 0.9rem; /* 从0.95rem稍微减小 */
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 限制描述最多3行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

#tech-games-preview .game-tags,
#science-games-preview .game-tags {
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

#tech-games-preview .game-tags span,
#science-games-preview .game-tags span {
    font-size: 0.8rem; /* 稍微减小标签字体 */
    padding: 0.25rem 0.5rem;
}

.game-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%; /* 确保卡片高度一致 */
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* 信息科技页面紧凑卡片样式 */
.tech-games-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tech-games-grid-compact .game-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.tech-games-grid-compact .game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.tech-games-grid-compact .game-image {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.tech-games-grid-compact .game-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tech-games-grid-compact .game-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tech-games-grid-compact .game-description {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* 游戏卡片作者信息样式 - 底部居中 */
.game-author {
    font-size: 0.75rem;
    color: #999;
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 0;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    width: 100%;
}

.tech-games-grid-compact .game-author {
    font-size: 0.7rem !important;
    margin-top: 0.5rem !important;
    padding-top: 0.5rem !important;
}

.tech-games-grid-compact .game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.tech-games-grid-compact .game-tags span {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

.tech-games-grid-compact .game-meta {
    margin-top: auto;
}

.tech-games-grid-compact .game-actions {
    display: flex;
    gap: 0.4rem;
    width: 100%;
}

.tech-games-grid-compact .btn-play {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.tech-games-grid-compact .btn-share {
    flex-shrink: 0;
    width: 40px;
    padding: 0.4rem;
    font-size: 0.85rem;
}

.tech-games-grid-compact .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.game-image {
    height: 200px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-weight: bold;
    background-size: cover;
    background-position: center;
    font-size: 3rem;
}

.game-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1; /* 让内容区域占据剩余空间 */
}

.game-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    flex-shrink: 0; /* 标题不收缩 */
}

.game-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    flex-grow: 0; /* 不自动增长，让内容自然排列 */
    min-height: 0;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.game-meta {
    display: flex;
    justify-content: stretch;
    font-size: 0.85rem;
    color: #888;
    width: 100%;
    flex-shrink: 0;
    margin-top: auto; /* 将按钮推到底部 */
    margin-bottom: 0;
}

.game-actions {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.btn-play {
    flex: 1;
    text-align: center;
    display: block;
}

.btn-share {
    flex-shrink: 0;
    width: 44px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-share:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

.btn-share:active {
    transform: scale(0.95);
}

.share-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.btn-full {
    width: 100%;
    text-align: center;
    display: block;
}

.grade-tag, .subject-tag, .difficulty-tag, .type-tag, .interactive-tag {
    background-color: var(--light-color);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.grade-tag.primary {
    background-color: #e1f5fe;
    color: var(--primary-color);
}

.grade-tag.middle {
    background-color: #e8f5e9;
    color: var(--secondary-color);
}

.grade-tag.high {
    background-color: #ffebee;
    color: var(--accent-color);
}

.subject-tag.physics {
    background-color: #e3f2fd;
    color: #1565c0;
}

.subject-tag.chemistry {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.subject-tag.biology {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.subject-tag.earth {
    background-color: #fff3e0;
    color: #ef6c00;
}

.subject-tag.astronomy {
    background-color: #f3e5f5;
    color: #6a1b9a;
}

/* 难度标签样式 */
.difficulty-tag.easy {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.difficulty-tag.medium {
    background-color: #fff3e0;
    color: #f57c00;
}

.difficulty-tag.hard {
    background-color: #ffebee;
    color: #c62828;
}

/* 类型标签样式 */
.type-tag {
    background-color: #e1f5fe;
    color: #0277bd;
}

/* 互动标签样式 */
.interactive-tag {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

/* 分类页面样式 */
.category-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 30px;
}

.category-section {
    margin-bottom: 1.5rem;
    position: relative;
}

.category-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1), 0 1px 5px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.75rem;
    border-left: 3px solid;
    position: relative;
    overflow: hidden;
}

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

.category-header:hover::before {
    left: 100%;
}

.category-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-header:active {
    transform: translateY(0);
}

.category-title {
    font-size: 1.25rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.category-name {
    flex: 1;
}

.category-count {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.25rem 0.65rem;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    font-weight: 500;
    margin-left: 0.6rem;
}

.toggle-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    margin-left: 0.6rem;
}

.category-section[data-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.category-content {
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease-in-out, max-height 0.4s ease-in-out;
    padding: 0 0.5rem;
}

.category-content.active {
    display: block;
    opacity: 1;
    max-height: 10000px;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 关于我们页面样式 */
/* 关于页面新样式 */
.about-page-wrapper {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 60px);
    overflow: hidden;
    margin: 0;
    padding: 0;
    margin-bottom: 0;
}

/* 关于我们页面时，移除页脚的上边距 */
body.about-page footer {
    margin-top: 0;
}

.about-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    z-index: 1;
    transition: opacity 0.5s ease-in;
}

/* 背景图加载中的状态 - 使用渐变背景作为占位符 */
.about-background-loading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.8;
}

/* 背景图加载完成后的状态 */
.about-background-loaded {
    opacity: 1;
}

.about-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 60px);
    background: linear-gradient(
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.3)
    );
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    margin-bottom: 0;
}

.about-hero-text {
    width: 100%;
    max-width: none;
    text-align: center;
    color: white;
    z-index: 3;
    margin-top: -10vh;
}

.about-mission {
    margin: 0 auto;
    padding: 3rem 4rem;
    background: rgba(52, 152, 219, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(52, 152, 219, 0.15);
    animation: fadeInUp 1s ease-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 70%;
    max-width: none;
    box-sizing: border-box;
}

.about-mission h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #ffd700;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.about-mission p {
    font-size: 1.3rem;
    margin: 1rem 0;
    line-height: 1.8;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.about-mission .mission-text {
    font-size: 2.5rem;
    color: #ffd700;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.about-mission .team-members {
    font-size: 1rem;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    margin: 1.5rem 0 0 0;
    opacity: 0.9;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-hero {
    display: flex;
    min-height: 80vh;
    margin: 2rem 0;
}

.about-image {
    flex: 2;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                url('https://images.unsplash.com/photo-1532094349884-543bc11b234d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 12px 0 0 12px;
    box-shadow: var(--shadow);
}

.about-content {
    flex: 1;
    background-color: white;
    padding: 3rem;
    border-radius: 0 12px 12px 0;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.about-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin-top: 0.5rem;
    border-radius: 2px;
}

.about-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.mission-section {
    margin: 3rem 0;
}

.mission-title {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.mission-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.team-section {
    margin: 3rem 0;
}

.team-title {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

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

.team-member {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 2.5rem;
}

.member-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.member-role {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.member-desc {
    font-size: 0.9rem;
    color: #666;
}

.contact-section {
    margin: 3rem 0;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-title {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-item {
    flex: 1;
    min-width: 250px;
}

.contact-item h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
}

footer {
    background: linear-gradient(135deg, var(--dark-color), #1a252f);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-about {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    gap: 10px;
}

.footer-logo .logo-icon {
    font-size: 2.5rem;
    display: inline-block;
    flex-shrink: 0;
    color: currentColor;
    align-self: flex-start;
    line-height: 1;
    font-weight: 300;
    transform: translateY(-2px);
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-links-section .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-contact .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.qr-codes-wrapper {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.qr-code-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code-image-display {
    width: 120px;
    height: 120px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-code-image-display:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.qr-code-label {
    color: #bdc3c7;
    font-size: 0.85rem;
    margin: 0;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.contact-link-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.contact-link {
    color: #bdc3c7;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.contact-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.qr-code-popup {
    position: absolute;
    top: 70%;
    left: 100%;
    transform: translateY(-50%);
    margin-left: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.contact-link-wrapper:hover .qr-code-popup {
    opacity: 1;
    visibility: visible;
}

.qr-code-image {
    width: 120px;
    height: 120px;
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: block;
}

.copyright {
    font-size: 0.9rem;
    color: #95a5a6;
    margin: 0;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--text-color);
    font-size: 1rem;
}

/* 骨架屏 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.skeleton-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
}

.skeleton-title {
    height: 24px;
    width: 70%;
    margin-bottom: 0.5rem;
}

.skeleton-text {
    height: 16px;
    width: 100%;
    margin-bottom: 0.5rem;
}

.skeleton-text:last-child {
    width: 60%;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 主内容区域过渡效果 */
#main-content {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    min-height: 400px;
}

/* 宽屏优化 */
.wide-section {
    width: 100%;
    padding: 0 30px;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
        transition: right 0.3s ease;
        z-index: 100;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 80px 20px 20px;
        margin: 0;
    }
    
    .main-nav li {
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .main-nav a {
        display: block;
        padding: 1rem;
        border-radius: 8px;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 0;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .category-header {
        padding: 0.7rem 1rem;
        flex-direction: row;
        align-items: center;
        margin-bottom: 0.6rem;
    }
    
    .category-title {
        font-size: 1.1rem;
        flex-wrap: wrap;
        gap: 0.35rem;
    }
    
    .category-icon {
        font-size: 1.2rem;
    }
    
    .category-name {
        flex: 1;
        min-width: 0;
    }
    
    .category-count {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
        margin-left: 0.3rem;
        white-space: nowrap;
    }
    
    .toggle-icon {
        align-self: center;
        margin-top: 0;
        margin-left: 0.3rem;
        font-size: 0.8rem;
    }
    
    .category-section {
        margin-bottom: 1.2rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .game-card {
        transition: transform 0.2s, box-shadow 0.2s;
    }
    
    .game-card:active {
        transform: scale(0.98);
    }
    
    .game-image {
        height: 180px;
    }
    
    .game-content {
        padding: 1rem;
        min-height: 200px; /* 移动端减少最小高度 */
    }
    
    /* 首页预览卡片移动端样式 */
    #tech-games-preview .game-card,
    #science-games-preview .game-card {
        max-height: 420px; /* 移动端稍微增加 */
    }
    
    #tech-games-preview .game-image,
    #science-games-preview .game-image {
        height: 140px; /* 移动端稍微增加 */
        font-size: 2.2rem;
    }
    
    #tech-games-preview .game-content,
    #science-games-preview .game-content {
        padding: 1rem;
    }
    
    #tech-games-preview .game-title,
    #science-games-preview .game-title {
        font-size: 1.05rem;
    }
    
    #tech-games-preview .game-description,
    #science-games-preview .game-description {
        font-size: 0.85rem;
    }
    
    .game-title {
        font-size: 1.1rem;
    }
    
    .game-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* 信息科技页面紧凑卡片响应式 */
    .tech-games-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .tech-games-grid-compact .game-image {
        height: 100px;
        font-size: 1.8rem;
    }
    
    .tech-games-grid-compact .game-content {
        padding: 0.75rem;
    }
    
    .tech-games-grid-compact .game-title {
        font-size: 0.9rem;
    }
    
    .tech-games-grid-compact .game-description {
        font-size: 0.75rem;
    }
    
    .tech-games-grid-compact .game-tags span {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }
    
    .tech-games-grid-compact .btn-play {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .tech-games-grid-compact .btn-share {
        width: 36px;
        padding: 0.35rem;
        font-size: 0.8rem;
    }
    
    .tech-games-grid-compact .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    /* 页脚响应式 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-about {
        max-width: 100%;
    }
    
    .footer-title {
        text-align: center;
        width: 100%;
    }
    
    .footer-links-section .footer-links {
        align-items: center;
    }
    
    .footer-contact .contact-info {
        align-items: center;
    }
    
    .qr-codes-wrapper {
        gap: 1rem;
    }
    
    .qr-code-image-display {
        width: 100px;
        height: 100px;
    }
    
    .qr-code-label {
        font-size: 0.8rem;
    }
    
    footer {
        padding: 2rem 0 1rem;
    }
    
    .about-hero {
        flex-direction: column;
    }

    .about-image {
        border-radius: 12px 12px 0 0;
        height: 300px;
    }

    .about-content {
        border-radius: 0 0 12px 12px;
    }

    .about-title {
        font-size: 2rem;
    }
    
    /* 关于页面响应式 */
    .about-mission {
        padding: 2rem 1.5rem;
    }
    
    .about-mission h2 {
        font-size: 1.8rem;
    }
    
    .about-mission p {
        font-size: 1.1rem;
    }
    
    .about-mission .mission-text {
        font-size: 1.8rem;
    }
    
    .about-mission .team-members {
        font-size: 0.9rem;
        margin: 1rem 0 0 0;
    }
    
    .about-overlay {
        padding: 2rem 1rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    /* 页脚二维码响应式 */
    .qr-code-image {
        width: 100px;
        height: 100px;
    }
    
    .qr-code-popup {
        top: 70%;
        left: 100%;
        transform: translateY(-50%);
        margin-left: 8px;
    }
}

@media (min-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
    
    .tech-games-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.5rem;
    }
    
    .about-title {
        font-size: 3rem;
    }
    
    .about-text {
        font-size: 1.2rem;
    }
}

@media (min-width: 1600px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
    
    .game-image {
        height: 220px;
    }
    
    .tech-games-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .tech-games-grid-compact .game-image {
        height: 150px;
        font-size: 2.2rem;
    }
    }
    
    .feedback-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* 反馈弹窗样式 */
.feedback-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
}

.feedback-modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4px);
    z-index: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.feedback-modal-content {
    position: relative !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    width: 90% !important;
    max-width: 500px !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 2 !important;
    animation: modalSlideIn 0.3s ease-out;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 auto !important;
    /* 确保弹框在页面中间 */
    align-self: center !important;
    flex-shrink: 0 !important;
    /* 强制居中 */
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.feedback-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--light-color);
    flex-shrink: 0;
}

.feedback-modal-header h2 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.3rem;
}

.feedback-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.feedback-modal-close:hover {
    background: var(--light-color);
    color: var(--dark-color);
}

.feedback-form {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-height: 0;
}

.feedback-form-group {
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.feedback-form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.feedback-form-group select,
.feedback-form-group input,
.feedback-form-group textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 2px solid var(--light-color);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.feedback-form-group select:focus,
.feedback-form-group input:focus,
.feedback-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.feedback-form-group textarea {
    resize: vertical;
    min-height: 80px;
    max-height: 200px;
    line-height: 1.5;
}

.feedback-form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
    flex-shrink: 0;
}

.btn-cancel,
.btn-submit {
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel {
    background: var(--light-color);
    color: var(--text-color);
}

.btn-cancel:hover {
    background: #d5dbdb;
}

.btn-submit {
    background: var(--primary-color);
    color: white;
}

.btn-submit:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-submit:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.feedback-message {
    margin-top: 0.75rem;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.feedback-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.feedback-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.feedback-btn {
    transition: background 0.3s, transform 0.2s;
}

.feedback-btn:hover {
    background: #2980b9 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* 响应式：反馈弹窗 */
@media (max-width: 768px) {
    .feedback-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .feedback-modal-header {
        padding: 1rem;
    }
    
    .feedback-modal-header h2 {
        font-size: 1.25rem;
    }
    
    .feedback-form {
        padding: 1rem;
    }
    
    .feedback-form-group {
        margin-bottom: 0.9rem;
    }
    
    .feedback-form-group textarea {
        min-height: 70px;
        max-height: 150px;
    }
    
    .feedback-form-actions {
        flex-direction: column;
        margin-top: 0.75rem;
        gap: 0.6rem;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
}

/* 数据分析页面紧凑布局样式 */
.analytics-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    position: relative;
}

/* 分析页面加载提示 */
.analytics-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-radius: 8px;
}

.analytics-loading .loading-spinner {
    text-align: center;
}

.analytics-loading .loading-spinner p {
    margin-top: 1rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 500;
}

.analytics-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.analytics-header h1 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin: 0;
}

.header-total-views {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e74c3c;
    line-height: 1;
}

.total-stats-row {
    margin-bottom: 1rem;
}

.total-stats-row .total-card {
    width: 100%;
    max-width: none;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.feedback-row {
    margin-top: 1rem;
}

.feedback-row .feedback-card {
    width: 100%;
    max-width: none;
}

.stats-card-compact {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stats-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.total-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
    text-align: center;
    padding: 2rem;
    position: relative;
    min-height: 150px;
}

.stat-icon {
    font-size: 4rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0;
    padding: 0;
}

.stat-label-compact {
    font-size: 1.8rem;
    opacity: 0.95;
    margin: 0;
    padding: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
    flex-shrink: 0;
}

.stat-value-large {
    font-size: 7rem;
    font-weight: bold;
    line-height: 1;
    margin: 0;
    padding: 0;
    text-align: center;
    flex-shrink: 0;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
}

.stats-list-compact {
    max-height: 300px;
    overflow-y: auto;
}

.stat-item-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item-compact:last-child {
    border-bottom: none;
}

.stat-label-compact {
    font-size: 0.85rem;
    color: var(--text-color);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-value-compact {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-left: 0.5rem;
}

.empty-state-compact {
    text-align: center;
    padding: 2rem 1rem;
    color: #999;
}

.empty-state-compact .empty-state-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.empty-state-compact p {
    font-size: 0.85rem;
    margin: 0;
}

.feedback-card {
    grid-column: span 1;
}

.feedback-item-compact {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    cursor: pointer;
    transition: background 0.2s;
}

.feedback-item-compact:hover {
    background: #e9ecef;
}

.feedback-header-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.feedback-type-icon,
.feedback-status-icon {
    font-size: 1rem;
}

.feedback-date-compact {
    margin-left: auto;
    color: #999;
    font-size: 0.75rem;
}

.feedback-content-compact {
    font-size: 0.85rem;
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.feedback-contact-compact {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

.action-buttons-compact {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--light-color);
}

.btn-export {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-export:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* 响应式：数据分析页面 */
@media (max-width: 768px) {
    .analytics-container {
        padding: 1rem;
    }
    
    .analytics-header h1 {
        font-size: 1.3rem;
    }
    
    .header-total-views {
        font-size: 1.3rem;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .feedback-row {
        margin-top: 0.75rem;
    }
    
    .total-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
        gap: 1rem;
        min-height: auto;
    }
    
    .stat-icon {
        font-size: 3rem;
    }
    
    .stat-label-compact {
        font-size: 1.2rem;
    }
    
    .stat-value-large {
        font-size: 4rem;
    }
    
    .stats-list-compact {
        max-height: 200px;
    }
}

/* 分页控件样式 */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.pagination-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

/* 响应式：分页控件 */
@media (max-width: 768px) {
    .pagination-controls {
        gap: 0.75rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
    
    .pagination-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .pagination-info {
        font-size: 0.85rem;
        min-width: 50px;
    }
}

/* 游戏页面分享按钮样式 */
.game-share-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    white-space: nowrap;
}

.game-share-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.game-share-btn:active {
    transform: translateY(0);
}

/* 分享提示消息样式 - 现代化设计 */
.share-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.95);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #2c3e50;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    z-index: 100000;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    max-width: 90%;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    white-space: nowrap;
}

.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.share-toast-error {
    background: rgba(231, 76, 60, 0.95);
    color: white;
    border-color: rgba(231, 76, 60, 0.8);
}

/* 成功状态的图标样式 */
.share-toast:not(.share-toast-error)::before {
    content: '✓';
    width: 20px;
    height: 20px;
    background: #27ae60;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    margin-right: 0;
}

/* 错误状态的图标样式 */
.share-toast-error::before {
    content: '✕';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    color: white;
    margin-right: 0;
}

/* 悬浮分享按钮样式 */
.floating-share-btn {
    position: fixed;
    bottom: 2.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.85), rgba(93, 173, 226, 0.85));
    color: #fff;
    box-shadow: 0 15px 30px rgba(26, 82, 118, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 999;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.floating-share-btn .share-icon {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

.floating-share-btn .share-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.floating-share-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 35px rgba(26, 82, 118, 0.45);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.95), rgba(93, 173, 226, 0.95));
}

.floating-share-btn:active {
    transform: translateY(0) scale(0.98);
}

@media (max-width: 768px) {
    .floating-share-btn {
        width: 48px;
        height: 48px;
        bottom: 1.5rem;
        right: 1rem;
    }

    .floating-share-btn .share-label {
        font-size: 0.65rem;
    }
}