/* ============================================================
   profile.css · 角色档案页
   ============================================================ */

.profile-header {
    display: flex;
    align-items: center;
    padding: 6px 0 10px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
}
.profile-back {
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
    padding-right: 12px;
}
.profile-header-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}
.profile-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 4px 24px;
}
/* ===== 顶部：左（头像+名字）| 虚线 | 右（日程）===== */
.pf-card {
    display: flex;
    align-items: stretch;
    padding: 16px 18px 20px;
    gap: 0;
}

.pf-left {
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 14px;
}

.pf-left-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pf-avatar-wrap {
    position: relative;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
}
.pf-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(192,132,252,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 600;
    color: #fff;
    font-family: 'WenJinMincho', 'Noto Serif SC', serif;
    box-shadow: 0 0 20px rgba(192,132,252,0.35);
    position: relative;
    z-index: 2;
}
.pf-avatar-wrap::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid rgba(192,132,252,0.35);
    animation: pfRingPulse 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes pfRingPulse {
    0%, 100% { transform: scale(1);    opacity: 0.6; }
    50%      { transform: scale(1.06); opacity: 1;   }
}
.pf-name {
    font-family: 'WenJinMincho', 'Noto Serif SC', serif;
    font-size: 20px;
    color: #fff;
    letter-spacing: 1.5px;
    line-height: 1.2;
    text-align: center;
    text-shadow:
        0 0 12px rgba(255,255,255,0.5),
        0 0 24px rgba(192,132,252,0.35);
}

/* 中间虚线 */
.pf-divider {
    width: 1px;
    flex-shrink: 0;
    align-self: stretch;
    background: repeating-linear-gradient(180deg,
        rgba(192,132,252,0.45) 0 3px,
        transparent 3px 8px);
    pointer-events: none;
}

/* 右侧日程 */
.pf-right {
    flex: 1 1 50%;
    min-width: 0;
    padding-left: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pf-schedule-slot {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pf-schedule-empty {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
    padding: 4px 0;
    text-align: center;
}

/* ===== 区块标题 ===== */
.pf-section-title {
    font-size: 13px;
    color: var(--primary);
    letter-spacing: 2px;
    padding: 8px 8px 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pf-section-title::before {
    content: '';
    width: 3px;
    height: 12px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* ===== 数值环 ===== */
.pf-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 14px;
    padding: 0 8px 22px;
}
.pf-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 84px;
}
.pf-stat-ring {
    position: relative;
    width: 76px;
    height: 76px;
}
.pf-stat-ring svg {
    width: 76px;
    height: 76px;
    transform: rotate(-90deg);
}
.pf-stat-ring .track {
    fill: none;
    stroke: rgba(255,255,255,0.07);
    stroke-width: 6;
}
.pf-stat-ring .fill {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.pf-stat-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 0 8px rgba(192,132,252,0.6);
}
.pf-stat-name {
    font-size: 12px;
    color: var(--text);
    letter-spacing: 0.5px;
}
.pf-stat-level {
    font-size: 10px;
    color: var(--text-dim);
}

/* ===== 看法时间轴 ===== */
.pf-timeline {
    position: relative;
    padding: 0 8px 16px;
}
.pf-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(192,132,252,0.3) 15%,
        rgba(192,132,252,0.3) 85%,
        transparent 100%);
}
.pf-perception {
    position: relative;
    display: flex;
    gap: 10px;
    padding: 8px 0;
    align-items: flex-start;
}
.pf-perception-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(192,132,252,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 8px rgba(192,132,252,0.25);
}
.pf-perception-body {
    flex: 1;
    min-width: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(192,132,252,0.15);
    border-radius: 12px;
    padding: 10px 14px;
    position: relative;
}
.pf-perception-body::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 12px;
    width: 8px;
    height: 8px;
    background: rgba(30,20,45,0.95);
    border-left: 1px solid rgba(192,132,252,0.15);
    border-bottom: 1px solid rgba(192,132,252,0.15);
    transform: rotate(45deg);
}
.pf-perception-time {
    font-size: 11px;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pf-perception-latest {
    display: inline-block;
    padding: 0 6px;
    font-size: 10px;
    color: #fff;
    background: linear-gradient(135deg, rgba(192,132,252,0.7), rgba(236,72,153,0.7));
    border-radius: 6px;
    letter-spacing: 0.5px;
}
.pf-perception-view {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}
.pf-perception-reason {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 4px;
    font-style: italic;
}

/* 空状态 */
.pf-empty {
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
    padding: 20px 0;
    font-style: italic;
}

/* 头像行：对他人小头像组 */
.pf-other-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(192,132,252,0.12);
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all .15s;
}
.pf-other-row:hover {
    background: rgba(192,132,252,0.08);
    border-color: rgba(192,132,252,0.3);
}
.pf-other-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    background-size: cover;
    background-position: center;
    border: 1.5px solid rgba(192,132,252,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}
.pf-other-info {
    flex: 1;
    min-width: 0;
}
.pf-other-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}
.pf-other-view {
    font-size: 12px;
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pf-other-count {
    font-size: 11px;
    color: var(--primary);
    flex-shrink: 0;
    padding: 2px 8px;
    background: rgba(192,132,252,0.12);
    border-radius: 8px;
}
/* ===== 无范围数值：虚线灰圈 ===== */
.pf-stat-ring-infinite .track {
    stroke: rgba(192,132,252,0.35);
    stroke-dasharray: 3 6;
    stroke-linecap: round;
}
.pf-stat-level.infinite {
    color: rgba(192,132,252,0.75);
    font-style: italic;
    letter-spacing: 0.5px;
}
/* ===== 心声 · 呼吸区（整宽）===== */
.pf-hv-card {
    position: relative;
    padding: 20px 28px;
    cursor: pointer;
    margin: 0 8px 12px;
    transition: opacity .2s;
}
.pf-hv-card:hover {
    opacity: 0.85;
}
.pf-hv-card::before,
.pf-hv-card::after {
    content: '';
    position: absolute;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(192,132,252,0.15) 15%,
        rgba(192,132,252,0.5)  50%,
        rgba(192,132,252,0.15) 85%,
        transparent 100%);
    box-shadow: 0 0 6px rgba(192,132,252,0.35);
    pointer-events: none;
}
.pf-hv-card::before { top: 0; }
.pf-hv-card::after  { bottom: 0; }

.pf-hv-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: rgba(192,132,252,0.7);
    letter-spacing: 6px;
    text-align: center;
    margin-bottom: 12px;
    padding-left: 6px;
}
.pf-hv-text {
    font-family: 'WenJinMincho', 'Noto Serif SC', serif;
    font-size: 13px;
    color: #fff;
    line-height: 1.7;
    text-align: center;
    letter-spacing: 0.5px;
    font-style: italic;
    text-shadow:
        0 0 8px rgba(255,255,255,0.22),
        0 0 18px rgba(192,132,252,0.35);
    min-height: 22px;
    word-break: break-word;
}
.pf-hv-text::before { content: '"';  margin-right: 2px; opacity: 0.5; }
.pf-hv-text::after  { content: '"';  margin-left:  2px; opacity: 0.5; }
.pf-hv-text.empty::before,
.pf-hv-text.empty::after { content: ''; }

.pf-hv-foot {
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: center;
    margin-top: 12px;
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.3px;
}
.pf-hv-more {
    color: rgba(192,132,252,0.8);
    transition: color .2s;
}
.pf-hv-card:hover .pf-hv-more {
    color: #c084fc;
}

.pf-hv-foot {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
}
.pf-hv-more {
    color: rgba(192,132,252,0.85);
    transition: color .2s;
}
.pf-hv-card:hover .pf-hv-more {
    color: #c084fc;
}
.pf-hv-more {
    color: var(--primary);
    letter-spacing: 0.5px;
}

/* ===== 心声历史弹窗 ===== */
.hv-list {
    max-height: 55vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.hv-item {
    padding: 12px 14px;
    background: rgba(192,132,252,0.06);
    border: 1px solid rgba(192,132,252,0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s;
}
.hv-item:hover {
    background: rgba(192,132,252,0.12);
    border-color: rgba(192,132,252,0.4);
}
.hv-item.summarized {
    opacity: 0.5;
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
}
.hv-item-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    font-style: italic;
    word-break: break-word;
}
.hv-item-time {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 6px;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hv-item-tag {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(192,132,252,0.15);
    color: var(--primary);
    letter-spacing: 0.5px;
}
/* ===== 日程三段 · 竖线时间轴 ===== */
.pf-sch-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 10px;
    line-height: 1.4;
    padding: 4px 0;
    color: rgba(255,255,255,0.5);
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    min-width: 0;
}
/* 左侧竖线（贯穿三段） */
.pf-sch-row::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: repeating-linear-gradient(180deg,
        rgba(192,132,252,0.45) 0 2px,
        transparent 2px 5px);
}
.pf-sch-row:first-child::before { top: 50%; }
.pf-sch-row:last-child::before  { bottom: 50%; }
/* 圆点 */
.pf-sch-row::after {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(192,132,252,0.4);
    box-shadow: 0 0 4px rgba(192,132,252,0.4);
}
.pf-sch-row .pf-sch-tag {
    font-size: 9px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.5px;
    flex-shrink: 0;
    font-family: system-ui, sans-serif;
    margin-left: 14px;
}
.pf-sch-row .pf-sch-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.pf-sch-text-time {
    display: block;
    color: rgba(255,255,255,0.75);
    font-size: 10px;
    white-space: nowrap;
}
.pf-sch-text-act {
    display: block;
    color: rgba(255,255,255,0.45);
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 此刻：高亮圆点 + 白色文字 */
.pf-sch-cur .pf-sch-text-time { color: #fff; }
.pf-sch-cur .pf-sch-text-act  { color: rgba(192,132,252,0.9); }
.pf-sch-cur::after {
    background: linear-gradient(135deg, #c084fc, #ec4899);
    box-shadow: 0 0 10px rgba(192,132,252,0.9);
    width: 9px;
    height: 9px;
    left: -1px;
    top: 7px;
}
.pf-sch-prev,
.pf-sch-next {
    opacity: 0.55;
}