/* ============================================= */
/* 游戏核心组件 */
/* ============================================= */

/* 游戏板 */
#board {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    gap: 5px;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 350px;
}

.row {
    display: grid;
    grid-template-columns: repeat(var(--word-length, 5), 1fr);
    gap: 5px;
}

.tile {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid var(--tile-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.2s;
}

.tile.filled {
    border-color: #565758;
    animation: pop 0.1s;
}

.tile.correct {
    background-color: var(--correct-color);
    border-color: var(--correct-color);
    color: white;
}

.tile.present {
    background-color: var(--present-color);
    border-color: var(--present-color);
    color: white;
}

.tile.absent {
    background-color: var(--absent-color);
    border-color: var(--absent-color);
    color: white;
}

.tile.flip {
    animation: flip 0.6s ease;
}

/* 键盘 */
#keyboard {
    width: 100%;
    max-width: var(--max-width);
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.key {
    background-color: var(--key-bg);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    padding: 1rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    flex: 1;
    max-width: var(--key-size);
    transition: all 0.1s;
}

.key:hover {
    opacity: 0.8;
}

.key:active {
    transform: scale(0.95);
}

.key.wide {
    max-width: 65px;
    font-size: 0.75rem;
}

.key.correct {
    background-color: var(--correct-color);
}

.key.present {
    background-color: var(--present-color);
}

.key.absent {
    background-color: var(--absent-color);
}

/* 游戏操作 */
.game-actions {
    display: flex;
    gap: 12px;
    margin: 8px 0;
    width: 100%;
    max-width: var(--max-width);
    justify-content: center;
}

/* 统计组件 */
.stats-container {
    text-align: center;
}

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

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

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.75rem;
    color: #818384;
}

/* 帮助示例 */
.help-section {
    margin-bottom: 2rem;
}

.help-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.help-examples {
    margin-top: 2rem;
}

.help-examples h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.example-item {
    margin-bottom: 1.5rem;
}

.example-row {
    display: flex;
    gap: 5px;
    margin-bottom: 0.75rem;
}

.example-tile {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
}

.example-tile.correct {
    background-color: var(--correct-color);
    border-color: var(--correct-color);
    color: white;
}

.example-tile.present {
    background-color: var(--present-color);
    border-color: var(--present-color);
    color: white;
}

.example-tile.absent {
    background-color: var(--absent-color);
    border-color: var(--absent-color);
    color: white;
}

.example-text {
    color: var(--text-color);
    line-height: 1.6;
}

.example-text strong {
    font-weight: 700;
}

/* 创建游戏覆盖层 */
.create-game-section {
    margin-bottom: 1.5rem;
}

.create-game-section p {
    margin-bottom: 1rem;
    line-height: 1.5;
    color: var(--text-color);
}

.share-link-container {
    margin: 1.5rem 0;
}

.share-link-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.link-input-group {
    display: flex;
    gap: 0.5rem;
}

#shareLink {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 0.875rem;
}

.game-options {
    margin-top: 1.5rem;
}

/* ============================================= */
/* 内容区块 */
/* ============================================= */

.content-sections {
    width: 100%;
    background: var(--bg-color);
}

/* 游戏说明部分 */
.how-to-play-section {
    width: 100%;
    padding: 6rem 2rem;
    background: var(--bg-color);
}

.how-to-play-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    text-align: center;
}

.how-to-play-section h2 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-weight: 700;
    background: linear-gradient(135deg, var(--correct-color), var(--present-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-rules-intro {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.intro-text {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9;
    font-weight: 300;
}

/* 步骤网格 */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 6rem;
    align-items: start;
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
}

.step-card {
    background: var(--modal-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem 2rem;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 450px;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--correct-color), var(--present-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--correct-color);
}

.step-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--correct-color), #4a7c46);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(83, 141, 78, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.step-header h3 {
    font-size: 1.6rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 600;
}

.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.step-content p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.15rem;
}

/* 颜色示例 */
.color-examples {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0 auto;
    max-width: 300px;
}

.color-example {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
    justify-content: flex-start;
}

.color-tile {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.color-tile.correct {
    background: var(--correct-color);
}

.color-tile.present {
    background: var(--present-color);
}

.color-tile.absent {
    background: var(--absent-color);
}

.color-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1;
}

.color-info strong {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.color-info span {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 1rem;
    line-height: 1.4;
}

/* 步骤2特定调整 */
.step-card:nth-child(2) .step-content {
    justify-content: flex-start;
}

.step-card:nth-child(2) .step-visual {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

/* 示例板 */
.step-visual {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.how-to-play-board {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
    justify-content: center;
    align-items: center;
}

.how-to-play-row {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.how-to-play-tile {
    width: 55px;
    height: 55px;
    border: 2px solid var(--tile-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.how-to-play-tile.filled {
    border-color: #565758;
    background: rgba(86, 87, 88, 0.1);
    animation: pop 0.2s ease;
}

.how-to-play-tile.correct {
    background: var(--correct-color);
    border-color: var(--correct-color);
    color: white;
}

.how-to-play-tile.present {
    background: var(--present-color);
    border-color: var(--present-color);
    color: white;
}

.how-to-play-tile.absent {
    background: var(--absent-color);
    border-color: var(--absent-color);
    color: white;
}

/* 键盘示例 */
.how-to-play-keyboard {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    display: block;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    overflow: hidden;
}

.how-to-play-keyboard-row {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 6px;
    flex-wrap: nowrap;
}

.how-to-play-key {
    width: 28px;
    height: 38px;
    background: var(--key-bg);
    color: var(--text-color);
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.how-to-play-key.absent {
    background: var(--absent-color);
    color: white;
}

.how-to-play-key.correct {
    background: var(--correct-color);
    color: white;
}

.how-to-play-key.present {
    background: var(--present-color);
    color: white;
}

/* 完整示例 */
.complete-example {
    text-align: center;
}

.example-caption {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-top: 2rem;
    font-weight: 500;
    background: var(--modal-bg);
    padding: 1rem 2rem;
    border-radius: 10px;
    display: inline-block;
    border: 1px solid var(--border-color);
}

/* 游戏特性 */
.game-features {
    margin-bottom: 6rem;
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(83, 141, 78, 0.05) 0%, rgba(181, 159, 59, 0.05) 100%);
    border-radius: 30px;
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
}

.game-features h3 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-color);
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.feature-item {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--modal-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--correct-color);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: var(--correct-color);
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.feature-item h4 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.feature-item p {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* 专业提示 */
.pro-tips {
    margin-bottom: 6rem;
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
}

.pro-tips h3 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-color);
    font-weight: 700;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.tip-item {
    background: var(--modal-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: left;
    transition: all 0.4s ease;
    position: relative;
}

.tip-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--correct-color), var(--present-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.tip-item:hover::after {
    transform: scaleX(1);
}

.tip-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.tip-item h4 {
    color: var(--correct-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.tip-item p {
    color: var(--text-color);
    line-height: 1.7;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* 召唤行动 */
.play-now-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--modal-bg) 0%, rgba(83, 141, 78, 0.1) 100%);
    border: 3px solid var(--correct-color);
    border-radius: 25px;
    padding: 5rem 4rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.play-now-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(83, 141, 78, 0.1), transparent 30%);
    animation: rotate 10s linear infinite;
}

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

.play-now-cta > * {
    position: relative;
    z-index: 1;
}

.play-now-cta h3 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-weight: 700;
}

.play-now-cta p {
    font-size: 1.4rem;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* 其他游戏部分 */
.other-games-section {
    width: 100%;
    padding: 6rem 2rem;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.other-games-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    text-align: center;
}

.other-games-section h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-weight: 700;
    background: linear-gradient(135deg, var(--present-color), var(--correct-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.other-game-card {
    background: var(--modal-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none;
    color: var(--text-color);
    display: block;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.other-game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--correct-color);
    text-decoration: none;
    color: var(--text-color);
}

.other-game-image {
    position: relative;
    width: 100%;
    height: auto;
    overflow: visible;
    background: transparent;
    padding: 20px 0 10px;
    text-align: center;
}

.other-game-image img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}

.other-game-overlay {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.other-game-number {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.other-game-content {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}

.other-game-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.3;
}

.other-game-description {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.4;
}

/* 轮播控制 */
.other-games-carousel {
    position: relative;
}

.other-games-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.other-games-carousel-btn {
    background: var(--key-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
}

.other-games-carousel-btn:hover {
    background: var(--correct-color);
    border-color: var(--correct-color);
    color: white;
    transform: translateY(-2px);
}

.other-games-carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.other-games-carousel-btn:disabled:hover {
    background: var(--key-bg);
    border-color: var(--border-color);
    color: var(--text-color);
    transform: none;
}

.other-games-carousel-btn svg {
    width: 24px;
    height: 24px;
}

.other-games-indicators {
    display: flex;
    gap: 0.75rem;
}

.other-games-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.other-games-indicator.active {
    background: var(--correct-color);
    transform: scale(1.2);
}

.other-games-indicator:hover {
    background: var(--present-color);
}

/* ============================================= */
/* 响应式设计 - 主游戏页面 */
/* ============================================= */

/* 大平板设备 (1024px - 1200px) */
@media (max-width: 1200px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .other-games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .how-to-play-section,
    .other-games-section {
        padding: 5rem 2rem;
    }
}

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .how-to-play-section,
    .other-games-section {
        padding: 4rem 1.5rem;
    }

    .how-to-play-section h2 {
        font-size: 2.8rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 800px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 800px;
    }

    .other-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .intro-text {
        font-size: 1.3rem;
    }

    .game-features h3,
    .pro-tips h3 {
        font-size: 2.4rem;
    }

    .play-now-cta {
        padding: 4rem 3rem;
    }

    .play-now-cta h3 {
        font-size: 2.4rem;
    }

    .play-now-cta p {
        font-size: 1.2rem;
    }

    .other-games-section h2 {
        font-size: 2.5rem;
    }

    .other-game-image {
        height: 140px;
    }

    .other-game-content {
        padding: 1.25rem;
    }

    .other-game-title {
        font-size: 1.2rem;
    }

    /* 平板上的颜色示例调整 */
    .color-examples {
        max-width: 250px;
    }

    .color-tile {
        width: 50px;
        height: 50px;
    }

    .color-info strong {
        font-size: 1.1rem;
    }

    .color-info span {
        font-size: 0.9rem;
    }
}

/* 手机设备 (480px - 768px) */
@media (max-width: 768px) {
    .how-to-play-section,
    .other-games-section {
        padding: 3rem 1rem;
    }

    .how-to-play-section h2 {
        font-size: 2.2rem;
    }

    .step-card {
        padding: 2.5rem 1.5rem;
    }

    .step-header h3 {
        font-size: 1.4rem;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .feature-item {
        padding: 2.5rem 1.5rem;
    }

    .game-features h3,
    .pro-tips h3 {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .intro-text {
        font-size: 1.1rem;
    }

    .play-now-cta {
        padding: 3rem 2rem;
        margin: 0 1rem;
    }

    .play-now-cta h3 {
        font-size: 2rem;
    }

    .play-now-cta p {
        font-size: 1.1rem;
    }

    .btn-primary {
        padding: 1.2rem 3rem;
        font-size: 1.2rem;
    }

    .other-games-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .other-games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .other-game-image {
        height: 120px;
    }

    .other-game-content {
        padding: 1rem;
    }

    .other-game-title {
        font-size: 1.1rem;
    }

    .other-game-description {
        font-size: 0.85rem;
    }

    .other-games-carousel-controls {
        gap: 1rem;
    }

    .other-games-carousel-btn {
        width: 45px;
        height: 45px;
        padding: 0.5rem;
    }

    /* 平板上的键盘调整 */
    .step-card:nth-child(3) .how-to-play-key {
        width: 32px;
        height: 42px;
        font-size: 0.85rem;
    }

    /* 手机上的颜色示例调整 */
    .color-examples {
        max-width: 220px;
    }

    .color-tile {
        width: 45px;
        height: 45px;
    }

    .color-info strong {
        font-size: 1rem;
    }

    .color-info span {
        font-size: 0.85rem;
    }
}

/* 小屏手机设备 (< 480px) */
@media (max-width: 480px) {
    .how-to-play-section,
    .other-games-section {
        padding: 2rem 0.5rem;
    }

    .how-to-play-section h2 {
        font-size: 1.8rem;
    }

    .step-card {
        padding: 2rem 1rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .how-to-play-tile {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .color-tile {
        width: 45px;
        height: 45px;
    }

    .how-to-play-key {
        width: 32px;
        height: 45px;
        font-size: 0.9rem;
    }

    .feature-icon {
        font-size: 2.8rem;
        height: 70px;
    }

    .feature-item h4 {
        font-size: 1.3rem;
    }

    .tip-item {
        padding: 2rem 1.5rem;
    }

    .tip-item h4 {
        font-size: 1.3rem;
    }

    .play-now-cta {
        padding: 2.5rem 1.5rem;
    }

    .play-now-cta h3 {
        font-size: 1.8rem;
    }

    .play-now-cta p {
        font-size: 1rem;
    }

    .other-games-section h2 {
        font-size: 1.8rem;
    }

    .other-games-grid {
        max-width: 100%;
    }

    .other-game-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .other-games-carousel-btn {
        width: 40px;
        height: 40px;
    }

    .other-games-carousel-btn svg {
        width: 20px;
        height: 20px;
    }

    /* 小屏手机上的键盘调整 */
    .step-card:nth-child(3) .how-to-play-key {
        width: 22px;
        height: 32px;
        font-size: 0.7rem;
    }

    .step-card:nth-child(3) .how-to-play-keyboard-row {
        gap: 2px;
    }

    .step-card:nth-child(3) .how-to-play-keyboard {
        padding: 0.5rem;
    }

    /* 小屏手机上的颜色示例调整 */
    .color-examples {
        max-width: 200px;
        gap: 1rem;
    }

    .color-example {
        gap: 0.8rem;
    }

    .color-tile {
        width: 40px;
        height: 40px;
    }

    .color-info strong {
        font-size: 0.9rem;
    }

    .color-info span {
        font-size: 0.8rem;
    }
}

/* 特别小的屏幕 */
@media (max-width: 360px) {
    /* 特小屏幕上的颜色示例调整 */
    .color-examples {
        max-width: 180px;
    }

    .color-tile {
        width: 35px;
        height: 35px;
    }

    .color-info strong {
        font-size: 0.85rem;
    }

    .color-info span {
        font-size: 0.75rem;
    }
}

/* 超大屏幕设备 (> 1600px) */
@media (min-width: 1600px) {
    .how-to-play-container,
    .other-games-container {
        max-width: var(--content-max-width);
    }

    .steps-grid {
        gap: 3.5rem;
    }

    .features-grid {
        gap: 3.5rem;
    }

    .step-card {
        padding: 4rem 3rem;
    }

    .feature-item {
        padding: 4rem 3rem;
    }

    .other-games-grid {
        gap: 2.5rem;
    }

    .other-game-image {
        height: 180px;
    }
}

/* 暗色/亮色模式适配 */
body.light-mode .step-card,
body.light-mode .feature-item,
body.light-mode .tip-item,
body.light-mode .play-now-cta,
body.light-mode .other-game-card {
    background: #ffffff;
    border-color: #e1e5e9;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

body.light-mode .step-card:hover,
body.light-mode .feature-item:hover,
body.light-mode .tip-item:hover,
body.light-mode .other-game-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--correct-color);
}

body.light-mode .game-features {
    background: linear-gradient(135deg, rgba(83, 141, 78, 0.03) 0%, rgba(181, 159, 59, 0.03) 100%);
}

body.light-mode .play-now-cta {
    background: linear-gradient(135deg, #ffffff 0%, rgba(83, 141, 78, 0.05) 100%);
}

body.light-mode .other-game-image {
    background: #f8f9fa;
}

/* ============================================= */
/* SEO Content Section Styles */
/* ============================================= */

.seo-content-section {
    background: var(--bg-color);
    padding: 6rem 2rem;
    border-top: 2px solid var(--border-color);
}

.seo-content-section .container {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

/* What is Wordle Unlimited Section */
.content-block {
    margin-bottom: 5rem;
    text-align: center;
    padding: 3rem;
    background: var(--modal-bg);
    border-radius: 20px;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    width: var(--card-width-single);
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
}

.content-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--correct-color), var(--present-color));
}

.content-block h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-weight: 700;
    background: linear-gradient(135deg, var(--correct-color), var(--present-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-block p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-color);
    opacity: 0.9;
    max-width: 900px;
    margin: 0 auto;
}

.content-block strong {
    color: var(--correct-color);
    font-weight: 600;
}

/* Features List Grid */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
}

.seo-feature-card {
    background: var(--modal-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.seo-feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--correct-color), var(--present-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.seo-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--correct-color);
}

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

.seo-feature-card h3 {
    font-size: 1.3rem !important;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.3;
}

.seo-feature-card p {
    color: var(--text-color);
    opacity: 0.85;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Game Rules Summary */
.rules-summary {
    text-align: center;
    max-width: var(--content-max-width);
    margin: 0 auto;
    background: var(--modal-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    width: var(--card-width-single);
}

.rules-summary h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-weight: 700;
    background: linear-gradient(135deg, var(--present-color), var(--correct-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rules-summary > div {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.rules-summary h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.rules-summary p {
    margin-bottom: 2rem;
    color: var(--text-color);
    opacity: 0.85;
    font-size: 1.05rem;
    line-height: 1.7;
}

.rules-summary ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.rules-summary ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-color);
    font-size: 1.05rem;
    padding: 1rem;
    background: rgba(83, 141, 78, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.rules-summary ul li:hover {
    background: rgba(83, 141, 78, 0.1);
    transform: translateX(5px);
}

.rules-summary ul li span {
    width: 30px;
    height: 30px;
    display: inline-block;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.rules-summary ul li strong {
    color: var(--text-color);
    font-weight: 600;
    margin-right: 0.5rem;
}

.rules-summary > div:last-child {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.rules-summary a {
    color: var(--correct-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.rules-summary a:hover {
    color: var(--present-color);
    transform: translateX(5px);
}

.rules-summary a::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.rules-summary a:hover::after {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .seo-content-section {
        padding: 4rem 1.5rem;
    }

    .content-block h2 {
        font-size: 2.3rem;
    }

    .content-block p {
        font-size: 1.1rem;
    }

    .features-list {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .rules-summary h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .seo-content-section {
        padding: 3rem 1rem;
    }

    .content-block {
        padding: 2rem;
        width: 90%;
    }

    .content-block h2 {
        font-size: 2rem;
    }

    .content-block p {
        font-size: 1rem;
    }

    .seo-feature-card {
        padding: 2rem;
    }

    .seo-feature-card h3 {
        font-size: 1.3rem;
    }

    .rules-summary {
        padding: 2rem;
        width: 90%;
    }

    .rules-summary h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .rules-summary h4 {
        font-size: 1.2rem;
    }

    .rules-summary ul li {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .content-block h2 {
        font-size: 1.8rem;
    }

    .rules-summary h2 {
        font-size: 1.6rem;
    }

    .rules-summary ul li span {
        width: 25px;
        height: 25px;
    }
}

/* Dark Mode Adjustments */
body.light-mode .content-block,
body.light-mode .seo-feature-card,
body.light-mode .rules-summary {
    background: #ffffff;
    border-color: #e1e5e9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-mode .seo-feature-card:hover,
body.light-mode .rules-summary {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* ============================================= */
/* Updated Other Games Section with Pagination Info */
/* ============================================= */

.other-games-section {
    width: 100%;
    padding: 6rem 2rem;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.other-games-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    text-align: center;
}

.other-games-section h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-weight: 700;
    background: linear-gradient(135deg, var(--present-color), var(--correct-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.other-game-card {
    background: var(--modal-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 200px;
    cursor: pointer;
    position: relative;
}

.other-game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--correct-color);
    text-decoration: none;
    color: var(--text-color);
}

.other-game-image {
    position: relative;
    width: 100%;
    height: auto;
    overflow: visible;
    background: transparent;
    padding: 20px 0 10px;
    text-align: center;
}

.other-game-image img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}

.other-game-content {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.other-game-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.3;
}

.other-game-description {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.4;
}

/* Carousel Controls with Pagination Info */
.other-games-carousel {
    position: relative;
}

.other-games-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.other-games-carousel-btn {
    background: var(--key-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
}

.other-games-carousel-btn:hover:not(:disabled) {
    background: var(--correct-color);
    border-color: var(--correct-color);
    color: white;
    transform: translateY(-2px);
}

.other-games-carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.other-games-carousel-btn svg {
    width: 24px;
    height: 24px;
}

/* Pagination Info */
.pagination-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.pagination-info .page-number {
    background: var(--modal-bg);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    min-width: 120px;
}

.pagination-info .page-number .current-page {
    color: var(--correct-color);
    font-size: 1.2rem;
}

.pagination-info .total-games {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.95rem;
}

.other-games-indicators {
    display: flex;
    gap: 0.75rem;
}

.other-games-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.other-games-indicator.active {
    background: var(--correct-color);
    transform: scale(1.2);
}

.other-games-indicator:hover {
    background: var(--present-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .other-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .other-games-section {
        padding: 4rem 1.5rem;
    }

    .other-games-section h2 {
        font-size: 2.5rem;
    }

    .other-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .other-games-section {
        padding: 3rem 1rem;
    }

    .other-games-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .other-games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .other-games-carousel-controls {
        gap: 1rem;
    }

    .other-games-carousel-btn {
        width: 45px;
        height: 45px;
    }

    .pagination-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pagination-info .page-number {
        min-width: 100px;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .other-games-section h2 {
        font-size: 1.8rem;
    }

    .other-games-carousel-btn {
        width: 40px;
        height: 40px;
    }

    .other-games-carousel-btn svg {
        width: 20px;
        height: 20px;
    }

    .pagination-info {
        font-size: 0.9rem;
    }
}

/* Dark/Light Mode */
body.light-mode .other-game-card {
    background: #ffffff;
    border-color: #e1e5e9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.light-mode .other-game-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

body.light-mode .pagination-info .page-number {
    background: #ffffff;
    border-color: #e1e5e9;
}

/* ============================================= */
/* FAQ Section Styles */
/* ============================================= */

.faq-section {
    margin-bottom: 6rem;
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(83, 141, 78, 0.05) 0%, rgba(181, 159, 59, 0.05) 100%);
    border-radius: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-section h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-color);
    font-weight: 700;
    background: linear-gradient(135deg, var(--correct-color), var(--present-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.faq-item {
    background: var(--modal-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--correct-color), var(--present-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item:hover::before {
    opacity: 1;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--correct-color);
}

.faq-item h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.faq-item h3::before {
    content: '❓';
    font-size: 1.6rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.faq-item:hover h3::before {
    transform: scale(1.2) rotate(5deg);
}

.faq-item p {
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.7;
    font-size: 1.1rem;
    margin: 0;
}

.faq-item a {
    color: var(--correct-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.faq-item a:hover {
    color: var(--present-color);
    border-bottom-color: var(--present-color);
}

/* FAQ Grid Layout */
.faq-section > div:not(.faq-item) {
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 2rem;
}

/* Responsive Design for FAQ */
@media (max-width: 1024px) {
    .faq-section h2 {
        font-size: 2.4rem;
    }

    .faq-item {
        padding: 2rem;
    }

    .faq-item h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 0;
        margin-bottom: 4rem;
    }

    .faq-section h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }

    .faq-section > div:not(.faq-item) {
        padding: 0 1rem;
    }

    .faq-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .faq-item h3 {
        font-size: 1.2rem;
        gap: 0.75rem;
    }

    .faq-item p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 2rem 0;
        border-radius: 20px;
    }

    .faq-section h2 {
        font-size: 1.8rem;
        padding: 0 0.5rem;
    }

    .faq-section > div:not(.faq-item) {
        padding: 0 0.5rem;
    }

    .faq-item {
        padding: 1.25rem;
    }

    .faq-item h3 {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .faq-item h3::before {
        font-size: 1.4rem;
    }
}

/* Dark/Light Mode Adjustments */
body.light-mode .faq-item,
body.light-mode .faq-section > div:first-of-type:not(h2) {
    background: #ffffff;
    border-color: #e1e5e9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.light-mode .faq-item:hover,
body.light-mode .faq-section > div:first-of-type:not(h2):hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: var(--correct-color);
}

body.light-mode .faq-section {
    background: linear-gradient(135deg, rgba(83, 141, 78, 0.03) 0%, rgba(181, 159, 59, 0.03) 100%);
}

/* ============================================= */
/* FAQ Section Width Adjustment */
/* ============================================= */

.faq-section > div:not(.faq-item) {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.faq-item {
    background: var(--modal-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* 确保 FAQ 容器与上方特性网格对齐 */
.faq-section {
    margin-bottom: 6rem;
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(83, 141, 78, 0.05) 0%, rgba(181, 159, 59, 0.05) 100%);
    border-radius: 30px;
}

.faq-section h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-color);
    font-weight: 700;
    background: linear-gradient(135deg, var(--correct-color), var(--present-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

/* 响应式调整 */
@media (max-width: 1400px) {
    .faq-section > div:not(.faq-item),
    .faq-section h2 {
        max-width: var(--content-max-width);
    }
}

@media (max-width: 1200px) {
    .faq-section > div:not(.faq-item),
    .faq-section h2 {
        max-width: var(--content-max-width);
        padding: 0 1.5rem;
    }
}

@media (max-width: 1024px) {
    .faq-section > div:not(.faq-item),
    .faq-section h2 {
        max-width: var(--content-max-width);
        padding: 0 1.5rem;
    }

    .faq-section h2 {
        font-size: 2.4rem;
    }

    .faq-item {
        padding: 2rem;
    }

    .faq-item h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 0;
        margin-bottom: 4rem;
    }

    .faq-section h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }

    .faq-section > div:not(.faq-item) {
        padding: 0 1rem;
    }

    .faq-item {
        padding: 1.5rem;
    }

    .faq-item h3 {
        font-size: 1.2rem;
        gap: 0.75rem;
    }

    .faq-item p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 2rem 0;
        border-radius: 20px;
    }

    .faq-section h2 {
        font-size: 1.8rem;
        padding: 0 0.5rem;
    }

    .faq-section > div:not(.faq-item) {
        padding: 0 0.5rem;
    }

    .faq-item {
        padding: 1.25rem;
    }

    .faq-item h3 {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .faq-item h3::before {
        font-size: 1.4rem;
    }
}

/* 确保第一个 FAQ 项目也有正确的样式 */
.faq-section > div:first-of-type:not(h2) {
    background: var(--modal-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.faq-section > div:first-of-type:not(h2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--correct-color), var(--present-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-section > div:first-of-type:not(h2):hover::before {
    opacity: 1;
}

.faq-section > div:first-of-type:not(h2):hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--correct-color);
}

.faq-section > div:first-of-type:not(h2) h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.faq-section > div:first-of-type:not(h2) h3::before {
    content: '❓';
    font-size: 1.6rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.faq-section > div:first-of-type:not(h2):hover h3::before {
    transform: scale(1.2) rotate(5deg);
}

.faq-section > div:first-of-type:not(h2) p {
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.7;
    font-size: 1.1rem;
    margin: 0;
}

/* Dark/Light Mode Adjustments */
body.light-mode .faq-item,
body.light-mode .faq-section > div:first-of-type:not(h2) {
    background: #ffffff;
    border-color: #e1e5e9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.light-mode .faq-item:hover,
body.light-mode .faq-section > div:first-of-type:not(h2):hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: var(--correct-color);
}

body.light-mode .faq-section {
    background: linear-gradient(135deg, rgba(83, 141, 78, 0.03) 0%, rgba(181, 159, 59, 0.03) 100%);
}