/* ============================================================
   home.css · 手机壳 + 首页 + API 配置页 + 要闻页 + 世界书页
   ============================================================ */

/* ===== 手机 ===== */
#phone-drawer {
    position: fixed;
    inset: 0;
    background: #0C0810;
    /* 必须高于简易场景（.fs-page z-index 40），否则全屏手机会被盖住 */
    z-index: 70;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

#phone-drawer.open {
    opacity: 1;
    pointer-events: auto;
}

.phone-content {
    width: 100%;
    height: 100%;
    background-color: #0C0810;
    background-image:
        radial-gradient(52% 46% at 50% 0%, rgba(212, 106, 147, 0.16), transparent 72%),
        linear-gradient(180deg, rgba(12, 8, 16, 0) 0%, #0C0810 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0;
    overflow: hidden;
    height: 100%;
}

/* ===== 顶部常驻状态栏 ===== */
/* 透明覆盖在页面内容上，像手机系统状态栏；不再单独占一条底色。 */
.phone-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px 0;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    color: rgba(246, 240, 244, 0.86);
    font-size: 12px;
    flex-shrink: 0;
    z-index: 40;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    pointer-events: none;
}
.phone-statusbar-close {
    pointer-events: auto;
}
/* 日记是纸张底色，状态栏切深色字，避免白字压在米色上看不清。 */
.phone-statusbar.sb-on-paper {
    color: #3B3226;
}
.phone-statusbar.sb-on-paper .psb-signal,
.phone-statusbar.sb-on-paper .psb-wifi,
.phone-statusbar.sb-on-paper .psb-battery {
    color: #3B3226;
}
.phone-statusbar.sb-on-paper .phone-statusbar-close span {
    background: #3B3226;
}

.phone-statusbar-left,
.phone-statusbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.psb-icon {
    display: block;
}
.psb-signal {
    width: 17px;
    height: 12px;
    color: rgba(255, 255, 255, 0.9);
}
.psb-wifi {
    width: 16px;
    height: 12px;
    color: rgba(230, 220, 248, 0.88);
}
.psb-battery {
    width: 24px;
    height: 11px;
    color: rgba(230, 220, 248, 0.88);
}
.psb-5g {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.9);
}

.phone-statusbar-close {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid rgba(246, 240, 244, 0.5);
    background: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 2px;
    transition: border-color 0.2s, background 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.phone-statusbar-close span {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(246, 240, 244, 0.8);
    transition: background 0.2s;
}
.phone-statusbar-close:hover {
    border-color: var(--primary);
}
.phone-statusbar-close:hover span {
    background: var(--primary);
}
.phone-statusbar.sb-on-paper .phone-statusbar-close {
    border-color: rgba(59, 50, 38, 0.45);
}
.phone-statusbar.sb-on-paper .phone-statusbar-close span {
    background: #3B3226;
}

.phone-pages {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0 0 4px;
    position: relative;
}
.phone-page {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 0 16px;
    position: relative;
}
.phone-page.active {
    display: flex;
}

/* ===== 页面契约 =====
   所有 #page-* 根节点由 apps.js 自动加 .phone-page-shell，
   根布局只在这里维护；各页面自己的类只管内部内容。
   不要用 .app-page：首页 App 网格已经占用了这个类。 */
.phone-pages > .phone-page-shell {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    position: relative;
    /* 统一左右留白；地图/聊天/日记在自己的 ID 规则里覆盖 */
    padding-left: 16px;
    padding-right: 16px;
}
.phone-pages > .phone-page-shell.active {
    display: flex;
}

/* 状态栏改成覆盖层后，所有页面内容让出顶部；padding 区的背景仍然铺到状态栏下面。 */
.phone-pages > [id^="page-"] {
    padding-top: var(--statusbar-h);
}

/* ===== 状态栏：真实时间 ===== */
.psb-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: currentColor;
}

/* ===== 状态栏：信号 + 5G 组合 ===== */
.psb-signal-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ----- 首页 · 时间栏 ----- */
.home-header {
    position: relative;
    padding: 14px 4px 20px;
    flex-shrink: 0;
    user-select: none;
    cursor: default;
}

.time-top-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px;
}

.time-dream {
    font-family: 'Parisienne', cursive;
    font-size: 24px;
    font-weight: 400;
    color: var(--text);
    line-height: 1;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.time-dream-line {
    flex: 1;
    height: 1px;
    background: rgba(201, 166, 107, 0.35);
}

.time-status {
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 1px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 3px;
}

.home-time-wrap {
    position: relative;
    padding: 6px 0 2px;
}

.time-particles {
    display: none;
}
.time-particles span {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 5px rgba(255, 255, 255, 0.9),
        0 0 12px rgba(212, 106, 147, 0.75);
    opacity: 0;
    animation: particleDrift 8s ease-in-out infinite;
}
@keyframes particleDrift {
    0%   { opacity: 0;    transform: translateY(0) scale(0.5); }
    30%  { opacity: 1;    transform: translateY(-2px) scale(1); }
    55%  { opacity: 0.55; transform: translateY(-6px) scale(0.9); }
    75%  { opacity: 0.9;  transform: translateY(-4px) scale(1); }
    100% { opacity: 0;    transform: translateY(-10px) scale(0.5); }
}

.home-time {
    font-family: 'Cinzel', serif;
    font-size: clamp(52px, 11vh, 84px);
    font-weight: 300;
    color: var(--text);
    letter-spacing: 4px;
    line-height: 1.05;
    text-align: center;
    margin: 6px 0 6px;
}

.time-date {
    font-size: 15px;
    color: var(--text);
    font-weight: 400;
    letter-spacing: 2px;
    text-align: center;
    margin: 4px 0 10px;
    font-variant-numeric: tabular-nums;
}

.time-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 2px 4px 8px;
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.time-location {
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 8px;
    transition: color .2s, text-shadow .2s, background .2s;
}
.time-location:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(212, 106, 147, 0.8);
    background: rgba(212, 106, 147, 0.08);
}

.time-weather-wrap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text);
}

.weather-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--primary);
    filter: drop-shadow(0 0 5px rgba(212, 106, 147, 0.7));
}

.weather-label {
    font-size: 12px;
    color: var(--text-dim);
}

.weather-temp {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text);
}

/* 诗句 */
.time-heartbeat {
    display: none;
}

.time-poem-wrap {
    position: relative;
    padding: 10px 4px 6px;
    text-align: center;
    min-height: 44px;
}

.time-poem {
    font-family: 'Parisienne', cursive;
    font-size: 21px;
    color: rgba(246, 240, 244, 0.92);
    letter-spacing: 1px;
    line-height: 1.3;
    display: inline-block;
    padding: 4px 12px;
    cursor: pointer;
    transition: color .3s, text-shadow .3s;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.35),
        0 0 22px rgba(212, 106, 147, 0.35);
}
.time-poem:hover {
    color: #fff;
    text-shadow:
        0 0 12px rgba(255, 255, 255, 0.75),
        0 0 32px rgba(212, 106, 147, 0.65);
}

/* 心电图 · 一体式波形+爱心 */
.time-heartbeat {
    display: block;
    width: 100%;
    height: auto;
    max-height: 46px;
    margin: 10px 0 0;
    opacity: 0.95;
}

.hb-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: hbScan 9s linear infinite;
}

@keyframes hbScan {
    0%   { stroke-dashoffset: 1000; }
    35%  { stroke-dashoffset: 0;    }
    45%  { stroke-dashoffset: 0;    }
    90%  { stroke-dashoffset: -1000; }
    100% { stroke-dashoffset: -1000; }
}

/* ----- App 网格 ----- */
/* ===== 首页 App 分页 ===== */
.app-pages-scroll {
    flex: 1;
    min-height: 0;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.app-pages-scroll::-webkit-scrollbar { display: none; }

.app-page {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 6px 0 10px;
    scroll-snap-align: start;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.app-grid {
    display: grid;
    /* 固定 4 列：分页由 apps.js 写死（第一页 活动卡 + 4 个常用 App），
       不再用 auto-fill + 量高度 —— 移动端 vh / 安全区一变结果就差一格 */
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(18px, 3.2vh, 30px) clamp(12px, 3vw, 24px);
    padding: 6px 0 14px;
    align-content: flex-start;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.app-icon {
    width: var(--app-icon-size);
    height: var(--app-icon-size);
    background: #18111F;
    border: 1px solid #2A2033;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}
.app-item:hover .app-icon {
    background: #1E1626;
    border-color: rgba(212, 106, 147, 0.55);
    transform: translateY(-2px);
}
.app-item:active .app-icon {
    transform: translateY(0) scale(0.96);
}
.app-icon svg {
    width: clamp(22px, 4vh, 32px);
    height: clamp(22px, 4vh, 32px);
    stroke: rgba(246, 240, 244, 0.95);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: stroke 0.2s;
}
.app-item:hover .app-icon svg {
    stroke: #F6F0F4;
}
.app-name {
    font-size: clamp(12px, 1.8vh, 14px);
    color: var(--text-dim);
    text-align: center;
    line-height: 1.2;
    transition: color 0.2s;
}
.app-item:hover .app-name {
    color: var(--text);
}

/* ----- API 配置页面 ----- */
.api-page {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 0 4px;
    overflow-y: auto;
}
.api-page.active {
    display: flex;
}
.api-header {
    display: flex;
    align-items: center;
    padding: 6px 0 10px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
}
.api-back {
    font-size: 24px;
    cursor: pointer;
    padding-right: 12px;
    color: var(--primary);
}
.api-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
}
.api-config-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.api-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 106, 147, 0.18);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.api-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}
.api-field {
    margin-bottom: 10px;
}
.api-field label {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 4px;
}
.api-field input,
.api-field select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(212, 106, 147, 0.22);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}
.api-field input:focus,
.api-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 106, 147, 0.18);
}
.api-field select option {
    background: #1a0e2e;
    color: #fff;
}
.api-field .row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.api-field .row select {
    flex: 1;
}
.api-field .row button {
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(212, 106, 147, 0.25);
    color: var(--text);
    border: 1px solid rgba(212, 106, 147, 0.4);
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    font-family: inherit;
}
.api-field .row button:hover {
    background: rgba(212, 106, 147, 0.4);
    box-shadow: 0 0 12px rgba(212, 106, 147, 0.4);
}
.api-field .row button:active {
    background: rgba(212, 106, 147, 0.5);
}
.api-field .row button:disabled {
    opacity: 0.6;
    cursor: wait;
}
.api-hint {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-dim);
    opacity: 0.85;
}
.api-test-result {
    display: none;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
}
.api-test-result.pending,
.api-test-result.ok,
.api-test-result.error {
    display: block;
}
.api-test-result.pending {
    background: rgba(212, 106, 147, 0.12);
    color: var(--text-dim);
}
.api-test-result.ok {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.25);
}
.api-test-result.error {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
}
.api-save-btn {
    flex-shrink: 0;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: #D46A93;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    margin: 8px 0 14px;
    box-shadow: 0 4px 16px rgba(212, 106, 147, 0.35);
    font-family: inherit;
}
.api-save-btn:hover {
    box-shadow: 0 4px 22px rgba(201, 166, 107, 0.55);
    transform: translateY(-1px);
}
.api-save-btn:active {
    transform: translateY(0);
}


/* ============================================================
   要闻页面
   ============================================================ */
.news-page {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 0 4px;
    position: relative;
}
.news-page.active {
    display: flex;
}
.news-header {
    display: flex;
    align-items: center;
    padding: 6px 0 10px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
}
.news-back {
    font-size: 24px;
    cursor: pointer;
    padding-right: 12px;
    color: var(--primary);
}
.news-header-title {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}
.news-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}
.news-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 106, 147, 0.15);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all .2s;
}
.news-item:hover {
    background: rgba(212, 106, 147, 0.1);
    border-color: rgba(212, 106, 147, 0.35);
    transform: translateY(-1px);
}
.news-item-time {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.news-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(201, 166, 107, 0.8);
    display: inline-block;
}
.news-item-content {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 6px;
}
.news-item-location {
    font-size: 12px;
    color: var(--text-dim);
}
.news-empty {
    text-align: center;
    color: var(--text-dim);
    padding: 60px 0;
    font-size: 14px;
}
.news-empty-hint {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(200, 185, 230, 0.55);
}

/* ===== 要闻页签 ===== */
.news-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 2px 4px;
    flex-shrink: 0;
}
.news-tab {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-dim);
    font-size: 13px;
    padding: 8px 0 7px;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}
.news-tab:hover {
    color: var(--text);
}
.news-tab.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
    font-weight: 600;
}
.news-tab-action {
    flex-shrink: 0;
    margin-left: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(212, 106, 147, 0.45);
    border-radius: 999px;
    background: rgba(212, 106, 147, 0.16);
    color: var(--text);
    font-size: 12px;
    cursor: pointer;
    transition: all .2s;
}
.news-tab-action:hover:not(:disabled) {
    background: rgba(212, 106, 147, 0.3);
    border-color: rgba(201, 166, 107, 0.6);
}
.news-tab-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.news-world-status {
    flex-shrink: 0;
    margin: 0 2px 6px;
    padding: 5px 9px;
    border-radius: 8px;
    background: rgba(212, 106, 147, 0.08);
    border: 1px solid rgba(212, 106, 147, 0.14);
    color: var(--text-dim);
    font-size: 11px;
    line-height: 1.45;
}

/* ===== 世界热点 ===== */
.hotspot-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 106, 147, 0.18);
    border-radius: 14px;
    padding: 13px 15px;
    margin-bottom: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all .2s;
}
.hotspot-item:hover {
    background: rgba(212, 106, 147, 0.1);
    border-color: rgba(212, 106, 147, 0.4);
    transform: translateY(-1px);
}
.hotspot-item.cooling {
    opacity: 0.55;
}
.hotspot-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}
.hotspot-tag {
    font-size: 11px;
    color: var(--accent);
    background: rgba(201, 166, 107, 0.1);
    border-radius: 999px;
    padding: 2px 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hotspot-heat {
    font-size: 11px;
    color: #fbbf24;
    letter-spacing: 1px;
    flex-shrink: 0;
}
.hotspot-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 5px;
}
.hotspot-summary {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 10px;
}
.hotspot-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.hotspot-progress {
    font-size: 11px;
    color: var(--text-dim);
}
.hotspot-advance {
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid rgba(212, 106, 147, 0.45);
    background: rgba(212, 106, 147, 0.16);
    color: var(--text);
    font-size: 12px;
    cursor: pointer;
    transition: all .2s;
}
.hotspot-advance:hover:not(:disabled) {
    background: rgba(201, 166, 107, 0.25);
    border-color: rgba(201, 166, 107, 0.6);
}
.hotspot-advance:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ===== 推荐流 ===== */
.reco-card {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(212, 106, 147, 0.14);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all .2s;
}
.reco-card:hover {
    background: rgba(212, 106, 147, 0.1);
    border-color: rgba(212, 106, 147, 0.35);
    transform: translateY(-1px);
}
.reco-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 106, 147, 0.7), rgba(201, 166, 107, 0.65));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.reco-main {
    flex: 1;
    min-width: 0;
}
.reco-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}
.reco-time {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 400;
    margin-left: 8px;
}
.reco-body {
    font-size: 14px;
    color: var(--text);
    line-height: 1.55;
    margin-bottom: 6px;
    word-break: break-word;
}
.reco-stats {
    font-size: 11px;
    color: var(--text-dim);
}


/* ===== 要闻详情 ===== */
.news-detail-body {
    max-height: 60vh;
    overflow-y: auto;
    margin-bottom: 4px;
}

.news-detail-meta {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.news-detail-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin: 14px 0 6px;
}

.news-detail-report {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 106, 147, 0.15);
    padding: 12px 14px;
    border-radius: 10px;
    white-space: pre-wrap;
}

.news-detail-comments {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-detail-comment {
    font-size: 13px;
    color: var(--text);
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 12px;
    border-radius: 8px;
}

.news-detail-name {
    color: var(--primary);
    font-weight: 500;
}

.news-detail-loading {
    text-align: center;
    color: var(--text-dim);
    padding: 30px 0;
    font-size: 14px;
}

.news-detail-error {
    text-align: center;
    color: #fca5a5;
    padding: 30px 0;
    font-size: 14px;
}


/* ===== 世界书页面 ===== */
.worldbook-page {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 0 4px;
    position: relative;
}
.worldbook-page.active {
    display: flex;
}
.worldbook-header {
    display: flex;
    align-items: center;
    padding: 6px 0 10px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
}
.worldbook-back {
    font-size: 24px;
    cursor: pointer;
    padding-right: 12px;
    color: var(--primary);
}
.worldbook-title {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}
.worldbook-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}
.wb-book {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 106, 147, 0.18);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.wb-book-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.wb-book-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.wb-book-scope {
    font-size: 12px;
    color: var(--primary);
    background: rgba(212, 106, 147, 0.15);
    border: 1px solid rgba(212, 106, 147, 0.25);
    padding: 2px 8px;
    border-radius: 10px;
}
.wb-book-edit {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    font-family: inherit;
    transition: text-shadow .2s;
}
.wb-book-edit:hover {
    text-shadow: 0 0 10px rgba(212, 106, 147, 0.8);
}
.wb-book-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wb-entry {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all .15s;
}
.wb-entry:hover {
    background: rgba(212, 106, 147, 0.1);
    border-color: rgba(212, 106, 147, 0.3);
}
.wb-entry-keywords {
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 4px;
    font-weight: 500;
}
.wb-entry-content {
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
    max-height: 60px;
    overflow: hidden;
    display: -webkit-box;
/* stylelint-disable-next-line property-no-vendor-prefix */    
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.wb-entry-empty {
    font-size: 13px;
    color: var(--text-dim);
    padding: 8px 0;
}
.wb-add-entry {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border: 1px dashed rgba(212, 106, 147, 0.4);
    border-radius: 10px;
    background: none;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}
.wb-add-entry:hover {
    background: rgba(212, 106, 147, 0.08);
    border-color: var(--primary);
}
.wb-empty {
    text-align: center;
    color: var(--text-dim);
    padding: 60px 0;
    font-size: 14px;
}


/* 世界书条目 · 知情者多选 */
.wb-knowers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
}
.wb-knower-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 106, 147, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    margin: 0;
    transition: all .15s;
}
.wb-knower-item:hover {
    background: rgba(212, 106, 147, 0.12);
    border-color: rgba(212, 106, 147, 0.4);
}
.wb-knower-item input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--primary);
}

/* ===== 手机背景光晕 · 缓慢流动 ===== */
.phone-content::before {
    content: '';
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(circle at 50% 50%, rgba(212, 106, 147, 0.14), transparent 42%),
        radial-gradient(circle at 50% 50%, rgba(201, 166, 107, 0.08), transparent 35%);
    animation: glowDrift 40s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}
@keyframes glowDrift {
    0%   { transform: translate(-18%, -12%) scale(1); }
    50%  { transform: translate(15%, 8%)   scale(1.08); }
    100% { transform: translate(-8%, 14%)  scale(0.96); }
}
/* ============================================================
   要闻详情 · 微博风
   ============================================================ */

.weibo-modal-box {
    max-width: 92%;
    max-height: 90vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.weibo-topbar {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    gap: 12px;
}
.weibo-back {
    font-size: 26px;
    cursor: pointer;
    color: var(--primary);
    line-height: 1;
    padding: 0 4px;
    transition: color .2s;
}
.weibo-back:hover { color: var(--accent); }
.weibo-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.weibo-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px 22px;
}

/* ===== 主贴 ===== */
.weibo-post {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 6px;
}

.weibo-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.weibo-post-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: rgba(212, 106, 147, 0.15);
    border: 1px solid rgba(212, 106, 147, 0.35);
    border-radius: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.weibo-post-badge.big {
    background: rgba(201, 166, 107, 0.15);
    border-color: rgba(201, 166, 107, 0.4);
    color: var(--accent);
}
.weibo-post-time {
    font-size: 12px;
    color: var(--text-dim);
    margin-left: auto;
}

.weibo-post-content {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
    letter-spacing: 0.2px;
}

.weibo-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-dim);
}
.weibo-post-location {
    color: var(--primary);
    font-size: 12px;
}
.weibo-post-stats {
    display: flex;
    gap: 16px;
}
.weibo-post-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ===== 分隔线 ===== */
.weibo-divider {
    height: 8px;
    background: rgba(255, 255, 255, 0.03);
    margin: 18px -20px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ===== 评论标题 ===== */
.weibo-comments-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.weibo-comments-title::before {
    content: '';
    width: 3px;
    height: 14px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* ===== 评论 ===== */
.weibo-comments {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.weibo-comment {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.weibo-comment-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 106, 147, 0.18), rgba(201, 166, 107, 0.18));
    border: 1px solid rgba(212, 106, 147, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    flex-shrink: 0;
}
.weibo-comment-body {
    flex: 1;
    min-width: 0;
}
.weibo-comment-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}
.weibo-comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    word-break: break-word;
}
.weibo-comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 7px;
    font-size: 12px;
    color: var(--text-dim);
}
.weibo-comment-like {
    cursor: pointer;
    transition: color .2s;
}
.weibo-comment-like:hover {
    color: var(--accent);
}

/* ===== 加载更多 ===== */
.weibo-load-more {
    display: block;
    width: 100%;
    margin-top: 22px;
    padding: 10px;
    background: rgba(212, 106, 147, 0.08);
    border: 1px dashed rgba(212, 106, 147, 0.35);
    border-radius: 10px;
    color: var(--primary);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
}
.weibo-load-more:hover:not(:disabled) {
    background: rgba(212, 106, 147, 0.18);
    border-style: solid;
}
.weibo-load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* ===== 要闻页 · 地点事件提示栏 ===== */
.news-pending-banner {
    flex-shrink: 0;
    padding: 8px 4px 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.news-pending-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(212, 106, 147, 0.1);
    border: 1px solid rgba(212, 106, 147, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s;
}
.news-pending-item:hover {
    background: rgba(212, 106, 147, 0.18);
    border-color: rgba(212, 106, 147, 0.55);
    box-shadow: 0 0 12px rgba(212, 106, 147, 0.25);
}
.news-pending-icon {
    font-size: 16px;
    flex-shrink: 0;
}
.news-pending-text {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-pending-loc {
    color: var(--primary);
    font-weight: 500;
    margin-right: 6px;
}
.news-pending-time {
    font-size: 11px;
    color: var(--text-dim);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.news-pending-more {
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
    padding: 4px 0;
}

/* ===== App 图标红点 ===== */
.app-item {
    position: relative;
}
.app-icon {
    position: relative;
}
.app-icon.has-badge::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #C9A66B;
    box-shadow:
        0 0 6px rgba(201, 166, 107, 0.9),
        0 0 12px rgba(201, 166, 107, 0.6);
    border: 1.5px solid rgba(15, 10, 20, 0.9);
    animation: appBadgePulse 2s ease-in-out infinite;
}
@keyframes appBadgePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.15); opacity: 0.85; }
}
/* ============================================================
   要闻详情 · 独立页
   ============================================================ */
.news-detail-page {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 0 4px;
    position: relative;
}
.news-detail-page.active {
    display: flex;
}
.news-detail-page-header {
    display: flex;
    align-items: center;
    padding: 6px 0 10px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}
.news-detail-page-back {
    font-size: 26px;
    cursor: pointer;
    color: var(--primary);
    line-height: 1;
    padding: 0 4px;
    transition: color .2s;
}
.news-detail-page-back:hover {
    color: var(--accent);
}
.news-detail-page-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}
.news-detail-page-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 8px 24px;
}

/* ===== 热点 / 推荐 详情 ===== */
.hotspot-detail-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
    margin: 10px 0;
}
.hotspot-follow-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
}
.hotspot-follow-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.hotspot-follow-kind {
    flex-shrink: 0;
    font-size: 10px;
    color: var(--accent);
    background: rgba(201, 166, 107, 0.1);
    border-radius: 999px;
    padding: 2px 7px;
    margin-top: 1px;
}
.hotspot-follow-title {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
    word-break: break-word;
}
.hotspot-follow-empty {
    font-size: 13px;
    color: var(--text-dim);
    padding: 4px 0 12px;
}
.reco-detail-author {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 10px 0;
}
.reco-detail-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* ============================================================
   官方账号 / 世界推进设置
   ============================================================ */
.news-world-settings-btn {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    margin-left: 6px;
    border: 1px solid rgba(212, 106, 147, 0.28);
    border-radius: 50%;
    background: rgba(212, 106, 147, 0.1);
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: all .2s;
}
.news-world-settings-btn:hover {
    background: rgba(212, 106, 147, 0.24);
    border-color: rgba(212, 106, 147, 0.5);
    color: var(--text);
}
.news-item-is-official {
    background: rgba(212, 106, 147, 0.08);
    border-color: rgba(212, 106, 147, 0.32);
}
.news-item-official {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(212, 106, 147, 0.18);
    border: 1px solid rgba(212, 106, 147, 0.38);
    color: var(--primary);
    font-size: 10px;
    line-height: 1.5;
    white-space: nowrap;
}
.news-item-author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
}
.news-item-status {
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.14);
    color: #fbbf24;
    font-size: 10px;
    font-weight: 400;
    white-space: nowrap;
}
.reco-card-official {
    border-color: rgba(212, 106, 147, 0.34);
    background: rgba(212, 106, 147, 0.07);
}
.reco-official-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(212, 106, 147, 0.2);
    border: 1px solid rgba(212, 106, 147, 0.42);
    color: var(--primary);
    font-size: 9px;
    font-weight: 400;
    line-height: 1.6;
    vertical-align: 1px;
    white-space: nowrap;
}
.reco-official-title {
    margin-left: 5px;
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 400;
}
.weibo-post-is-official .weibo-post-content {
    padding-left: 0;
}
.weibo-post-badge.official {
    background: rgba(212, 106, 147, 0.18);
    border-color: rgba(212, 106, 147, 0.45);
    color: var(--primary);
}
.weibo-post-status {
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.14);
    color: #fbbf24;
    font-size: 10px;
    white-space: nowrap;
}
.weibo-post-author {
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
}
.world-settings-hint,
.content-settings-hint {
    margin: 0 0 12px;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.6;
}
.world-settings-scope {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    margin-bottom: 8px;
    padding: 11px 14px;
    border: 1px solid rgba(212, 106, 147, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
}
.world-settings-scope:hover:not(:disabled) {
    background: rgba(212, 106, 147, 0.12);
    border-color: rgba(212, 106, 147, 0.45);
}
.world-settings-scope:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.world-settings-scope strong {
    font-size: 14px;
    font-weight: 500;
}
.world-settings-scope span {
    color: var(--text-dim);
    font-size: 11px;
}
.world-settings-auto {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0 4px !important;
    color: var(--text) !important;
    font-size: 13px !important;
    line-height: 1.5;
    cursor: pointer;
}
.world-settings-auto input[type="checkbox"] {
    width: auto;
    margin: 2px 0 0;
    accent-color: #D46A93;
    flex-shrink: 0;
}

/* 要闻设置：内容生成 + 世界推进合并在同一个弹窗 */
.news-settings-modal {
    max-height: 88vh;
}
.news-settings-section {
    padding: 4px 0 14px;
    border-bottom: 1px solid rgba(212, 106, 147, 0.14);
}
.news-settings-section + .news-settings-section {
    padding-top: 16px;
    border-bottom: none;
}
.news-settings-section-title {
    margin-bottom: 6px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
}
.news-settings-save-content {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: #D46A93;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(212, 106, 147, 0.3);
    transition: all .2s;
}
.news-settings-save-content:hover {
    box-shadow: 0 4px 22px rgba(201, 166, 107, 0.5);
    transform: translateY(-1px);
}
/* ===== 手机框：从场景里打开手机 ===== */
body.phone-framed::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 75;
}
#phone-drawer.framed {
    inset: auto;
    left: 50%;
    top: 50%;
    width: min(92vw, 430px);
    height: min(88vh, 860px);
    transform: translate(-50%, -50%);
    border-radius: 38px;
    border: 8px solid #1a1424;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 0 2px rgba(212, 106, 147, .2);
    z-index: 80;
}
#phone-drawer.framed .phone-content { border-radius: 30px; }
/* ===== 热点双池 ===== */
.hotspot-toolbar { display: flex; justify-content: flex-end; padding: 8px 0; }
.hotspot-refresh-btn {
    border: 1px solid var(--border); background: rgba(212, 106, 147, .12);
    color: var(--text); border-radius: 999px; padding: 6px 12px; font-size: 12px;
}
.hotspot-section-title { font-size: 12px; opacity: .6; padding: 10px 2px 6px; }
.hotspot-act {
    border: 1px solid var(--border); background: transparent; color: var(--text);
    border-radius: 999px; padding: 4px 10px; font-size: 12px; margin-left: 6px;
}
.hotspot-act.danger { border-color: rgba(240, 120, 120, .45); color: #f0a0a0; }
/* ===== 世界书折叠 / 多角色绑定 ===== */
.wb-book-arrow { width: 14px; flex: none; opacity: .6; }
.wb-book-body[hidden] { display: none; }
.wb-book-chars {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 6px 0 2px;
}
/* 通话页：页面本身已有 16px 内边距，内部不再重复 */
#page-call > div:first-child { padding-left: 0; padding-right: 0; }
#callAppBody { padding-left: 0; padding-right: 0; }
#page-call > div:last-child { left: -16px; right: -16px; }

/* ===== 通话记录：行 / 多选 / 操作栏 ===== */
.call-log-hint { color: #9A8CA3; font-size: 11px; padding: 6px 0 2px; }
.call-log-empty { padding: 32px 0; color: #9A8CA3; text-align: center; font-size: 13px; }
.call-log-head {
    font-family: 'Noto Serif SC', serif; font-size: 18px;
    color: #F6F0F4; margin: 2px 0 4px;
}
.call-log-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 0; cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    -webkit-tap-highlight-color: transparent;
}
.call-log-main { flex: 1; min-width: 0; }
.call-log-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.call-log-name { font-size: 15px; color: #F6F0F4; }
.call-log-mode { flex: none; font-size: 12px; color: #9A8CA3; }
.call-log-meta { margin-top: 4px; font-size: 12px; color: #9A8CA3; }
.call-log-text {
    margin-top: 4px; font-size: 13px; color: #9A8CA3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.call-contact-item {
    padding: 12px 0; cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    -webkit-tap-highlight-color: transparent;
}
.call-contact-item:hover { color: inherit; }

/* 勾选圈：只有选中态才填色，未选中是一条细线 */
.call-log-check {
    position: relative; flex: none; width: 18px; height: 18px;
    border-radius: 50%; border: 1px solid rgba(192, 132, 252, .45);
    transition: background .12s ease, border-color .12s ease;
}
.call-log-check::after {
    content: ''; position: absolute; left: 5px; top: 2px;
    width: 5px; height: 9px;
    border-right: 1.5px solid #0C0810; border-bottom: 1.5px solid #0C0810;
    transform: rotate(40deg) scale(0); transform-origin: center;
    transition: transform .12s ease;
}
.call-log-item.is-selected { background: rgba(192, 132, 252, .10); }
.call-log-item.is-selected .call-log-check { background: #C084FC; border-color: #C084FC; }
.call-log-item.is-selected .call-log-check::after { transform: rotate(40deg) scale(1); }
.call-log-item.is-selected .call-log-name { color: #F6F0F4; }
.call-log-item.is-selected .call-log-text { color: #C8BCCB; }

.call-select-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.call-select-bar[hidden] { display: none; }
.call-select-count { flex: 1; font-size: 12px; color: #9A8CA3; }
.call-select-btn {
    flex: none; padding: 5px 12px; font-size: 12px; font-family: inherit;
    color: #F6F0F4; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(192, 132, 252, .35);
    background: rgba(192, 132, 252, .10);
}
.call-select-btn:disabled { opacity: .45; cursor: default; }
.call-select-btn.danger {
    border-color: rgba(240, 120, 120, .38);
    color: #F0A0A0; background: rgba(240, 120, 120, .08);
}
.call-back {
    display: block; padding: 4px 0 6px;
    border: none; background: none; cursor: pointer;
    color: #C8BCCB; font-size: 13px; font-family: inherit;
}
.call-record-text {
    white-space: pre-wrap; font-size: 14px; line-height: 1.8; color: #F6F0F4;
}

/* ===== 首页时间栏：只属于第一页 =====
   横向翻到第二页 app 时，它跟着第一页一起走掉（收起 + 淡出，不是硬切）。 */
/* 时间栏现在是第一页 app 的一部分：翻页时跟着滑走，不再需要淡出收起 */
#page-home.home-p2 .home-header {
    max-height: none !important;
    opacity: 1 !important;
    padding-top: 14px !important;
    padding-bottom: 20px !important;
    transform: none !important;
}
#page-home .home-header {
    overflow: hidden;
    max-height: 520px;
    transition: max-height .3s cubic-bezier(.4, 0, .2, 1),
                opacity .22s ease,
                padding .3s cubic-bezier(.4, 0, .2, 1),
                transform .3s cubic-bezier(.4, 0, .2, 1);
}
#page-home.home-p2 .home-header {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    transform: translateY(-18px);
    pointer-events: none;
}

/* ===== 顶部栏（系统状态栏）关掉以后，页面顶部的留白也收掉 ===== */
.phone-content.sb-hidden {
    --statusbar-h: 0px;
}
/* ===== 世界书条目 · 章节特赦 ===== */
.wb-chapter-pick {
    margin-top: 8px;
    max-height: 168px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 10px;
    padding: 8px 10px;
}
.wb-chapter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    line-height: 2;
    opacity: .9;
}
.wb-chapter-row input { width: auto; margin: 0; }
.wb-chapter-empty { font-size: 12px; opacity: .55; }
.wb-chapter-tag {
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 9px;
    letter-spacing: .08em;
    color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(201, 166, 107, .45);
}
