
.home-marquee {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 14px;
    height: 40px;
    box-shadow: var(--shadow-card);
}

.home-marquee-icon {
    flex-shrink: 0;
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 14px;
    background: rgba(212, 168, 83, 0.08);
}

.home-marquee-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.home-marquee-text {
    display: inline-block;
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 36px;
    animation: home-marquee-scroll 60s linear infinite;
    padding-left: 100%;
}

.home-marquee:hover .home-marquee-text {
    animation-play-state: paused;
}

@keyframes home-marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ============================================
   Lottery Card - Single Column List, Premium
   Layout: [Logo] [Info] [Numbers] [Video]
   ============================================ */
/* Lottery section wrapper */
.lottery-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 14px;
}

.lottery-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-bottom: none;
    cursor: pointer;
    user-select: none;
    transition: background var(--transition-fast);
    background: linear-gradient(135deg, #8b6914, var(--accent), #e8c36a);
}

.lottery-section-header:hover {
    background: linear-gradient(135deg, #a07818, #d4a853, #f0cd78);
}

.lottery-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.lottery-section-title i {
    color: #fff;
    margin-right: 6px;
}

.lottery-section-toggle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease;
}

.lottery-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    transition: max-height 0.8s ease;
}

.lottery-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.lottery-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), var(--accent-dark));
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: 0 2px 2px 0;
}

.lottery-card:last-child {
    border-bottom: none;
}

.lottery-card:hover {
    background: linear-gradient(90deg, rgba(212, 168, 83, 0.03), transparent);
}

.lottery-card:hover::before {
    opacity: 1;
}

/* Logo - left column, large and prominent */
.lottery-card-logo-wrap {
    flex-shrink: 0;
    align-self: center;
}

.lottery-card-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
    display: block;
}

.lottery-card:hover .lottery-card-logo {
    border-color: var(--accent);
    box-shadow: 0 3px 16px rgba(212, 168, 83, 0.3);
}

.lottery-card-logo-fallback {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
    box-shadow: 0 3px 12px rgba(212, 168, 83, 0.35);
    flex-shrink: 0;
}

/* Info - middle column, each line stacked */
.lottery-card-info {
    width: 220px;
    flex-shrink: 0;
    align-self: center;
}

.lottery-card-info h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
    transition: color var(--transition-fast);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lottery-card:hover .lottery-card-info h3 {
    color: var(--accent-dark);
}

.lottery-card-info .period {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 2px;
    white-space: nowrap;
}

.lottery-card-info .schedule {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Countdown line: label + timer */
.lottery-card-countdown-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.lottery-card-countdown-line .countdown-label {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.lottery-card-countdown-line .countdown-value {
    color: var(--danger);
    font-weight: 700;
    font-size: 13px;
    font-family: "SF Mono", "Courier New", monospace;
    white-space: nowrap;
}

.lottery-card-countdown-line .countdown-value .drawing {
    color: var(--success);
    font-family: inherit;
}

/* Numbers - fills remaining space, big balls, max 10 per row */
.lottery-card-numbers {
    flex: 1;
    min-width: 0;
}

.lottery-card-numbers .ball-row {
    max-width: calc(42px * 10 + 6px * 9);
}

.lottery-card-numbers .ball {
    width: 42px;
    height: 42px;
    font-size: 18px;
}

.lottery-card-numbers .ball-plus {
    font-size: 22px;
}

.lottery-card-numbers .zodiac {
    font-size: 12px;
}

/* Video button - right column */
.lottery-card-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.video-icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.04));
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: var(--info);
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.video-icon-btn:hover {
    background: linear-gradient(135deg, var(--info), #1d4ed8);
    color: #fff;
    border-color: var(--info);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
    transform: scale(1.08);
}

/* ============================================
   Lottery Hall Grid Mode (2-column cards)
   ============================================ */
.lottery-grid.grid-mode {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.lottery-grid.grid-mode .lottery-card {
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    gap: 0;
    padding: 0;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    cursor: default;
    overflow: hidden;
}

.lottery-grid.grid-mode .lottery-card::before {
    display: none;
}

.lottery-grid.grid-mode .lottery-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
    border-color: rgba(212, 168, 83, 0.2);
}

.lottery-grid.grid-mode .lottery-card:last-child {
    border-bottom: 1px solid var(--border-color);
}

/* Grid card header: logo + info, centered */
.lottery-grid.grid-mode .lottery-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 20px 8px;
}

.lottery-grid.grid-mode .lottery-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
}

.lottery-grid.grid-mode .lottery-card:hover .lottery-logo {
    border-color: var(--accent);
    box-shadow: 0 3px 14px rgba(212, 168, 83, 0.25);
}

/* Info block beside logo */
.lottery-grid.grid-mode .lottery-card-info-grid {
    flex: 0 1 auto;
    min-width: 0;
}

.lottery-grid.grid-mode .lottery-card-info-grid h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.lottery-grid.grid-mode .lottery-card-info-grid .period {
    font-weight: 700;
}

.lottery-grid.grid-mode .lottery-card-info-grid .schedule {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Status / countdown line in header */
.lottery-grid.grid-mode .lottery-card-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.lottery-grid.grid-mode .lottery-card-status .status-label {
    font-size: 13px;
    color: var(--danger);
    font-weight: 600;
}

.lottery-grid.grid-mode .lottery-card-status .status-countdown {
    color: var(--danger);
    font-weight: 700;
    font-size: 14px;
    font-family: "SF Mono", "Courier New", monospace;
    white-space: nowrap;
}

.lottery-grid.grid-mode .lottery-card-status .status-countdown .drawing {
    color: var(--success);
    font-family: inherit;
}

.lottery-grid.grid-mode .lottery-card-status .status-closed {
    font-size: 13px;
    color: var(--danger);
    font-weight: 600;
}

/* Grid card body: numbers + stats */
.lottery-grid.grid-mode .lottery-card-body {
    padding: 8px 20px 14px;
}

.lottery-grid.grid-mode .lottery-card-body .ball-row {
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}

.lottery-grid.grid-mode .lottery-card-body .ball-row:last-child {
    margin-bottom: 0;
}

.lottery-grid.grid-mode .lottery-card-body .ball {
    width: 42px;
    height: 42px;
    font-size: 17px;
    font-weight: 700;
}

.lottery-grid.grid-mode .lottery-card-body .ball-plus {
    font-size: 20px;
    font-weight: 700;
}

.lottery-grid.grid-mode .lottery-card-body .zodiac {
    font-size: 12px;
    margin-top: 3px;
}

/* Drawing state: rolling number animation */
.ball-rolling {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #94a3b8, #64748b) !important;
}

.ball-rolling .ball-rolling-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    animation: ball-roll 0.4s ease-in-out infinite;
    font-weight: 700;
}

.ball-rolling:nth-child(2) .ball-rolling-inner { animation-delay: 0.05s; }
.ball-rolling:nth-child(3) .ball-rolling-inner { animation-delay: 0.10s; }
.ball-rolling:nth-child(4) .ball-rolling-inner { animation-delay: 0.15s; }
.ball-rolling:nth-child(5) .ball-rolling-inner { animation-delay: 0.20s; }
.ball-rolling:nth-child(6) .ball-rolling-inner { animation-delay: 0.25s; }
.ball-rolling:nth-child(7) .ball-rolling-inner { animation-delay: 0.30s; }
.ball-rolling:nth-child(8) .ball-rolling-inner { animation-delay: 0.35s; }
.ball-rolling:nth-child(9) .ball-rolling-inner { animation-delay: 0.40s; }
.ball-rolling:nth-child(10) .ball-rolling-inner { animation-delay: 0.45s; }

@keyframes ball-roll {
    0% { transform: translateY(-110%); opacity: 0; }
    15% { transform: translateY(0); opacity: 1; }
    85% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(110%); opacity: 0; }
}

.drawing-stats .stat-tag {
    color: var(--text-muted) !important;
    background: var(--bg-sidebar) !important;
    font-weight: 700;
}

/* Stats row (龙虎, 冠亚和, 总和) */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border-subtle);
    justify-content: center;
}

.stats-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-dark);
    white-space: nowrap;
}

.stats-values {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-tag {
    display: inline-block;
    padding: 2px 10px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1.5;
}

.stat-num {
    color: var(--text-primary);
    background: var(--bg-sidebar);
    font-family: "SF Mono", "Courier New", monospace;
    font-weight: 700;
}

.stat-dragon {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.stat-tiger {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

.stat-big {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.stat-small {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
}

.stat-odd {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.stat-even {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

/* Grid card topbar: gradient header with name + arrow */
.lottery-grid.grid-mode .lottery-card-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: linear-gradient(135deg, #8b6914, var(--accent), #e8c36a);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lottery-grid.grid-mode .lottery-card-topbar:hover {
    background: linear-gradient(135deg, #a07818, #d4a853, #f0cd78);
}

.lottery-grid.grid-mode .lottery-card-topbar i {
    font-size: 12px;
    opacity: 0.8;
    transition: transform var(--transition-fast);
}

.lottery-grid.grid-mode .lottery-card-topbar:hover i {
    transform: translateX(3px);
    opacity: 1;
}

/* Default lottery-logo (used by home page horizontal cards) */
.lottery-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--divider);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-fast);
}

.lottery-card:hover .lottery-logo {
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(212, 168, 83, 0.2);
}

/* ============================================
   Navigation Section - Inline Categories
   (No left sidebar - handled by fixed left nav)
   ============================================ */
.nav-section {
    margin-top: 16px;
}

.nav-site-area {
    padding: 0;
    min-width: 0;
}

.nav-site-area .section-anchor {
    scroll-margin-top: 120px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 14px;
}

.nav-cat-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    padding: 10px 16px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #8b6914, var(--accent), #e8c36a);
    border-bottom: none;
    position: relative;
}

.nav-cat-title i {
    color: #fff;
    font-size: 14px;
}

/* ============================================
   Site Card Grid
   Layout per card:
   ┌─────────────────────────────┐
   │  ┌──────┐  名称       代理  │
   │  │ Logo │  星级       更多  │
   │  └──────┘                   │
   └─────────────────────────────┘
   ============================================ */
.site-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 12px;
}

.site-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.site-card:hover {
    background: var(--bg-card);
    border-color: rgba(212, 168, 83, 0.25);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

/* Logo - left side */
.site-card-logo {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    object-fit: contain;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.site-card-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.site-card:hover .site-card-logo {
    border-color: var(--accent);
    box-shadow: 0 3px 10px rgba(212, 168, 83, 0.2);
}

/* Body: name + stars */
.site-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
}

.site-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition-fast);
    line-height: 1.4;
}

.site-card-name.is-recommended {
    color: #e53e3e;
}

.site-card:hover .site-card-name {
    color: var(--accent-dark);
}

.site-card-stars {
    line-height: 1;
}

.site-card .star-rating {
    font-size: 11px;
    line-height: 1;
}

.site-card .star-rating i {
    font-size: 11px;
    color: var(--accent);
}

/* Tag badge - pinned to top-right corner of card */
.site-card-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-dark);
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    white-space: nowrap;
    z-index: 1;
}

/* "更多" button - pinned to bottom-right corner of card */
.site-card-more-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 4px 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-dark);
    background: rgba(212, 168, 83, 0.1);
    border: none;
    border-radius: var(--radius-md) 0 var(--radius-md) 0;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 1;
    white-space: nowrap;
}

.site-card-more-btn:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    box-shadow: 0 2px 8px rgba(212, 168, 83, 0.3);
}

/* Extra URLs popup (in layer) */
.extra-urls-popup {
    padding: 16px 20px;
}

.extra-urls-group {
    margin-bottom: 14px;
}

.extra-urls-group:last-child {
    margin-bottom: 0;
}

.extra-urls-type {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-subtle);
}

.extra-urls-type i {
    color: var(--accent);
    margin-right: 4px;
}

.extra-urls-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.extra-url-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.extra-url-item:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(212, 168, 83, 0.3);
}

/* ============================================
   Sidebar Exchange Rate Table - Premium
   ============================================ */
.rate-table {
    width: 100%;
    font-size: 12px;
}

.rate-table tr {
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-fast);
}

.rate-table tr:last-child {
    border-bottom: none;
}

.rate-table tr:hover {
    background: rgba(212, 168, 83, 0.03);
}

.rate-table td {
    padding: 6px 0;
}

.rate-table .rate-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.rate-table .rate-value {
    text-align: right;
    font-weight: 700;
    color: var(--text-primary);
    font-family: "SF Mono", "Courier New", monospace;
    font-size: 12px;
}

.rate-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rate-note {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
}

/* ============================================
   Sidebar Ranking TOP10
   ============================================ */
.ranking-list {
    list-style: none;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-item:hover {
    background: rgba(212, 168, 83, 0.04);
}

.ranking-item:hover .ranking-name {
    color: var(--accent-dark);
}

.ranking-rank {
    width: 22px;
    height: 22px;
    text-align: center;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.ranking-rank.top-1 {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #fff;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.ranking-rank.top-2 {
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
    color: #fff;
    font-size: 12px;
}

.ranking-rank.top-3 {
    background: linear-gradient(135deg, #f59e0b, #b45309);
    color: #fff;
    font-size: 12px;
}

.ranking-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.ranking-tag {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

.ranking-views {
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 700;
    font-family: "SF Mono", "Courier New", monospace;
    flex-shrink: 0;
}

/* ============================================
   Sidebar Latest Sites - Timeline Node Style
   ============================================ */
.timeline-list {
    padding: 0;
}

.timeline-item {
    display: flex;
    gap: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.timeline-item:hover .timeline-name {
    color: var(--accent-dark);
}

.timeline-item:hover .timeline-node-dot {
    background: var(--accent-dark);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.2);
    transform: scale(1.3);
}

/* Left node column */
.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 14px;
    padding-top: 2px;
}

.timeline-node-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(212, 168, 83, 0.35);
    flex-shrink: 0;
    transition: all var(--transition-fast);
    z-index: 1;
}

.timeline-node-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, rgba(212, 168, 83, 0.3), var(--border-subtle));
    margin-top: 4px;
}

/* Right content */
.timeline-content {
    flex: 1;
    min-width: 0;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border-subtle);
}

.timeline-item:last-child .timeline-content {
    border-bottom: none;
    padding-bottom: 0;
}

.timeline-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.timeline-date i {
    font-size: 10px;
    color: var(--accent);
}

.timeline-name {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition-fast);
}

/* ============================================
   Sidebar Article Tags Grid
   ============================================ */
.article-tag-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.article-tag-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.article-tag-item:hover {
    color: var(--accent-dark);
    background: rgba(212, 168, 83, 0.06);
    border-color: rgba(212, 168, 83, 0.2);
}

.article-tag-item i {
    font-size: 11px;
    color: var(--accent);
}

/* ============================================
   Sidebar Latest Articles
   ============================================ */
.latest-articles-list {
    list-style: none;
}

.latest-article-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.latest-article-item:last-child {
    border-bottom: none;
}

.latest-article-item:hover {
    padding-left: 4px;
}

.latest-article-icon {
    color: var(--accent);
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.latest-article-body {
    flex: 1;
    min-width: 0;
}

.latest-article-title {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition-fast);
}

.latest-article-item:hover .latest-article-title {
    color: var(--accent-dark);
}

.latest-article-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.latest-article-date i {
    margin-right: 2px;
}

/* ============================================
   Sidebar Site Statistics - Mini Grid
   ============================================ */
.stats-grid-mini {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stats-mini-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-sidebar);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.stats-mini-item:hover {
    border-color: rgba(212, 168, 83, 0.2);
}

.stats-mini-item i {
    color: var(--accent);
    font-size: 12px;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.stats-mini-label {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.stats-mini-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-left: auto;
    font-family: "SF Mono", "Courier New", monospace;
}

.stats-mini-value small {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
    font-family: inherit;
    margin-left: 1px;
}

.stat-running {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.06), rgba(212, 168, 83, 0.02));
    border: 1px solid rgba(212, 168, 83, 0.15);
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

.stat-running i {
    color: var(--accent);
    margin-right: 4px;
}

.stat-running strong {
    color: var(--accent-dark);
    font-size: 15px;
}

/* ============================================
   LEGACY: nav-wrapper/nav-cat-sidebar
   Kept for backward compat but hidden when
   new fixed-left-nav is present
   ============================================ */
.nav-wrapper {
    display: flex;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    overflow: hidden;
    min-height: 400px;
    box-shadow: var(--shadow-card);
}

.nav-cat-sidebar {
    width: 160px;
    flex-shrink: 0;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
}

.nav-cat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.nav-cat-item:hover,
.nav-cat-item.active {
    background: var(--bg-card);
    color: var(--accent-dark);
    font-weight: 700;
}

.nav-cat-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), var(--accent-dark));
    border-radius: 0 2px 2px 0;
}

.nav-cat-item i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.nav-cat-item:hover i,
.nav-cat-item.active i {
    color: var(--accent);
}
