/* ==========================================================================
   气象奇闻与极端天气挂槽样式 (主表原生字体 / 全英文 / 纯净标题正文 / 绝对镜像对称)
   ========================================================================== */

/* 左右挂槽基础容器：直接挂载于主表两侧，采用主表全局原生字体 */
.side-slot-left, .side-slot-right {
    position: absolute;
    top: 6px;
    width: clamp(80px, 8.2vw, 130px);
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    pointer-events: auto;
}

/* 
 * 1. 左侧挂槽：右边缘距离主表左边缘严格等于 22px
 */
.side-slot-left {
    right: calc(100% + 22px);
    text-align: left;
}

/* 
 * 2. 右侧挂槽：左边缘距离主表右边缘严格等于 22px (绝对物理对称)
 */
.side-slot-right {
    left: calc(100% + 22px);
    text-align: left;
}

/* 顶部栏目标题：全英文大写，字间距与 LOCAL TIME 风格保持完全一致 */
.slot-header {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.85);
}

/* 故事内容卡片容器 */
.hook-card {
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin-bottom: 16px;
}

/* 故事标题：纯白加粗，点击直达维基百科，主表字体 */
.hook-card a.hook-title {
    font-family: 'Segoe UI', system-ui, sans-serif;
    display: block;
    font-size: clamp(10.5px, 0.8vw, 12px);
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #ffffff !important;
    line-height: 1.35;
    text-decoration: none;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.85);
    transition: color 0.2s ease;
}

.hook-card a.hook-title:hover {
    color: #6ee7b7 !important;
    text-decoration: underline;
    text-underline-offset: 2.5px;
}

/* 摘要正文：柔和浅灰，主表字体，清晰分层 */
.hook-card p {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: clamp(9.5px, 0.72vw, 10.5px);
    line-height: 1.45;
    color: #9ca3af !important;
    margin: 0;
    word-break: break-word;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.85);
}

/* 移动端极端窄屏（宽度 < 800px）隐藏，桌面与笔记本全部常驻显示 */
@media screen and (max-width: 800px) {
    .side-slot-left, .side-slot-right {
        display: none !important;
    }
}

/* ==========================================================================
   匿名讨论挂槽按钮 & 弹窗样式 (完全对齐主表毛玻璃暗黑极客美学)
   ========================================================================== */

/* 挂槽按钮容器 */
.chat-slot-box {
    margin-top: 10px;
    width: 100%;
}

.chat-slot-btn {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #e5e7eb;
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.chat-slot-btn:hover {
    color: #38bdf8;
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(56, 189, 248, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.2);
}

/* 呼吸绿色在线点 */
.chat-pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
    animation: pulse-green 2s infinite ease-in-out;
}

@keyframes pulse-green {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

/* 弹窗遮罩 */
.chat-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.chat-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* 弹窗主体容器 */
.chat-modal-container {
    width: min(520px, 92vw);
    height: min(650px, 82vh);
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.96);
    transition: transform 0.25s ease;
}

.chat-modal-overlay.active .chat-modal-container {
    transform: scale(1);
}

/* 弹窗顶部栏 */
.chat-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(17, 24, 39, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #f3f4f6;
    text-transform: uppercase;
}

.chat-modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-modal-external, .chat-modal-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
}

.chat-modal-external:hover, .chat-modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* 弹窗内容 iframe */
.chat-modal-body {
    flex: 1;
    width: 100%;
    height: 100%;
    background: #0f172a;
    position: relative;
}

.chat-modal-body iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

