/* ============================================================
   暗夜玫瑰 · 暖金诱惑主题 (Anime ACG · Dark Rose Gold)
   仅 mobile/index/index.html 加载。置于 index_dark.css 与
   index_ethereal.css 之后, 用 !important 全面覆盖, 不动 JS 与 include。
   令牌:
     bg     #1A0F1A 暗酒红黑  /  #2D1B2E 暗紫红
     surf   #3D2438 卡片底   /  #4A2A40 卡片高亮
     gold   #D4A574 香槟金   /  #E8B4A0 玫瑰金  /  #F4D4A8 米金
     rose   #FF6B8A 烈焰玫红 /  #8B2C3F 红酒
     text   #FFF5E6 暖米白   /  #C9A98C 沙金
   圆角 16px / 金色描边 1px / 玫瑰阴影
   ============================================================ */

:root {
    /* 玫红夜空色板: 暗品红底 + 立体粉卡 + 蜜桃高光 */
    --acg-bg-1: #2A0F1F;          /* 暗玫红夜空 */
    --acg-bg-2: #3A1228;          /* 品红夜空 */
    --acg-bg-deep: #1A0610;       /* 玫红极底 (最暗处) */
    --acg-surface: #C84573;       /* 玫红卡面 (深, 营造立体) */
    --acg-surface-hi: #FF8FB5;    /* 樱花粉高亮 (亮, 拉大对比) */
    --acg-gold: #E8B79A;          /* 蜜桃金 (旧 #D4A574 → 偏粉) */
    --acg-gold-light: #FFC09F;    /* 蜜桃肉色 (核心高光) */
    --acg-gold-soft: #FAD4C0;     /* 嫩肉粉 */
    --acg-rose: #FF8FA3;          /* 熟桃粉 (旧 #FF6B8A 加暖) */
    --acg-rose-deep: #C44569;     /* 树莓红 (旧 #8B2C3F → 更鲜) */
    --acg-peach: #FFB088;         /* 蜜桃橙 */
    --acg-salmon: #E8927C;        /* 三文鱼 */
    --acg-flesh: #F5B7B1;         /* 嫩肉粉 */
    --acg-text-1: #FFF0E0;        /* 暖奶白 */
    --acg-text-2: #E8B7A8;        /* 沙桃 */
    --acg-border: rgba(255, 192, 159, 0.35);
    --acg-border-strong: rgba(255, 192, 159, 0.6);
    --acg-shadow: 0 8px 28px rgba(196, 69, 105, 0.4), 0 0 0 1px rgba(255, 192, 159, 0.22);
    --acg-shadow-rose: 0 6px 22px rgba(255, 143, 163, 0.42);
    --acg-radius: 16px;
    --acg-img: url('/themes/simpleboot3/mobilepublic/assets/images/anime/');
}

/* —— 页面底色: 暗酒红渐变 + 玫红光晕 (覆盖 ethereal 浅薄荷) —— */
html.app-dark, html.app-dark body,
html.app-dark .page-container,
html.app-dark .indexpage {
    background: var(--acg-bg-1) !important;
    background-color: var(--acg-bg-1) !important;
    color: var(--acg-text-1) !important;
}

html.app-dark .page-container {
    position: relative;
    background:
        /* 顶部品红雾 (磁红光晕, 营造玫红夜空) */
        radial-gradient(110% 55% at 50% 0%, rgba(255, 90, 160, 0.25) 0%, transparent 60%),
        /* 右上桃粉光斑 */
        radial-gradient(60% 35% at 92% 18%, rgba(255, 143, 181, 0.22) 0%, transparent 55%),
        /* 中段玫红星云 */
        radial-gradient(80% 40% at 30% 40%, rgba(200, 70, 115, 0.18) 0%, transparent 60%),
        /* 左下暖蜜桃微光 */
        radial-gradient(55% 28% at 8% 78%, rgba(255, 176, 136, 0.12) 0%, transparent 55%),
        /* 右下深酒红沉底 */
        radial-gradient(70% 38% at 95% 95%, rgba(130, 35, 65, 0.22) 0%, transparent 60%),
        /* 主底渐变 */
        linear-gradient(180deg, #1A0610 0%, #2A0F1F 25%, #3A1228 50%, #2A0F1F 80%, #1A0610 100%) !important;
}

/* —— Layer 1: 大装饰 (玫瑰/蝴蝶/月/缎带, 缓慢漂浮) —— */
html.app-dark .page-container::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        url('/themes/simpleboot3/mobilepublic/assets/images/anime/rose.svg'),
        url('/themes/simpleboot3/mobilepublic/assets/images/anime/rose.svg'),
        url('/themes/simpleboot3/mobilepublic/assets/images/anime/butterfly.svg'),
        url('/themes/simpleboot3/mobilepublic/assets/images/anime/butterfly.svg'),
        url('/themes/simpleboot3/mobilepublic/assets/images/anime/moon.svg'),
        url('/themes/simpleboot3/mobilepublic/assets/images/anime/ribbon-bow.svg'),
        url('/themes/simpleboot3/mobilepublic/assets/images/anime/feather.svg');
    background-repeat: no-repeat;
    background-position:
        93% 91%,
        5% 78%,
        10% 32%,
        88% 50%,
        91% 13%,
        6% 8%,
        94% 70%;
    background-size:
        58px,
        44px,
        36px,
        30px,
        48px,
        30px,
        22px;
    opacity: 0.5;
    animation: acgFloat 18s ease-in-out infinite;
}

/* —— Layer 2: 星点闪烁层 —— */
html.app-dark .page-container::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        url('/themes/simpleboot3/mobilepublic/assets/images/anime/sparkle.svg'),
        url('/themes/simpleboot3/mobilepublic/assets/images/anime/sparkle.svg'),
        url('/themes/simpleboot3/mobilepublic/assets/images/anime/sparkle-small.svg'),
        url('/themes/simpleboot3/mobilepublic/assets/images/anime/sparkle-small.svg'),
        url('/themes/simpleboot3/mobilepublic/assets/images/anime/sparkle-small.svg'),
        url('/themes/simpleboot3/mobilepublic/assets/images/anime/sparkle-small.svg'),
        url('/themes/simpleboot3/mobilepublic/assets/images/anime/sparkle-small.svg'),
        url('/themes/simpleboot3/mobilepublic/assets/images/anime/sparkle-small.svg');
    background-repeat: no-repeat;
    background-position:
        22% 20%, 78% 28%,
        48% 38%, 18% 55%, 82% 68%, 36% 74%,
        62% 10%, 52% 88%;
    background-size:
        22px, 20px,
        12px, 14px, 11px, 13px,
        10px, 12px;
    opacity: 0.55;
    animation: acgBgTwinkle 3.6s ease-in-out infinite;
}

@keyframes acgFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1.5deg); }
}
@keyframes acgBgTwinkle {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 0.7; }
}

/* —— 隐藏顶部下载条 (与 hero 重复) —— */
html.app-dark #headerDl { display: none !important; }

/* —— 顶部 header: 玻璃质感 + 金色细描边 —— */
html.app-dark .mainHeader,
html.app-dark #headerTitle,
html.app-dark .header_menu {
    background: transparent !important;
}

html.app-dark .header_search {
    background: rgba(74, 42, 64, 0.72) !important;
    border: 1px solid var(--acg-border) !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 14px rgba(139, 44, 63, 0.28) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
}
html.app-dark .header_search .search-placeholder,
html.app-dark .header_search input,
html.app-dark .header_search .search-text {
    color: var(--acg-text-2) !important;
}

/* —— 欢迎英雄 Hero: 紧凑横条 (高度约原 1/3) —— */
html.app-dark .em-hero {
    position: relative;
    overflow: hidden;
    margin: 10px 16px 6px !important;
    padding: 12px 18px !important;
    min-height: 70px !important;
    border-radius: 16px !important;
    background:
        linear-gradient(135deg,
            rgba(255, 176, 136, 0.34) 0%,
            rgba(255, 143, 181, 0.58) 22%,
            rgba(200, 69, 115, 0.7) 48%,
            rgba(110, 30, 60, 0.88) 72%,
            rgba(42, 15, 31, 0.96) 100%) !important;
    border: 1px solid var(--acg-border-strong);
    box-shadow:
        var(--acg-shadow),
        inset 0 1px 0 rgba(244, 212, 168, 0.18);
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* 原 screen.png 背景图: 大幅减淡, 作底纹 */
html.app-dark .em-hero .em-hero-bg {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    background-size: cover !important;
    background-position: center 30% !important;
    opacity: 0.22 !important;
    mix-blend-mode: luminosity;
}
html.app-dark .em-hero .em-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 143, 181, 0.45) 0%, rgba(130, 40, 75, 0.65) 60%, rgba(42, 15, 31, 0.94) 100%);
}

/* hero 装饰层 (HTML 中加入 .acg-hero-deco 元素) */
html.app-dark .acg-hero-deco {
    position: absolute;
    pointer-events: none;
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
}
/* 高度变小后, 大装饰隐藏, 小装饰按比例缩小 */
html.app-dark .acg-hero-deco.acg-deco-silhouette { display: none; }
html.app-dark .acg-hero-deco.acg-deco-halo {
    right: -40px;
    top: -50px;
    width: 160px;
    height: 160px;
    background-image: url('/themes/simpleboot3/mobilepublic/assets/images/anime/halo.svg');
    z-index: 0;
    opacity: 0.85;
}
html.app-dark .acg-hero-deco.acg-deco-rose-1 {
    left: 4px;
    bottom: 2px;
    width: 28px;
    height: 28px;
    background-image: url('/themes/simpleboot3/mobilepublic/assets/images/anime/rose.svg');
    z-index: 2;
    transform: rotate(-18deg);
    animation: acgFloat 8s ease-in-out infinite;
}
html.app-dark .acg-hero-deco.acg-deco-rose-2 {
    right: 96px;
    top: 6px;
    width: 20px;
    height: 20px;
    background-image: url('/themes/simpleboot3/mobilepublic/assets/images/anime/rose.svg');
    z-index: 2;
    transform: rotate(22deg);
    opacity: 0.8;
}
html.app-dark .acg-hero-deco.acg-deco-butterfly {
    right: 88px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 26px;
    background-image: url('/themes/simpleboot3/mobilepublic/assets/images/anime/butterfly.svg');
    z-index: 2;
    opacity: 0.75;
    animation: acgButterfly 6s ease-in-out infinite;
}
html.app-dark .acg-hero-deco.acg-sparkle-1 {
    left: 56%;
    top: 22%;
    width: 14px;
    height: 14px;
    background-image: url('/themes/simpleboot3/mobilepublic/assets/images/anime/sparkle.svg');
    z-index: 2;
    animation: acgTwinkle 2.4s ease-in-out infinite;
}
html.app-dark .acg-hero-deco.acg-sparkle-2 {
    left: 38%;
    bottom: 8px;
    width: 10px;
    height: 10px;
    background-image: url('/themes/simpleboot3/mobilepublic/assets/images/anime/sparkle.svg');
    z-index: 2;
    animation: acgTwinkle 3.2s ease-in-out infinite 0.6s;
}
html.app-dark .acg-hero-deco.acg-sparkle-3 {
    right: 72px;
    top: 18%;
    width: 12px;
    height: 12px;
    background-image: url('/themes/simpleboot3/mobilepublic/assets/images/anime/sparkle.svg');
    z-index: 2;
    animation: acgTwinkle 2.8s ease-in-out infinite 1.2s;
}
html.app-dark .acg-hero-deco.acg-deco-moon {
    right: 18px;
    top: 18px;
    width: 36px;
    height: 36px;
    background-image: url('/themes/simpleboot3/mobilepublic/assets/images/anime/moon.svg');
    z-index: 2;
    opacity: 0.85;
    display: none; /* 与下载按钮冲突, 默认隐藏 */
}

@keyframes acgTwinkle {
    0%, 100% { opacity: 0.35; transform: scale(0.85); }
    50%      { opacity: 1;    transform: scale(1.15); }
}
@keyframes acgButterfly {
    0%, 100% { transform: translate(0, 0) rotate(-2deg); }
    33%      { transform: translate(8px, -4px) rotate(4deg); }
    66%      { transform: translate(-4px, 6px) rotate(-3deg); }
}

/* Kicker (WELCOME TO) - 紧凑 */
html.app-dark .em-kicker {
    position: relative !important;
    z-index: 3 !important;
    color: var(--acg-gold-light) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    text-shadow: 0 2px 8px rgba(255, 107, 138, 0.4);
    line-height: 1.2 !important;
}
html.app-dark .em-kicker::before {
    content: '✦ ';
    color: var(--acg-rose);
    margin-right: 1px;
}

/* 大标题 - 紧凑单行 */
html.app-dark .em-htitle {
    position: relative !important;
    z-index: 3 !important;
    margin: 2px 0 0 !important;
    max-width: 70% !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    color: var(--acg-text-1) !important;
    text-shadow:
        0 2px 12px rgba(139, 44, 63, 0.6),
        0 0 30px rgba(255, 107, 138, 0.25);
    font-family: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 下载按钮: 金色玫瑰渐变胶囊 - 紧凑 */
html.app-dark .em-dl {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 3 !important;
    background: linear-gradient(135deg, #FAD4C0 0%, #FFB088 25%, #FF8FA3 55%, #C44569 85%, #6B1A2F 100%) !important;
    color: #2D1018 !important;
    font-weight: 900 !important;
    font-size: 12px !important;
    padding: 6px 16px !important;
    border-radius: 999px !important;
    box-shadow:
        0 4px 14px rgba(255, 107, 138, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(244, 212, 168, 0.85) !important;
    text-decoration: none !important;
    transition: transform 0.15s ease, box-shadow 0.2s ease !important;
}
html.app-dark .em-dl::before {
    content: '✦ ';
    color: #8B2C3F;
}
html.app-dark .em-dl:active {
    transform: scale(0.94);
    box-shadow: 0 4px 12px rgba(255, 107, 138, 0.5) !important;
}

/* —— 轮播图: 暗酒红卡 + 金色描边 —— */
html.app-dark .swiperHeader { margin: 14px 16px 6px !important; }
html.app-dark .swiper-container.one,
html.app-dark .one {
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(139, 44, 63, 0.32), 0 0 0 1px var(--acg-border) !important;
}
html.app-dark .one .swiper-slide {
    background-color: var(--acg-surface) !important;
}
html.app-dark .swiperHeader .swiper-pagination-bullet {
    background: rgba(212, 165, 116, 0.4) !important;
    opacity: 1 !important;
}
html.app-dark .swiperHeader .swiper-pagination-bullet-active {
    background: var(--acg-rose) !important;
    box-shadow: 0 0 8px rgba(255, 107, 138, 0.7);
}

/* —— 公告栏 (.news) 暗化处理 —— */
html.app-dark .news {
    background: var(--acg-surface) !important;
    color: var(--acg-gold-light) !important;
    border: 1px solid var(--acg-border) !important;
    border-radius: 10px !important;
}

/* —— 游戏栏目容器 —— */
html.app-dark .games-container {
    background: transparent !important;
    padding: 0 16px !important;
    align-items: stretch !important;
    position: relative;
    z-index: 1;
}
html.app-dark .games {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 栏目标题: 玫瑰前缀 + 金色文字 + 渐变下划线 */
html.app-dark .games-header {
    height: auto !important;
    margin-bottom: 14px !important;
    padding: 0 6px !important;
    position: relative;
}
html.app-dark .games-title {
    color: var(--acg-text-1) !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    margin-left: 0 !important;
    padding-left: 26px !important;
    position: relative;
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(139, 44, 63, 0.5);
}
html.app-dark .games-title::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 22px !important;
    height: 22px !important;
    background-image: url('/themes/simpleboot3/mobilepublic/assets/images/anime/title-rose.svg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    filter: drop-shadow(0 0 4px rgba(255, 107, 138, 0.45));
}
html.app-dark .games-title::after {
    content: '';
    position: absolute;
    left: 26px;
    right: 0;
    bottom: -8px;
    height: 1px;
    background: linear-gradient(90deg, var(--acg-gold) 0%, transparent 70%);
    opacity: 0.5;
}

html.app-dark .games-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* —— Category_0: 2 行 × 3 列 grid, 1:1 卡, 图铺满 + 文字浮底 —— */
html.app-dark .category_0,
html.app-dark .category_0[style] {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: auto !important;
    grid-auto-flow: row !important;
    column-gap: 8px !important;
    row-gap: 10px !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    height: auto !important;
    flex-direction: unset !important;
    justify-content: unset !important;
    align-items: unset !important;
    padding: 0 !important;
    width: 100% !important;
}
/* 强制覆盖 JS 写入的 inline grid-template-rows */
html.app-dark .category_0[style*="grid-template-rows"] {
    grid-template-rows: auto !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* 卡片: 1:1, 全图可点, 圆角 + 描边 + 阴影 */
html.app-dark .category_0 .game-item {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    text-decoration: none !important;
    background: var(--acg-bg-2) !important;
    border: 1px solid var(--acg-border) !important;
    box-shadow: 0 4px 12px rgba(139, 44, 63, 0.3) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
html.app-dark .category_0 .game-item:hover {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 10px 24px rgba(255, 107, 138, 0.4), 0 0 0 1px var(--acg-gold-light) !important;
}
html.app-dark .category_0 .game-item:active {
    transform: scale(0.96);
}

/* icon-wrap 铺满整卡 */
html.app-dark .category_0 .icon-wrap {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 12px !important;
    background: var(--acg-bg-2) !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
}
/* 图片本身铺满 + hover 微缩放 */
html.app-dark .category_0 .icon-wrap .game-icon,
html.app-dark .category_0 .game-icon {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: var(--acg-bg-2) !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html.app-dark .category_0 .game-item:hover .game-icon {
    transform: scale(1.08);
}

/* 名字浮底 + 渐变蒙版 (与首屏推荐 / game-center 卡片同款) */
html.app-dark .category_0 .game-name {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    padding: 20px 6px 6px !important;
    color: #FFF0E0 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.95),
        0 0 8px rgba(80, 20, 50, 0.55) !important;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(20, 5, 12, 0.35) 35%,
        rgba(20, 5, 12, 0.82) 75%,
        rgba(20, 5, 12, 0.95) 100%) !important;
    z-index: 2;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: 0 !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;
}

/* 热门徽章 (z-index 提到文字之上) */
html.app-dark .category_0 .icon-wrap .hot {
    background-image: url('/themes/simpleboot3/mobilepublic/assets/images/anime/hot-badge.svg') !important;
    width: 54px !important;
    height: 26px !important;
    color: transparent !important;
    font-size: 0 !important;
    top: 6px !important;
    left: 6px !important;
    z-index: 3 !important;
    filter: drop-shadow(0 2px 6px rgba(255, 107, 138, 0.5));
}

/* —— Category_1: 外层 swiper 容器透明 (.games-content.category_1.swiper-container) —— */
html.app-dark .games-content.category_1,
html.app-dark .category_1.swiper-container,
html.app-dark .games-content.category_1.swiper-container,
html.app-dark .category_1 .swiper-wrapper,
html.app-dark .category_1 .swiper-slide {
    background: transparent !important;
    background-color: transparent !important;
}

/* —— Category_1: 横排卡片轮播 (原橙色描边 → 金色描边) —— */
/* 整卡加高: 143 → 220, 海报区从 104 → 180 (约 16:9 显示) */
html.app-dark .category_1 .game-item {
    background:
        linear-gradient(180deg, var(--acg-surface-hi) 0%, var(--acg-surface) 100%) !important;
    border: 1px solid var(--acg-border-strong) !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 20px rgba(139, 44, 63, 0.32), inset 0 1px 0 rgba(244, 212, 168, 0.18) !important;
    overflow: hidden;
    height: 220px !important;
}
html.app-dark .category_1 .game-poster {
    height: 180px !important;
}
html.app-dark .category_1 .game-name {
    color: var(--acg-text-1) !important;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.85),
        0 0 8px rgba(80, 20, 50, 0.7) !important;
    font-weight: 700 !important;
}
html.app-dark .category_1 .game-icon {
    border: 1.5px solid var(--acg-gold-light) !important;
    box-shadow: 0 0 12px rgba(255, 107, 138, 0.3) !important;
}

/* —— Category_2: 2 列海报网格 —— */
html.app-dark .category_2 .game-item {
    background: var(--acg-surface) !important;
    border: 1px solid var(--acg-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 20px rgba(139, 44, 63, 0.28) !important;
}
html.app-dark .category_2 .cover {
    background-color: var(--acg-bg-2) !important;
}
html.app-dark .category_2 .cover .cover-img {
    background-color: var(--acg-bg-2) !important;
}
/* 类型标签: 蜜桃渐变胶囊 */
html.app-dark .category_2 .type-tag {
    background-image: none !important;
    background: linear-gradient(135deg, rgba(250, 212, 192, 0.95) 0%, rgba(255, 176, 136, 0.95) 50%, rgba(255, 143, 163, 0.92) 100%) !important;
    color: var(--acg-bg-2) !important;
    width: auto !important; height: auto !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 245, 230, 0.55) !important;
    padding: 4px 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    -webkit-backdrop-filter: blur(6px) !important;
    backdrop-filter: blur(6px) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 138, 0.4) !important;
}
html.app-dark .category_2 .tag-value {
    width: auto !important;
    color: var(--acg-bg-2) !important;
}
html.app-dark .category_2 .info {
    background: linear-gradient(180deg, rgba(74, 42, 64, 0) 0%, rgba(74, 42, 64, 0.5) 100%) !important;
}
html.app-dark .category_2 .info .icon {
    border-radius: 8px !important;
    border: 1px solid var(--acg-border) !important;
    background-color: var(--acg-bg-2) !important;
}
html.app-dark .category_2 .info .name {
    color: var(--acg-text-1) !important;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 0 6px rgba(80, 20, 50, 0.55) !important;
    font-weight: 700 !important;
}
html.app-dark .category_2 .cover .swiper-pagination-bullet {
    background: var(--acg-gold-soft) !important;
}
html.app-dark .category_2 .cover .swiper-pagination-bullet-active {
    background: var(--acg-rose) !important;
}

/* —— Category_3: 大海报 + 信息行 —— */
html.app-dark .category_3 .game-item {
      background:
        linear-gradient(180deg, var(--acg-surface-hi) 0%, var(--acg-surface) 100%) !important;
    border: 0 !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    padding: 8px 6px !important;
    gap: 6px !important;
}
html.app-dark .category_3 .game-item .down,
html.app-dark .category_3 .down {
    background: transparent !important;
    background-color: transparent !important;
}
html.app-dark .category_3 .up {
    border-radius: 14px !important;
    overflow: hidden;
    border: 1px solid var(--acg-border);
}
html.app-dark .category_3 .down {
    width: 100% !important;
    box-sizing: border-box !important;
    flex-wrap: nowrap !important;
}
html.app-dark .category_3 .icon {
    border: 1.5px solid var(--acg-gold-light) !important;
    box-shadow: 0 0 8px rgba(212, 165, 116, 0.4) !important;
}
html.app-dark .category_3 .down .text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
html.app-dark .category_3 .down .name {
    color: var(--acg-text-1) !important;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(80, 20, 50, 0.65) !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
html.app-dark .category_3 .down .desc {
    color: var(--acg-text-2) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
html.app-dark .category_3 .down .play {
    flex-shrink: 0 !important;
    background: linear-gradient(135deg, #FAD4C0 0%, #FFB088 25%, #FF8FA3 55%, #C44569 85%, #6B1A2F 100%) !important;
    color: #2D1018 !important;
    font-weight: 800 !important;
    border-radius: 999px !important;
    padding: 6px 18px !important;
    border: 1px solid rgba(244, 212, 168, 0.85) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 138, 0.4) !important;
}

/* ============================================================
   攻略资讯 —— 玫红夜空·玻璃质感资讯卡 (炫酷版, 编排: 1 大图 hero + 紧凑列表)
   关键: 用站内"深酒红半透 + blur + 暖金描边 + 辉光"的好卡质感,
   而非之前那张实心亮粉填充(--acg-surface 太糊). 全部 !important + 末尾源序。
   ============================================================ */
html.app-dark .activity-module {
    margin: 16px 16px 26px !important;
    background: rgba(42, 15, 31, 0.72) !important;
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255, 192, 159, 0.30) !important;
    border-radius: 18px !important;
    box-shadow:
        0 12px 32px rgba(26, 6, 16, 0.55),
        inset 0 1px 0 rgba(255, 220, 200, 0.10) !important;
    overflow: hidden !important;
}
/* 标题: 暖金→玫红渐变字 + 柔光, 干净有"炫" */
html.app-dark .activity-module .header { padding: 16px 14px 4px !important; height: auto !important; }
html.app-dark .activity-module .header .title {
    margin-left: 0 !important;
    font-family: 'Noto Serif SC', 'Songti SC', serif !important;
    font-weight: 800 !important;
    font-size: 17px !important;
    letter-spacing: 0.5px;
    background: linear-gradient(120deg, #FAD4C0 0%, #FF8FA3 55%, #C44569 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    filter: drop-shadow(0 1px 6px rgba(255, 143, 163, 0.35));
    text-shadow: none !important;
}
/* 查看全部: 金色玫瑰渐变胶囊 (与首页下载按钮 .em-dl 同款) */
html.app-dark .activity-module .header .more {
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    background: linear-gradient(135deg, #FAD4C0 0%, #FFB088 25%, #FF8FA3 55%, #C44569 85%, #6B1A2F 100%) !important;
    color: #2D1018 !important;
    border: 1px solid rgba(244, 212, 168, 0.85) !important;
    border-radius: 999px !important;
    padding: 5px 14px !important;
    height: auto !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    opacity: 1;
    text-decoration: none !important;
    box-shadow:
        0 4px 14px rgba(255, 107, 138, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    transition: transform 0.15s ease, box-shadow 0.2s ease !important;
}
html.app-dark .activity-module .header .more span { color: #2D1018 !important; }
html.app-dark .activity-module .header .more:active {
    transform: scale(0.94);
    box-shadow: 0 4px 12px rgba(255, 107, 138, 0.5) !important;
}

/* 首条 hero 卡: 分类/日期浮在亮图上, 暖灰日期看不见 → 改高对比白字 + 描边阴影 */
html.app-dark .activity_article:first-child .activity_content .time {
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85) !important;
}
html.app-dark .activity-module .body { padding: 10px 14px 14px !important; }

/* —— 首条: 大图 hero, 标题/标签压在图上 —— */
html.app-dark .activity_article:first-child {
    position: relative !important;
    display: block !important;
    height: 150px !important;
    padding: 0 !important;
    margin-bottom: 12px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    border-bottom: 0 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 192, 159, 0.22), 0 6px 18px rgba(26, 6, 16, 0.45) !important;
}
html.app-dark .activity_article:first-child .activity_image {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 14px !important;
    object-fit: cover !important;
}
html.app-dark .activity_article:first-child .activity_content {
    position: absolute !important;
    left: 0; right: 0; bottom: 0;
    z-index: 2 !important;
    padding: 34px 13px 11px !important;
    background: linear-gradient(180deg, transparent 0%, rgba(20, 5, 12, 0.45) 42%, rgba(20, 5, 12, 0.92) 100%) !important;
}
html.app-dark .activity_article:first-child .activity_content .title {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
}

/* —— 其余: 紧凑行 (文左 + 右侧小缩略图) —— */
html.app-dark .activity_article:not(:first-child) {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 11px 0 !important;
    border-bottom: 1px solid rgba(255, 192, 159, 0.14) !important;
}
html.app-dark .activity_article:last-child { border-bottom: 0 !important; }
html.app-dark .activity_article:not(:first-child) .activity_image {
    width: 88px !important;
    height: 60px !important;
    flex: 0 0 88px !important;
    border-radius: 9px !important;
    border: 1px solid rgba(255, 192, 159, 0.20) !important;
    object-fit: cover !important;
}
html.app-dark .activity_article:not(:first-child) .activity_content .title {
    color: var(--acg-text-1) !important;
    font-size: 13.5px !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* 时间 / 空态 */
html.app-dark .activity_content .time { color: var(--acg-text-3) !important; font-size: 11px !important; }
html.app-dark .index_no_con {
    color: var(--acg-text-2) !important;
    text-align: center;
    padding: 20px 0;
}

/* —— 分类标签: 玫红夜空发光小胶囊 (资讯/活动/公告/攻略) —— */
html.app-dark .activity_article .type {
    width: auto !important;
    height: auto !important;
    padding: 2px 9px !important;
    border-radius: 6px !important;
    line-height: 1.6 !important;
    border: 1px solid transparent !important;
    font-weight: 700 !important;
    font-size: 11px !important;
}
html.app-dark .activity_article .type.category2 { /* 资讯 · 青绿 */
    color: #8BE6C0 !important;
    background: rgba(93, 202, 165, 0.16) !important;
    border-color: rgba(93, 202, 165, 0.35) !important;
}
html.app-dark .activity_article .type.category3 { /* 活动 · 暖金 */
    color: #FFD7A8 !important;
    background: rgba(255, 192, 159, 0.16) !important;
    border-color: rgba(255, 192, 159, 0.40) !important;
}
html.app-dark .activity_article .type.category4 { /* 公告 · 玫红 */
    color: #FF9EAE !important;
    background: rgba(255, 143, 163, 0.18) !important;
    border-color: rgba(255, 143, 163, 0.42) !important;
}
html.app-dark .activity_article .type.category5 { /* 攻略 · 梦紫 */
    color: #CDBEFF !important;
    background: rgba(180, 124, 255, 0.18) !important;
    border-color: rgba(180, 124, 255, 0.40) !important;
}

/* —— 滚动条: 暖金 —— */
html.app-dark .indexpage::-webkit-scrollbar {
    width: 4px;
}
html.app-dark .indexpage::-webkit-scrollbar-track {
    background: transparent;
}
html.app-dark .indexpage::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--acg-gold) 0%, var(--acg-rose) 100%) !important;
    border-radius: 2px;
}

/* —— 首页弹窗 (home-pop) 玫瑰金描边 —— */
html.app-dark .home-pop-dialog {
    box-shadow:
        0 12px 36px rgba(139, 44, 63, 0.5),
        0 0 0 1px var(--acg-border-strong) !important;
    border-radius: 16px !important;
}

/* —— 18禁提示 / 书签按钮 保留原样, 不干预业务 —— */

/* —— 区块间分隔: 玫瑰金分割线 (附加, 不强制) —— */
html.app-dark .acg-divider {
    display: block;
    width: 100%;
    height: 24px;
    margin: 8px 0;
    background-image: url('/themes/simpleboot3/mobilepublic/assets/images/anime/divider-rose.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80% 100%;
    pointer-events: none;
}

/* —— 蜜桃光泽: 卡片顶部 1px 白光高光 + 玫红辉光阴影 (湿润感) —— */
html.app-dark .category_1 .game-item,
html.app-dark .category_2 .game-item,
html.app-dark .category_3 .up,
html.app-dark .em-hero,
html.app-dark .em-dl,
html.app-dark .category_3 .down .play,
html.app-dark .activity-module {
    position: relative;
}
html.app-dark .em-dl::after,
html.app-dark .category_3 .down .play::after {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    top: 2px;
    height: 35%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 999px;
    pointer-events: none;
}

/* —— 文字玫红荧光 (大标题 / 栏目标题) —— */
html.app-dark .games-title {
    text-shadow:
        0 2px 8px rgba(196, 69, 105, 0.6),
        0 0 18px rgba(255, 143, 163, 0.35) !important;
}

/* —— Hero 标题升级: 唇釉水光发光 —— */
html.app-dark .em-htitle {
    text-shadow:
        0 0 14px rgba(255, 143, 163, 0.55),
        0 2px 8px rgba(31, 10, 18, 0.9),
        0 0 28px rgba(255, 192, 159, 0.25) !important;
}

/* —— 全局微动效: 卡片按下反馈 —— */
html.app-dark .game-item,
html.app-dark .activity_article,
html.app-dark .em-dl,
html.app-dark .category_3 .down .play {
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}
html.app-dark .game-item:active,
html.app-dark .activity_article:active {
    transform: scale(0.97) !important;
}

/* —— 底部 nav (与 game-center 同步 + 激活态强化) —— */
html.app-dark .bottom-nav {
    background: rgba(45, 16, 24, 0.85) !important;
    border-top: 1px solid var(--acg-border) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 -4px 16px rgba(139, 44, 63, 0.35) !important;
}
html.app-dark .bottom-nav .nav-label {
    color: var(--acg-text-2) !important;
    transition: color 0.18s ease;
}
/* 激活态: label 玫红 + 加粗 + 光晕 */
html.app-dark .bottom-nav .nav-item.active .nav-label {
    color: var(--acg-rose) !important;
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(255, 143, 163, 0.6);
}
/* 激活态: 图标微放大 + 玫红辉光 */
html.app-dark .bottom-nav .nav-item .nav-icon {
    transition: transform 0.18s ease;
}
html.app-dark .bottom-nav .nav-item.active .nav-icon {
    transform: translateY(-2px) scale(1.12);
    filter: drop-shadow(0 0 8px rgba(255, 143, 163, 0.55));
}
html.app-dark .bottom-nav .nav-item.active .nav-icon img {
    filter: drop-shadow(0 0 6px rgba(255, 143, 163, 0.55));
}

/* —— 可访问: 尊重 reduced-motion —— */
@media (prefers-reduced-motion: reduce) {
    html.app-dark .acg-hero-deco,
    html.app-dark .page-container::before,
    html.app-dark .page-container::after {
        animation: none !important;
    }
}

/* ============================================================
   底部「请先添加到主屏幕」悬浮条 —— 玫红夜空玻璃药丸
   原 shuqian.png 浅蓝底图 + ethereal 的白药丸在玫红夜空里突兀发亮。
   隐藏底图 → 重建为深酒红磨砂玻璃药丸（蜜桃金描边 + 玫红抬升投影），
   文案 / ＋ / ✕ 用本主题暖色 token 重绘，与输入框/卡片同体系。
   须 !important 盖过 index_ethereal 的白药丸规则；仅 html.app-dark，
   JS 控制显隐(.bookmark-btn show/hide)不受影响。纯 UI。
   ============================================================ */
html.app-dark .bookmark-btn {
    height: 48px !important;
    border-radius: 30px !important;
    background: linear-gradient(180deg, rgba(74, 42, 64, 0.92) 0%, rgba(42, 15, 31, 0.94) 100%) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--acg-border-strong) !important;
    box-shadow:
        0 10px 28px rgba(26, 6, 16, 0.55),
        0 0 18px rgba(255, 143, 163, 0.18),
        inset 0 1px 0 rgba(255, 192, 159, 0.18) !important;
}
/* 隐藏浅蓝底图（＋/✕ 由 CSS 重绘） */
html.app-dark .bookmark-btn img { display: none !important; }
/* 文案：暖奶白（覆盖内联 color:#325E73 与 ethereal 深色） */
html.app-dark .bookmark-btn > div:not([class]) {
    color: var(--acg-text-1) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
/* 左侧「＋」：蜜桃金圆角方框加号 */
html.app-dark .bookmark-open::before {
    content: "+";
    position: absolute;
    left: 14px !important;
    top: 50%;
    transform: translateY(-50%);
    width: 21px !important;
    height: 21px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px !important;
    line-height: 1;
    font-weight: 300;
    color: var(--acg-gold-light) !important;
    border: 1.5px solid var(--acg-border-strong) !important;
    border-radius: 6px !important;
    box-sizing: border-box;
    pointer-events: none;
}
/* 右侧「✕」 */
html.app-dark .bookmark-close::before {
    content: "\2715";
    position: absolute;
    right: 15px !important;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px !important;
    line-height: 1;
    color: var(--acg-text-2) !important;
    pointer-events: none;
}
