:root {
    --primary-color: #90cdf4;
    --primary-light: #bee3f8;
    --primary-dark: #63b3ed;
    --secondary-color: #059669;
    --secondary-light: #10b981;
    --secondary-dark: #047857;
    --background-color: #f9fafb;
    --surface-color: #ffffff;
    --text-color: #111827;
    --text-secondary: #4b5563;
    --success-color: #059669;
    --warning-color: #d97706;
    --error-color: #dc2626;
    --card-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 1px 2px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --mobile-padding: 1rem;
    --tablet-padding: 2rem;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: none !important;
    transform: none !important;
    animation: none !important;
    -webkit-transform: none !important;
    -webkit-transition: none !important;
    -webkit-animation: none !important;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    padding: 0;
    margin: 0;
}

.header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem var(--mobile-padding);
    text-align: center;
    margin-bottom: 1rem;
}

.header h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.header p {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--mobile-padding);
}

.game-wrapper {
    width: min(95%, 1200px);
    margin: 1rem auto;
    background: white;
    border-radius: clamp(12px, 2vw, 20px);
    padding: var(--mobile-padding);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: none !important;
    transition: none !important;
    animation: none !important;
    -webkit-transform: none !important;
    -webkit-transition: none !important;
    -webkit-animation: none !important;
}

.game-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transform: none !important;
    transition: none !important;
    animation: none !important;
    -webkit-transform: none !important;
    -webkit-transition: none !important;
    -webkit-animation: none !important;
    transform-style: flat !important;
    -webkit-transform-style: flat !important;
    perspective: none !important;
    -webkit-perspective: none !important;
}

.game-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    display: block;
    background: white;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    -webkit-transform: none !important;
    -webkit-transition: none !important;
    -webkit-animation: none !important;
    transform-origin: center center !important;
    -webkit-transform-origin: center center !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .game-container {
        max-width: 100%; /* 移动端宽度为100% */
        height: 650px; /* 高度自适应 */
        padding-bottom: 56.25%; /* 16:9比例 */
    }

    .game-iframe {
        height: 100%;
    }
}

@media (max-width: 480px) {
    .game-container {
        padding-bottom: 75%; /* 4:3比例，适合更小的屏幕 */
    }
}

.game-decoration {
    position: absolute;
    top: -8px;
    left: 10px;
    background: #f0f0f0;
    padding: 6px 15px;
    border-radius: 0 0 8px 8px;
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.game-controls-hint {
    text-align: center;
    margin: 0.8rem 0;
    padding: 0.6rem;
    background: #f5f5f5;
    border-radius: 8px;
    color: #666;
    font-size: 0.85rem;
}

.game-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.info-card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.info-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 3px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.2rem;
    position: relative;
}

.feature-list li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.controls {
    background: linear-gradient(to right, #fafafa, #f0f0f0);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.controls h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    :root {
        --mobile-padding: 0.8rem;
    }

    .game-wrapper {
        width: 100%;
        margin: 0.5rem auto;
        padding: var(--mobile-padding);
    }

    .game-container {
        padding-bottom: 140%;
    }

    .info-card {
        padding: 1rem;
    }

    .controls {
        padding: 1rem;
    }

    .feature-list li {
        margin-bottom: 0.8rem;
        padding-left: 1.2rem;
    }
}

@media (max-width: 480px) {
    .game-container {
        padding-bottom: 160%;
    }
}

@media (max-width: 360px) {
    .header h1 {
        font-size: 1.3rem;
    }

    .game-controls-hint {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .game-decoration {
        font-size: 0.8rem;
        padding: 4px 10px;
    }

    .game-container {
        padding-bottom: 180%;
    }
}

@media (hover: none) {
    .game-controls-hint {
        content: "点击屏幕开始游戏";
    }
}

.footer {
    text-align: center;
    padding: 1.5rem var(--mobile-padding);
    margin-top: 2rem;
    background: #fff;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

.game-container:focus-within {
    outline: none;
}

.game-wrapper:hover,
.game-container:hover,
.game-iframe:hover,
.game-wrapper:focus,
.game-container:focus,
.game-iframe:focus {
    transform: none !important;
    transition: none !important;
    animation: none !important;
    -webkit-transform: none !important;
    -webkit-transition: none !important;
    -webkit-animation: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e5e5;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* 卡片网格布局 */
.card-grid {
    width: min(100%, 1250px); /* 与game-wrapper保持一致 */
    margin: 1rem auto;
    display: flex;          /* 改为flex布局 */
    flex-direction: column; /* 设置为垂直方向 */
    gap: 1.5rem;           /* 卡片之间的间距 */
    padding: 1.5rem;
}

/* 统一卡片样式 */
.info-card {
    width: 100%;           /* 宽度占满容器 */
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e5e5;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card-grid {
        padding: 1rem;
        gap: 1rem;
    }

    .info-card {
        padding: 1.2rem;
    }
}

/* 卡片标题样式 */
.info-card h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

/* 特色数据展示 */
.highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    text-align: center;
}

.highlight-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.highlight-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.highlight-text {
    font-size: 0.9rem;
    color: #666;
}

/* 统计数据样式 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* 列表样式 */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '•';
    color: #2f80ed;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    .info-card {
        padding: 1.2rem;
    }

    .highlights, .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.language-switcher {
    position: relative;
    margin-top: 10px;
    z-index: 9999;
}

.language-btn {
    position: relative;
    z-index: 9999;
    background-color: #ffffff;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.arrow {
    font-size: 10px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
    min-width: 120px;
    z-index: 10000;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    display: block;
    padding: 8px 16px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.language-option:hover {
    background-color: #f5f5f5;
    color: #6aaa64;
}

.faq-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 0.5rem;
}

.faq-section h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-color);
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.faq-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.faq-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.faq-number {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(66, 133, 244, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    min-width: 3rem;
    text-align: center;
}

.faq-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    flex: 1;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.faq-card p {
    color: var(--text-color);
    opacity: 0.85;
    line-height: 1.7;
    margin: 0;
    padding-left: 4.5rem;
    font-size: 1.05rem;
}

.faq-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), transparent);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.faq-card:hover::before {
    opacity: 1;
}

@media (max-width: 768px) {
    .faq-section {
        gap: 2.5rem;
    }

    .faq-card {
        padding: 1.5rem;
    }

    .faq-header {
        gap: 1rem;
    }

    .faq-number {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        min-width: 2.5rem;
    }

    .faq-card h3 {
        font-size: 1.2rem;
    }

    .faq-card p {
        padding-left: 3.5rem;
        font-size: 1rem;
    }
}