/* ============================================================
   网站动态 · 完整样式
   包含：单行滚动 + 三栏渐显
   ============================================================ */

/* ============================================================
   一、单行滚动动态（#jitheme_new_ht）
   ============================================================ */
#jitheme_new_ht .panel-wrap {
    width: 100%;
    max-width: var(--wrapper);
    margin: 0 auto;
    background: var(--bg-card);
    padding: 12px 16px;
    box-sizing: border-box;
}

#jitheme_new_ht .marquee-bar {
    display: flex;
    align-items: center;
    height: 56px;
    background: var(--bg-card);
    border-radius: var(--b2radius);
    overflow: hidden;
}

#jitheme_new_ht .marquee-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: 100%;
    font-size: var(--fs-sm);
    color: var(--text-primary);
    background: linear-gradient(135deg, #fff5f0 0%, #fff9f5 100%);
    border-right: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

#jitheme_new_ht .marquee-label::before {
    content: '';
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: linear-gradient(135deg, #ff7a5c 0%, #ff9b6a 100%);
}

#jitheme_new_ht .marquee-body {
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
}

#jitheme_new_ht .marquee-track {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 40px;
    padding: 0 20px;
    white-space: nowrap;
    animation: jithemeMarquee 30s linear infinite;
    will-change: transform;
}

#jitheme_new_ht .marquee-body:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes jithemeMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

#jitheme_new_ht .marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    flex-shrink: 0;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
}

#jitheme_new_ht .marquee-item:hover {
    color: var(--text-primary);
}

#jitheme_new_ht .marquee-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-subtle);
    flex-shrink: 0;
}

#jitheme_new_ht .marquee-name {
    color: var(--text-primary);
    white-space: nowrap;
    display: flex;
    gap: 5px;
    flex-direction: row;
    align-items: center;
}

#jitheme_new_ht .marquee-tag {
    font-size: var(--fs-xs);
    padding: 1px 6px;
    border-radius: 4px;
    display: none;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 标签配色（语义化装饰，保持原值） */
#jitheme_new_ht .tag-orange { background: #ff5500; color: #fff; }
#jitheme_new_ht .tag-blue   { background: var(--bg-primary-soft); color: #2b6cff; }
#jitheme_new_ht .tag-green  { background: #e6f7e6; color: #52c41a; }
#jitheme_new_ht .tag-gray   { background: #f0f0f0; color: var(--text-muted); }

#jitheme_new_ht .marquee-text {
    white-space: nowrap;
}

#jitheme_new_ht .marquee-text em {
    color: #ff5500;
    font-style: normal;
}

#jitheme_new_ht .marquee-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--bg-muted);
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* ============================================================
   二、三栏渐显动态（#jitheme_new）
   ============================================================ */
#jitheme_new.plate-news {
    width: 100%;
}

#jitheme_new .panel-wrap {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* ===== 三栏：设计稿 top-cards 卡片风格 ===== */
#jitheme_new .activity-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

#jitheme_new .activity-col {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--b2radius);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

#jitheme_new .activity-col:hover {
    box-shadow: none;
}

/* 顶部强调线 */
#jitheme_new .activity-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}
#jitheme_new .activity-col:nth-child(1)::before { background: linear-gradient(90deg, transparent, var(--top-sign-line), transparent); }
#jitheme_new .activity-col:nth-child(2)::before { background: linear-gradient(90deg, transparent, var(--top-comment-line), transparent); }
#jitheme_new .activity-col:nth-child(3)::before { background: linear-gradient(90deg, transparent, var(--top-download-line), transparent); }

#jitheme_new .activity-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
}

#jitheme_new .activity-title {
    font-size: var(--fs-base);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

#jitheme_new .activity-title::before {
    content: '';
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: var(--orange);
}
#jitheme_new .activity-col:nth-child(2) .activity-title::before { background: var(--primary); }
#jitheme_new .activity-col:nth-child(3) .activity-title::before { background: #10b981; }

#jitheme_new .arrow-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

#jitheme_new .arrow-btn {
    width: 26px;
    height: 26px;
    border-radius: var(--b2radius);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

#jitheme_new .arrow-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-light);
}

#jitheme_new .arrow-btn svg {
    width: 13px;
    height: 13px;
}

/* ===== 可视区：固定高度 ===== */
#jitheme_new .activity-viewport {
    position: relative;
    height: 84px;
    overflow: hidden;
    padding: 0 14px 14px;
}

/* ===== 轨道：容器 ===== */
#jitheme_new .activity-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ===== 单条动态：绝对定位，叠放 ===== */
#jitheme_new .activity-item {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    height: 70px;
    border-radius: var(--b2radius);
    box-sizing: border-box;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transition: opacity 0.5s ease; /* 与 JS 的 FADE_TIME 一致 */
    pointer-events: none;
}
/* 各栏内容区浅色底 */
#jitheme_new .activity-col:nth-child(1) .activity-item { background: var(--top-sign-bg); }
#jitheme_new .activity-col:nth-child(2) .activity-item { background: var(--top-comment-bg); }
#jitheme_new .activity-col:nth-child(3) .activity-item { background: var(--top-download-bg); }

/* 当前激活的那一条 */
#jitheme_new .activity-item.active {
    opacity: 1;
    pointer-events: auto;
    position: relative; /* 撑开父容器高度 */
    z-index: 2;
}

#jitheme_new .activity-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-subtle);
}

#jitheme_new .activity-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#jitheme_new .activity-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-sm);
}

#jitheme_new .activity-name {
    color: var(--text-primary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-direction: row;
    gap: 5px;
}

#jitheme_new .activity-tag {
    display: none;
}

#jitheme_new .activity-time {
    margin-left: auto;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    flex-shrink: 0;
}

#jitheme_new .activity-text {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#jitheme_new .activity-text em {
    color: var(--orange);
    font-style: normal;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
    /* 三栏变单栏 */
    #jitheme_new .activity-panel {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* 单行滚动缩小 */
    #jitheme_new_ht .marquee-bar { height: 50px; }
    #jitheme_new_ht .marquee-label { padding: 0 10px; font-size: var(--fs-xs); }
    #jitheme_new_ht .marquee-track { gap: 24px; }
    #jitheme_new_ht .marquee-item { font-size: var(--fs-xs); }
}

/* ============ 暗夜模式适配（message.css） ============ */
[data-theme="dark"] #jitheme_new_ht .marquee-label { background: linear-gradient(135deg, #3a2b20 0%, #33241c 100%); }
[data-theme="dark"] #jitheme_new_ht .tag-blue { background: #1e293b; color: #5b8bff; }
[data-theme="dark"] #jitheme_new_ht .tag-green { background: #1d3529; color: #52c41a; }
[data-theme="dark"] #jitheme_new_ht .tag-gray { background: #2a2d33; color: #a4a8b1; }
[data-theme="dark"] #jitheme_new_ht .marquee-divider { background: #3a3f47; }