/* CSS变量 */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #ffd166;
    --accent-color: #06d6a0;
    --danger-color: #ef476f;
    --success-color: #06d6a0;
    --warning-color: #ffd166;
    --info-color: #118ab2;
    --dark-color: #1f2937;
    --light-color: #fff7f0;
    --gray-color: #6b7280;
    --border-color: rgba(255, 107, 107, 0.2);
    --shadow-color: rgba(17, 138, 178, 0.16);
    --gradient-primary: linear-gradient(135deg, #ff9f1c 0%, #ff6b6b 100%);
    --gradient-secondary: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    --gradient-accent: linear-gradient(135deg, #ffd166 0%, #f89f5b 100%);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: radial-gradient(circle at top right, rgba(255, 209, 102, 0.3), transparent 40%), var(--light-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 107, 107, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* 主要内容 */
main {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* 英雄区域 - Fruit Connect 3 */
.hero {
    position: relative;
    color: #fff;
    padding: 120px 0 100px;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    z-index: 0;
}

.hero::before {
    top: -140px;
    left: -90px;
}

.hero::after {
    bottom: -160px;
    right: -120px;
}

.hero-fruit-connect {
    background: radial-gradient(circle at top left, rgba(255, 209, 102, 0.35), transparent 60%), var(--gradient-primary);
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 24px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: #fff;
    color: var(--primary-color);
    font-weight: 700;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 14px 30px rgba(255, 107, 107, 0.25);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(255, 107, 107, 0.28);
}

@media (max-width: 768px) {
    .hero { padding: 100px 0 80px; }
    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1.05rem; }
}

/* 游戏展示区域 */
.games-section {
    padding: 40px 0;
    background: var(--light-color);
}

/* 直接嵌入游戏区域 */
.embed-section {
    padding: 60px 0 20px;
    background: #ffffff;
}

.embed-pretitle {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.embed-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--dark-color);
}

.embed-description {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 32px;
    color: var(--gray-color);
    font-size: 1.05rem;
}

.embed-wrapper {
    position: relative;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    background: radial-gradient(circle at top left, rgba(255, 209, 102, 0.25), transparent 70%);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(255, 107, 107, 0.18);
    border: 6px solid rgba(255, 255, 255, 0.85);
    aspect-ratio: 4 / 3;
}

.embed-wrapper iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@supports not (aspect-ratio: 4 / 3) {
    .embed-wrapper {
        height: 0;
        padding-top: 75%;
    }

    .embed-wrapper iframe {
        position: absolute;
        inset: 0;
        height: 100%;
    }
}

.embed-footnote {
    text-align: center;
    margin-top: 20px;
    color: var(--gray-color);
    font-size: 0.95rem;
}

.embed-footnote i {
    color: var(--accent-color);
    margin-right: 6px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

/* 游戏控制区域 */
.games-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.search-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-input::placeholder {
    color: var(--gray-color);
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--dark-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 游戏统计 */
.games-stats {
    text-align: center;
    margin-bottom: 30px;
}

.stats-text {
    color: var(--gray-color);
    font-size: 0.9rem;
}

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

.game-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.game-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--gradient-primary);
}

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

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

.game-image.fallback {
    background: var(--gradient-secondary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-image.fallback::before {
    content: '\f11b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    animation: pulse 2s infinite;
}

.game-image.fallback::after {
    content: '游戏';
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.game-info {
    padding: 20px;
}

.game-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.game-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.game-description {
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 加载更多按钮 */
.load-more-container {
    text-align: center;
}

.load-more-btn {
    padding: 15px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.load-more-btn:hover {
    background: #5855eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* 分类展示区域 */
.categories-section {
    padding: 60px 0;
    background: white;
}

.categories-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--dark-color);
}

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

.category-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.category-icon i {
    font-size: 2rem;
    color: white;
}

.category-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.category-card p {
    color: var(--gray-color);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.category-count {
    display: inline-block;
    padding: 5px 15px;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

/* 关于区域 */
.about-section {
    padding: 60px 0;
    background: var(--light-color);
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    color: var(--gray-color);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.features {
    display: grid;
    gap: 30px;
}

/* Game Features 区块 */
.features-section {
    padding: 80px 0;
    background: #ffffff;
}

.features-header {
    text-align: center;
    margin-bottom: 40px;
}

.features-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--dark-color);
}

.features-subtitle {
    color: var(--gray-color);
    margin-top: 12px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.feature-card {
    position: relative;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: 0 24px 60px rgba(17, 138, 178, 0.18);
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 80px rgba(17, 138, 178, 0.22);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    color: #fff;
    font-size: 1.6rem;
}

.features-fruit-connect .feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 107, 107, 0.25));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--gray-color);
    line-height: 1.75;
}

@media (max-width: 992px) {
    .feature-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .feature-cards { grid-template-columns: 1fr; }
}

/* Play on Any Device 区块 */
.devices-section {
    padding: 80px 0;
    background: var(--light-color);
}

.devices-header {
    text-align: center;
    margin-bottom: 40px;
}

.devices-header h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--dark-color);
}

.devices-subtitle {
    color: var(--gray-color);
    margin-top: 10px;
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.device-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 45px rgba(17, 138, 178, 0.14);
    padding: 26px;
    border: 1px solid rgba(17, 138, 178, 0.12);
}

.device-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.device-desc {
    color: var(--gray-color);
    line-height: 1.7;
}
@media (max-width: 992px) { .devices-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .devices-grid { grid-template-columns: 1fr; } }

/* About the Game 区块 */
.about-game-section {
    padding: 80px 0;
    background: #ffffff;
}

.about-game-header {
    text-align: center;
    margin-bottom: 50px;
}

.about-game-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--dark-color);
}

.about-game-subtitle {
    color: var(--gray-color);
    margin-top: 12px;
}

.about-game-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 36px;
    align-items: start;
}

.about-game-text p {
    color: #374151;
    margin-bottom: 18px;
    line-height: 1.8;
}

.about-game-meta {
    list-style: none;
    padding-left: 0;
    margin: 0;
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 55px rgba(248, 159, 91, 0.24);
    padding: 24px 28px;
    border: 1px solid rgba(255, 209, 102, 0.28);
}

.about-game-meta li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(248, 159, 91, 0.25);
    color: var(--dark-color);
}
.about-game-meta li:last-child { border-bottom: none; }
.meta-label { color: var(--accent-color); font-weight: 700; margin-right: 6px; }
@media (max-width: 992px) { .about-game-content { grid-template-columns: 1fr; } }
/* How to Play 区块 */
.howto-section {
    padding: 80px 0;
    background: var(--light-color);
}

.howto-header {
    text-align: center;
    margin-bottom: 50px;
}

.howto-header h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--dark-color);
}

.howto-subtitle {
    color: var(--gray-color);
    margin-top: 12px;
}

.howto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.howto-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 22px 50px rgba(255, 107, 107, 0.18);
    padding: 32px;
    border: 1px solid rgba(255, 107, 107, 0.12);
    transition: transform .2s ease, box-shadow .2s ease;
}

.howto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(255, 107, 107, 0.22);
}

.howto-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.howto-title i {
    color: var(--accent-color);
}

.howto-list {
    color: var(--gray-color);
    line-height: 1.8;
    font-size: 1rem;
}

.howto-list.numbered {
    padding-left: 20px;
}

.howto-list.bulleted {
    list-style: none;
    padding-left: 0;
}

.howto-list.bulleted li {
    margin: 8px 0;
    position: relative;
    padding-left: 18px;
}

.howto-list.bulleted li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    position: absolute;
    left: 0;
    top: 10px;
}

.howto-list .label {
    color: var(--dark-color);
    font-weight: 700;
}

@media (max-width: 768px) {
    .howto-grid { grid-template-columns: 1fr; }
}

.feature {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.feature i {
    font-size: 2rem;
    color: var(--primary-color);
    width: 50px;
    text-align: center;
}

.feature h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.feature p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* 游戏模态框 */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.game-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-color);
    cursor: pointer;
    padding: 5px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

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

.modal-body {
    padding: 20px;
}

.modal-body iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: var(--radius-md);
}

/* 页脚 */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition);
        box-shadow: 0 4px 6px var(--shadow-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .games-controls {
        gap: 15px;
    }

    .filter-container {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modal-body iframe {
        height: 400px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .modal-body {
        padding: 10px;
    }

    .modal-body iframe {
        height: 300px;
    }
}

/* 懒加载动画 */
.lazy-load {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.lazy-load.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* 波纹效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn, .timer-btn, .filter-btn {
    position: relative;
    overflow: hidden;
}

/* 游戏合集页面 */
.page-hero {
    padding: 140px 0 80px;
    background: radial-gradient(circle at top left, rgba(17, 138, 178, 0.18), transparent 55%), var(--gradient-secondary);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.25), transparent 55%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.games-page-hero .page-hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-hero-title {
    font-size: 2.8rem;
    margin: 18px 0 12px;
    font-weight: 800;
}

.page-hero-description {
    max-width: 660px;
    margin: 0 auto;
    font-size: 1.1rem;
    opacity: 0.92;
}

.snakes-hero {
    background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 55%),
                linear-gradient(135deg, #0f172a, #0ea5e9);
}

.snakes-grid .game-card {
    border: 1px solid rgba(14, 165, 233, 0.15);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.snakes-grid .game-category {
    background: rgba(14, 165, 233, 0.12);
    color: #0ea5e9;
}

.game-detail-section {
    padding: 80px 0;
}

.game-detail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: center;
}

.game-detail:nth-child(even) .game-detail-text {
    order: 2;
}

.game-detail-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(17, 138, 178, 0.12);
    color: var(--info-color);
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 18px;
}

.game-detail h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.game-detail p {
    font-size: 1.05rem;
    color: var(--gray-color);
}

.game-detail-embed {
    width: 100%;
}

.responsive-iframe {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(17, 138, 178, 0.18);
    background: #000;
}

.responsive-iframe.wide {
    padding-bottom: 56.25%;
}

.responsive-iframe iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 992px) {
    .game-detail {
        grid-template-columns: 1fr;
    }

    .game-detail:nth-child(even) .game-detail-text {
        order: 0;
    }

    .page-hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .game-detail-section {
        padding: 60px 0;
    }

    .page-hero {
        padding: 120px 0 70px;
    }

    .page-hero-description {
        font-size: 1rem;
    }
}


/* Landing navbar overrides */
.landing-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}

.landing-navbar .nav-container {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 80px;
}

.nav-brand {
    text-decoration: none;
}

.brand-icon {
    font-size: 2rem;
    line-height: 1;
}

.brand-labels {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
}

.brand-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray-color);
}

.nav-search {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(17, 138, 178, 0.12);
    border-radius: 999px;
    padding: 10px 16px;
    box-shadow: 0 10px 25px rgba(17, 138, 178, 0.08);
}

.nav-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-color);
    outline: none;
}

.nav-search input::placeholder {
    color: rgba(31, 41, 55, 0.45);
}

.nav-search button {
    border: none;
    background: var(--gradient-primary);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(255, 107, 107, 0.25);
}

.landing-navbar .nav-menu {
    display: flex;
    align-items: center;
    gap: 18px;
}

.landing-navbar .nav-link {
    font-weight: 600;
    color: rgba(31, 41, 55, 0.75);
    padding: 10px 14px;
    border-radius: 999px;
    transition: var(--transition);
}

.landing-navbar .nav-link:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 107, 0.1);
}

.landing-main {
    padding: 120px 0 80px;
}

/* Grid layout */
.hub-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    gap: 32px;
    padding-bottom: 80px;
}

.game-showcase {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.game-showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.breadcrumb {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(31, 41, 55, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tag-list {
    display: flex;
    gap: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: rgba(17, 138, 178, 0.12);
    color: var(--info-color);
    font-weight: 600;
    border-radius: 999px;
    font-size: 0.78rem;
}

.game-stage {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.72) 100%);
    border-radius: var(--radius-xl);
    box-shadow: 0 40px 60px rgba(17, 138, 178, 0.14);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.stage-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.stage-title h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-top: 8px;
}

.stage-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
}

.stage-pill.live {
    background: rgba(6, 214, 160, 0.15);
    color: var(--accent-color);
}

.stage-actions {
    display: flex;
    gap: 12px;
}

.stage-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(17, 138, 178, 0.12);
    color: var(--info-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stage-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(17, 138, 178, 0.18);
}

.stage-btn.secondary {
    background: rgba(31, 41, 55, 0.08);
    color: rgba(31, 41, 55, 0.75);
}

.stage-player {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(255, 209, 102, 0.32), transparent 55%), #f8fafc;
    padding: 16px;
}

.stage-player iframe {
    width: 100%;
    height: clamp(320px, 55vw, 675px);
    border-radius: var(--radius-md);
    border: none;
}

.stage-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.meta-primary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.meta-rating,
.meta-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
}

.meta-rating {
    background: rgba(255, 107, 107, 0.12);
    color: var(--primary-color);
}

.meta-status {
    background: rgba(6, 214, 160, 0.15);
    color: var(--accent-color);
}

.meta-description {
    color: rgba(31, 41, 55, 0.72);
    font-size: 0.98rem;
}

/* Details */
.game-details {
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: 0 25px 45px rgba(255, 107, 107, 0.14);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.details-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 107, 107, 0.1);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: 0 12px 24px rgba(17, 138, 178, 0.08);
}

.details-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.details-card ul {
    list-style: none;
    display: grid;
    gap: 8px;
    color: rgba(31, 41, 55, 0.7);
    font-size: 0.95rem;
}

.details-card strong {
    color: var(--dark-color);
}

/* Sidebar */
.hub-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 20px 30px rgba(17, 138, 178, 0.12);
    border: 1px solid rgba(17, 138, 178, 0.08);
}

.sidebar-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.discovery-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.discovery-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: rgba(31, 41, 55, 0.78);
    font-weight: 600;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    transition: background 0.2s ease, transform 0.2s ease;
}

.discovery-list a:hover {
    background: rgba(255, 209, 102, 0.18);
    transform: translateX(4px);
}

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

.sidebar-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--info-color);
    text-decoration: none;
}

.speed-picks {
    display: grid;
    gap: 16px;
}

.pick-card {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(17, 138, 178, 0.08);
}

.pick-thumb {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.4), rgba(255, 209, 102, 0.6));
}

.pick-thumb.puzzle {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.pick-thumb.adventure {
    background: linear-gradient(135deg, #10b981, #14b8a6);
}

.pick-thumb.arcade {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.pick-info h4 {
    font-size: 1rem;
    font-weight: 700;
}

.pick-info p {
    font-size: 0.85rem;
    color: rgba(31, 41, 55, 0.6);
}

.pick-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.12);
    color: var(--primary-color);
    text-decoration: none;
}

.news-card .news-list {
    list-style: none;
    display: grid;
    gap: 14px;
}

.news-list li {
    display: grid;
    gap: 4px;
}

.news-date {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(31, 41, 55, 0.45);
}

.news-list a {
    text-decoration: none;
    font-weight: 600;
    color: rgba(31, 41, 55, 0.82);
}

/* Footer */
.site-footer {
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(17, 138, 178, 0.1);
    text-align: center;
}

.site-footer p {
    color: rgba(31, 41, 55, 0.6);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1200px) {
    .hub-grid {
        grid-template-columns: 1fr;
    }

    .hub-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hub-sidebar .sidebar-card {
        flex: 1 1 320px;
    }

    .game-showcase-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 992px) {
    .landing-navbar .nav-container {
        flex-wrap: wrap;
        gap: 16px;
        height: auto;
        padding: 20px;
    }

    .nav-search {
        order: 3;
        width: 100%;
    }

    .landing-navbar .nav-menu {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .landing-navbar .nav-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        background: rgba(255, 255, 255, 0.96);
        border-radius: var(--radius-md);
        padding: 16px;
        border: 1px solid rgba(31, 41, 55, 0.08);
    }

    .landing-navbar .nav-menu.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .stage-toolbar,
    .stage-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .stage-actions {
        width: 100%;
    }

    .stage-btn {
        width: 100%;
        justify-content: center;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .hub-sidebar {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .landing-main {
        padding-top: 100px;
    }

    .stage-player {
        padding: 6px;
    }

    .stage-player iframe {
        height: clamp(280px, 70vw, 520px);
    }
}

/* Fruit Connect landing enhancements */
.hero-copy {
    max-width: 760px;
    text-align: center;
}

.hero-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 18px;
    font-size: 0.75rem;
}

.hero-description {
    font-size: 1.05rem;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 16px;
    font-weight: 600;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.trust-signals {
    padding: 60px 0;
    background: #fff7f0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.trust-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 16px 35px rgba(255, 107, 107, 0.12);
    text-align: center;
}

.trust-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.trust-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.trust-card p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

.how-to-play {
    padding: 70px 0;
    background: #ffffff;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.how-card {
    background: #fff7f0;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 12px 30px rgba(17, 138, 178, 0.08);
}

.how-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.how-card p {
    color: var(--gray-color);
}

.content-section {
    padding: 70px 0;
    background: #fff;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.content-grid article p {
    color: var(--gray-color);
    margin-bottom: 18px;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.related-list a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
}

.related-list a:hover {
    text-decoration: underline;
}

.faq-section {
    padding: 70px 0;
    background: #fff7f0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.faq-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 10px 24px rgba(239, 71, 111, 0.12);
}

.faq-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.faq-card p {
    color: var(--gray-color);
}

@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
    }
}

.feature-list,
.info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: grid;
    gap: 12px;
}

.feature-list li,
.info-list li {
    background: rgba(255, 209, 102, 0.15);
    border-left: 4px solid var(--primary-color);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--dark-color);
}

.info-list strong {
    color: var(--primary-color);
}

.sidebar-card {
    background: #fff7f0;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 12px 28px rgba(17, 138, 178, 0.08);
    margin-top: 20px;
}

.sidebar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.game-play-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.game-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255, 107, 107, 0.25);
}

.game-category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    margin-bottom: 10px;
}
