        /* --- 全局变量 --- */
        :root {
            --primary: #ff7eb3;
            --text-main: #333;
            --bg-body: #f4f6f9;
            --radius: 12px;
            --neon-green: #00e676;
            --neon-green-shadow: rgba(0, 230, 118, 0.6);
            --btn-green-top: #66bb6a;
            --btn-green-bottom: #43a047;
            --btn-blue-top: #42a5f5;
            --btn-blue-bottom: #1e88e5;
            
            /* 攻略标签配色 */
            --tag-bg-start: #ff8fab;
            --tag-bg-end: #ff5c8d;
            
            /* 列表下载按钮配色 */
            --dl-btn-bg: #fff0f5;
            --dl-btn-border: #ffc2d1;
            --dl-btn-icon: #ff4081;
        }
        .story-text{line-height:30px;}
        /* --- 基础重置 --- */
        * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
        body { font-family: -apple-system, "Microsoft YaHei", sans-serif; background: var(--bg-body); color: var(--text-main); line-height: 1.6; padding-bottom: 20px;}
        a { text-decoration: none; color: inherit; transition: 0.2s; }
        ul { list-style: none; }
        img { display: block; max-width: 100%;height: auto !important; }
        button { border:none; outline:none; background:none; }

        /* --- 布局容器 --- */
        .container { width: 100%; padding: 0 12px; margin: 0 auto; overflow-x: hidden; }
        .flex-col { display: flex; flex-direction: column; gap: 15px; margin-top: 15px; }
        .main-content { order: 1; }
        .sidebar { order: 2; scroll-margin-top: 60px; }

        /* --- 顶部导航 --- */
        .header { background: #fff; height: 50px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,0.05); position: sticky; top:0; z-index:99; }
        .header h1 { font-size: 16px; font-weight: bold; }

        /* --- Banner --- */
        .banner-wrapper {
            height: 240px; position: relative; border-radius: 0 0 16px 16px; overflow: hidden; margin: 0 -12px 15px -12px;
        }
        .banner-bg { width: 100%; height: 100%; object-fit: cover; }
        
        .banner-mask {
            position: absolute; inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2) 60%, transparent);
            display: flex; 
            align-items: flex-end; 
            justify-content: space-between; 
            padding: 15px 15px 20px 15px;
            gap: 10px;
        }
        
        .banner-info { color: #fff; position: relative; z-index: 2; flex: 1; min-width: 0; }
        .b-title { font-size: 22px; font-weight: bold; margin-bottom: 4px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); line-height: 1.2; }
        .b-ver { font-size: 12px; opacity: 0.9; background: rgba(255,255,255,0.2); padding: 2px 8px; border-radius: 4px; display: inline-block; margin-bottom: 8px;}
        
        /* --- Banner按钮 --- */
        .banner-dl-btn {
            background: var(--neon-green);
            color: #fff; 
            font-weight: 800; 
            padding: 8px 18px; 
            border-radius: 50px;
            font-size: 15px; 
            display: flex; align-items: center; gap: 4px;
            white-space: nowrap;  
            flex-shrink: 0;       
            margin-bottom: 2px;
            animation: btn-breathe 2s infinite ease-in-out;
        }
        .banner-dl-btn:active { transform: scale(0.95); animation: none; }
        .bolt-icon { color: #ff9100; font-style: normal; font-weight: 900; font-size: 18px; text-shadow: 0 1px 1px rgba(0,0,0,0.2); }

        @keyframes btn-breathe {
            0% { transform: scale(1); box-shadow: 0 0 12px var(--neon-green-shadow); }
            50% { transform: scale(1.06); box-shadow: 0 0 22px rgba(0, 230, 118, 0.9); }
            100% { transform: scale(1); box-shadow: 0 0 12px var(--neon-green-shadow); }
        }

        /* --- 卡片通用 --- */
        .card { background: #fff; padding: 15px; border-radius: var(--radius); margin-bottom: 15px; box-shadow: 0 2px 6px rgba(0,0,0,0.02); }
        .card-head { border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 12px; font-weight: bold; font-size: 16px; display: flex; align-items: center; }
        .card-head::before { content: ''; width: 4px; height: 16px; background: var(--primary); margin-right: 8px; border-radius: 2px; }

        /* --- 画廊 & 视频 --- */
        .gallery-wrap { position: relative; }
        .gallery-main { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 8px; overflow: hidden; margin-bottom: 10px; position: relative; }
        .gallery-main iframe, .gallery-main img { width: 100%; height: 100%; object-fit: contain; display: none; }
        .gallery-main iframe.show, .gallery-main img.show { display: block; }
        .thumbs-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
        .thumbs-list::-webkit-scrollbar { display: none; }
        .thumb-item { width: 80px; height: 50px; flex-shrink: 0; border-radius: 6px; overflow: hidden; opacity: 0.5; position: relative; border: 2px solid transparent; }
        .thumb-item img { width: 100%; height: 100%; object-fit: cover; }
        .thumb-item.active { opacity: 1; border-color: var(--primary); }
        .thumb-item.is-video::after { content: '▶'; position: absolute; top:50%; left:50%; transform: translate(-50%,-50%); color: #fff; font-size: 14px; text-shadow: 0 1px 2px #000; }

        /* --- 优化：攻略列表 (确保单行不换行) --- */
        .news-item { 
            display: flex; 
            align-items: center; 
            justify-content: space-between; 
            padding: 12px 0; 
            border-bottom: 1px dashed #f0f0f0; 
            font-size: 14px; 
        }
        
        .news-link-wrap { 
            display: flex; 
            align-items: center; 
            flex: 1;          /* 关键：让左侧容器占据剩余空间 */
            min-width: 0;     /* 关键：防止Flex子项溢出导致省略号失效 */
            margin-right: 10px; 
        }
        
        .news-badge { 
            background: linear-gradient(135deg, var(--tag-bg-start), var(--tag-bg-end));
            color: #fff; 
            font-size: 12px; 
            padding: 4px 8px;
            border-radius: 6px; 
            margin-right: 8px; 
            flex-shrink: 0; /* 标签不许被压缩 */
            display: inline-block;
            line-height: 1.2;
            font-weight: bold;
            box-shadow: 0 2px 4px rgba(255, 92, 141, 0.3);
        }
        
        .news-title { 
            white-space: nowrap; 
            overflow: hidden; 
            text-overflow: ellipsis; 
            color: #333; 
            font-size: 15px;
            width: 100%; /* 配合父级 min-width:0 生效 */
        }
        
        .news-date { 
            color: #999; 
            font-size: 12px; 
            flex-shrink: 0; /* 日期不许被压缩 */
        }

        /* --- 版本列表 --- */
        .ver-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #f8f8f8; background: #fafafa; border-radius: 10px; margin-bottom: 10px; position: relative; transition: background 0.2s; }
        .ver-item:active { background: #f0f0f0; }
        
        .ver-icon { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex-shrink: 0; border: 1px solid #eee; }
        .ver-icon img { width: 100%; height: 100%; object-fit: cover; }
        .ver-info { flex: 1; overflow: hidden; margin-right: 10px; }
        .ver-info h4 { font-size: 15px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #333; margin-bottom: 2px;}
        
        .ver-dl-btn {
            width: 36px; height: 36px;
            background: var(--dl-btn-bg);
            border: 1px solid var(--dl-btn-border);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            color: var(--dl-btn-icon);
            flex-shrink: 0;
            transition: 0.2s;
        }
        .ver-item:active .ver-dl-btn { transform: scale(0.9); background: #ffe6f0; }
        .ver-dl-btn svg { width: 18px; height: 18px; fill: currentColor; }


        /* --- 下载区域 UI --- */
        .warn-box { background: #fff5f5; border: 1px solid #ffebeb; border-radius: 8px; padding: 12px; margin-bottom: 20px; display: flex; gap: 10px; }
        .w-icon { font-size: 24px; }
        .w-content h4 { color: #d32f2f; font-size: 15px; font-weight: bold; margin-bottom: 5px; }
        .w-content p { color: #666; font-size: 12px; line-height: 1.5; margin-bottom: 5px;     display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;}
        .w-link { color: #ff4081; font-size: 12px; font-weight: bold; text-decoration: underline; }

        .big-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 55px; border-radius: 50px; color: #fff; font-weight: bold; font-size: 16px; margin-bottom: 15px; text-shadow: 0 1px 1px rgba(0,0,0,0.2); transition: transform 0.1s; }
        .big-btn:active { transform: translateY(2px); }
        .btn-android { background: linear-gradient(to bottom, var(--btn-green-top), var(--btn-green-bottom)); box-shadow: 0 4px 0 #2e7d32, 0 8px 10px rgba(0,0,0,0.15); margin-bottom: 20px; }
        .btn-pan { background: linear-gradient(to bottom, var(--btn-blue-top), var(--btn-blue-bottom)); box-shadow: 0 4px 0 #1565c0, 0 8px 10px rgba(0,0,0,0.15); margin-bottom: 25px; }

        /* 晃动动画 */
        @keyframes shake-hard {
            0% { transform: translateX(0); }
            10% { transform: translateX(-8px) rotate(-2deg); }
            20% { transform: translateX(8px) rotate(2deg); }
            30% { transform: translateX(-8px) rotate(-2deg); }
            40% { transform: translateX(8px) rotate(2deg); }
            50% { transform: translateX(-8px) rotate(-2deg); }
            60% { transform: translateX(8px) rotate(2deg); }
            70% { transform: translateX(-5px); }
            80% { transform: translateX(5px); }
            90% { transform: translateX(0); }
            100% { transform: translateX(0); }
        }
        .shake-active {
            animation: shake-hard 0.6s ease-in-out;
            border: 2px solid var(--neon-green);
            box-shadow: 0 0 20px var(--neon-green-shadow);
        }

        .faq-box { background: #fff; border-radius: 12px; padding: 15px; }
        .faq-title { font-size: 16px; font-weight: bold; border-left: 4px solid #ff4081; padding-left: 10px; margin-bottom: 15px; display: flex; align-items: center; }
        .faq-item { border-bottom: 1px solid #f5f5f5; }
        .faq-q { padding: 15px 0; font-size: 14px; font-weight: bold; color: #333; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
        .faq-q::after { content: '▼'; font-size: 10px; color: #ccc; transition: 0.3s; }
        .faq-item.active .faq-q::after { transform: rotate(180deg); }
        .faq-a { display: none; padding: 0 0 15px 0; font-size: 13px; color: #666; line-height: 1.6; }
        .faq-item.active .faq-a { display: block; animation: fadeIn 0.3s; }
        @keyframes fadeIn { from { opacity:0; transform:translateY(-5px); } to { opacity:1; transform:translateY(0); } }

        .footer { text-align: center; font-size: 12px; color: #bbb; padding: 20px 0; }

        .toast-msg {
            position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
            background: rgba(0,0,0,0.85); color: #fff; padding: 10px 20px; border-radius: 30px;
            font-size: 14px; z-index: 2000; display: flex; align-items: center; gap: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            opacity: 0; pointer-events: none; transition: 0.3s;
        }
        .toast-msg.show { opacity: 1; top: 30px; }


    /* --- 评论模块样式 --- */
.comment-input-box {
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
}
.c-textarea {
    width: 100%;
    height: 60px;
    border: none;
    background: transparent;
    outline: none;
    resize: none;
    font-size: 14px;
    color: #333;
    font-family: inherit;
}
.c-action-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}
.c-submit-btn {
    background: #ff6584; /* 截图中的粉色 */
    color: #fff;
    font-size: 13px;
    padding: 6px 18px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(255, 101, 132, 0.3);
    transition: 0.2s;
}
.c-submit-btn:active { transform: scale(0.95); opacity: 0.9; }

.comment-list { display: flex; flex-direction: column; gap: 15px; }
.c-item { display: flex; gap: 12px; border-bottom: 1px dashed #f0f0f0; padding-bottom: 15px; }
.c-item:last-child { border-bottom: none; padding-bottom: 0; }

.c-avatar {
    width: 40px; height: 40px;
    background: #e0e0e0;
    border-radius: 50%;
    flex-shrink: 0;
}
.c-info { flex: 1; }
.c-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.c-name { font-size: 14px; font-weight: bold; color: #333; }
.c-time { font-size: 12px; color: #999; }
.c-text { font-size: 14px; color: #555; line-height: 1.5; }

/* 评论成功的淡入动画 */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.c-item.new-comment { animation: slideDown 0.4s ease-out; }

