/* ============================================================
   index.css - 首页专用样式
   包含：轮播、统计、建馆、追思、祭奠、解梦、友情链接
   ============================================================ */

/* ============================================================
   1. 轮播区 + 右侧面板
   ============================================================ */
.section-hero { padding: var(--spacing-lg) 0; }
.hero-grid { display: flex; align-items: stretch; gap: var(--spacing-lg); }

/* ★ 左侧整体作为一个完整卡片 ★ */
.hero-grid .hero-left { 
    flex: 1; 
    display: flex; 
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.hero-grid .hero-sidebar { 
    flex: 0 0 300px; 
    display: flex; 
    flex-direction: column; 
    gap: var(--spacing-md); 
}
.hero-grid .hero-sidebar .card { flex: 0 0 auto; }
.hero-grid .hero-sidebar .notice-card { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
}
.hero-grid .hero-sidebar .notice-card .notice-list { flex: 1; }

/* ★ 轮播 - 干净利落，不加内边距，用顶部装饰线增加层次感 ★ */
.hero-left .slider-container { 
    border-radius: 0; 
    height: 300px;
    background: #e8e5e0;
    /* 顶部加一条细装饰线，增加层次感 */
    border-top: 3px solid var(--color-primary-light);
}

/* ★ 统计 - 浅色背景+分割线 ★ */
.hero-left .slider-stats { 
    padding: 14px 0; 
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    background: #fafafa;
}
.slider-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.slider-stats .stat-item { 
    text-align: center; 
    padding: 6px 0; 
    border-right: 1px solid var(--color-border-light); 
    transition: background 0.2s; 
}
.slider-stats .stat-item:last-child { border-right: none; }
.slider-stats .stat-item:hover { background: var(--color-primary-light); }
.slider-stats .stat-item .number { 
    display: block; 
    font-size: var(--font-size-xl); 
    font-weight: 700; 
    color: var(--color-primary); 
    line-height: 1.3; 
}
.slider-stats .stat-item .label { 
    font-size: 11px; 
    color: var(--color-text-secondary); 
}

/* ★ 建馆滚动 - 浅米色背景，温馨感 ★ */
.hero-left .slider-ticker { 
    border-radius: 0; 
    border: none;
    min-height: 38px;
    background: #f7f3ee;
}
.slider-ticker { 
    display: flex; 
    align-items: stretch; 
    padding: 0; 
    overflow: hidden; 
}
.slider-ticker .ticker-label-sm { 
    flex-shrink: 0; 
    display: flex; 
    align-items: center; 
    padding: 0 16px; 
    background: var(--color-primary); 
    color: #fff; 
    font-weight: 600; 
    font-size: 12px; 
    white-space: nowrap; 
}
.slider-ticker .ticker-track-sm { 
    flex: 1; 
    overflow: hidden; 
    position: relative; 
    height: 38px; 
}
.slider-ticker .ticker-track-sm ul { 
    margin: 0; 
    padding: 0; 
    list-style: none; 
    will-change: transform; 
}
.slider-ticker .ticker-track-sm ul li { 
    height: 38px; 
    line-height: 38px; 
    padding: 0 14px; 
    font-size: 12px; 
    color: var(--color-text-secondary); 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}
.slider-ticker .ticker-track-sm ul li .highlight { color: var(--color-primary); }
.slider-ticker .ticker-track-sm ul li .date { 
    color: var(--color-text-muted); 
    margin: 0 3px; 
}

/* ★ 轮播内部样式 ★ */
.slider-container { position: relative; overflow: hidden; }
.slider-track { 
    display: flex; 
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    will-change: transform; 
    height: 100%; 
}
.slider-slide { flex: 0 0 100%; height: 100%; }
.slider-slide a { display: block; height: 100%; }
.slider-slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
}

/* 轮播指示点 */
.slider-dots { 
    position: absolute; 
    bottom: 16px; 
    left: 50%; 
    transform: translateX(-50%); 
    display: flex; 
    gap: 8px; 
    z-index: 5; 
}
.slider-dots .dot { 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
    background: rgba(255, 255, 255, 0.5); 
    cursor: pointer; 
    border: none; 
    padding: 0; 
    transition: all 0.3s; 
}
.slider-dots .dot.active { 
    background: var(--color-primary); 
    width: 28px; 
    border-radius: 5px; 
}
.slider-dots .dot:hover { background: rgba(255, 255, 255, 0.9); }

/* 轮播左右箭头 */
.slider-arrows { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 100%; 
    display: flex; 
    justify-content: space-between; 
    padding: 0 10px; 
    z-index: 5; 
    pointer-events: none; 
}
.slider-arrows button { 
    pointer-events: auto; 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    border: none; 
    background: rgba(0, 0, 0, 0.4); 
    color: #fff; 
    font-size: 20px; 
    cursor: pointer; 
    transition: background 0.3s; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    line-height: 1; 
}
.slider-arrows button:hover { background: rgba(0, 0, 0, 0.7); }

/* ============================================================
   2. 登录卡片 + 公告卡片
   ============================================================ */
.login-card .login-actions { display: flex; gap: var(--spacing-sm); margin-bottom: var(--spacing-sm); }
.login-card .btn-login { 
    flex: 1; 
    text-align: center; 
    padding: 8px; 
    background: var(--color-primary); 
    color: var(--color-text-white); 
    border-radius: var(--radius-sm); 
    font-weight: 600; 
}
.login-card .btn-login:hover { 
    background: var(--color-primary-dark); 
    color: var(--color-text-white); 
}
.login-card .btn-register { 
    flex: 1; 
    text-align: center; 
    padding: 8px; 
    border: 2px solid var(--color-primary); 
    color: var(--color-primary); 
    border-radius: var(--radius-sm); 
    font-weight: 600; 
}
.login-card .btn-register:hover { 
    background: var(--color-primary); 
    color: var(--color-text-white); 
}
.login-card .social-login { 
    display: flex; 
    align-items: center; 
    gap: var(--spacing-sm); 
    padding-top: var(--spacing-sm); 
    border-top: 1px solid var(--color-border-light); 
    font-size: var(--font-size-xs); 
    color: var(--color-text-secondary); 
}
.login-card .user-info { 
    display: flex; 
    align-items: center; 
    gap: var(--spacing-md); 
    padding-bottom: var(--spacing-sm); 
    border-bottom: 1px solid var(--color-border-light); 
}
.login-card .user-info .avatar { 
    width: 48px; 
    height: 48px; 
    border-radius: var(--radius-full); 
    object-fit: cover; 
    border: 2px solid var(--color-border-light); 
}
.login-card .user-info .name { font-weight: 600; }
.login-card .user-info .balance { 
    font-size: var(--font-size-xs); 
    color: var(--color-text-secondary); 
}
.login-card .user-info .balance .amount { 
    color: var(--color-primary); 
    font-weight: 600; 
}
.login-card .user-actions { 
    display: flex; 
    gap: var(--spacing-md); 
    padding-top: var(--spacing-sm); 
    font-size: var(--font-size-xs); 
}
.login-card .user-actions a { color: var(--color-text-secondary); }
.login-card .user-actions a:hover { color: var(--color-primary); }

.notice-card .notice-list li { 
    display: flex; 
    justify-content: space-between; 
    padding: 4px 0; 
    font-size: var(--font-size-xs); 
    border-bottom: 1px solid var(--color-border-light); 
}
.notice-card .notice-list li:last-child { border-bottom: none; }
.notice-card .notice-list a { 
    flex: 1; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
}
.notice-card .notice-list a:hover { color: var(--color-primary); }
.notice-card .notice-list .date { 
    flex-shrink: 0; 
    margin-left: var(--spacing-sm); 
}

/* ============================================================
   3. 在线追思 + 最新纪念馆
   ============================================================ */
.section-memorial { padding: var(--spacing-lg) 0; }
.memorial-grid { display: grid; grid-template-columns: 1fr 280px; gap: var(--spacing-lg); }

/* 追思画廊 */
.memorial-gallery { 
    background: var(--color-bg-white); 
    border-radius: var(--radius-md); 
    padding: var(--spacing-lg); 
    box-shadow: var(--shadow-sm); 
}
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: var(--spacing-md); 
}
.gallery-item { text-align: center; }
.gallery-item a { display: block; transition: transform 0.25s; }
.gallery-item a:hover { transform: translateY(-4px); }
.gallery-item .avatar-circle { 
    width: 100%; 
    aspect-ratio: 1/1; 
    border-radius: 50%; 
    overflow: hidden; 
    border: 3px solid var(--color-border-light); 
    transition: border-color 0.25s; 
    background: var(--color-bg-light); 
}
.gallery-item a:hover .avatar-circle { border-color: var(--color-primary); }
.gallery-item .avatar-circle img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.gallery-item .name { 
    display: block; 
    margin-top: 6px; 
    font-size: var(--font-size-xs); 
    color: var(--color-text); 
    font-weight: 500; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
}
.gallery-item.placeholder .avatar-circle { 
    border-color: var(--color-border-light); 
    opacity: 0.5; 
}
.gallery-item.placeholder .name { color: var(--color-text-muted); }

/* 最新纪念馆列表 */
.memorial-list { 
    background: var(--color-bg-white); 
    border-radius: var(--radius-md); 
    padding: var(--spacing-lg); 
    box-shadow: var(--shadow-sm); 
}
.memorial-list .latest-list li { 
    display: flex; 
    justify-content: space-between; 
    padding: 6px 0; 
    border-bottom: 1px solid var(--color-border-light); 
    font-size: var(--font-size-sm); 
}
.memorial-list .latest-list li:last-child { border-bottom: none; }
.memorial-list .latest-list a { 
    flex: 1; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
}
.memorial-list .latest-list a:hover { color: var(--color-primary); }
.memorial-list .latest-list .date { 
    flex-shrink: 0; 
    margin-left: var(--spacing-sm); 
}

/* ============================================================
   4. 最近祭奠 + 新闻 + 祭文/信箱
   ============================================================ */
.section-info { 
    padding: 16px 0 24px 0; 
    background: var(--color-bg); 
}
.info-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    gap: var(--spacing-lg); 
}

/* 信息卡片通用样式 */
.info-card { 
    background: var(--color-bg-white); 
    border-radius: var(--radius-md); 
    padding: var(--spacing-lg); 
    box-shadow: var(--shadow-sm); 
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}
.info-card .card-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding-bottom: var(--spacing-md); 
    border-bottom: 1px solid var(--color-border-light); 
    margin-bottom: var(--spacing-md); 
}
.info-card .card-header h3 { 
    font-size: var(--font-size-md); 
    font-weight: 600; 
    margin: 0; 
}
.info-card .card-header .more { 
    font-size: var(--font-size-xs); 
    color: var(--color-text-muted); 
}
.info-card .card-header .more:hover { color: var(--color-primary); }

/* 子卡片（祭文/信箱） */
.sub-card .card-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding-bottom: var(--spacing-sm); 
    margin-bottom: var(--spacing-sm); 
}
.sub-card .card-header h4 { 
    font-size: var(--font-size-sm); 
    font-weight: 600; 
    margin: 0; 
}
.sub-card .card-header .more { 
    font-size: var(--font-size-xs); 
    color: var(--color-text-muted); 
}
.sub-card .card-header .more:hover { color: var(--color-primary); }

/* 最近祭奠滚动区 */
.tribute-scroll-old { 
    overflow: hidden; 
    height: 420px; 
    position: relative; 
}
.tribute-scroll-old .tribute-scroll-inner-old { will-change: transform; }
.tribute-item { 
    display: flex; 
    gap: var(--spacing-md); 
    padding: 8px 0; 
    border-bottom: 1px solid var(--color-border-light); 
}
.tribute-item:last-child { border-bottom: none; }
.tribute-item .tribute-icon { 
    flex-shrink: 0; 
    width: 44px; 
    height: 44px; 
    border-radius: var(--radius-sm); 
    overflow: hidden; 
    border: 1px solid var(--color-border-light); 
}
.tribute-item .tribute-icon img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.tribute-item .tribute-info { flex: 1; min-width: 0; }
.tribute-item .memorial-name { 
    font-weight: 600; 
    font-size: var(--font-size-sm); 
    color: var(--color-text); 
}
.tribute-item .tribute-detail { 
    font-size: var(--font-size-xs); 
    color: var(--color-text-secondary); 
}
.tribute-item .tribute-detail .source { color: var(--color-success); }
.tribute-item .tribute-detail .cost { color: var(--color-primary); }
.tribute-item .tribute-time { 
    font-size: var(--font-size-xs); 
    color: var(--color-text-muted); 
}

/* 信息列表（新闻、祭文、信箱） */
.info-list li { 
    padding: 4px 0; 
    border-bottom: 1px solid var(--color-border-light); 
    font-size: var(--font-size-sm); 
}
.info-list li:last-child { border-bottom: none; }
.info-list li a { 
    display: block; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
}
.info-list li a:hover { color: var(--color-primary); }
.sub-card { margin-bottom: var(--spacing-md); }
.sub-card:last-child { margin-bottom: 0; }

/* ============================================================
   5. 功能区域（解梦 + 拜佛祈福 + 愿望）
   ============================================================ */
.section-features { 
    padding: 16px 0 24px 0; 
    background: var(--color-bg); 
}
.features-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    gap: var(--spacing-lg); 
}

/* 功能卡片通用样式 */
.feature-card { 
    background: var(--color-bg-white); 
    border-radius: var(--radius-md); 
    padding: var(--spacing-lg); 
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}
.feature-header { 
    display: flex; 
    align-items: center; 
    gap: var(--spacing-sm); 
    margin-bottom: var(--spacing-md); 
}
.feature-icon { height: 40px; width: auto; }
.feature-icon-emoji { font-size: 28px; }
.feature-title { font-size: var(--font-size-lg); font-weight: 700; }
.feature-header .more { 
    margin-left: auto; 
    font-size: var(--font-size-xs); 
    color: var(--color-text-muted); 
}
.feature-header .more:hover { color: var(--color-primary); }

/* 解梦搜索框 */
.feature-card .search-row { 
    display: flex; 
    gap: var(--spacing-sm); 
    margin-bottom: var(--spacing-sm);
    width: 100%;
}
.feature-input { 
    flex: 1; 
    padding: 10px 16px; 
    border: 2px solid var(--color-border); 
    border-radius: var(--radius-sm); 
    font-size: var(--font-size-sm); 
    transition: border-color 0.25s;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}
.feature-input:focus { border-color: var(--color-primary); }
.feature-btn { 
    padding: 10px 20px; 
    background: var(--color-primary); 
    color: #fff; 
    border-radius: var(--radius-sm); 
    font-weight: 600; 
    transition: background 0.25s; 
    white-space: nowrap;
    flex-shrink: 0;
}
.feature-btn:hover { background: var(--color-primary-dark); }

/* 解梦标签 */
.feature-tags { 
    font-size: var(--font-size-xs); 
    color: var(--color-text-secondary); 
    margin-bottom: var(--spacing-md);
    word-break: break-word;
}
.feature-tags a { color: var(--color-primary); margin: 0 2px; }
.feature-tags a:hover { text-decoration: underline; }

/* 解梦分类 */
.feature-categories { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 4px; 
}
.cat-tag { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    padding: 4px 10px; 
    background: var(--color-bg-light); 
    border-radius: var(--radius-sm); 
    font-size: var(--font-size-xs); 
    transition: all 0.25s;
    flex-shrink: 0;
}
.cat-tag:hover { 
    background: var(--color-primary-light); 
    color: var(--color-primary); 
}
.cat-tag img { width: 24px; height: 24px; }

/* 拜佛/愿望列表 */
.feature-list li { 
    display: flex; 
    justify-content: space-between; 
    padding: 5px 0; 
    border-bottom: 1px solid var(--color-border-light); 
    font-size: var(--font-size-sm);
    width: 100%;
    overflow: hidden;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li .title { 
    flex: 1; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap;
    min-width: 0;
}
.feature-list li .title:hover { color: var(--color-primary); }
.feature-list li .date { 
    flex-shrink: 0; 
    margin-left: var(--spacing-sm); 
    font-size: var(--font-size-xs); 
    color: var(--color-text-muted);
}

/* ============================================================
   6. 友情链接
   ============================================================ */
.section-links { 
    padding: var(--spacing-lg) 0 18px; 
    background: #FFFFFF; 
    border-top: 1px solid var(--color-border-light); 
}
.links-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    gap: var(--spacing-xl); 
}
.links-group h4 { 
    font-size: var(--font-size-md); 
    font-weight: 600; 
    margin-bottom: var(--spacing-md); 
    color: var(--color-text); 
}

/* Logo 友情链接 */
.links-logos { 
    display: flex; 
    flex-wrap: wrap; 
    gap: var(--spacing-sm); 
}
.links-logos a { 
    display: block; 
    padding: 4px; 
    border: 1px solid var(--color-border-light); 
    border-radius: var(--radius-sm); 
    transition: border-color 0.25s; 
}
.links-logos a:hover { border-color: var(--color-primary); }
.links-logos img { height: 32px; width: auto; }

/* 文字友情链接 */
.links-text { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 4px 16px; 
    max-height: 80px; 
    overflow-y: auto; 
}
.links-text::-webkit-scrollbar { width: 3px; }
.links-text::-webkit-scrollbar-thumb { 
    background: var(--color-border); 
    border-radius: 10px; 
}
.links-text a { 
    font-size: var(--font-size-sm); 
    color: var(--color-text-secondary); 
}
.links-text a:hover { color: var(--color-primary); }

/* 宠物墓地列表（可折叠） */
.cemetery-list { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 4px 12px; 
    max-height: 64px; 
    overflow: hidden; 
    transition: max-height 0.3s ease; 
}
.cemetery-list.expanded { 
    max-height: 400px; 
    overflow-y: auto; 
}
.cemetery-list a { 
    font-size: var(--font-size-sm); 
    color: var(--color-text-secondary); 
}
.cemetery-list a:hover { color: var(--color-primary); }
.cemetery-toggle { 
    display: inline-block; 
    margin-top: var(--spacing-sm); 
    color: var(--color-primary); 
    font-size: var(--font-size-xs); 
    cursor: pointer; 
    user-select: none; 
}
.cemetery-toggle:hover { text-decoration: underline; }

/* ============================================================
   7. 首页响应式
   ============================================================ */

/* 平板设备 (1024px 以下) */
@media (max-width: 1024px) {
    .hero-grid { flex-direction: column; }
    .hero-grid .hero-sidebar { 
        flex: 0 0 auto; 
        flex-direction: row; 
        flex-wrap: wrap; 
    }
    .hero-grid .hero-sidebar .card { flex: 1 1 45%; }
    .hero-grid .hero-sidebar .notice-card { flex: 1 1 45%; }
    .info-grid { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .links-grid { grid-template-columns: 1fr 1fr; }
}

/* 手机设备 (768px 以下) */
@media (max-width: 768px) {
    /* 右侧面板改为纵向排列 */
    .hero-grid .hero-sidebar { flex-direction: column; }
    .hero-grid .hero-sidebar .card { flex: 0 0 auto; width: 100%; }
    .hero-grid .hero-sidebar .notice-card { flex: 0 0 auto; }
    
    /* 追思网格调整为3列 */
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    
    /* 信息区和功能区改为单列，保持卡片宽度一致 */
    .info-grid { 
        grid-template-columns: 1fr; 
        gap: var(--spacing-md);
    }
    .features-grid { 
        grid-template-columns: 1fr; 
        gap: var(--spacing-md);
    }
    
    /* 统一卡片内边距 */
    .info-card,
    .feature-card {
        padding: var(--spacing-md);
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    /* 统一两个区域的上下内边距 */
    .section-info,
    .section-features {
        padding: 12px 0 20px 0;
    }
    
    /* 友情链接改为单列 */
    .links-grid { 
        grid-template-columns: 1fr; 
        gap: var(--spacing-lg); 
    }
    
    /* 追思+纪念馆改为单列 */
    .memorial-grid { grid-template-columns: 1fr; }
    
    /* ★ 手机轮播高度降低 ★ */
    .hero-left .slider-container { height: 200px; }
    
    /* ★ 手机建馆滚动调整 ★ */
    .hero-left .slider-ticker { min-height: 34px; }
    .slider-ticker .ticker-track-sm { height: 34px; }
    .slider-ticker .ticker-track-sm ul li { 
        height: 34px; 
        line-height: 34px; 
        font-size: 11px; 
        padding: 0 8px; 
    }
    .slider-ticker .ticker-label-sm {
        font-size: 11px;
        padding: 0 12px;
    }
    
    /* ★ 手机统计数字调整 ★ */
    .slider-stats .stat-item .number { 
        font-size: var(--font-size-lg); 
    }
    .slider-stats .stat-item .label { font-size: 10px; }
    
    /* 最近祭奠滚动高度降低 */
    .tribute-scroll-old { height: 340px; }
    
    /* 解梦分类在手机上更紧凑 */
    .feature-categories .cat-tag {
        font-size: 10px;
        padding: 2px 8px;
    }
    .feature-categories .cat-tag img {
        width: 18px;
        height: 18px;
    }
    
    /* 搜索框在手机上更紧凑 */
    .feature-input {
        padding: 8px 12px;
        font-size: var(--font-size-xs);
    }
    .feature-btn {
        padding: 8px 14px;
        font-size: var(--font-size-xs);
    }
}

/* 小手机 (480px 以下) */
@media (max-width: 480px) {
    /* 追思网格调整为2列 */
    .gallery-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: var(--spacing-sm); 
    }
    
    /* 轮播高度进一步降低 */
    .hero-left .slider-container { height: 160px; }
    
    /* 建馆滚动更紧凑 */
    .hero-left .slider-ticker { min-height: 32px; }
    .slider-ticker .ticker-track-sm { height: 32px; }
    .slider-ticker .ticker-track-sm ul li { 
        height: 32px; 
        line-height: 32px; 
        font-size: 10px; 
        padding: 0 6px; 
    }
    .slider-ticker .ticker-label-sm {
        font-size: 10px;
        padding: 0 10px;
    }
    
    /* 统计数字更小 */
    .slider-stats .stat-item .number { 
        font-size: var(--font-size-md); 
    }
    .slider-stats .stat-item .label { font-size: 9px; }
    
    /* 最近祭奠滚动高度更低 */
    .tribute-scroll-old { height: 280px; }
}
/* ============================================================
   横幅广告 - 居中
   ============================================================ */
.banner-ad-wrap {
    text-align: center;
    margin: 0 auto;      /* ← 上下间距为 0 */
    padding: 0 20px;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}
.banner-ad-wrap a {
    display: inline-block;
    max-width: 100%;
}
.banner-ad-wrap img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    border-radius: 1px;
}
/* ============================================================
   专题卡片 - 宠物英雄故事
   ============================================================ */
.section-special {
    padding: 0 0 12px 0;
    background: var(--color-bg);
}

/* 使用与 info-card 相同的卡片样式 */
.special-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.special-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: var(--spacing-md);
}

.special-card .card-header h3 {
    font-size: var(--font-size-md);
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.special-card .card-header h3 .special-icon {
    font-size: 20px;
}

.special-card .card-header h3 .special-badge {
    font-size: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 1px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.special-card .card-header .more {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.special-card .card-header .more:hover {
    color: var(--color-primary);
}

/* 分类入口 */
.special-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.special-cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--color-bg-light);
    border-radius: var(--radius-sm);
    border-left: 4px solid #ccc;
    transition: all 0.25s;
    text-decoration: none !important;
}

.special-cat-item:hover {
    transform: translateY(-2px);
    background: var(--color-primary-light);
}

.special-cat-item .sc-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.special-cat-item .sc-info {
    display: flex;
    flex-direction: column;
}

.special-cat-item .sc-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.special-cat-item .sc-count {
    font-size: 11px;
    color: var(--color-text-muted);
}

/* 精选故事列表 */
.special-stories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.special-story-item {
    background: var(--color-bg-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.25s;
}

.special-story-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    background: var(--color-bg-white);
}

.special-story-item .ss-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

.special-story-item .ss-thumb {
    height: 100px;
    overflow: hidden;
    background: #e8e5e0;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* cover图片铺满容器，裁剪超出部分 
   scale-down	图片完整显示，等比缩放，不裁剪
   ontain	图片完整显示，等比缩放，可能留白
   fill	图片拉伸填满，可能变形
*/
.special-story-item .ss-thumb img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
    object-fit: fill;  /* 从cover改为fill */
    background: #f5f5f5;     /* 添加背景色，图片缩小时显示背景 */	
}

.special-story-item .ss-thumb .ss-placeholder {
    font-size: 32px;
    color: #ccc;
}

.special-story-item .ss-body {
    padding: 10px 12px 12px 12px;
}

.special-story-item .ss-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 10px;
    border-radius: 12px;
    margin-bottom: 4px;
}

.special-story-item .ss-title {
    font-size: 13px;
    font-weight: 600;
    margin: 2px 0 4px 0;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.special-story-item .ss-summary {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.special-story-item .ss-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--color-text-muted);
}

/* ===== 专题卡片响应式 ===== */
@media (max-width: 992px) {
    .special-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    .special-stories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .special-card {
        padding: var(--spacing-md);
    }
    .special-card .card-header h3 {
        font-size: 15px;
    }
    .special-card .card-header h3 .special-badge {
        font-size: 9px;
        padding: 0 8px;
    }
    .special-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .special-cat-item {
        padding: 8px 12px;
    }
    .special-cat-item .sc-icon {
        font-size: 18px;
    }
    .special-cat-item .sc-name {
        font-size: 12px;
    }
    .special-stories {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .special-story-item .ss-thumb {
        height: 80px;
    }
    .special-story-item .ss-title {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .special-card {
        padding: 12px;
    }
    .special-card .card-header h3 {
        font-size: 13px;
        gap: 4px;
    }
    .special-card .card-header h3 .special-icon {
        font-size: 16px;
    }
    .special-card .card-header h3 .special-badge {
        font-size: 8px;
        padding: 0 6px;
    }
    .special-categories {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .special-cat-item {
        padding: 6px 10px;
        gap: 6px;
    }
    .special-cat-item .sc-icon {
        font-size: 16px;
    }
    .special-cat-item .sc-name {
        font-size: 11px;
    }
    .special-cat-item .sc-count {
        font-size: 10px;
    }
    .special-stories {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .special-story-item .ss-thumb {
        height: 70px;
    }
    .special-story-item .ss-body {
        padding: 6px 8px 8px 8px;
    }
    .special-story-item .ss-title {
        font-size: 11px;
    }
    .special-story-item .ss-summary {
        font-size: 10px;
        -webkit-line-clamp: 1;
    }
    .special-story-item .ss-meta {
        font-size: 10px;
        gap: 8px;
    }
    .special-story-item .ss-tag {
        font-size: 9px;
        padding: 0 8px;
    }
}