/* --- 优化的看图展示区 --- */
.content-container { padding: 40px; max-width: 1000px; margin: 0 auto; }

.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-line);
}
.article-header h1 { font-size: 24px; color: #fff; margin-bottom: 15px; line-height: 1.4; font-weight: 700; }

.meta-row { display: flex; gap: 20px; font-size: 13px; color: var(--text-muted); }
.meta-row span em { color: var(--primary-red); font-style: normal; font-weight: bold; }

/* --- 核心修复：侧边悬浮收藏按钮 (避开底部广告) --- */
.side-collect-trigger {
    position: fixed;
    right: 0;
    top: 45%;
    transform: translateY(-50%);
    width: 44px;
    height: 110px;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 12px 0 0 12px;
    cursor: pointer;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.side-collect-trigger i { font-style: normal; font-size: 20px; font-weight: bold; margin-bottom: 5px; }
.side-collect-trigger span { 
    writing-mode: vertical-rl; 
    font-size: 12px; 
    font-weight: bold; 
    letter-spacing: 2px;
}

/* 收藏后的状态 */
.side-collect-trigger.active {
    background: var(--primary-red);
    color: #fff;
}
.side-collect-trigger:hover {
    width: 50px;
    padding-right: 6px;
}

/* 图片流优化 */
.image-stream { display: flex; flex-direction: column; gap: 20px; }
.img-wrapper {
    background: #111;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-line);
    transition: 0.3s;
}
.img-wrapper:hover {
    border-color: rgba(255, 71, 87, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.img-wrapper img { 
    width: 100%; 
    display: block; 
    transition: 0.5s ease;
}

/* 回到顶部按钮 */
.back-top {
    position: fixed; right: 40px; bottom: 40px; width: 44px; height: 44px;
    background: var(--card-bg); border: 1px solid var(--border-line);
    border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.3s; z-index: 1000; box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.back-top:hover { background: var(--primary-red); transform: translateY(-5px); }

.overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 1500; display: none; }

/* 响应式 */
@media (max-width: 768px) {
    aside { transform: translateX(-100%); }
    aside.active { transform: translateX(0); }
    main { margin-left: 0; }
    header { padding: 15px 20px; }
    .menu-btn { display: block; }
    .search-box { display: none; }
    .content-container { padding: 20px 10px; }
    .article-header h1 { font-size: 18px; }
    
    /* 手机端按钮微调，防止太宽遮挡内容 */
    .side-collect-trigger { width: 38px; height: 100px; }
    .back-top { right: 20px; bottom: 120px; } /* 避开可能存在的底部广告 */
}

/* --- 全局图片缩放控制面板 --- */
.zoom-controls {
    position: fixed;
    right: 30px;
    bottom: 190px; /* 避开回到顶部按钮 */
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.zoom-btn {
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border: 1px solid var(--border-line);
    color: var(--text-main);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.zoom-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background: rgba(255, 71, 87, 0.1);
}

.zoom-btn span {
    font-size: 10px;
    font-weight: bold;
}

/* 核心缩放逻辑：通过修改容器内 img-wrapper 的宽度实现 */
:root {
    --img-zoom-level: 100%; /* 默认初始宽度 */
}

.image-stream .img-wrapper {
    width: var(--img-zoom-level) !important;
    margin: 10px auto;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* 丝滑缩放动画 */
}

.image-stream img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .zoom-controls { left: 15px; bottom: 220px; } /* 移动端避开底部广告 */
}