/* ========== 全局变量与重置 ========== */
:root {
    --bg-main: #F7F5F0;
    --bg-alt: #F0EDE6;
    --bg-card: #FFFFFF;
    --text-primary: #2C2C2C;
    --text-secondary: #6B6B6B;
    --text-muted: #9B9B9B;
    --accent-warm: #C9856B;
    --accent-cool: #6B8E9E;
    --accent-gold: #B89B6E;
    --border-light: #E0DDD5;
    --shadow-soft: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 40px rgba(0,0,0,0.10);
    --radius: 16px;
    --radius-sm: 8px;
    --font-serif: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
    --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-serif);
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ========== Hero 首屏 ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #F7F5F0 0%, #EDE8DF 100%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 24px;
    animation: fadeInUp 1s ease;
}

.hero-logo {
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 12px rgba(122, 107, 146, 0.12));
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--accent-warm);
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.hero-desc {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    letter-spacing: 0.05em;
    margin-bottom: 40px;
}

.hero-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.hero-svg {
    width: 600px;
    height: 600px;
    opacity: 0.5;
}

/* ========== 按钮 ========== */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 14px 36px;
    font-size: 1rem;
    font-family: var(--font-serif);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.08em;
    margin: 0 8px 12px;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-main);
}

.btn-primary:hover {
    background: var(--accent-warm);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 133, 107, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--accent-warm);
    color: var(--accent-warm);
    transform: translateY(-2px);
}

/* ========== 通用 Section ========== */
.section {
    padding: 80px 24px;
    max-width: 900px;
    margin: 0 auto;
}

.section-alt {
    background: var(--bg-alt);
    max-width: 100%;
}

.section-alt > * {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-family: var(--font-sans);
}

/* ========== 光谱图（彩虹全展开版）========== */
.spectrum-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px 16px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

#spectrum-chart {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

#spectrum-chart svg.spectrum-svg {
    max-width: 100%;
    height: auto;
    cursor: crosshair;
    border-radius: 8px;
    display: block;
}

/* 26种情绪点 */
.emotion-point {
    transition: transform 0.2s ease;
    transform-origin: center;
    transform-box: fill-box;
}

.emotion-point:hover {
    transform: scale(1.25);
}

.emotion-point:hover circle:first-child {
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.9));
}

/* 情绪名标签 */
.emotion-label {
    font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
    font-size: 14px;
    font-weight: 500;
    fill: #2A2A2A;
    letter-spacing: 0.8px;
    paint-order: stroke;
    stroke: rgba(255, 255, 255, 0.95);
    stroke-width: 2.2px;
    stroke-linejoin: round;
    pointer-events: none;
    user-select: none;
}

/* 四角说明（坐标轴名）*/
.corner-label {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 13px;
    font-weight: 500;
    fill: #FFFFFF;
    paint-order: stroke;
    stroke: rgba(0, 0, 0, 0.35);
    stroke-width: 2px;
    stroke-linejoin: round;
    pointer-events: none;
    user-select: none;
}

.corner-label-strong {
    font-weight: 600;
    font-size: 14px;
}

/* 悬停提示（显示最近情绪名）*/
.spectrum-hover-tip {
    position: fixed;
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(26, 26, 26, 0.92);
    color: #FFFFFF;
    border-radius: 20px;
    font-size: 13px;
    font-family: 'Noto Sans SC', sans-serif;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    white-space: nowrap;
}

.hover-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid #FFFFFF;
}

/* 打卡标记动画 */
.checkin-marker-pulse {
    animation: checkinPulse 1.8s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes checkinPulse {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    50%      { opacity: 0.55; transform: scale(1.3); }
}

.user-marker {
    animation: pulse 2s ease infinite;
}

.user-marker-label {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 14px;
    font-weight: 700;
    fill: #E91E63;
    paint-order: stroke;
    stroke: rgba(255,255,255,0.95);
    stroke-width: 3.5px;
    stroke-linejoin: round;
    pointer-events: none;
    user-select: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========== 自测工具（三层漏斗）============ */
.test-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px 32px;
    box-shadow: var(--shadow-soft);
    max-width: 640px;
    margin: 0 auto;
}

.funnel-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.funnel-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light);
    transition: var(--transition);
}

.funnel-progress-dot.active {
    background: var(--accent-warm);
    transform: scale(1.3);
}

.funnel-progress-dot.done {
    background: var(--accent-gold);
}

.funnel-progress-text {
    margin-left: 8px;
    color: var(--text-secondary);
}

.test-step {
    margin-bottom: 24px;
    animation: fadeInUp 0.4s ease;
}

.test-question {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.test-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    margin-bottom: 20px;
}

/* 选项按钮组 */
.option-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-card {
    padding: 16px 20px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-card);
    text-align: left;
    font-family: var(--font-sans);
}

.option-card:hover {
    border-color: var(--accent-warm);
    transform: translateX(4px);
    box-shadow: var(--shadow-soft);
}

.option-card.selected {
    border-color: var(--accent-warm);
    background: linear-gradient(135deg, #FAF6F0 0%, #F4ECDF 100%);
}

.option-card-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.option-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 当前象限提示 */
.current-quadrant {
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.current-quadrant-label {
    font-size: 0.75rem;
    color: var(--accent-gold);
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.current-quadrant-emotions {
    color: var(--text-primary);
    font-weight: 500;
}

.current-quadrant-tip {
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--accent-gold);
    line-height: 1.6;
}

/* 候选情绪列表 */
.candidate-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.candidate-chip {
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-sans);
}

.test-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.test-controls .btn-primary,
.test-controls .btn-secondary {
    margin: 0;
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* 自测入口卡片（test-container 默认状态） */
.test-entrance {
    text-align: center;
    padding: 16px 8px;
    animation: fadeInUp 0.4s ease;
}

.test-entrance-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.test-entrance-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.test-entrance-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    margin-bottom: 8px;
}

.test-entrance-remaining {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    margin-bottom: 24px;
}

/* ========== 结果展示 ========== */
#result-content {
    max-width: 800px;
    margin: 0 auto;
}

.result-summary {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
    text-align: center;
}

.result-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    margin-bottom: 16px;
}

.result-emotion-name {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.result-emotion-en {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    margin-bottom: 16px;
}

.result-position {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-family: var(--font-sans);
}

.result-color-bar {
    width: 60px;
    height: 4px;
    border-radius: 2px;
    margin: 16px auto 0;
}

.result-meaning {
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: left;
    font-family: var(--font-sans);
}

/* ========== 历史记录 ========== */
.history-content {
    max-width: 640px;
    margin: 0 auto;
}

.history-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    font-size: 0.9rem;
}

.history-item {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.history-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(4px);
}

.history-info {
    flex: 1;
}

.history-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    margin-bottom: 4px;
}

.history-emotion {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.history-position {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    margin-top: 2px;
}

.history-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

/* 历史记录分页"显示更多" */
.history-more-wrap {
    text-align: center;
    margin-top: 20px;
}

.history-more {
    display: inline-block;
    padding: 10px 28px;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    color: var(--text-secondary);
    background: transparent;
    border: 1.5px dashed var(--border-light);
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
}

.history-more:hover {
    border-color: var(--accent-warm);
    color: var(--accent-warm);
    transform: translateY(-2px);
}

/* ========== Footer ========== */
.footer-section {
    padding: 60px 24px 40px;
    background: var(--bg-alt);
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.footer-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    margin-bottom: 16px;
}

.footer-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    padding: 12px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

/* ========== 动画 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== 调节建议 ========== */
.result-regulation {
    margin-top: 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #FAF7F2 0%, #F4EEE4 100%);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-warm);
    text-align: left;
}

.regulation-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.regulation-icon {
    font-size: 1.1rem;
}

.regulation-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.regulation-summary {
    font-size: 0.85rem;
    color: var(--accent-warm);
    margin-bottom: 12px;
    font-family: var(--font-sans);
}

.regulation-tips {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.regulation-tip {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-family: var(--font-sans);
    padding-left: 16px;
    position: relative;
}

.regulation-tip::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-gold);
    opacity: 0.6;
}

/* ========== 每日限制 ========== */
.test-limit-message {
    text-align: center;
    padding: 32px 24px;
}

.limit-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.limit-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.limit-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    margin-bottom: 8px;
}

.limit-remaining {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    margin-bottom: 24px;
}

.limit-password-area {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-light);
}

.limit-password-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    margin-bottom: 10px;
}

.password-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    max-width: 320px;
    margin: 0 auto;
}

.password-input {
    flex: 1;
    padding: 10px 16px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    outline: none;
    transition: var(--transition);
    background: var(--bg-card);
    color: var(--text-primary);
}

.password-input:focus {
    border-color: var(--accent-warm);
    box-shadow: 0 0 0 3px rgba(201, 133, 107, 0.1);
}

.password-input::placeholder {
    color: var(--text-muted);
}

.password-error {
    font-size: 0.8rem;
    color: #d4626a;
    margin-top: 8px;
    font-family: var(--font-sans);
    min-height: 20px;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.85rem;
    margin: 0;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.shake {
    animation: shake 0.4s ease;
}

/* ========== 响应式 ========== */
@media (max-width: 640px) {
    .section {
        padding: 48px 16px;
    }

    .test-container {
        padding: 24px 16px;
    }

    .hero-decoration {
        opacity: 0.3;
    }

    .hero-svg {
        width: 400px;
        height: 400px;
    }

    .result-summary {
        padding: 24px 16px;
    }

    .test-controls {
        flex-direction: column;
        gap: 8px;
    }

    .test-controls .btn-primary,
    .test-controls .btn-secondary {
        width: 100%;
    }
}
/* ========== 每日打卡状态条 ========== */
.checkin-bar {
    max-width: 640px;
    margin: 0 auto 20px;
    padding: 0 16px;
}

.checkin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-soft);
    animation: fadeInUp 0.6s ease;
}

.checkin-card.done {
    border-color: rgba(201, 133, 107, 0.4);
}

.checkin-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.checkin-card.done .checkin-icon {
    background: linear-gradient(135deg, rgba(201,133,107,0.15), rgba(184,155,110,0.15));
}

.checkin-info {
    flex: 1;
    min-width: 0;
}

.checkin-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.checkin-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    line-height: 1.5;
}

.checkin-emotion-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-right: 6px;
}

.checkin-streak {
    flex-shrink: 0;
    text-align: center;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
}

.checkin-streak-num {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-warm);
    display: block;
    line-height: 1.2;
}

.checkin-streak-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
}

/* 打卡成功提示气泡 */
.checkin-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44, 44, 44, 0.92);
    color: #fff;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    z-index: 999;
    animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 90vw;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.checkin-toast.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-16px);
    transition: all 0.4s ease;
}

/* 光谱图打卡标记 */
.checkin-marker-group {
    pointer-events: none;
}

.checkin-marker-pulse {
    animation: checkinPulse 2.5s ease infinite;
}

@keyframes checkinPulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.3; }
}

/* ========== 情绪轨迹 ========== */
.trajectory-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}

.trajectory-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.trajectory-empty .empty-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.trajectory-timeline {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 24px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow-x: auto;
    margin-bottom: 16px;
    min-height: 120px;
}

.trajectory-day {
    flex: 1;
    min-width: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    cursor: default;
}

.trajectory-day .day-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

.trajectory-day:hover .day-dot {
    transform: scale(1.4);
}

.trajectory-day.empty .day-dot {
    width: 8px;
    height: 8px;
    background: var(--border-light);
    box-shadow: none;
}

.trajectory-day .day-label {
    font-size: 0.58rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    white-space: nowrap;
}

.trajectory-day .day-tip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44, 44, 44, 0.92);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.trajectory-day:hover .day-tip {
    opacity: 1;
}

/* 紧凑统计条（替代原4卡片洞察区） */
.trajectory-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 18px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-family: var(--font-sans);
}

.trajectory-stats .stat-item {
    white-space: nowrap;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

.trajectory-stats .stat-item b {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-warm);
    margin: 0 1px;
}

.trajectory-stats .stat-item i {
    font-style: normal;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: 1px;
}

.trajectory-stats .stat-emotion {
    font-size: 0.95rem;
}

.insight-highlight {
    margin-top: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(201,133,107,0.08), rgba(184,155,110,0.08));
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.6;
    font-family: var(--font-sans);
}

/* 移动端适配 */
@media (max-width: 600px) {
    .checkin-card {
        padding: 14px 16px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .checkin-streak {
        order: 3;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
    }

    .checkin-streak-num {
        display: inline;
    }

    .trajectory-timeline {
        padding: 18px 12px;
    }

    .trajectory-day {
        min-width: 12px;
    }

    .trajectory-day .day-label {
        display: none;
    }

    .trajectory-day:nth-child(5n+1) .day-label {
        display: block;
    }

    .insight-highlight {
        font-size: 0.82rem;
    }

    /* 光谱图：移动端横向滚动保完整 */
    .emotion-label {
        font-size: 16px;
        stroke-width: 2.4px;
    }

    .corner-label {
        font-size: 13px;
    }

    .corner-label-strong {
        font-size: 14px;
    }

    .spectrum-container {
        padding: 12px 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 修复：flex居中导致SVG左侧溢出滚不到——移动端改左对齐起排 */
    #spectrum-chart {
        justify-content: flex-start;
    }

    #spectrum-chart svg.spectrum-svg {
        min-width: 560px;  /* 移动端保持完整 viewBox，可横向滚动 */
    }

    /* 滑动提示（仅移动端显示） */
    .spectrum-scroll-hint {
        display: block;
        text-align: center;
        font-size: 0.78rem;
        color: #999;
        padding: 8px 0 2px;
        letter-spacing: 1px;
    }
}

.spectrum-scroll-hint {
    display: none;
}
