:root {
    --bg-color: #f5f5f7; /* 苹果浅灰背景 */
    --card-bg: #ffffff;
    --primary-color: #0071e3; /* 苹果蓝 */
    --text-main: #1d1d1f;
    --text-sec: #86868b;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --radius: 20px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 600px; /* 限制最大宽度，像手机APP一样精致 */
}

/* 卡片风格 */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

p {
    line-height: 1.6;
    color: var(--text-sec);
    font-size: 15px;
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 99px; /* 胶囊形状 */
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: #0077ed;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 15px 30px;
    border-radius: 99px;
    font-size: 17px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
}

/* 选项按钮 */
.option-btn {
    /* ...原有样式保持不变... */
    background: #fbfbfd;
    border: 1px solid #d2d2d7;
    
    /* 修改这里：增加内边距和底部间距 */
    padding: 18px 20px;       /* 增加内部空间 */
    margin-bottom: 16px;      /* 增加按钮之间的距离，原先可能太小 */
    
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    
    /* 新增：防止文字过多时布局崩坏 */
    width: 100%;
    box-sizing: border-box; 
    line-height: 1.5;
}

.option-btn:hover {
    border-color: var(--primary-color);
    background: #f2f7ff;
}

/* 进度条 */
.progress-bar {
    height: 6px;
    background: #e5e5e5;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

/* 语言切换 */
.lang-switch {
    margin-bottom: 15px;
}
.lang-switch button {
    background: none;
    border: none;
    font-size: 14px;
    color: var(--text-sec);
    cursor: pointer;
    padding: 5px 10px;
}
.lang-switch button.active {
    color: var(--text-main);
    font-weight: 600;
}

/* 结果详情 */
.result-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.result-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}
.warning-box {
    background-color: #fff9e6;
    color: #b58900;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 10px;
}

/* 工具类 */
.hidden { display: none; }
.fade-in { animation: fadeIn 0.5s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* 新增样式：放在 style.css 最底部 */

/* 控制按钮区域 */
.quiz-controls {
    margin-top: 25px;
    padding-top: 10px;
    border-top: 1px dashed #eee; /*以此区分题目区域*/
    display: flex;
    justify-content: flex-start; /* 按钮靠左 */
}

/* 纯文字按钮风格（上一题） */
.btn-text {
    background: none;
    border: none;
    color: var(--text-sec);
    font-size: 15px;
    cursor: pointer;
    padding: 10px 0;
    transition: color 0.2s;
}

.btn-text:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 确保卡片底部有足够空间，不会切断内容 */
.question-box {
    padding-bottom: 10px; 
}