/* ============================================================
   home.css · 手机壳 + 首页 + API 配置页 + 要闻页 + 世界书页
   ============================================================ */

/* ===== 手机 ===== */
#phone-drawer {
    position: fixed;
    background: #0f0a14;
    z-index: 10;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
}

#phone-drawer.open {
    opacity: 1;
    pointer-events: auto;
}

.phone-content {
    width: 100%;
    height: 100%;
    background-color: #0f0a14;
    background-image:
        radial-gradient(circle at 15% 0%, rgba(168, 85, 247, 0.22), transparent 38%),
        radial-gradient(circle at 90% 95%, rgba(236, 72, 153, 0.14), transparent 42%),
        radial-gradient(circle at 50% 50%, rgba(192, 132, 252, 0.05), transparent 70%),
        linear-gradient(160deg, #150a24 0%, #0f0a14 40%, #0f0a14 60%, #120820 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 16px 4px;
    color: rgba(230, 220, 248, 0.88);
    font-size: 12px;
    flex-shrink: 0;
    z-index: 20;
    position: relative;
}
.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.8px solid rgba(255, 255, 255, 0.6);
    background: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 2px;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.phone-statusbar-close span {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    transition: all 0.2s;
}
.phone-statusbar-close:hover {
    border-color: rgba(192, 132, 252, 0.9);
    box-shadow: 0 0 10px rgba(192, 132, 252, 0.5);
}
.phone-statusbar-close:hover span {
    background: #c084fc;
    box-shadow: 0 0 8px rgba(192, 132, 252, 0.9);
}

.phone-pages {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0 12px 4px;
    position: relative;
}
.phone-page {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 0 4px;
    position: relative;
}
.phone-page.active {
    display: flex;
}

/* ===== 状态栏：真实时间 ===== */
.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;
    color: var(--text);
    line-height: 1;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    text-shadow:
        0 0 8px rgba(192, 132, 252, 0.75),
        0 0 20px rgba(192, 132, 252, 0.4);
}

.time-dream-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(192, 132, 252, 0.8) 0%,
        rgba(192, 132, 252, 0.5) 55%,
        rgba(192, 132, 252, 0.08) 100%
    );
    box-shadow: 0 0 6px rgba(192, 132, 252, 0.45);
}

.time-status {
    font-size: 11px;
    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 {
    position: absolute;
    inset: -34px -22px;
    pointer-events: none;
    z-index: 1;
}
.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(192, 132, 252, 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(48px, 10vh, 80px);
    font-weight: 300;
    color: var(--text);
    letter-spacing: 4px;
    line-height: 1.05;
    text-align: center;
    margin: 6px 0 6px;
    text-shadow:
        0 0 6px  rgba(192, 132, 252, 0.70),
        0 0 18px rgba(192, 132, 252, 0.50),
        0 0 40px rgba(236, 72, 153, 0.30),
        0 0 80px rgba(236, 72, 153, 0.15);
}

.time-date {
    font-size: 14px;
    color: var(--text);
    font-weight: 400;
    letter-spacing: 1.5px;
    text-align: center;
    margin: 4px 0 10px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.25);
}

.time-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 2px 4px 8px;
    font-size: 13px;
    color: var(--text);
    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(192, 132, 252, 0.8);
    background: rgba(192, 132, 252, 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(192, 132, 252, 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-poem-wrap {
    position: relative;
    padding: 10px 4px 6px;
    text-align: center;
    min-height: 44px;
}

.time-poem {
    font-family: 'Parisienne', cursive;
    font-size: 20px;
    color: rgba(245, 243, 247, 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(192, 132, 252, 0.35);
}
.time-poem:hover {
    color: #fff;
    text-shadow:
        0 0 12px rgba(255, 255, 255, 0.75),
        0 0 32px rgba(192, 132, 252, 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-grid {
    display: grid;
    /* 每列最小 = 图标宽；能放几个放几个，多余宽度均分到每列 */
    grid-template-columns: repeat(auto-fill, minmax(var(--app-icon-size), 1fr));
    gap: clamp(36px, 6.4vh, 60px) clamp(12px, 3vw, 24px);
    padding: 6px 0 14px;
    align-content: flex-start;
    flex: 1;
}
.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: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(192, 132, 252, 0.25);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border-radius: clamp(12px, 2vh, 18px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 0 8px rgba(192, 132, 252, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.app-item:hover .app-icon {
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.32), rgba(236, 72, 153, 0.32));
    border-color: rgba(236, 72, 153, 0.85);
    box-shadow:
        0 0 6px  rgba(236, 72, 153, 0.75),
        0 0 22px rgba(192, 132, 252, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    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(255, 255, 255, 0.95);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: filter 0.25s;
}
.app-item:hover .app-icon svg {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
}
.app-name {
    font-size: clamp(10px, 1.8vh, 14px);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    line-height: 1.2;
    transition: color 0.25s, text-shadow 0.25s;
}
.app-item:hover .app-name {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(236, 72, 153, 0.7);
}

/* ----- 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(192, 132, 252, 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(192, 132, 252, 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(192, 132, 252, 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(192, 132, 252, 0.25);
    color: var(--text);
    border: 1px solid rgba(192, 132, 252, 0.4);
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    font-family: inherit;
}
.api-field .row button:hover {
    background: rgba(192, 132, 252, 0.4);
    box-shadow: 0 0 12px rgba(192, 132, 252, 0.4);
}
.api-field .row button:active {
    background: rgba(192, 132, 252, 0.5);
}
.api-save-btn {
    flex-shrink: 0;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #c084fc, #ec4899);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    margin: 8px 0 14px;
    box-shadow: 0 4px 16px rgba(192, 132, 252, 0.35);
    font-family: inherit;
}
.api-save-btn:hover {
    box-shadow: 0 4px 22px rgba(236, 72, 153, 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(192, 132, 252, 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(192, 132, 252, 0.1);
    border-color: rgba(192, 132, 252, 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(236, 72, 153, 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-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(192, 132, 252, 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(192, 132, 252, 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(192, 132, 252, 0.15);
    border: 1px solid rgba(192, 132, 252, 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(192, 132, 252, 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(192, 132, 252, 0.1);
    border-color: rgba(192, 132, 252, 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(192, 132, 252, 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(192, 132, 252, 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(192, 132, 252, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    margin: 0;
    transition: all .15s;
}
.wb-knower-item:hover {
    background: rgba(192, 132, 252, 0.12);
    border-color: rgba(192, 132, 252, 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(192, 132, 252, 0.14), transparent 42%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 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(192, 132, 252, 0.15);
    border: 1px solid rgba(192, 132, 252, 0.35);
    border-radius: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.weibo-post-badge.big {
    background: rgba(236, 72, 153, 0.15);
    border-color: rgba(236, 72, 153, 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(192, 132, 252, 0.18), rgba(236, 72, 153, 0.18));
    border: 1px solid rgba(192, 132, 252, 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(192, 132, 252, 0.08);
    border: 1px dashed rgba(192, 132, 252, 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(192, 132, 252, 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(192, 132, 252, 0.1);
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s;
}
.news-pending-item:hover {
    background: rgba(192, 132, 252, 0.18);
    border-color: rgba(192, 132, 252, 0.55);
    box-shadow: 0 0 12px rgba(192, 132, 252, 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: #ec4899;
    box-shadow:
        0 0 6px rgba(236, 72, 153, 0.9),
        0 0 12px rgba(236, 72, 153, 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;
}