/*===== 变量定义 ===== */
:root {
    --bg-color: #0b1115;
    --text-gold: #d3ad6b;
    --text-light: #e0e0e0;
    --border-gold: rgba(211, 173, 107, 0.3);
    --btn-hover: rgba(211, 173, 107, 0.15);
    --gold-faint: rgba(211, 173, 107, 0.1);
    --gold-line: rgba(211, 173, 107, 0.15);
    --gold-dim: rgba(211, 173, 107, 0.2);
}

/* ===== 全局重置 ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-light);
    font-family: "PingFang SC", "Songti SC", "Noto Serif SC", serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== 容器 ===== */
.container {
    width: 100%;
    max-width: 480px;
    min-height: 85vh;
    margin: 20px;
    padding: 40px 25px;
    background: rgba(11, 17, 21, 0.85);
    border: 1px solid var(--border-gold);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ===== 通用隐藏 ===== */
.hidden {
    display: none !important;
}

/* ===== 分隔线 ===== */
.divider {
    width: 40px;
    border: 0;
    border-top: 1px solid var(--text-gold);
    margin: 0 auto 40px auto;
}

/* =====欢迎页 ===== */
.welcome-title-en {
    font-size: 11px;
    letter-spacing: 5px;
    color: var(--text-gold);
    text-align: center;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 12px;
}

.welcome-title {
    font-size: 34px;
    font-weight: 400;
    letter-spacing: 6px;
    text-align: center;
    margin-bottom: 45px;
    color: var(--text-light);
    text-shadow: 0 2px 15px rgba(211, 173, 107, 0.15);
}

.welcome-subtitle {
    text-align: center;
    font-size: 15px;
    line-height: 2.8;
    letter-spacing: 3px;
    color: rgba(224, 224, 224, 0.75);
    margin-bottom: 70px;
}

/* ===== 通用按钮 ===== */
.btn {
    display: block;
    width: 85%;
    margin: 0 auto;
    padding: 16px 0;
    text-align: center;
    background: transparent;
    border: 1px solid var(--text-gold);
    color: var(--text-gold);
    font-size: 16px;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn:hover {
    background: var(--btn-hover);
    color: #fff;
    box-shadow: 0 0 15px var(--gold-dim);
}

.restart-btn {
    margin-top: 50px;
}

/* ===== 答题页 ===== */
.progress-bar {
    font-size: 13px;
    color: var(--text-gold);
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.question-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 35px;
    text-align: justify;
    min-height: 80px;
    letter-spacing: 1px;
    color: #f0f0f0;
}

.option-btn {
    display: flex;
    align-items: flex-start;
    width: 100%;
    padding: 18px 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--gold-line);
    color: var(--text-light);
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1.6;
    font-family: inherit;
}

.option-btn:hover {
    border-color: var(--text-gold);
    background: var(--btn-hover);
}

.opt-label {
    color: var(--text-gold);
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

/* ===== 结果页-第一屏 ===== */
.result-title {
    font-size: 14px;
    color: var(--text-gold);
    text-align: center;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: bold;
}

.philosopher-name {
    font-size: 48px;
    text-align: center;
    letter-spacing: 10px;
    margin-bottom: 5px;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 0 15px rgba(211, 173, 107, 0.6);
}

.philosopher-en {
    font-size: 12px;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/*标签组*/
.tag-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.glass-tag {
    background: rgba(211, 173, 107, 0.12);
    border: 1px solid var(--gold-dim);
    padding: 5px 12px;
    border-radius: 4px;
    color: var(--text-gold);
    font-size: 12px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 引言 */
.quote {
    text-align: center;
    font-size: 17px;
    font-style: italic;
    color: var(--text-gold);
    margin-bottom: 40px;
    padding: 0 10px;
    line-height: 1.8;
    letter-spacing: 2px;
}

/* 雷达图容器 */
.chart-container {
    width: 100%;
    height: 300px;
    margin: 0 auto 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(211, 173, 107, 0.05) 0%, transparent 70%);
}

/* 五行条形图 */
.elements-container {
    width: 90%;
    margin: 0 auto 40px auto;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--gold-faint);
}

.element-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
}

.element-label {
    width: 55px;
    text-align-last: justify;
    margin-right: 15px;
    color: var(--text-gold);
    letter-spacing: 1px;
}

.element-bar-bg {
    flex-grow: 1;
    height: 4px;
    background: var(--gold-faint);
    border-radius: 2px;
    overflow: hidden;
}

.element-bar-fill {
    height: 100%;
    background: var(--text-gold);
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/*===== 结果页-第二屏 ===== */
.section-title {
    font-size: 17px;
    font-weight: normal;
    color: var(--text-gold);
    text-align: center;
    letter-spacing: 5px;
    margin: 35px 0 25px 0;
    border-bottom: 1px solid var(--gold-dim);
    padding-bottom: 12px;
}

.desc-text {
    font-size: 15px;
    line-height: 2.1;
    color: rgba(224, 224, 224, 0.88);
    text-align: justify;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.desc-text.sub-desc {
    font-size: 14px;
    margin-bottom: 15px;
}

.desc-text.no-margin {
    margin-bottom: 0;
}

.mapping-box {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border: 1px solid var(--gold-faint);
    margin-bottom: 25px;
}

.mapping-tag {
    color: var(--text-gold);
    font-size: 13px;
    margin-bottom: 10px;
    display: block;
    letter-spacing: 1px;border-left: 2px solid var(--text-gold);
    padding-left: 8px;
}

.action-text {
    color: var(--text-gold);
    font-size: 14px;
    background: rgba(211, 173, 107, 0.05);
    padding: 15px;
    border: 1px dashed var(--text-gold);
}

.quote::before {
    content: '\201C';
    margin-right: 4px;
}

.quote::after {
    content: '\201D';
    margin-left: 4px;
}
