/* ==========================================================================
   zizhulian.cc 移动端设计系统 v2.0
   Mobile-First Responsive Design System
   ========================================================================== */

/* ==========================================================================
   § 1. DESIGN TOKENS — 设计变量体系
   ========================================================================== */
:root {
    /* —— 色彩体系 —— */
    --color-primary:       #ff7f00;       /* 品牌主色：暖橙 */
    --color-primary-light: #fff3e0;       /* 主色浅底 */
    --color-primary-dark:  #e06800;       /* 主色深 */
    --color-accent:        #CC6600;       /* 强调色 */
    --color-danger:        #f56c6c;       /* 危险/红色 */
    --color-success:       #67c23a;       /* 成功/绿色 */
    --color-warning:       #e6a23c;       /* 警告/黄色 */
    --color-info:          #409eff;       /* 信息/蓝色 */

    /* —— 中性色阶 —— */
    --color-text-primary:   #1a1a2e;
    --color-text-secondary: #555;
    --color-text-tertiary:  #999;
    --color-border:         #eaeaea;
    --color-bg-page:        #f4f5f7;
    --color-bg-card:        #ffffff;

    /* —— 圆角规范 —— */
    --radius-xs:  4px;
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  20px;
    --radius-full: 9999px;

    /* —— 阴影规范 —— */
    --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:  0 4px 12px rgba(0,0,0,.08);
    --shadow-lg:  0 8px 24px rgba(0,0,0,.10);
    --shadow-glow: 0 0 20px rgba(255,127,0,.15);

    /* —— 间距规范 (4px 倍数) —— */
    --space-xs:  4px;
    --space-sm:  8px;
    --space-md:  12px;
    --space-lg:  16px;
    --space-xl:  24px;
    --space-2xl: 32px;

    /* —— 字体 —— */
    --font-xs:  11px;
    --font-sm:  12px;
    --font-md:  14px;
    --font-lg:  16px;
    --font-xl:  18px;
    --font-2xl: 22px;

    /* —— 过渡 —— */
    --ease-out: cubic-bezier(.25,.46,.45,.94);
    --duration-fast: .15s;
    --duration-normal: .25s;
    --duration-slow: .4s;
}

/* ==========================================================================
   § 2. GLOBAL BASE — 全局基础
   ========================================================================== */
@media (max-width: 767px) {
    body {
        background: var(--color-bg-page);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        -webkit-overflow-scrolling: touch;
    }

    * { word-wrap: break-word; overflow-wrap: break-word; }

    img { max-width: 100%; height: auto; }

    a, button, .nav-bar, .search-type li {
        -webkit-tap-highlight-color: rgba(0,0,0,.06);
        touch-action: manipulation;
    }
}

/* ==========================================================================
   § 3. HEADER & NAV — 顶部导航区域
   ========================================================================== */
@media (max-width: 767px) {
    .header {
        height: 50px;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 1px 0 rgba(0,0,0,.06);
    }
    .header .container {
        display: flex; align-items: center;
        justify-content: space-between; height: 100%;
    }
    .logo {
        width: auto; max-width: 130px; height: 44px;
        padding: 4px 8px; margin-left: 8px;
        display: flex; align-items: center;
    }
    .logo img { max-height: 34px; width: auto; object-fit: contain; }
    .nav-bar {
        width: 44px; height: 44px; right: 2px;
        top: 50%; transform: translateY(-50%) scale(.8);
    }
    .nav-bar span { margin: 20px auto; }
}

/* 导航下拉 */
@media (max-width: 767px) {
    .nav.show {
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 8px; box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        right: 8px; top: 50px;
    }
    .nav.show li { right: 0; transform: none; margin: 3px 0; }
    .nav.show li a {
        display: block; padding: 10px 16px;
        border-radius: var(--radius-sm); font-size: var(--font-md);
        background: var(--color-bg-card);
        box-shadow: var(--shadow-sm);
    }
    .nav.show li a:hover, .nav.show li a.active {
        background: var(--color-primary); color: #fff;
    }
}

/* ==========================================================================
   § 4. BANNER & SEARCH — 搜索横幅区域
   ========================================================================== */
@media (max-width: 767px) {
    .banner {
        height: auto; min-height: 120px;
        padding: var(--space-md) var(--space-md);
        margin-top: 50px;
        background-size: cover; background-position: center;
    }
    .search-type {
        width: 100%; max-width: 100%;
        margin-bottom: var(--space-sm);
        flex-wrap: wrap; justify-content: center; gap: 3px;
    }
    .search-type .title { display: none; }
    .search-type li {
        padding: 4px 10px; font-size: var(--font-sm);
        border-radius: var(--radius-xs);
    }
    .search-main { width: 100%; max-width: 100%; display: flex; gap: 0; }
    .search-main .search-input {
        flex: 1; font-size: var(--font-md);
        padding: 9px 12px; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    }
    .search-main .search-btn {
        width: 72px; min-width: 72px; height: 38px;
        font-size: 13px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
        white-space: nowrap;
        background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    }
}
@media (max-width: 360px) {
    .logo { max-width: 110px; }
    .search-type li { padding: 3px 7px; font-size: var(--font-xs); }
    .search-main .search-btn { width: 60px; font-size: var(--font-sm); }
}

/* ==========================================================================
   § 5. NAV20 — 功能导航条（移动端卡片式网格）
   ========================================================================== */
@media (max-width: 1024px) {
    .nav20 {
        width: 100% !important; max-width: 100% !important;
        padding: 0 10px; flex-wrap: wrap; justify-content: center;
    }
    .nav20 a {
        font-size: var(--font-md); padding: 12px 8px;
        flex: 0 1 auto; white-space: nowrap;
    }
}

/* —— 5.1 移动端：卡片网格导航 —— */
@media (max-width: 767px) {
    .nav20 {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        padding: 12px 10px !important;
        background: linear-gradient(135deg, #fef9f3 0%, #fdf2e6 100%) !important;
        border-top: none !important;
        border-bottom: none !important;
        border-radius: 0 !important;
        position: relative;
    }
    .nav20::before { display: none !important; }

    .nav20 a {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px 4px 8px !important;
        margin: 0 !important;
        border-radius: var(--radius-md) !important;
        background: #fff;
        border: 1px solid rgba(255, 127, 0, .1);
        box-shadow: 0 2px 8px rgba(255, 127, 0, .06);
        text-decoration: none;
        transition: all var(--duration-normal) var(--ease-out);
        position: relative;
        overflow: hidden;
        min-height: 72px;
        color: var(--color-text-primary) !important;
    }
    .nav20 a font,
    .nav20 a font b {
        color: var(--color-text-primary) !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        letter-spacing: .3px;
    }
    .nav20 a:active {
        transform: scale(.94);
        box-shadow: 0 1px 3px rgba(255, 127, 0, .12);
        background: var(--color-primary-light);
        border-color: rgba(255, 127, 0, .25);
    }
    .nav20 a:active font,
    .nav20 a:active font b {
        color: var(--color-primary) !important;
    }

    /* —— Emoji 图标（通过 ::before 注入） —— */
    .nav20 a::before {
        display: block;
        font-size: 22px;
        line-height: 1;
        margin-bottom: 5px;
        content: '🔗';
        filter: saturate(1.1);
    }
    .nav20 a:nth-child(1)::before  { content: '🏠'; }
    .nav20 a:nth-child(2)::before  { content: '📝'; }
    .nav20 a:nth-child(3)::before  { content: '📌'; }
    .nav20 a:nth-child(4)::before  { content: ''; }
    .nav20 a:nth-child(5)::before  { content: '🤝'; }
    .nav20 a:nth-child(6)::before  { content: '⚡'; }
    .nav20 a:nth-child(7)::before  { content: '🔄'; }
    .nav20 a:nth-child(8)::before  { content: '🔗'; }
    .nav20 a:nth-child(9)::before  { content: '🌐'; }
    .nav20 a:nth-child(10)::before { content: '❤️'; }

    /* 顶部装饰线 */
    .nav20::after {
        content: '';
        position: absolute;
        top: 0; left: 10px; right: 10px;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
        border-radius: 1px;
    }
}

/* —— 5.2 小屏适配（480px以下） —— */
@media (max-width: 480px) {
    .nav20 {
        gap: 6px !important;
        padding: 10px 8px !important;
    }
    .nav20 a {
        padding: 8px 2px 6px !important;
        min-height: 64px;
        border-radius: var(--radius-sm) !important;
    }
    .nav20 a::before {
        font-size: 20px;
        margin-bottom: 4px;
    }
    .nav20 a font,
    .nav20 a font b {
        font-size: 10px !important;
    }
}

/* —— 5.3 超小屏适配（360px以下） —— */
@media (max-width: 360px) {
    .nav20 {
        gap: 4px !important;
        padding: 8px 6px !important;
    }
    .nav20 a {
        padding: 6px 2px 5px !important;
        min-height: 58px;
    }
    .nav20 a::before {
        font-size: 18px;
        margin-bottom: 3px;
    }
    .nav20 a font,
    .nav20 a font b {
        font-size: 9px !important;
    }
}

/* ==========================================================================
   § 6. EB-SECTION — 早起的鸟儿 / 整点之约 / 铁杆粉丝
   ========================================================================== */
@media (max-width: 1024px) {
    .eb-section { width: 100% !important; max-width: 100% !important; margin: 10px 0; }
}
@media (max-width: 767px) {
    .eb-section { width: 100%; margin: 8px 0; padding-bottom: 10px; }
    .eb-header { 
        padding: 10px 12px 6px; 
        flex-direction: column;  /* 纵向布局：标题在上，描述在下 */
        align-items: flex-start;
        gap: 3px;
    }
    .eb-header .eb-title { 
        font-size: 15px; 
        margin-right: 0; 
        line-height: 1.3;
    }
    .eb-header .eb-desc { 
        font-size: var(--font-xs); 
        color: var(--color-text-tertiary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        line-height: 1.2;
    }
    .eb-grid { padding: 0 6px; }
    .eb-item { width: 50% !important; padding: 4px; }
    .eb-card {
        padding: 10px 6px 8px; min-height: 68px;
        border-radius: var(--radius-sm);
        transition: transform var(--duration-normal) var(--ease-out);
    }
    .eb-card:active { transform: scale(.97); }
    .eb-card .eb-name { font-size: var(--font-sm); max-width: 5em; }
    .eb-card .eb-time { font-size: 9px; padding: 2px 5px; }
    .eb-rank { font-size: 9px; width: 16px; height: 16px; line-height: 16px; }
}
@media (max-width: 480px) {
    .eb-card { padding: 8px 4px 6px; min-height: 62px; }
    .eb-card .eb-name { font-size: var(--font-xs); max-width: 4.5em; }
    .eb-card .eb-ext { width: 14px; height: 14px; line-height: 14px; font-size: 7px; }
}



/* ==========================================================================
   § 8. CARDS — 卡片通用
   ========================================================================== */
@media (max-width: 767px) {
    .card {
        margin: 6px var(--space-sm);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        border: 1px solid rgba(0,0,0,.03);
    }
    .card .card-head {
        font-size: var(--font-md); padding: 10px var(--space-md);
    }
    .card .card-body { padding: 4px; }
    .card .card-body .item {
        width: 33.333% !important; padding: 8px 4px; font-size: var(--font-sm);
    }
    .card .card-body .item:active {
        background: var(--color-primary-light);
        transform: scale(.96);
    }
}
@media (max-width: 480px) {
    .card .card-body .item { width: 50% !important; font-size: var(--font-sm); padding: 6px 3px; }
}

/* top-grid - 移动端 3x3 网格布局 */
@media (max-width: 767px) {
    .top-grid { padding: 6px; }
    .top-grid .item {
        width: calc((100% - 16px) / 3) !important;
        padding: 8px 4px;
        font-size: var(--font-sm);
    }
    .top-grid .item .icon, .top-grid .item .icon2d { width: 24px; height: 24px; }
    .top-grid .item .name { font-size: var(--font-xs); margin-top: 4px; }
    .top-grid .item:active { transform: scale(.95); }
}
@media (max-width: 480px) {
    .top-grid .item {
        width: calc((100% - 16px) / 3) !important;
        padding: 10px 5px;
        font-size: 13px;
    }
}

/* ==========================================================================
   § 9. 底部广告区 — 风格A：沉浸式融合（磨砂玻璃卡片式）
   ========================================================================== */
.bottom-ad-wrapper {
    width: 100%;
    max-width: 1270px;
    margin: 0 auto var(--space-xl);
    padding: 0 var(--space-md);
    box-sizing: border-box;
}

/* 风格A容器 */
.bottom-ad--fusion {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,.85) 0%, rgba(255,248,240,.9) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,127,0,.12);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    padding: var(--space-lg);
}

/* 风格A：顶部装饰条 */
.bottom-ad--fusion::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--color-primary) 0%,
        #ff9a44 40%,
        #ffcf9c 70%,
        var(--color-primary) 100%
    );
    background-size: 200% 100%;
    animation: ad-shimmer 3s ease-in-out infinite;
}
@keyframes ad-shimmer {
    0%,100% { background-position: 0% 50%; }
    50%     { background-position: 100% 50%; }
}

/* 风格A：标签 */
.bottom-ad__badge {
    display: inline-flex;
    align-items: center;
    font-size: var(--font-xs);
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
    font-weight: 600;
    letter-spacing: .5px;
}
.bottom-ad__badge i { margin-right: 4px; font-size: 10px; }

/* 风格A：广告内容区 */
.bottom-ad__content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.bottom-ad__icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px;
    box-shadow: 0 4px 12px rgba(255,127,0,.25);
}
.bottom-ad__text {
    flex: 1; min-width: 0;
}
.bottom-ad__title {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.3;
    margin: 0 0 3px;
}
.bottom-ad__desc {
    font-size: var(--font-sm);
    color: var(--color-text-tertiary);
    line-height: 1.4;
    margin: 0;
}
/* 风格A：CTA 按钮 */
.bottom-ad__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-size: var(--font-sm);
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none;
    border-radius: var(--radius-full);
    box-shadow: 0 3px 10px rgba(255,127,0,.3);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    text-decoration: none;
    white-space: nowrap;
}
.bottom-ad__cta:active {
    transform: scale(.95);
    box-shadow: 0 1px 4px rgba(255,127,0,.2);
}
.bottom-ad__cta i { margin-left: 4px; font-size: 11px; }

/* 风格A：关闭按钮 */
.bottom-ad__close {
    position: absolute;
    top: 10px; right: 10px;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: var(--color-text-tertiary);
    background: rgba(0,0,0,.04);
    border: none; border-radius: 50%;
    cursor: pointer;
    transition: all var(--duration-fast);
    line-height: 1;
}
.bottom-ad__close:hover { background: rgba(0,0,0,.08); color: var(--color-text-secondary); }

/* 风格A移动端适配 */
@media (max-width: 767px) {
    .bottom-ad-wrapper { padding: 0 var(--space-sm); margin-bottom: var(--space-lg); }
    .bottom-ad--fusion { padding: var(--space-md); border-radius: var(--radius-md); }
    .bottom-ad__icon { width: 40px; height: 40px; font-size: 18px; border-radius: var(--radius-sm); }
    .bottom-ad__title { font-size: var(--font-md); }
    .bottom-ad__desc { font-size: var(--font-xs); }
    .bottom-ad__cta { padding: 7px 14px; font-size: var(--font-xs); }
}
@media (max-width: 400px) {
    .bottom-ad__content { gap: var(--space-sm); }
    .bottom-ad__icon { width: 36px; height: 36px; font-size: 16px; }
    .bottom-ad__cta { padding: 6px 12px; }
}

/* ==========================================================================
   § 10. 底部广告区 — 风格B：强视觉吸引（渐变通栏 + 动效）
   ========================================================================== */
.bottom-ad--vivid {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    overflow: hidden;
    color: #fff;
}

/* 风格B：背景装饰光晕 */
.bottom-ad--vivid::before {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,127,0,.2) 0%, transparent 70%);
    top: -60px; right: -40px;
    border-radius: 50%;
    animation: ad-float 4s ease-in-out infinite;
}
.bottom-ad--vivid::after {
    content: '';
    position: absolute;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(64,158,255,.15) 0%, transparent 70%);
    bottom: -30px; left: -20px;
    border-radius: 50%;
    animation: ad-float 5s ease-in-out infinite reverse;
}
@keyframes ad-float {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(10px,-10px) scale(1.1); }
}

/* 风格B：网格纹理 */
.bottom-ad__grid-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

/* 风格B内容 */
.bottom-ad--vivid .bottom-ad__inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: var(--space-lg);
}
.bottom-ad--vivid .bottom-ad__icon {
    width: 56px; height: 56px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: var(--color-primary);
}
.bottom-ad--vivid .bottom-ad__text { flex: 1; min-width: 0; }
.bottom-ad--vivid .bottom-ad__badge {
    background: rgba(255,127,0,.2);
    color: #ffb347;
    border: 1px solid rgba(255,127,0,.25);
}
.bottom-ad--vivid .bottom-ad__title {
    color: #fff;
    font-size: var(--font-xl);
    text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.bottom-ad--vivid .bottom-ad__desc {
    color: rgba(255,255,255,.65);
}
.bottom-ad--vivid .bottom-ad__cta {
    background: linear-gradient(135deg, var(--color-primary), #ff9a44);
    box-shadow: 0 4px 16px rgba(255,127,0,.35);
    animation: ad-pulse 2.5s ease-in-out infinite;
}
@keyframes ad-pulse {
    0%,100% { box-shadow: 0 4px 16px rgba(255,127,0,.35); }
    50%     { box-shadow: 0 4px 24px rgba(255,127,0,.55); }
}
.bottom-ad--vivid .bottom-ad__close {
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.5);
}
.bottom-ad--vivid .bottom-ad__close:hover {
    background: rgba(255,255,255,.18);
    color: rgba(255,255,255,.8);
}

/* 风格B移动端适配 */
@media (max-width: 767px) {
    .bottom-ad--vivid { padding: var(--space-lg) var(--space-md); border-radius: var(--radius-md); }
    .bottom-ad--vivid .bottom-ad__inner { gap: var(--space-md); }
    .bottom-ad--vidend .bottom-ad__icon,
    .bottom-ad--vivid .bottom-ad__icon { width: 44px; height: 44px; font-size: 20px; }
    .bottom-ad--vivid .bottom-ad__title { font-size: var(--font-lg); }
    .bottom-ad--vivid .bottom-ad__desc { font-size: var(--font-xs); }
    .bottom-ad--vivid .bottom-ad__cta { padding: 7px 14px; font-size: var(--font-xs); }
}
@media (max-width: 400px) {
    .bottom-ad--vivid .bottom-ad__inner { flex-wrap: wrap; justify-content: center; text-align: center; }
    .bottom-ad--vivid .bottom-ad__icon { display: none; }
    .bottom-ad--vivid .bottom-ad__text { width: 100%; }
    .bottom-ad--vivid .bottom-ad__cta { margin-top: var(--space-sm); }
}

/* ==========================================================================
   § 11. 底部广告区 — 多广告位网格（iframe 嵌入容器）
   ========================================================================== */
.bottom-ad-slot {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-card);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-md);
}
.bottom-ad-slot iframe {
    display: block; width: 100%; border: none;
}
.bottom-ad-slot__label {
    display: flex; align-items: center; justify-content: center;
    padding: 6px 0;
    font-size: var(--font-xs);
    color: var(--color-text-tertiary);
    background: linear-gradient(90deg, transparent, rgba(0,0,0,.02), transparent);
    border-top: 1px solid var(--color-border);
}
.bottom-ad-slot__label i { margin-right: 4px; font-size: 10px; opacity: .5; }

@media (max-width: 767px) {
    .bottom-ad-slot { border-radius: var(--radius-sm); margin-bottom: var(--space-sm); }
    .bottom-ad-slot__label { padding: 5px 0; font-size: 10px; }
}

/* ==========================================================================
   § 12. FOOTER — 品牌化页脚
   ========================================================================== */
.footer-enhanced {
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    padding: var(--space-xl) var(--space-md) var(--space-lg);
    text-align: center;
    margin-top: var(--space-lg);
}
.footer-enhanced__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}
.footer-enhanced__logo {
    height: 32px;
    opacity: .7;
    transition: opacity var(--duration-normal);
}
.footer-enhanced__logo:hover { opacity: 1; }
.footer-enhanced__slogan {
    font-size: var(--font-sm);
    color: var(--color-text-tertiary);
    margin: 0;
    letter-spacing: .5px;
}

/* 页脚快捷链接 */
.footer-enhanced__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xs) var(--space-md);
    margin-bottom: var(--space-lg);
    padding: 0 var(--space-md);
}
.footer-enhanced__links a {
    font-size: var(--font-sm);
    color: var(--color-text-secondary);
    padding: 4px 0;
    transition: color var(--duration-fast);
    white-space: nowrap;
}
.footer-enhanced__links a:hover { color: var(--color-primary); }

/* 页脚分割线 */
.footer-enhanced__divider {
    width: 40px; height: 2px;
    background: var(--color-border);
    border-radius: 1px;
    margin: 0 auto var(--space-md);
}

/* 页脚版权 */
.footer-enhanced__copy {
    font-size: var(--font-xs);
    color: var(--color-text-tertiary);
    line-height: 1.6;
    margin: 0;
}
.footer-enhanced__copy a { color: var(--color-text-secondary); }
.footer-enhanced__copy a:hover { color: var(--color-primary); }

/* 页脚移动端 */
@media (max-width: 767px) {
    .footer-enhanced {
        padding: var(--space-lg) var(--space-md) var(--space-md);
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }
    .footer-enhanced__links { gap: 2px var(--space-sm); }
    .footer-enhanced__links a { font-size: var(--font-xs); padding: 5px 0; }
}

/* ==========================================================================
   § 13. TABLE & MISC — 表格和其他
   ========================================================================== */
@media (max-width: 767px) {
    table { width: 100%; }
    table td {
        display: block; width: 100% !important;
        text-align: center !important; padding: 5px 0;
    }
    .card-head table, .card-head tbody,
    .card-head tr, .card-head td { display: block; width: 100%; }
    .card-head tr { margin: 5px 0; }
    .card-head td { text-align: center !important; padding: 3px 0; font-size: var(--font-sm); }
    .container { width: 100%; padding: 0; }
}

/* ==========================================================================
   § 14. LAZY-LOAD & ANIMATIONS — 加载动画
   ========================================================================== */
@media (max-width: 767px) {
    .lazy-load {
        opacity: 0;
        transition: opacity var(--duration-slow) var(--ease-out);
    }
    .lazy-load[src]:not([src="assets/images/loading.gif"]) { opacity: 1; }
}

/* 触摸反馈 */
@media (max-width: 767px) {
    .card:active,
    .eb-card:active,
    .top-grid .item:active,
    .card .card-body .item:active {
        transform: scale(.97);
        transition: transform var(--duration-fast) var(--ease-out);
    }
}

/* 进入动画 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.bottom-ad-wrapper { animation: fadeInUp .5s var(--ease-out) both; }
.footer-enhanced   { animation: fadeInUp .5s var(--ease-out) .1s both; }

/* ==========================================================================
   § 15. IFRAME ggcontainer — 自助广告（高度由 JS 动态控制，不再固定）
   ========================================================================== */
@media (max-width: 1024px) {
    .ggcontainer { width: 100% !important; max-width: 100% !important; }
    iframe.ggcontainer { width: 100% !important; }
}

/* ==========================================================================
   § 16. IFRAME 广告嵌入卡片样式
   ========================================================================== */
.ad-card {
    position: relative;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin: 0 auto var(--space-md);
    max-width: 1270px;
}
.ad-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: linear-gradient(90deg, var(--color-primary-light), transparent);
    border-bottom: 1px solid var(--color-border);
}
.ad-card__header-title {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--color-primary);
}
.ad-card__header-title i { margin-right: 4px; }
.ad-card__header-tag {
    font-size: 10px;
    color: var(--color-text-tertiary);
    background: rgba(0,0,0,.04);
    padding: 1px 8px;
    border-radius: var(--radius-full);
}
.ad-card iframe {
    display: block;
    width: 100%;
    border: none;
}

@media (max-width: 767px) {
    .ad-card { border-radius: var(--radius-sm); margin-bottom: var(--space-sm); }
    .ad-card__header { padding: 6px 10px; }
    .ad-card__header-title { font-size: var(--font-xs); }
}



/* ==========================================================================
   § 18. 悬浮按钮优化
   ========================================================================== */
@media (max-width: 767px) {
    .suspend { right: 8px; bottom: 8px; }
    .suspend li {
        width: 36px; height: 36px; line-height: 36px;
        margin: 4px;
        box-shadow: var(--shadow-md);
    }
    .suspend li:active { transform: scale(.9); }
    .suspend .more { display: none; }
}

/* ==========================================================================
   § 19. 图片展示区域视觉优化 — top-grid / top-grid33
       针对：首页「最新点入和置顶站点」网格卡片
   ========================================================================== */

/* —— 19.1 容器与布局 —— */
.top-grid,
.top-grid33 {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-md);
    font-size: 0;
}

/* —— 19.2 卡片式 Item 容器 —— */
.top-grid .item,
.top-grid33 .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* 响应式宽度：移动端3列 / 小屏3列 / 超小屏2列 */
    width: calc((100% - 2 * var(--space-sm)) / 3);
    padding: var(--space-md) var(--space-sm);
    margin: 0;
    background: var(--color-bg-card);
    border: 1px solid rgba(0,0,0,.04);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    color: var(--color-text-secondary);
    font-size: var(--font-sm);
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* 平板端 4列 */
@media (min-width: 768px) and (max-width: 1024px) {
    .top-grid .item,
    .top-grid33 .item {
        width: calc(25% - var(--space-sm));
    }
}

/* PC端 9列 */
@media (min-width: 1025px) {
    .top-grid .item,
    .top-grid33 .item {
        width: calc((100% - 8 * var(--space-sm)) / 9);
    }
}

/* —— 19.3 图标容器（图片外壳） —— */
.top-grid .item .icon2d,
.top-grid33 .item .icon2d,
.top-grid .item .icon,
.top-grid33 .item .icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid rgba(0,0,0,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
    flex-shrink: 0;
}

/* 小屏缩小图标 */
@media (max-width: 480px) {
    .top-grid .item .icon2d,
    .top-grid33 .item .icon2d,
    .top-grid .item .icon,
    .top-grid33 .item .icon {
        width: 30px;
        height: 30px;
    }
}

/* —— 19.4 图片本体 —— */
.top-grid .item .icon2d img,
.top-grid33 .item .icon2d img,
.top-grid .item .icon img,
.top-grid33 .item .icon img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
    transition: transform var(--duration-normal) var(--ease-out);
}

/* —— 19.5 站点名称 —— */
.top-grid .item .name,
.top-grid33 .item .name {
    width: 100%;
    text-align: center;
    margin-top: var(--space-sm);
    font-size: var(--font-sm);
    color: var(--color-text-primary);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    font-weight: 500;
    transition: color var(--duration-fast);
}

@media (max-width: 480px) {
    .top-grid .item .name,
    .top-grid33 .item .name {
        font-size: var(--font-xs);
        margin-top: 6px;
    }
}

/* —— 19.6 Hover / Active 微交互 —— */
.top-grid .item:hover,
.top-grid33 .item:hover {
    background: var(--color-bg-card);
    border-color: rgba(255,127,0,.25);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(255,127,0,.08);
    transform: translateY(-3px) scale(1.02);
}

.top-grid .item:hover .icon2d,
.top-grid33 .item:hover .icon2d,
.top-grid .item:hover .icon,
.top-grid33 .item:hover .icon {
    box-shadow: 0 4px 12px rgba(255,127,0,.2);
    border-color: rgba(255,127,0,.2);
    transform: scale(1.1);
}

.top-grid .item:hover .icon2d img,
.top-grid33 .item:hover .icon2d img,
.top-grid .item:hover .icon img,
.top-grid33 .item:hover .icon img {
    transform: scale(1.15);
}

.top-grid .item:hover .name,
.top-grid33 .item:hover .name {
    color: var(--color-primary);
    font-weight: 600;
}

/* 触摸按下反馈 */
.top-grid .item:active,
.top-grid33 .item:active {
    transform: translateY(0) scale(.97);
    box-shadow: var(--shadow-sm);
    border-color: rgba(255,127,0,.15);
}

/* —— 19.7 图片加载状态 —— */
.top-grid .item .icon2d img.lazy-load,
.top-grid33 .item .icon2d img.lazy-load {
    opacity: .5;
}

.top-grid .item .icon2d img[src]:not([src="assets/images/loading.gif"]),
.top-grid33 .item .icon2d img[src]:not([src="assets/images/loading.gif"]) {
    opacity: 1;
}

/* —— 19.8 图片加载失败 / 缺失回退 —— */
.top-grid .item .icon2d::before,
.top-grid33 .item .icon2d::before,
.top-grid .item .icon::before,
.top-grid33 .item .icon::before {
    content: '\f0c1'; /* Font Awesome link icon */
    font-family: 'FontAwesome';
    font-size: 16px;
    color: #ccc;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    z-index: 0;
}

.top-grid .item .icon2d img,
.top-grid33 .item .icon2d img,
.top-grid .item .icon img,
.top-grid33 .item .icon img {
    position: relative;
    z-index: 1;
}

/* 图片加载失败时隐藏图片，显示底层图标 */
.top-grid .item .icon2d img[src=""],
.top-grid .item .icon2d img[style*="display: none"],
.top-grid33 .item .icon2d img[src=""],
.top-grid33 .item .icon2d img[style*="display: none"] {
    visibility: hidden;
}

/* —— 19.9 特殊项（前8位背景图）兼容 —— */
.top-grid33 a:nth-child(1),
.top-grid33 a:nth-child(2),
.top-grid33 a:nth-child(3),
.top-grid33 a:nth-child(4),
.top-grid33 a:nth-child(5),
.top-grid33 a:nth-child(6),
.top-grid33 a:nth-child(7),
.top-grid33 a:nth-child(8) {
    background-size: cover !important;
    background-position: center !important;
    color: #fff !important;
    border: none;
    box-shadow: var(--shadow-md);
}

.top-grid33 a:nth-child(1) .name,
.top-grid33 a:nth-child(2) .name,
.top-grid33 a:nth-child(3) .name,
.top-grid33 a:nth-child(4) .name,
.top-grid33 a:nth-child(5) .name,
.top-grid33 a:nth-child(6) .name,
.top-grid33 a:nth-child(7) .name,
.top-grid33 a:nth-child(8) .name {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
    font-weight: 700;
}

.top-grid33 a:nth-child(1) .icon2d,
.top-grid33 a:nth-child(2) .icon2d,
.top-grid33 a:nth-child(3) .icon2d,
.top-grid33 a:nth-child(4) .icon2d,
.top-grid33 a:nth-child(5) .icon2d,
.top-grid33 a:nth-child(6) .icon2d,
.top-grid33 a:nth-child(7) .icon2d,
.top-grid33 a:nth-child(8) .icon2d {
    background: rgba(255,255,255,.25);
    border-color: rgba(255,255,255,.3);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* —— 19.10 入场动画 —— */
.top-grid .item,
.top-grid33 .item {
    animation: gridFadeIn .4s var(--ease-out) both;
}

.top-grid .item:nth-child(1),  .top-grid33 .item:nth-child(1)  { animation-delay: .02s; }
.top-grid .item:nth-child(2),  .top-grid33 .item:nth-child(2)  { animation-delay: .04s; }
.top-grid .item:nth-child(3),  .top-grid33 .item:nth-child(3)  { animation-delay: .06s; }
.top-grid .item:nth-child(4),  .top-grid33 .item:nth-child(4)  { animation-delay: .08s; }
.top-grid .item:nth-child(5),  .top-grid33 .item:nth-child(5)  { animation-delay: .10s; }
.top-grid .item:nth-child(6),  .top-grid33 .item:nth-child(6)  { animation-delay: .12s; }
.top-grid .item:nth-child(7),  .top-grid33 .item:nth-child(7)  { animation-delay: .14s; }
.top-grid .item:nth-child(8),  .top-grid33 .item:nth-child(8)  { animation-delay: .16s; }
.top-grid .item:nth-child(9),  .top-grid33 .item:nth-child(9)  { animation-delay: .18s; }

@keyframes gridFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* —— 19.11 卡片标题区优化 —— */
@media (max-width: 767px) {
    #最新点入和置顶站点 .card-head,
    .card-head:has(i.fa-map-signs) {
        font-size: 13px;
        padding: 10px 12px;
    }
}
