body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #0f1736;
    color: #ffffff;
    min-height: 100vh;
    padding: 20px 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(22, 93, 255, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(0, 207, 213, 0.1) 0%, transparent 20%);
}

.container {
    background-color: rgba(30, 41, 59, 0.8);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(22, 93, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* 标题样式 */
.game-title {
    text-align: center;
    color: #69b1ff;
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(22, 93, 255, 0.5);
}

.game-subtitle {
    text-align: center;
    color: #86909c;
    margin-bottom: 30px;
    font-size: 16px;
}

/* 游戏状态样式 */
.game-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 15px;
    background-color: rgba(22, 93, 255, 0.1);
    border-radius: 10px;
}

.stat-item {
    text-align: center;
    padding: 0 10px;
}

.stat-label {
    font-size: 14px;
    color: #86909c;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

.time-value {
    color: #00cfd5;
}

.score-value {
    color: #69b1ff;
}

/* 题目区域样式 */
.question-area {
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(22, 93, 255, 0.3);
}

.question {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
}

/* 输入区域样式 */
.input-area {
    margin-bottom: 30px;
    text-align: center;
}

.answer-input {
    width: 100%;
    max-width: 300px;
    height: 60px;
    font-size: 24px;
    text-align: center;
    background-color: rgba(30, 41, 59, 0.8);
    border: 2px solid #165DFF;
    color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.answer-input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(22, 93, 255, 0.5);
    border-color: #69b1ff;
}

/* 按钮样式 */
.btn-primary {
    background-color: #165DFF;
    border-color: #165DFF;
    padding: 10px 30px;
    font-size: 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.btn-secondary {
    background-color: rgba(22, 93, 255, 0.3);
    border-color: rgba(22, 93, 255, 0.5);
    padding: 10px 30px;
    font-size: 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 5px;
    color: #ffffff;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #69b1ff;
    border-color: #69b1ff;
    box-shadow: 0 0 15px rgba(22, 93, 255, 0.5);
    color: #ffffff;
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: rgba(22, 93, 255, 0.5);
    border-color: #69b1ff;
    box-shadow: 0 0 15px rgba(22, 93, 255, 0.3);
    color: #ffffff;
}

.btn-group {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* 游戏界面样式 */
.game-screen {
    display: none;
}

.start-screen, .end-screen {
    text-align: center;
    padding: 20px 0;
}

.rules {
    text-align: left;
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(22, 93, 255, 0.3);
}

.rules h4 {
    color: #69b1ff;
    margin-top: 0;
    margin-bottom: 15px;
}

.rules ul {
    padding-left: 20px;
}

.rules li {
    margin-bottom: 10px;
}

/* 结果卡片样式 */
.result-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.result-card {
    background-color: rgba(30, 41, 59, 0.8);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(22, 93, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(22, 93, 255, 0.2);
}

.result-card h3 {
    color: #86909c;
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 10px;
}

.result-card .value {
    font-size: 28px;
    font-weight: bold;
    color: #69b1ff;
}

.result-card .value.high {
    color: #00b42a;
}

.result-card .value.low {
    color: #f53f3f;
}

.chart-container {
    height: 300px;
    margin-bottom: 30px;
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(22, 93, 255, 0.3);
}

/* 反馈动画 */
.feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 72px;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
    z-index: 10;
}

.correct {
    color: #00b42a;
    text-shadow: 0 0 20px rgba(0, 180, 42, 0.5);
}

.incorrect {
    color: #f53f3f;
    text-shadow: 0 0 20px rgba(245, 63, 63, 0.5);
}

.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

/* 进度条 */
.progress-container {
    width: 100%;
    height: 8px;
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #00cfd5;
    width: 100%;
    transition: width 1s linear;
}

#statsModal .modal-content,
#aboutModal .modal-content {
    background-color: #1a202c;
    border: 1px solid #165DFF;
    border-radius: 10px;
    color: #e2e8f0;
}

#statsModal .modal-header,
#aboutModal .modal-header {
    border-bottom: 1px solid rgba(22, 93, 255, 0.3);
    color: #69b1ff;
}

#statsModal .modal-footer,
#aboutModal .modal-footer {
    border-top: 1px solid rgba(22, 93, 255, 0.3);
}

.question-history {
    max-height: 400px;
    overflow-y: auto;
    margin: 15px 0;
}

.history-item {
    padding: 10px;
    font-weight: bold;
    border-bottom: 1px solid rgba(22, 93, 255, 0.1);
}

.history-item.correct {
    background-color: rgba(0, 180, 42, 0.1);
}

.history-item.incorrect {
    background-color: rgba(245, 63, 63, 0.1);
}

/* 公共容器样式 */
.faq-section {
    color: grey;
    margin: 30px auto;
    max-width: 1200px;
    padding: 0 15px;
}

/* 标题区域样式 */
.faq-title-wrap {
    text-align: center;
    margin-bottom: 30px;
}

.faq-main-title {
    font-size: 1.8rem;
    display: inline-flex;
    align-items: center;
    color: gray;
    font-weight: 600;
    margin-bottom: 8px;
}

.faq-sub-title {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.75;
    font-weight: 600;
    color: #d1d5db;
}

/* 图标样式 */
.faq-icon-svg {
    margin-left: 8px;
}

/* 折叠面板容器 */
.faq-accordion {
    margin-bottom: 15px;
}

.faq-panel {
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(22, 93, 255, 0.2);
    border-radius: 6px;
    margin-bottom: 15px;
}

.faq-panel-heading {
    position: relative;
}

.faq-panel-title {
    display: block;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    border-bottom: 1px solid rgba(22, 93, 255, 0.1);
}

.faq-panel-title:after {
    content: "+";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.faq-panel-collapse.in + .faq-panel-heading .faq-panel-title:after {
    content: "-";
}

/* 面板内容样式 */
.faq-panel-body {
    color: #d1d5db;
    padding: 15px;
    border-top: 1px solid rgba(22, 93, 255, 0.1);
}

.panel {
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.panel-group .panel {
    margin-bottom: 15px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .question {
        font-size: 28px;
    }

    .stat-value {
        font-size: 20px;
    }

    .question-area {
        padding: 20px 10px;
    }

    .result-cards {
        grid-template-columns: 1fr;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        margin: 5px 0;
    }
}