* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #1a1f2c;
    color: #ffffff;
}

.container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* 侧边栏样式 */
.sidebar {
    width: 250px;
    background-color: #1e2432;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;  /* 确保导航栏在最上层 */
}

.logo h2 {
    font-size: 1.7rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* 导航菜单样式 */
.nav-menu {
    list-style: none;
    margin-top: 10px;
}

.nav-menu > li {
    margin-bottom: 4px;
}

.nav-menu > li:not(:last-child) {
    margin-bottom: 8px;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
}

.nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.18);
    font-weight: 500;
}

/* 下拉菜单样式 */
.dropdown > a::after {
    content: '▼';
    font-size: 0.7em;
    margin-left: auto;
    transition: transform 0.3s;
    opacity: 0.7;
}

.dropdown.active > a::after {
    transform: rotate(180deg);
    opacity: 1;
}

.submenu {
    list-style: none;
    margin: 5px 0 5px 15px;
    padding-left: 15px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

.dropdown.active .submenu {
    max-height: 500px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.submenu a {
    font-size: 0.95rem;
    padding: 8px 15px;
    opacity: 0.85;
}

.submenu a:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(8px);
}

/* 主要内容区样式 */
.main-content {
    margin-left: 250px;  /* 与侧边栏宽度相同 */
    flex: 1;
    min-height: 100vh;
    background-color: #1a1f2c;
}

/* 修改游戏容器样式 */
.game-container {
    flex: 1;  /* 占满整个空间 */
    height: 100vh;  /* 设置为视口高度 */
    background-color: #2a2f3c;
    overflow: hidden;
}

.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 移除不需要的分页器样式 */
.pagination {
    display: none;
}

.section-title {
    font-size: 1.6rem;
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-align: center;
}

/* 添加语言选择器样式 */
.language-select {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 5px;
    width: 100%;
}

.language-select option {
    background-color: #1e2432;
    color: #ffffff;
}

/* 调整子菜单样式 */
.submenu {
    list-style: none;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.dropdown.active .submenu {
    max-height: 500px;
}

/* 添加hover效果 */
.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.submenu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 16px;
    transition: padding-left 0.2s;
}

/* 添加滚动条样式 */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 添加响应式支持 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
    
    .game-container {
        height: calc(100vh - 60px); /* 移动端预留一些空间 */
    }
}

/* 问答页面样式优化 - 黑白主题 */
.qa-section {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.qa-container {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(30, 30, 30, 0.95));
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.question-box {
    margin: 2rem 0;
    position: relative;
}

.question-text {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.options {
    display: grid;
    gap: 1.2rem;
    margin-top: 2rem;
}

.option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
}

.option-btn::before {
    content: attr(data-option);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.option-btn:hover::before {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.explanation {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #fff;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 15px 15px 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.explanation[class*="✅"] {
    border-left-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.explanation[class*="❌"] {
    border-left-color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.2);
}

.primary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    backdrop-filter: blur(10px);
}

.primary-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

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

#score-display {
    font-size: 2rem;
    text-align: center;
    margin: 2.5rem 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

/* 进度指示器优化 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 1.5rem 0;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 题目计数器优化 */
.question-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    text-align: right;
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* 标题样式 */
.qa-container h1, 
.qa-container h2 {
    color: #fff;
    margin-bottom: 1rem;
}

/* 说明文字样式 */
.qa-container p {
    color: rgba(255, 255, 255, 0.9);
}

/* 团队介绍容器样式 */
.team-container {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.team-container iframe {
    width: 100%;
    height: 100%;
    border: none;
} 