/* 1CCF · 全球要闻地球：纸张、墨线与柔和的地球配色。
   外壳与主题仅在本弹窗覆盖，画布始终保持正方形。 */
#globe-modal {
    --globe-tone: #35665a;
    --globe-wash: rgba(53, 102, 90, .05);
    background: rgba(30, 28, 22, .46) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
[data-reader-theme="green"] #globe-modal { --globe-tone: #315c3d; --globe-wash: rgba(49, 92, 61, .05); }
[data-reader-theme="parchment"] #globe-modal { --globe-tone: #795438; --globe-wash: rgba(121, 84, 56, .05); }
[data-reader-theme="dark"] #globe-modal {
    --globe-tone: #c9ac7b;
    --globe-wash: rgba(86, 139, 139, .07);
    background: rgba(0, 0, 0, .64) !important;
}
#globe-modal .globe-dialog {
    width: min(1120px, 100%);
    height: min(820px, 88vh);
    height: min(820px, 88dvh);
    max-height: 100dvh;
    padding: 26px 30px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary);
}
.globe-head {
    flex: none;
    display: flex;
    align-items: flex-end;
    gap: 24px;
    position: relative;
    padding: 0 96px 20px 0;
    border-bottom: 1px solid var(--border-color);
}
.globe-heading { min-width: 0; }
.globe-edition {
    display: block;
    margin-bottom: 7px;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .16em;
    color: var(--text-muted);
}
.globe-edition span { margin: 0 .45em; color: var(--border-color); }
.globe-title {
    font-family: var(--serif, Georgia, serif);
    font-size: clamp(1.35rem, 2.3vw, 1.8rem);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--text-primary);
}
.globe-badge {
    display: block;
    margin-top: 8px;
    font-size: .68rem;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    letter-spacing: .025em;
}
.globe-sub { font-size: .72rem; color: var(--text-muted); }
.globe-corner {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.globe-tools {
    display: flex;
    flex: none;
    align-items: center;
    margin-left: auto;
    border: 1px solid var(--border-color);
    padding: 3px;
    gap: 2px;
}
.globe-btn {
    font-family: inherit;
    font-size: .72rem;
    font-weight: 500;
    line-height: 1.2;
    padding: .5rem .65rem;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: color .15s, border-color .15s, background .15s;
}
.globe-btn:hover { color: var(--globe-tone); background: var(--hover-bg); }
.globe-btn.is-on { color: var(--globe-tone); background: var(--globe-wash); font-weight: 700; }
.globe-tools .globe-btn.is-on { background: var(--globe-tone); color: var(--card-bg); }
#globe-modal button:focus-visible { outline: 2px solid var(--globe-tone); outline-offset: 3px; }
.globe-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-color: var(--border-color);
}
.globe-icon-btn svg { width: 16px; height: 16px; }
/* ID 优先级必须压过 Tailwind 和普通外壳尺寸。 */
#globe-modal #globe-dialog.is-fullscreen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border-radius: 0;
}
.globe-body {
    flex: 1;
    display: flex;
    gap: 24px;
    min-height: 0;
    padding-top: 12px;
    overflow: hidden;
    position: relative;
}
.globe-field {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, var(--globe-wash), transparent 65%);
}
.globe-stage {
    position: relative;
    width: 320px;
    height: 320px;
    touch-action: none;
    cursor: grab;
}
.globe-stage::before {
    content: '';
    position: absolute;
    inset: 7%;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    opacity: .6;
    pointer-events: none;
}
.globe-stage[data-dragging] { cursor: grabbing; }
.globe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.globe-labels { position: absolute; inset: 0; pointer-events: none; }
.globe-leaders {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}
.globe-leader {
    fill: none;
    stroke: var(--globe-tone);
    stroke-width: .75;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .3;
    visibility: hidden;
}
.globe-leader.is-active { opacity: .8; stroke-width: 1; }
.globe-label {
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
    opacity: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    max-width: 145px;
    padding: 5px 7px;
    font-family: inherit;
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.45;
    white-space: nowrap;
    color: var(--text-primary);
    background: var(--paper, var(--card-bg));
    border: 1px solid transparent;
    pointer-events: auto;
    cursor: pointer;
    transition: opacity .18s, color .15s, border-color .15s;
}
.globe-label.is-on { visibility: visible; opacity: 1; }
.globe-label:hover { color: var(--globe-tone); border-color: var(--border-color); }
.globe-label.is-active { color: var(--globe-tone); border-color: var(--globe-tone); }
.globe-label i {
    font-style: normal;
    font-size: .6rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
}
.globe-controls {
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    display: flex;
    gap: 1px;
    z-index: 5;
    padding: 3px;
    border: 1px solid var(--border-color);
    background: var(--paper, var(--card-bg));
}
.globe-controls .globe-btn { min-width: 34px; min-height: 32px; padding: .3rem .6rem; }
.globe-overlay {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    text-align: center;
    padding: 1rem;
    background: var(--veil);
    font-size: .76rem;
    color: var(--text-secondary);
}
.globe-spinner {
    width: 26px;
    height: 26px;
    border: 1px solid var(--border-color);
    border-top-color: var(--globe-tone);
    border-radius: 50%;
    animation: globe-spin .9s linear infinite;
}
@keyframes globe-spin { to { transform: rotate(360deg); } }
.globe-drawer {
    width: 310px;
    flex: none;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-left: 1px solid var(--border-color);
    overflow: hidden;
}
.globe-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: 8px 0 12px 20px;
    color: var(--text-muted);
    font-size: .68rem;
}
.globe-drawer-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 4px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}
.globe-drawer-card { padding: 0 0 18px; border-bottom: 1px solid var(--border-color); }
.globe-drawer-name { font-family: var(--serif, Georgia, serif); font-size: 1.45rem; font-weight: 700; color: var(--text-primary); }
.globe-drawer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: .5rem;
    font-size: .65rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.globe-drawer-meta b { font-weight: 500; color: var(--text-secondary); }
.globe-drawer-cap { display: block; margin-bottom: 10px; font-size: .64rem; letter-spacing: .1em; color: var(--text-muted); }
.globe-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.globe-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 7px;
    font-size: .68rem;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: color .15s, border-color .15s;
}
.globe-chip:hover { color: var(--globe-tone); border-color: var(--globe-tone); }
.globe-chip i { font-style: normal; font-size: .58rem; color: var(--text-muted); }
.globe-articles { display: flex; flex-direction: column; }
.globe-art {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 12px 0;
    text-align: left;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}
.globe-art:hover .globe-art-title { color: var(--globe-tone); }
.globe-art-title {
    font-family: var(--serif, Georgia, serif);
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.65;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.globe-art-meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .62rem; color: var(--text-muted); }
.globe-hint { padding: 1.2rem .5rem; text-align: center; font-size: .72rem; color: var(--text-muted); }
@media (max-width: 900px) {
    .globe-body { flex-direction: column; gap: 12px; }
    .globe-drawer { width: 100%; flex: 0 1 auto; max-height: 38%; border-left: 0; border-top: 1px solid var(--border-color); }
    .globe-drawer-head { padding: 8px 0; }
    .globe-drawer-body { padding: 0 4px 12px; gap: 16px; }
}
@media (max-width: 599px) {
    #globe-modal .globe-dialog { height: min(680px, 88vh); height: min(680px, 88dvh); padding: 20px 14px 14px; }
    .globe-head { display: block; padding: 0 0 14px; }
    .globe-heading { padding-right: 84px; }
    .globe-title { font-size: 1.4rem; }
    .globe-edition { font-size: .58rem; }
    .globe-corner { gap: 4px; }
    .globe-icon-btn { width: 34px; height: 34px; }
    .globe-tools { width: max-content; margin: 14px 0 0; }
    .globe-tools .globe-btn { padding: .5rem .75rem; }
    .globe-body { padding-top: 4px; }
    .globe-label { max-width: 105px; padding: 4px; gap: 4px; font-size: .67rem; }
    .globe-label i { font-size: .54rem; }
    .globe-drawer { max-height: 42%; }
    .globe-drawer-name { font-size: 1.2rem; }
}
@media (max-height: 540px) {
    #globe-modal .globe-dialog { height: 96vh; height: 96dvh; padding: 10px 16px; }
    .globe-head { display: flex; align-items: center; padding: 0 84px 8px 0; }
    .globe-edition { display: none; }
    .globe-title { font-size: 1.15rem; }
    .globe-badge { margin-top: 3px; font-size: .6rem; }
    .globe-tools { margin: 0 0 0 auto; }
    .globe-body { flex-direction: row; padding-top: 4px; gap: 12px; }
    .globe-field { min-height: 0; }
    .globe-drawer { width: 40%; max-height: none; border-top: 0; border-left: 1px solid var(--border-color); }
    .globe-drawer-body { padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    #globe-modal, #globe-dialog, .globe-label { transition: none; }
    .globe-spinner { animation-duration: 3s; }
}
.masthead .sub-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px dotted currentColor;
    padding-bottom: 1px;
    transition: opacity .15s;
}
.masthead .sub-link:hover { opacity: .68; }
/* Tailwind 运行时会注入 display，显式提高隐藏态优先级。 */
.globe-overlay.hidden, .globe-drawer.hidden { display: none; }
