body {
    margin: 0;
    font-family: 'STKaiti', 'KaiTi', '宋体', serif;
    color: #4e2e0e;
    min-height: 100vh; /* 确保页面高度覆盖整个视窗 */
    max-width: 100vw; /* 确保页面宽度不超出视窗 */
    overflow: hidden; /* 移除滚动条 */
    display: flex;
    flex-direction: column;
}
header {
    background: linear-gradient(90deg, #e9dbc2 0%, #d7c7a0 100%);
    border-bottom: 2px solid #6e4b1f;
    padding: 8px 0 2px 0;
    text-align: center;
    position: relative;
    width: 100%;
}
.tcm-logo {
    font-size: 2.2rem;
    letter-spacing: 0.15em;
    color: #6e4b1f;
    font-weight: bold;
    display: block; /* 改为块级元素 */
    margin: 0 auto; /* 自动左右边距实现居中 */
    text-align: center; /* 文本居中 */
}
.classic-quote {
    font-size: 1.1rem;
    color: #a87a3e;
    margin-top: 6px;
    font-style: italic;
}
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 12px 80px 12px; /* 底部预留按钮空间 */
    position: relative;
    flex: 1;
    overflow-y: auto;
}
.progress-area {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 8px auto;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1;
}
.progress-label {
    font-size: 1rem;
    color: #a87a3e;
}
.progress-bar {
    flex: 1;
    height: 12px;
    background: #e2d3b3;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #b49d6c;
}
.progress-bar-inner {
    width: 1.7%;
    height: 100%;
    background: linear-gradient(90deg, #a87a3e 40%, #6e4b1f 100%);
    border-radius: 6px 0 0 6px;
    transition: width 0.3s;
}
.question-area {
    z-index: 1;
    background: rgba(255,255,255,0.89);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(110,75,31,0.07);
    padding: 24px 16px 16px 16px;
    margin-bottom: 18px;
    width: 100%;
    max-width: 420px;
    position: relative;
}
.question-title {
    font-size: 1.3rem;
    color: #6e4b1f;
    text-align: center;
    margin-bottom: 18px;
    margin-top: 10px;
    font-weight: bold;
    letter-spacing: 0.1em;
    padding-right: 5px;
    padding-left: 5px;
    min-height: 64px
}
.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding-left: 5px;
    padding-right: 5px;
}
.option-btn {
    font-size: 1.1rem;
    background: linear-gradient(90deg, #f6e8cd 60%, #e2d3b3 100%);
    color: #4e2e0e;
    border: 2px solid #a87a3e; /* 统一为2px边框 */
    border-radius: 16px;
    padding: 14px 0;
    text-align: center;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; /* 简化过渡效果 */
    box-shadow: 0 2px 8px rgba(110,75,31,0.04);
    position: relative;
    overflow: hidden;
    outline: none; /* 移除焦点轮廓 */
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
    -webkit-touch-callout: none; /* 禁止iOS设备的长按菜单 */
    user-select: none; /* 禁止文本选择 */
}
/* 仅对未选中的选项应用hover效果 */
.option-btn:not(.selected):hover {
    background: linear-gradient(90deg, #e2d3b3 60%, #b89363 100%);
    color: #4e2e0e;
    border-color: #8c5e2a;
    box-shadow: 0 4px 10px rgba(168,122,62,0.15);
}
/* 移除激活状态的特殊样式 */
.option-btn:active {
    /* 不添加任何样式，保持与普通状态或hover状态一致 */
}
.option-btn.selected {
    background: linear-gradient(90deg, #a87a3e 10%, #6e4b1f 100%);
    color: #fff;
    border: 2px solid #4e2e0e; /* 保持边框宽度一致 */
    box-shadow: 0 4px 12px rgba(78,46,14,0.3);
    /* 移除会导致位移的样式 */
    font-weight: bold;
}
/* 确保选中状态下的悬停效果保持一致 */
.option-btn.selected:hover {
    background: linear-gradient(90deg, #a87a3e 10%, #6e4b1f 100%);
    color: #fff;
    border: 2px solid #4e2e0e;
    box-shadow: 0 4px 12px rgba(78,46,14,0.3);
}
/* 移除选中状态下的特殊激活效果 */
.option-btn.selected:active {
    /* 不添加任何样式，保持与选中状态一致 */
}
.option-btn.selected::before {
    content: "✓";
    position: absolute;
    left: 15px;
    font-weight: bold;
    font-size: 1.2rem;
}
.option-btn .yin-yang {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    opacity: 0.12;
    /* 使用绝对URL解决Chrome和Safari兼容性问题 */
    background: url('https://tizhi-img.itcats.me/cdn/img/Yin_yang.png') no-repeat center/contain;
    pointer-events: none;
}
.tcm-tip {
    font-size: 1rem;
    color: #a87a3e;
    background: rgba(255,255,255,0.5);
    border-left: 4px solid #a87a3e;
    padding: 8px 6px;
    border-radius: 8px;
    margin-bottom: 15px;
    margin-top: 4px;
    margin-left: 5px;
    margin-right: 5px;
}
.nav-area {
        width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #e9dbc2d9 0%, #d7c7a0e7 100%);
    box-shadow: 0 -2px 10px rgba(110, 75, 31, 0.04);
    z-index: 1000;
    flex-wrap: wrap;
    /* 适配iOS安全区 */
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    backdrop-filter: blur(10px);

}
.nav-btn {
    font-size: 1.1rem;
    padding: 10px 28px;
    border-radius: 20px;
    border: 1.5px solid #a87a3e;
    background: #f6e8cd;
    color: #6e4b1f;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin: 0 6px;
    outline: none; /* 移除焦点轮廓 */
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
}

@media (max-width: 600px) {
    .question-area, .progress-area, .nav-area {
        max-width: 100%;
    }
}