/* ==========================================================================
   css/style.css
   Theme: Monet's Garden (法式莫奈花园 - 氛围感天花板)
   Vibe: Artistic, Dreamy, Elegant, High-End
   ========================================================================== */

:root {
    /* 🎨 调色板 - 印象派油画 (Impressionist Palette) */
    
    /* 核心主色：烟粉色与鸢尾紫的晕染 */
    --primary: #DFA9B5;           /* 干燥玫瑰 */
    --primary-deep: #8E6E77;      /* 深豆沙 */
    --secondary: #B8C6DB;         /* 雾霾蓝 */
    
    /* 梦幻渐变体系 */
    --gradient-bg: radial-gradient(circle at 0% 0%, #FFDEE9 0%, #B5FFFC 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.85) 100%);
    --gradient-btn: linear-gradient(120deg, #f6d365 0%, #fda085 100%); /* 落日橘粉，非常吸睛 */
    
    /* 文字颜色 */
    --text-main: #544349;         /* 暖深灰，不刺眼 */
    --text-sub: #908287;          /* 灰粉色 */
    
    /* 界面层级 */
    --glass-border: 1px solid rgba(255, 255, 255, 0.8);
    
    /* 📐 极致优美的圆角与光影 */
    --radius-box: 24px;
    --radius-btn: 100px;          /* 完美的胶囊圆 */
    
    /* 弥散光阴影 (Aura Shadow) - 这是高级感的关键 */
    --shadow-soft: 0 20px 60px rgba(223, 169, 181, 0.25);
    --shadow-card: 0 10px 30px rgba(0,0,0,0.03);
    
    --anim-float: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   1. 画布重置 (Canvas Reset)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

body {
    font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
    /* 背景：像一幅流动的画 */
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,0) 0, transparent 50%), 
        radial-gradient(at 50% 100%, hsla(225,39%,30%,0) 0, transparent 50%);
    background: linear-gradient(135deg, #FDFBFB 0%, #EBEDEE 100%); /* 基础底 */
    /* 叠加两层梦幻光晕 */
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 222, 233, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(184, 198, 219, 0.6) 0%, transparent 50%);
    background-attachment: fixed;
    
    color: var(--text-main);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 24px 16px;
}

.container {
    width: 100%;
    max-width: 520px;
    position: relative;
    padding-bottom: 60px;
}

/* 核心卡片：白玉磨砂质感 */
.page-container {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: var(--radius-box);
    padding: 36px 28px;
    box-shadow: var(--shadow-soft);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   2. 艺术排版 (Typography)
   ========================================================================== */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    /* 重点：标题使用宋体/衬线体，营造杂志感 */
    font-family: "Songti SC", "Noto Serif SC", "Times New Roman", serif;
    font-size: 30px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
    letter-spacing: 1px;
    /* 文字带一点点光泽 */
    background: linear-gradient(45deg, #544349, #8E6E77);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-family: "PingFang SC", sans-serif;
    font-size: 13px;
    color: var(--text-sub);
    letter-spacing: 0.5px;
    font-weight: 400;
}

/* 标签：丝带感 */
.original-tag {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    color: #FFF;
    background: var(--primary-deep);
    padding: 6px 18px;
    border-radius: 50px;
    margin-top: 18px;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(142, 110, 119, 0.3);
}

/* ==========================================================================
   3. 首页：画廊卡片 (Gallery Cards)
   ========================================================================== */
.test-selection {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 30px;
}

.test-option {
    background: #FFF;
    border-radius: 20px;
    padding: 28px;
    /* 极其细腻的阴影 */
    box-shadow: 
        0 4px 6px rgba(0,0,0,0.02), 
        0 10px 20px rgba(0,0,0,0.02);
    border: 1px solid rgba(255,255,255,1);
    transition: var(--anim-float);
    position: relative;
    overflow: hidden;
}

/* 悬停微动 */
.test-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(223, 169, 181, 0.2);
}

/* 卡片内的装饰光 */
.test-option::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, #FFDEE9, #B5FFFC);
    opacity: 0.8;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.option-header h3 {
    font-family: "Songti SC", serif;
    font-size: 20px;
    color: var(--text-main);
}

.badge {
    font-size: 10px;
    color: var(--text-sub);
    background: #F7F8FA;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    border: 1px solid #EEE;
}

/* 按钮：流光宝石 */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px;
    border-radius: var(--radius-btn);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--anim-float);
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 99%, #FECFEF 100%);
    color: #FFF;
    /* 柔和的发光阴影 */
    box-shadow: 0 8px 20px rgba(255, 154, 158, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--text-sub);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ==========================================================================
   4. 底部信任模块 (完美布局 + 艺术配色)
   ========================================================================== */

/* 通用容器：统一的磨砂质感 */
.trust-card, 
.science-certification, 
.privacy-section,
.redeem-section {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 26px 22px;
    margin-top: 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

/* 1. 理论基础 */
.theory-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}
.theory-title {
    font-family: "Songti SC", serif;
    font-size: 17px;
    color: var(--primary-deep);
}
.theory-intro p {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 16px;
}
.badge-group {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.psychology-badge {
    font-size: 11px;
    color: #999;
    border: 0.5px solid rgba(0,0,0,0.1);
    padding: 4px 12px;
    border-radius: 20px;
    background: #FFF;
}

/* 2. 科学认证 (Grid 布局保持) */
.certification-title {
    font-size: 13px;
    color: #BBB;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.certification-logos {
    display: grid !important; 
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.certification-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cert-icon {
    font-size: 20px;
    width: 42px; height: 42px;
    /* 极淡的粉白背景 */
    background: linear-gradient(135deg, #FFF 0%, #FFF0F5 100%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 8px;
    color: var(--primary-deep);
}
.certification-logo span {
    font-size: 10px;
    color: #999;
    white-space: nowrap;
}

/* 3. 隐私部分 (Flex 布局保持) */
.privacy-section h2 {
    font-family: "Songti SC", serif;
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 20px;
    display: flex; justify-content: center; gap: 8px;
}
.privacy-features {
    display: flex !important;
    justify-content: space-around;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.03);
}
.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 30%;
}
.feature .icon { font-size: 20px; opacity: 0.8; }
.feature span:last-child { font-size: 11px; color: #AAA; }

/* 4. 激活区域 */
.redeem-section {
    background: linear-gradient(135deg, #FFFDFD 0%, #FFF5F7 100%);
    border: 1px solid #FFE0E6;
}
.redeem-title {
    font-family: "Songti SC", serif;
    color: var(--primary-deep);
    font-size: 16px;
    margin-bottom: 8px;
}
.redeem-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #EEE;
    border-radius: 12px;
    font-size: 14px;
    background: rgba(255,255,255,0.8);
}
.redeem-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 222, 233, 0.4);
}
.redeem-guide {
    margin-top: 16px;
    background: #FFF;
    padding: 14px;
    border-radius: 12px;
    font-size: 12px;
    color: #999;
    text-align: left;
    border: 1px dashed #DDD;
    line-height: 1.6;
}

/* ==========================================================================
   5. 答题与结果 (Quiz & Result)
   ========================================================================== */
.progress-bar {
    background: rgba(0,0,0,0.03);
    border-radius: 100px;
    height: 4px;
}
.progress-fill {
    background: linear-gradient(90deg, #FF9A9E 0%, #FECFEF 100%);
    border-radius: 100px;
    box-shadow: 0 0 10px rgba(255, 154, 158, 0.3);
}

.question-text {
    font-family: "Songti SC", serif;
    font-size: 22px;
    color: var(--text-main);
    margin: 40px 0 50px;
    text-align: center;
    line-height: 1.5;
}

.rating-btn {
    background: #FFF;
    border: 1px solid transparent;
    padding: 18px 24px;
    border-radius: 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    font-size: 15px;
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: var(--anim-float);
}
.rating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.04);
}
.rating-btn.selected {
    border-color: var(--primary);
    background: #FFFBFB;
    color: var(--primary-deep);
}
.option-number {
    background: #F2F4F8;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-right: 16px; font-size: 12px;
    color: #AAA;
    font-family: serif;
}
.rating-btn.selected .option-number {
    background: var(--primary);
    color: #FFF;
}

/* 结果分数圈 */
.score-circle {
    width: 150px; height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0.4));
    border: 1px solid rgba(255,255,255,0.8);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 
        inset 0 0 20px rgba(255,255,255,0.8),
        0 10px 30px rgba(223, 169, 181, 0.3);
}
.score-inner {
    font-family: "Songti SC", serif;
    font-size: 52px;
    color: var(--primary-deep);
}
#score-level {
    font-family: "Songti SC", serif;
    font-size: 26px;
    color: var(--text-main);
}

.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.8s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.copyright-notice {
    font-size: 10px;
    color: #CCC;
    text-align: center;
    margin-top: 50px;
    letter-spacing: 1px;
}