/* =========================================
   1. 基础变量与全局重置
   ========================================= */
:root {
    --bg-main: #0a0a0a;
    --card-bg: #161616;
    --text-white: #ffffff;
    --text-gray: #888888;
    --accent-blue: #00a1d6;
    --accent-light: #00d4ff;
    --accent-red: #ff3333;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    margin: 0; padding: 0; overflow-x: hidden;
}

/* 滚动条自定义 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; border: 2px solid #0a0a0a; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* =========================================
   2. 导航栏
   ========================================= */
.navbar-fixed {
    position: sticky; top: 0; z-index: 1000;
    background-color: rgba(10, 10, 10, 0.85);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 60px; display: flex; align-items: center;
}
.nav-container {
    max-width: 1200px; width: 100%; margin: 0 auto; padding: 10px 15px;
    display: flex; justify-content: space-between; align-items: center;
}
.site-logo { 
    font-size: 22px; font-weight: 800; color: var(--accent-blue); 
    cursor: pointer; text-shadow: 0 0 15px rgba(0, 161, 214, 0.3);
}
.category-nav { display: flex; gap: 10px; }
.nav-item { 
    padding: 6px 16px; border-radius: 8px; cursor: pointer; font-size: 14px; 
    background: rgba(255, 255, 255, 0.05); color: var(--text-gray); 
    transition: var(--transition); border: 1px solid transparent; 
}
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.nav-item.active { 
    background: var(--accent-blue); color: #fff; 
    box-shadow: 0 4px 12px rgba(0, 161, 214, 0.4); 
}

/* =========================================
   3. 搜索与通用标题
   ========================================= */
.search-area { max-width: 1300px; margin: 36px auto 30px auto; padding: 0 20px; display: flex; justify-content: center; align-items: center; gap: 14px; }
.search-box { position: relative; width: 100%; max-width: 900px; }

/* 搜索图标：内嵌 SVG，焦点时跟随发光 */
.search-box .search-icon {
    position: absolute;
    left: 22px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px;
    fill: none; stroke: #666;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    transition: stroke 0.3s ease;
    pointer-events: none;
    z-index: 2;
}
.search-box input:focus ~ .search-icon { stroke: var(--accent-light); }

/* 搜索框：默认态也带轻微蓝光，让它始终"亮"着，不被公告栏抢戏 */
.search-box input {
    width: 100%;
    height: 60px;
    padding: 0 56px;
    border-radius: 30px;                /* 胶囊圆角 */
    border: 1px solid rgba(0, 161, 214, 0.35);
    background: var(--card-bg);          /* #161616，与卡片同色 */
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    box-shadow: 0 0 12px rgba(0, 161, 214, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.search-box input::placeholder { color: #555; }
.search-box input:hover {
    border-color: rgba(0, 161, 214, 0.55);
    background: #181818;
    box-shadow: 0 0 16px rgba(0, 161, 214, 0.18);
}
.search-box input:focus {
    border-color: var(--accent-blue);
    background: #1a1a1a;
    box-shadow: 0 0 0 4px rgba(0, 161, 214, 0.15),
                0 0 24px rgba(0, 212, 255, 0.35);
}
/* 搜索框右侧外：公告按钮（折叠态，风格同"更多"） */
.search-area .ann-toggle {
    flex-shrink: 0;
}

/* =========================================
   3.1 年份筛选条 (通用筛选器)
   ========================================= */
.year-filter-area { max-width: 1300px; margin: 0 auto 24px auto; padding: 0 20px; }
.year-filter {
    display: flex; align-items: center; gap: 14px;
    background: var(--card-bg); border: 1px solid #1f1f1f; border-radius: 12px;
    padding: 12px 16px;
}
.year-filter-label {
    flex-shrink: 0; font-size: 13px; color: var(--text-gray); font-weight: 600;
    letter-spacing: 0.5px; padding-right: 14px; border-right: 1px solid #2a2a2a;
}
.year-filter-list {
    display: flex; align-items: center; gap: 7px; flex-wrap: wrap; flex: 1; min-width: 0;
}
.year-chip {
    padding: 5px 13px; border-radius: 6px; cursor: pointer; font-size: 13px;
    background: rgba(255, 255, 255, 0.05); color: var(--text-gray);
    border: 1px solid transparent; transition: var(--transition); white-space: nowrap;
    user-select: none;
}
.year-chip:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.year-chip.active {
    background: var(--accent-blue); color: #fff;
    box-shadow: 0 4px 12px rgba(0, 161, 214, 0.4);
}

.section-header { max-width: 1300px; margin: 0 auto 20px auto; padding: 0 20px; }
.section-title { font-size: 20px; font-weight: 600; display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.section-title::before { content: ""; width: 4px; height: 20px; background-color: var(--accent-blue); border-radius: 2px; }

/* =========================================
   4. 首页列表 (大图与标签样式)
   ========================================= */
.main-content { max-width: 1300px; margin: 0 auto; padding: 0 20px 40px 20px; min-height: 400px; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }

.video-card { 
    width: 100%; 
    cursor: pointer; 
    transition: var(--transition); 
    display: flex; 
    flex-direction: row; 
    gap: 15px; /* 调节图片与文字之间的距离 */
    background: rgba(255, 255, 255, 0.03); 
    padding: 8px; /* 调节内容到蓝色边框之间的距离 */
    border-radius: 14px; 
    position: relative;
}

.video-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.07); }

.video-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--accent-blue); 
    border-radius: 14px; 
    opacity: 0;
    pointer-events: none; 
    transition: var(--transition);
    z-index: 5;
    box-shadow: 0 0 15px rgba(0, 161, 214, 0.3); 
}

.video-card:hover::after {
    opacity: 1;
}

/* 图片容器 */
.poster-box { 
    position: relative; 
    width: 220px; 
    flex-shrink: 0; 
    aspect-ratio: 3 / 4.2; 
    border-radius: 10px; 
    overflow: hidden; 
    background-color: #1a1a1a;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}
.poster-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }

/* 强化图片上的标签样式 */
.category-badge, .time-badge { 
    position: absolute; 
    padding: 4px 10px; 
    font-size: 11px; 
    font-weight: 700; 
    border-radius: 6px; 
    z-index: 2;
    background: rgba(0, 0, 0, 0.75); 
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.category-badge { top: 3px; left: 3px; color: var(--accent-light); letter-spacing: 1px; }
.time-badge { bottom: 3px; right: 3px; color: #ffffff; font-family: 'Consolas', monospace; }

/* 文章信息区 */
.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; 
    padding: 2px; 
}
.info-title { 
    font-size: 22px; font-weight: 800; line-height: 1.3; 
    background: linear-gradient(to right, #fff, var(--accent-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.detail-meta-horizontal { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: 5px; font-size: 13px; }
.meta-label { color: #666; font-weight: 500; }
.meta-value { color: var(--accent-light); font-family: 'Consolas', monospace; font-weight: bold; }

/* 优化按钮的包裹层 */
.info-content > div:has(.btn-info-inline) {
    margin-bottom: 12px;
    padding: 5px 0; 
    display: flex;
}

/* 重新设计的百科按钮 CSS */
.btn-info-inline {
    position: relative;
    padding: 6px 16px;
    background: linear-gradient(135deg, #00a1d6, #0082ab);
    color: #fff !important;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    box-shadow: 0 4px 10px rgba(0, 161, 214, 0.2);
    overflow: hidden; 
    z-index: 1;
}

.btn-info-inline:hover {
    transform: translateY(-2px) scale(1.08); 
    box-shadow: 0 8px 20px rgba(0, 161, 214, 0.4);
    filter: brightness(1.1);
}

/* 优化流光闪烁动画 */
.btn-info-inline::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: rotate(30deg);
    transition: 0.8s;
}

.btn-info-inline:hover::after {
    left: 150%; 
}

/* 图标动画微调 */
.btn-info-inline i {
    font-style: normal;
    transition: transform 0.3s ease;
}

.btn-info-inline:hover i {
    transform: scale(1.2) rotate(10deg);
}

.tag-container { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; max-height: 60px; overflow: hidden; }
.tag-pill {
    cursor: pointer; font-size: 12px; padding: 4px 10px; 
    background: rgba(0, 212, 255, 0.08); color: var(--accent-light); 
    border: 1px solid rgba(0, 212, 255, 0.25); border-radius: 6px; transition: 0.2s;
}
.tag-pill:hover { background: var(--accent-light) !important; color: #000 !important; }
.card-desc { font-size: 14px; color: #bbb; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* =========================================
   5. 详情页弹窗与关闭按钮
   ========================================= */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95); z-index: 10000; align-items: center; justify-content: center;
}
.modal-content {
    background: var(--card-bg); width: 90%; max-width: 850px; height: 85vh;
    border-radius: 20px; position: relative; border: 1px solid #333; overflow: hidden;
    animation: modal-in 0.3s ease-out;
}
@keyframes modal-in { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

.close-btn {
    position: absolute; top: 10px; right: 10px; width: 42px; height: 42px;
    background: var(--accent-red); 
    border: 3px solid #fff; 
    border-radius: 50%;
    cursor: pointer; 
    z-index: 10010; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.4);
    animation: btn-pulse 2s infinite;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
}

.close-btn::before, .close-btn::after { 
    content: ''; position: absolute; width: 20px; height: 3px; background: #fff; border-radius: 2px; 
}
.close-btn::before { transform: rotate(45deg); }
.close-btn::after { transform: rotate(-45deg); }

.close-btn:hover {
    transform: rotate(90deg) scale(1.1);
    background: #ff4d4d; 
}
.close-btn:active {
    transform: rotate(180deg) scale(0.9);
    transition: transform 0.15s; 
}

@keyframes btn-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(255, 51, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0); }
}

.modal-scroll-area { height: 100%; overflow-y: auto; padding: 40px 30px 60px 30px; }
/* 顶部标题：跨全宽 */
.modal-title-top {
    margin-bottom: 24px;
    -webkit-line-clamp: unset;
    display: block;
    font-size: 24px;
}
/* 主区域：左侧图片 + 右侧功能区（桌面端左右布局） */
.modal-main { display: flex; flex-direction: row; gap: 24px; margin-bottom: 40px; align-items: flex-start; }
.modal-preview { flex-shrink: 0; width: 42%; max-width: 380px; }
.modal-preview img { width: 100%; max-height: 55vh; border-radius: 12px; display: block; object-fit: cover; background: #000; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
/* 右侧下载功能区：自适应占满剩余空间 */
.download-group {
    flex: 1; min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

/* =========================================
   6. 下载区域样式与交互
   ========================================= */

/* =========================================
   5.1 特别提示（动漫详情页顶部横幅）
   ========================================= */
.notice {
    display: flex; align-items: center;
    padding: 12px 16px; border-radius: 10px;
    font-size: 14px; line-height: 1.6;
    color: var(--accent-red);
    border: 1px solid rgba(0, 212, 255, 0.5);
    margin-bottom: 20px;
    animation: notice-breathe 2.8s ease-in-out infinite;
}
@keyframes notice-breathe {
    0%, 100% {
        background: rgba(0, 212, 255, 0.08);
        border-color: rgba(0, 212, 255, 0.5);
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
    }
    50% {
        background: rgba(0, 212, 255, 0.18);
        border-color: rgba(0, 212, 255, 1);
        box-shadow: 0 0 16px 2px rgba(0, 212, 255, 0.3);
    }
}
/* 尊重用户系统偏好：减少动画 */
@media (prefers-reduced-motion: reduce) {
    .notice { animation: none; }
}

.dl-item {
    background: linear-gradient(145deg, #222, #1a1a1a);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column; 
    gap: 12px;
    position: relative;
    overflow: hidden;
    cursor: default;
    /* 采用平滑与交互兼顾的全局动画曲线 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUp 0.5s ease backwards;
}

/* 悬停效果：边框变蓝、向上微浮、背景变亮、增加阴影 */
.dl-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent-blue);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
}
.dl-item:active {
    transform: translateY(-1px) scale(0.99); 
    transition: all 0.1s; 
}

/* 鼠标悬停到条目上时，文字稍微提亮 */
.dl-name {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: normal; 
    transition: color 0.3s ease;
}
.dl-item:hover .dl-name {
    color: #fff;
}

/* 下载项子标题（如"第1季"，跟在主标题后做说明） */
.dl-sub {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-light);
    background: rgba(0, 212, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    line-height: 1.4;
}

.dl-btns {
    display: flex;
    gap: 10px;
    width: 100%;
}

/* “进入下载”按钮：高亮、光效、放大、点击微缩 */
.btn-go {
    flex: 2; 
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-light));
    color: #000 !important; 
    border-radius: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-go::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}
.btn-go:hover::after {
    left: 100%;
}
.btn-go:hover {
    filter: brightness(1.15);              
    box-shadow: 0 0 15px rgba(0, 161, 214, 0.5); 
    transform: scale(1.05);                
}
.btn-go:active {
    transform: scale(0.92);                
}

/* “提取码”按钮：点击微缩与简约发光 */
.btn-copy {
    flex: 1;
    height: 40px;
    background: #333;
    color: var(--accent-light);
    border: 1px solid #444;
    font-family: 'Consolas', monospace;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.btn-copy:hover {
    border-color: var(--accent-light);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.btn-copy:active {
    transform: scale(0.9);                
}

/* 阶梯式依次滑入动画 */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.dl-item:nth-child(1) { animation-delay: 0.1s; }
.dl-item:nth-child(2) { animation-delay: 0.2s; }
.dl-item:nth-child(3) { animation-delay: 0.3s; }

/* =========================================
   7. 相关推荐
   ========================================= */
.recommend-section { border-top: 1px solid #333; margin-top: 40px; padding-top: 30px; padding-bottom: 20px; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; margin-top: 20px; }

/* =========================================
   7.1 留言板区域
   ========================================= */
.comments-section { border-top: 1px solid #333; margin-top: 40px; padding-top: 30px; padding-bottom: 20px; }
.comments-count { font-size: 14px; color: var(--text-gray); font-weight: 400; margin-left: 6px; }

/* 留言列表 */
.comments-list { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.comment-loading, .comment-empty, .comment-error {
    text-align: center; color: var(--text-gray); padding: 30px 20px; font-size: 14px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.comment-error { color: var(--accent-red); }

/* 加载旋转动画 */
.comment-spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--accent-light);
    border-radius: 50%;
    animation: comment-spin 0.8s linear infinite;
    flex-shrink: 0;
}
@keyframes comment-spin {
    to { transform: rotate(360deg); }
}

/* 单条留言 */
.comment-item {
    display: flex; gap: 12px; padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02); border: 1px solid #1f1f1f; border-radius: 10px;
    transition: var(--transition);
}
.comment-item:hover { border-color: #2a2a2a; background: rgba(255, 255, 255, 0.04); }

/* 头像（昵称首字） */
.comment-avatar {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-light));
    color: #000; font-weight: 800; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
}

.comment-body { flex: 1; min-width: 0; }
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.comment-nick { font-size: 14px; font-weight: 600; color: #fff; }
.comment-time { font-size: 12px; color: var(--text-gray); }
.comment-reply { font-size: 11px; color: var(--accent-light); background: rgba(0, 161, 214, 0.1); padding: 2px 8px; border-radius: 4px; }
.comment-text { font-size: 14px; color: #ddd; line-height: 1.6; word-wrap: break-word; white-space: pre-wrap; }

/* 留言表单 */
.comment-form-area {
    margin-top: 24px; padding: 18px;
    background: rgba(255, 255, 255, 0.02); border: 1px solid #1f1f1f; border-radius: 12px;
}
.comment-form-row { margin-bottom: 10px; }
.comment-input {
    width: 100%; padding: 10px 14px; border-radius: 8px;
    border: 1px solid #333; background: #111; color: #fff; font-size: 14px;
    font-family: inherit; outline: none; transition: var(--transition);
}
.comment-input:focus { border-color: var(--accent-blue); box-shadow: 0 0 8px rgba(0, 161, 214, 0.15); }
.comment-nickname { max-width: 240px; }
.comment-textarea { min-height: 80px; resize: vertical; line-height: 1.6; }

.comment-form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.turnstile-box { flex-shrink: 0; }
.comment-submit-btn {
    padding: 10px 26px; border: none; border-radius: 8px; cursor: pointer;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-light));
    color: #000; font-weight: 700; font-size: 14px; font-family: inherit;
    transition: var(--transition);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.comment-submit-btn:hover:not(:disabled) { filter: brightness(1.15); box-shadow: 0 0 12px rgba(0, 161, 214, 0.4); transform: scale(1.03); }
.comment-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.comment-submit-btn.is-loading .comment-spinner {
    width: 14px; height: 14px;
    border-color: rgba(0, 0, 0, 0.25);
    border-top-color: #000;
}

.comment-msg { margin-top: 10px; font-size: 13px; min-height: 18px; }
.comment-msg.success { color: var(--accent-light); }
.comment-msg.error { color: var(--accent-red); }

.rec-item {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px; 
    padding: 8px; 
    margin: -8px; 
}
.rec-item .poster-box {
    width: 100%;
    aspect-ratio: 3 / 4;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border-radius: 8px; 
    transition: box-shadow 0.3s ease;
}
.rec-title {
    font-size: 14px;
    margin-top: 10px;
    color: #fff; 
    text-align: center;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
}

.rec-item:hover {
    transform: translateY(-7px);
    background: rgba(255, 255, 255, 0.04);
}
.rec-item:hover .poster-box {
    box-shadow: 0 12px 25px rgba(0, 161, 214, 0.25);
}
.rec-item:hover .rec-title {
    color: var(--accent-light);
}

.rec-item:active {
    transform: translateY(-3px) scale(0.98);
    background: rgba(255, 255, 255, 0.07);
    transition: all 0.1s ease-out;
}
.rec-item:active .rec-title {
    color: var(--accent-blue);
}

/* =========================================
   8. 其它辅助组件（含合并后的截图悬停样式）
   ========================================= */
/* 首页浮动导航：置顶（与弹窗侧边导航统一样式） */
.float-side-nav {
    position: fixed; bottom: 30px; right: 30px;
    display: none; flex-direction: column; gap: 10px;
    z-index: 999;
}
.float-side-nav .nav-scroll-btn {
    width: 50px; height: 50px;
    background: rgba(15, 15, 15, 0.9);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid var(--accent-blue);
    color: var(--accent-light);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    user-select: none;
}
.float-side-nav .nav-scroll-btn:hover {
    background: var(--accent-blue);
    color: #fff;
    transform: translateY(-3px);
}
.float-side-nav .nav-scroll-btn:active {
    transform: scale(0.9);
}
.pagination { margin: 50px 0; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-btn { min-width: 45px; height: 45px; padding: 0 10px; border: none; background: #222; color: #ccc; border-radius: 10px; cursor: pointer; transition: 0.2s; font-size: 14px; font-family: inherit; }
.page-btn:hover:not(.active):not(.disabled) { background: #333; color: #fff; }
.page-btn.active { background: var(--accent-blue); color: #fff; box-shadow: 0 4px 12px rgba(0, 161, 214, 0.4); }
.page-btn.page-nav { font-size: 20px; line-height: 1; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.page-btn.disabled { opacity: 0.35; cursor: not-allowed; }
.page-dots { min-width: 30px; height: 45px; display: inline-flex; align-items: center; justify-content: center; color: #666; user-select: none; letter-spacing: 1px; }
.page-jump { display: flex; align-items: center; gap: 6px; margin-left: 14px; }
.page-jump-label { color: var(--text-gray); font-size: 13px; }
.page-jump-select { height: 38px; padding: 0 8px; background: #222; color: #ccc; border: 1px solid #333; border-radius: 8px; cursor: pointer; font-size: 13px; font-family: inherit; outline: none; transition: var(--transition); }
.page-jump-select:hover { border-color: var(--accent-blue); color: #fff; }
.page-jump-select:focus { border-color: var(--accent-blue); }
@media (max-width: 768px) {
    .pagination { gap: 5px; margin: 30px 0; }
    .page-btn { min-width: 38px; height: 38px; font-size: 13px; padding: 0 6px; border-radius: 8px; }
    .page-btn.page-nav { font-size: 17px; }
    .page-dots { min-width: 24px; height: 38px; }
    .page-jump { margin-left: 5px; }
    .page-jump-label { font-size: 12px; }
    .page-jump-select { height: 34px; padding: 0 4px; font-size: 12px; }
}

/* 内容截图并排 3 张布局 */
.screenshot-grid { 
    display: grid;              
    grid-template-columns: repeat(3, 1fr); 
    gap: 12px;                  
    width: 100%; 
    padding: 10px 0;
}
.screenshot-grid img { 
    width: 100%;                
    aspect-ratio: 16 / 9;       
    object-fit: cover;          
    border-radius: 8px;         
    cursor: zoom-in;
    border: 1px solid #333; 
    transition: transform 0.3s, border-color 0.3s; 
}

/* 已合并：消除原本重复定义的 img:hover，实现一键缩放与统一发光 */
.screenshot-grid img:hover { 
    border-color: var(--accent-blue); 
    transform: translateY(-3px); 
    box-shadow: 0 0 20px rgba(0, 161, 214, 0.35); 
}

/* =========================================
   图片懒加载系统 (LazyLoader)
   加载中：骨架屏脉冲动画
   加载完成：淡入显示
   加载失败：暗色占位 + 居中图标
   ========================================= */
.lazy-img {
    background: linear-gradient(110deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: lazyShimmer 1.6s infinite linear;
    opacity: 0;
    transition: opacity 0.45s ease;
}
.lazy-img.loading { opacity: 0; }
.lazy-img.loaded {
    opacity: 1;
    animation: none;
    background: none;
}
.lazy-img.error {
    animation: none;
    background-color: #1a1a1a;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23444'><path d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 42px 42px;
    opacity: 1;
}
/* 失败时鼠标悬停提示可点击重试（截图场景） */
.lazy-img.error { cursor: pointer; }
@keyframes lazyShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
/* 尊重用户系统偏好：减少动画 */
@media (prefers-reduced-motion: reduce) {
    .lazy-img { animation: none; }
    .lazy-img.loaded { transition: none; }
}


/* 图片放大预览 (Lightbox) 效果 */
.lightbox-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 20000; 
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: fadeIn 0.3s ease;
}
#lightboxImg {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =========================================
   9. 弹窗侧边导航按钮
   ========================================= */
.modal-side-nav {
    position: absolute !important;
    right: 10px !important;
    bottom: 10px !important;
    top: auto !important; 
    left: auto !important;
    transform: none !important; 
    display: flex !important;
    flex-direction: column; 
    gap: 10px;
    z-index: 10100; 
}
.nav-scroll-btn {
    width: 50px;
    height: 50px;
    background: rgba(15, 15, 15, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-blue);
    color: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    transition: all 0.2s ease;
    user-select: none;
}
.nav-scroll-btn:hover {
    background: var(--accent-blue);
    color: #fff;
    transform: translateY(-3px);
}
.nav-scroll-btn:active {
    transform: scale(0.9);
}

/* =========================================
   10. 移动端（手机端）响应式适配
   ========================================= */
@media (max-width: 768px) {
    /* 导航栏适配：防止横向溢出，改为上下微调布局 */
    .nav-container {
        flex-direction: column;
        gap: 12px;
        padding: 8px 10px;
    }
    .site-logo {
        font-size: 18px; 
    }
    .category-nav {
        width: 100%;
        justify-content: space-between; 
        gap: 6px;
    }
    .nav-item {
        flex: 1; 
        text-align: center;
        padding: 6px 0;
        font-size: 12px;
    }

    /* 搜索区域边距缩减 */
    .search-area {
        margin: 20px auto 15px auto;
        padding: 0 15px;
    }
    .search-box input {
        height: 50px;
        padding: 0 48px;
        font-size: 15px;
        border-radius: 25px;
    }
    .search-box .search-icon {
        width: 17px; height: 17px;
        left: 18px;
    }
    .search-area .ann-toggle {
        padding: 5px 12px;
        font-size: 13px;
    }
    .search-area .ann-toggle-icon { width: 14px; height: 14px; }

    /* 年份筛选条移动端适配 */
    .year-filter-area { margin: 0 auto 16px auto; padding: 0 15px; }
    .year-filter { padding: 10px 12px; gap: 10px; }
    .year-filter-label { font-size: 12px; padding-right: 10px; }
    .year-filter-list { gap: 5px; }
    .year-chip { padding: 4px 10px; font-size: 12px; }

    /* 首页内容列表适配 */
    .main-content {
        padding: 0 15px 30px 15px;
    }
    .video-grid {
        grid-template-columns: 1fr; /* 手机端由双列改为单列布局 */
        gap: 15px;
    }

    /* 保持左右图文结构，但合理缩减尺寸防止拥挤 */
    .video-card {
        padding: 6px;
        gap: 10px;
    }
    .poster-box {
        width: 120px; /* 缩减手机端图片的宽度，为文字留出更多空间 */
        box-shadow: 0 3px 12px rgba(0,0,0,0.4);
    }
    .poster-box--zh {
        width: 140px; /* 综合横图手机端宽度 */
    }
    .category-badge, .time-badge {
        padding: 2px 6px;
        font-size: 9px;
    }

    /* 文字信息排版微调 */
    .info-content {
        padding: 0;
    }
    .info-title {
        font-size: 16px; 
        margin-bottom: 6px;
        -webkit-line-clamp: 2; 
    }
    .detail-meta-horizontal {
        gap: 8px;
        margin-bottom: 6px;
    }
    .meta-item {
        font-size: 11px;
    }
    .tag-container {
        margin-bottom: 8px;
        max-height: 52px; 
    }
    .tag-pill {
        font-size: 10px;
        padding: 2px 8px;
    }
    .card-desc {
        font-size: 12px;
        -webkit-line-clamp: 2; 
    }

    /* 详情弹窗尺寸适配 */
    .modal-content {
        width: 95%; 
        height: 90vh; 
        border-radius: 12px;
    }
    .modal-scroll-area {
        padding: 25px 15px 50px 15px; 
    }
    /* 移动端：主区域改为纵向堆叠（图片在上，功能区在下） */
    .modal-main { flex-direction: column; gap: 20px; align-items: center; }
    .modal-preview { width: 100%; max-width: 260px; }
    .modal-preview video, .modal-preview img {
        max-height: 40vh;
        object-fit: cover;
    }
    /* 移动端下载功能区：取消 flex 拉伸，自然高度，全宽 */
    .download-group { flex: none; width: 100%; }

    /* 移动端特别提示适配 */
    .notice { padding: 10px 12px; font-size: 13px; margin-bottom: 16px; }

    /* 弹窗内下载按钮组与截图网格 */
    .download-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .dl-item {
        padding: 12px;
    }
    .dl-name {
        font-size: 14px;
    }
    .btn-go, .btn-copy {
        height: 36px; 
        font-size: 12px;
    }
    
    .rec-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px 10px;
    }
    .rec-item {
        margin: -4px;
        padding: 4px;
    }

    .screenshot-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 8px;
    }

    /* 辅助浮动导航大小优化 */
    .float-side-nav {
        bottom: 20px;
        right: 20px;
        gap: 8px;
    }
    .float-side-nav .nav-scroll-btn {
        width: 42px;
        height: 42px;
        font-size: 18px;
        border-radius: 8px;
    }
    .modal-side-nav {
        right: 8px !important;
        bottom: 8px !important;
        gap: 8px;
    }
    .nav-scroll-btn {
        width: 42px;
        height: 42px;
        font-size: 18px;
        border-radius: 8px;
    }
    .close-btn {
        width: 36px;
        height: 36px;
        top: 8px;
        right: 8px;
    }
    .close-btn::before, .close-btn::after {
        width: 16px;
        height: 2px;
    }

    /* 留言板区域移动端适配 */
    .comments-list { gap: 10px; }               /* 留言间距缩小 */
    .comment-item { padding: 10px 12px; }        /* 单条留言内边距缩小 */
    .comment-avatar { width: 30px; height: 30px; font-size: 14px; }  /* 头像缩小 */
    .comment-header { gap: 6px; margin-bottom: 4px; }
    .comment-nick { font-size: 13px; }
    .comment-time { font-size: 11px; }
    .comment-text { font-size: 13px; }
    .comment-form-area { padding: 14px; margin-top: 18px; }
    .comment-nickname { max-width: 100%; }       /* 昵称框手机端全宽 */
    /* 表单底部：验证码 + 提交按钮纵向堆叠，各占全宽 */
    .comment-form-bottom { flex-direction: column; align-items: stretch; gap: 10px; }
    .turnstile-box { width: 100%; }
    .turnstile-box iframe { width: 100% !important; }
    .comment-submit-btn { width: 100%; }
}

/* =========================================
   11. 首页分组分段（ALL 视图）
   ========================================= */
.home-section {
    max-width: 1300px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}
.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.home-section-header .section-title {
    margin-bottom: 0;
}
.home-more {
    color: var(--accent-light);
    cursor: pointer;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    transition: var(--transition);
    user-select: none;
}
.home-more:hover {
    background: var(--accent-light);
    color: #000;
}
.home-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
/* 首页分段卡片：紧凑上图下文 */
.home-grid .video-card {
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
}
.home-grid .video-card .poster-box {
    width: 100%;
    box-shadow: 0 3px 12px rgba(0,0,0,0.4);
}
.home-grid .video-card .poster-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-grid .video-card .info-content {
    padding: 8px 10px 10px 10px;
}
.home-grid .video-card .info-title {
    font-size: 14px;
    margin-bottom: 5px;
    -webkit-line-clamp: 2;
    line-height: 1.4;
}
.home-grid .video-card .detail-meta-horizontal {
    gap: 6px;
    margin-bottom: 0;
    flex-wrap: nowrap;
    overflow: hidden;
}
.home-grid .video-card .meta-item {
    font-size: 11px;
    white-space: nowrap;
}
.home-grid .video-card .card-desc {
    display: none;
}
.home-grid .video-card--text .text-card-body {
    padding: 12px;
}

/* =========================================
   12. 游戏卡片（Steam 竖图比例 374:448 ≈ 5:6）
   ========================================= */
.poster-box--steam {
    aspect-ratio: 5 / 6;
}

/* =========================================
   12.1 综合有封面卡片（横图比例 16:9，博客配图）
   ========================================= */
.poster-box--zh {
    aspect-ratio: 16 / 9;
    width: 280px;
}

/* =========================================
   13. 综合纯文本卡片（无封面）
   ========================================= */
.video-card--text {
    flex-direction: column;
    gap: 0;
    padding: 0;
}
.text-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

/* =========================================
   14. 弹窗：预告片视频区
   ========================================= */
.video-section {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 30px;
    padding-bottom: 20px;
}
.modal-video {
    width: 100%;
    max-height: 60vh;
    border-radius: 12px;
    background: #000;
    margin-top: 16px;
    display: block;
}

/* =========================================
   15. 弹窗：攻略文档区（游戏，Markdown）
   ========================================= */
.docs-section {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 30px;
    padding-bottom: 20px;
}
.docs-content {
    margin-top: 16px;
    color: #ddd;
    line-height: 1.8;
}

/* =========================================
   16. 弹窗：博客正文区（综合，Markdown）
   ========================================= */
.article-section {
    margin-bottom: 40px;
}
.article-content {
    color: #ddd;
    line-height: 1.8;
    font-size: 15px;
}
.article-content h1, .docs-content h1 {
    font-size: 22px; color: #fff; margin: 24px 0 12px 0; font-weight: 700;
}
.article-content h2, .docs-content h2 {
    font-size: 19px; color: #fff; margin: 20px 0 10px 0; font-weight: 600;
    border-left: 4px solid var(--accent-blue); padding-left: 12px;
}
.article-content h3, .docs-content h3 {
    font-size: 16px; color: var(--accent-light); margin: 18px 0 8px 0; font-weight: 600;
}
.article-content p, .docs-content p { margin: 10px 0; }
.article-content ul, .article-content ol, .docs-content ul, .docs-content ol {
    margin: 10px 0; padding-left: 24px;
}
.article-content li, .docs-content li { margin: 6px 0; }
.article-content code, .docs-content code {
    background: rgba(0, 212, 255, 0.1); color: var(--accent-light);
    padding: 2px 6px; border-radius: 4px; font-family: 'Consolas', monospace; font-size: 13px;
}
.article-content pre, .docs-content pre {
    background: #0d0d0d; border: 1px solid #2a2a2a; border-radius: 8px;
    padding: 14px 16px; overflow-x: auto; margin: 14px 0;
}
.article-content pre code, .docs-content pre code {
    background: none; color: #ddd; padding: 0;
}
.article-content blockquote, .docs-content blockquote {
    border-left: 4px solid var(--accent-blue); background: rgba(0, 161, 214, 0.05);
    padding: 10px 16px; margin: 14px 0; color: #aaa; border-radius: 0 8px 8px 0;
}
.article-content img, .docs-content img {
    max-width: 100%; border-radius: 8px; margin: 12px 0;
}
.article-content a, .docs-content a {
    color: var(--accent-light); text-decoration: none; border-bottom: 1px dashed var(--accent-light);
}
.article-content a:hover, .docs-content a:hover { opacity: 0.8; }

/* =========================================
   17. 弹窗：配图画廊（综合）
   ========================================= */
.gallery-section {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 30px;
    padding-bottom: 20px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.gallery-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    border: 1px solid #333;
    transition: transform 0.3s, border-color 0.3s;
}
.gallery-img:hover {
    border-color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 161, 214, 0.35);
}

/* =========================================
   18. 新增模块移动端适配
   ========================================= */
@media (max-width: 768px) {
    .home-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .home-grid .video-card .info-title { font-size: 13px; }
    .home-grid .video-card .info-content { padding: 6px 8px 8px 8px; }
    .home-grid .video-card .detail-meta-horizontal { gap: 4px; margin-bottom: 0; }
    .home-grid .video-card .meta-item { font-size: 10px; }
    .home-grid .video-card .tag-container { display: none; }
    .gallery-grid { grid-template-columns: 1fr; }
    .article-content, .docs-content { font-size: 14px; }
    .modal-video { max-height: 40vh; }
}

/* =========================================
   19. 全站公告栏（announcement.json 驱动）
   ========================================= */
.announcement-bar {
    max-width: 1300px;
    margin: 20px auto 0 auto;
    padding: 0 20px;
    overflow: hidden;
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease,
                transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
/* 折叠态：高度/透明度/位移归零，不占视觉空间 */
.announcement-bar.is-collapsed {
    max-height: 0;
    opacity: 0;
    transform: translateY(-12px);
    margin-top: 0;
    pointer-events: none;
}
.ann-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card-bg);
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 12px 18px;
    position: relative;
    overflow: hidden;
}
/* 公告左侧一条细蓝竖条做点缀，不再整框呼吸 */
.ann-inner::before {
    content: "";
    position: absolute;
    left: 0; top: 12px; bottom: 12px;
    width: 3px;
    background: var(--accent-blue);
    border-radius: 0 2px 2px 0;
}

/* 左侧喇叭图标 */
.ann-icon-box {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0, 161, 214, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.4);
    display: flex; align-items: center; justify-content: center;
}
.ann-icon {
    width: 20px; height: 20px;
    fill: none; stroke: var(--accent-light);
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* 类型标签 */
.ann-tag {
    flex-shrink: 0;
    font-size: 11px; font-weight: 700;
    color: var(--accent-light);
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.35);
    padding: 3px 10px; border-radius: 5px;
    letter-spacing: 0.5px;
}

/* 正文区 */
.ann-body { flex: 1; min-width: 0; }
.ann-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.ann-content {
    font-size: 13px; color: #bbb; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ann-time { font-size: 11px; color: var(--text-gray); margin-top: 4px; font-family: 'Consolas', monospace; }

/* 切换控件（多条时显示） */
.ann-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ann-nav {
    width: 28px; height: 28px; border-radius: 6px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid #333;
    color: var(--text-gray); cursor: pointer; font-size: 16px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); font-family: inherit;
}
.ann-nav:hover { color: var(--accent-light); border-color: var(--accent-blue); background: rgba(0, 161, 214, 0.1); }
.ann-nav:active { transform: scale(0.9); }
.ann-dots { display: flex; gap: 5px; }
.ann-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #333; cursor: pointer; transition: var(--transition);
}
.ann-dot:hover { background: #555; }
.ann-dot.active { background: var(--accent-light); box-shadow: 0 0 6px rgba(0, 212, 255, 0.6); }
.ann-dot.active:hover { background: var(--accent-light); }

/* 关闭按钮 */
.ann-close {
    flex-shrink: 0;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255, 51, 51, 0.12); border: 1px solid rgba(255, 51, 51, 0.4);
    cursor: pointer; position: relative;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.ann-close::before, .ann-close::after {
    content: ''; position: absolute; width: 12px; height: 2px;
    background: var(--accent-red); border-radius: 1px;
}
.ann-close::before { transform: rotate(45deg); }
.ann-close::after { transform: rotate(-45deg); }
.ann-close:hover {
    background: rgba(255, 51, 51, 0.25);
    transform: rotate(90deg);
}
.ann-close:active { transform: scale(0.9); }

/* 移动端适配 */
@media (max-width: 768px) {
    .announcement-bar { margin: 14px auto 0 auto; padding: 0 15px; }
    .ann-inner { padding: 12px 14px; gap: 10px; }
    .ann-icon-box { width: 32px; height: 32px; }
    .ann-icon { width: 18px; height: 18px; }
    .ann-tag { display: none; }
    .ann-title { font-size: 14px; margin-bottom: 2px; }
    .ann-content { font-size: 12px; -webkit-line-clamp: 1; }
    .ann-nav { width: 26px; height: 26px; font-size: 14px; }
    .ann-close { width: 26px; height: 26px; }
    .ann-close::before, .ann-close::after { width: 10px; }
}

/* =========================================
   19.1 折叠态：搜索框右上角「公告」按钮
   ========================================= */
.ann-toggle {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 8px;
    cursor: pointer; font-size: 14px; user-select: none;
    color: var(--accent-light);
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    flex-shrink: 0;
    /* 默认隐藏（opacity+visibility），用 .is-visible 控制；不占文档流影响 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s,
                background 0.3s, color 0.3s, box-shadow 0.3s;
}
/* 可见态：淡入，延迟 0.1s 等公告栏收起后再现身 */
.ann-toggle.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s, visibility 0s,
                background 0.3s, color 0.3s, box-shadow 0.3s;
}
.ann-toggle:hover {
    background: var(--accent-light);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}
.ann-toggle:active { transform: scale(0.95); }
.ann-toggle-icon {
    width: 16px; height: 16px;
    fill: none; stroke: currentColor;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}