/* ============================================================
   XX集团采购电子商务平台 — 全局样式
   Brand: #0766A8 (蓝) / #078C3D (绿) / #DCBC7E (金)
   ============================================================ */

/* === CSS Variables === */
:root {
    --primary: #0766A8;
    --primary-dark: #054f80;
    --primary-light: #e8f2f9;
    --accent: #078C3D;
    --accent-light: #e6f5ec;
    --gold: #DCBC7E;
    --gold-light: #faf6ee;
    --bg-page: #F5F7FA;
    --bg-card: #FFFFFF;
    --text-primary: #303133;
    --text-secondary: #909399;
    --text-muted: #C0C4CC;
    --border: #EBEEF5;
    --border-dark: #DCDFE6;
    --danger: #E53935;
    --warning: #E6A23C;
    --info: #409EFF;
    --radius: 8px;
    --radius-sm: 4px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --max-width: 1280px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--text-primary);
    background: linear-gradient(180deg, #eef2f7 0%, #f5f7fa 30%, #f0f3f8 100%);
    min-width: 1280px;
    line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
input, select, button { font-family: inherit; font-size: inherit; }

/* === Layout === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* === Buttons === */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 20px; border: 1px solid var(--border-dark); border-radius: var(--radius-sm);
    background: var(--bg-card); color: var(--text-primary); cursor: pointer;
    transition: var(--transition); font-size: 14px; white-space: nowrap; gap: 4px;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-text { border: none; background: none; color: var(--primary); padding: 4px 8px; }

/* === Tags / Labels === */
.tag {
    display: inline-block; padding: 2px 8px; border-radius: 3px;
    font-size: 12px; line-height: 1.5; white-space: nowrap;
}
.tag-bid         { background: var(--accent-light); color: var(--accent); }
.tag-change      { background: #fdf6ec; color: var(--warning); }
.tag-prequal     { background: var(--primary-light); color: var(--primary); }
.tag-result      { background: #fef0f0; color: var(--danger); }
.tag-cancel      { background: #fef0f0; color: var(--danger); }
.tag-other       { background: #f4f4f5; color: var(--text-secondary); }
.tag-candidate   { background: #fdf3e7; color: #e67e22; }
.tag-procure     { background: #eaf4fb; color: #2980b9; }
.tag-single      { background: #f3e8ff; color: #7c3aed; }
.tag-auction     { background: #fef7ed; color: #d97706; }

/* === Table === */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
    background: #fafafa; padding: 12px 16px; text-align: left;
    font-weight: 600; color: var(--text-secondary); border-bottom: 2px solid var(--border);
    white-space: nowrap; font-size: 13px;
}
tbody td {
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    font-size: 14px;
}
tbody tr:hover { background: var(--primary-light); }
tbody tr td:first-child { color: var(--text-secondary); }
tbody tr a { color: var(--text-primary); }
tbody tr a:hover { color: var(--primary); }

/* === Pagination === */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; padding: 20px 0; font-size: 13px; flex-wrap: wrap;
}
.pagination .page-btn {
    min-width: 32px; height: 32px; padding: 0 8px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-card); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.pagination .page-btn:hover { border-color: var(--primary); color: var(--primary); }
.pagination .page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .page-btn:disabled { color: var(--text-muted); cursor: not-allowed; background: #f5f5f5; }
.pagination .page-jump { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; }
.pagination .page-jump input {
    width: 48px; height: 32px; text-align: center;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.pagination .total { color: var(--text-secondary); margin-left: 8px; }

/* === Filter Bar === */
.filter-bar {
    background: var(--bg-card); padding: 16px 20px;
    border-radius: var(--radius); margin-bottom: 16px;
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.filter-bar input[type="text"],
.filter-bar select {
    height: 36px; padding: 0 12px;
    border: 1px solid var(--border-dark); border-radius: var(--radius-sm);
    background: var(--bg-card); color: var(--text-primary);
    transition: var(--transition);
}
.filter-bar input[type="text"]:focus,
.filter-bar select:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(7,102,168,0.1);
}
.filter-bar input[type="text"] { width: 220px; }
.filter-bar select { min-width: 120px; }

/* === Breadcrumb === */
.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 0; font-size: 13px; color: var(--text-secondary);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-muted); }
.breadcrumb span:last-child { color: var(--text-primary); }

/* === Section Title === */
.section-title {
    font-size: 18px; font-weight: 600; color: var(--text-primary);
    padding-bottom: 12px; margin-bottom: 16px;
    border-bottom: 2px solid var(--border);
    position: relative;
}
.section-title::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 40px; height: 2px; background: var(--primary);
}

/* === Cards === */
.card {
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06), 0 8px 28px rgba(0,0,0,0.04);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.06), 0 8px 24px rgba(7,102,168,0.08), 0 12px 36px rgba(0,0,0,0.06);
}
.card-header {
    padding: 14px 20px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    font-size: 15px; font-weight: 600;
    background: linear-gradient(180deg, #fdfeff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e8ecf1;
}
.card-body { padding: 20px; }

/* === Header === */
.site-header {
    background: #fff; border-bottom: 1px solid #e8ecf1;
    height: 64px; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    position: relative; z-index: 4;
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 100%;
}
.site-logo {
    display: flex; align-items: center; gap: 12px;
    font-size: 20px; font-weight: 700; color: var(--primary);
}
.site-logo .logo-icon {
    <img src="assets/logo.png" style="height:40px">
}
.site-logo a {
    display: flex; align-items: center; gap: 12px;
    color: var(--primary); text-decoration: none;
}
.header-links { display: flex; align-items: center; gap: 20px; font-size: 13px; }
.header-links .phone { color: var(--primary); font-weight: 600; font-size: 15px; }

/* === Nav === */
.site-nav {
    background: linear-gradient(180deg, #065d96 0%, var(--primary) 100%);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    position: relative; z-index: 3;
}
.site-nav .container { display: flex; }
.site-nav a {
    display: flex; align-items: center; gap: 6px;
    padding: 16px 26px; color: rgba(255,255,255,0.88);
    font-size: 15px; font-weight: 500; letter-spacing: 1px;
    transition: var(--transition); position: relative;
}
.site-nav a::before {
    content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
    height: 3px; background: var(--gold); border-radius: 3px 3px 0 0;
    transition: all 0.3s ease;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.site-nav a:hover::before { left: 20px; right: 20px; }
.site-nav a.active { color: #fff; background: rgba(255,255,255,0.12); font-weight: 600; }
.site-nav a.active::before { left: 20px; right: 20px; }

/* === Footer === */
.site-footer {
    background: linear-gradient(180deg, #043a5e 0%, var(--primary-dark) 100%);
    color: rgba(255,255,255,0.7); box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    padding: 24px 0; margin-top: 40px; text-align: center;
    font-size: 13px; line-height: 2;
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--gold); }
.site-footer .footer-divider { margin: 0 12px; color: rgba(255,255,255,0.3); }

/* === Banner Carousel === */
.banner-wrap {
    position: relative; width: 100%; height: 350px;
    overflow: hidden;
}
.banner-slides { display: flex; height: 100%; transition: transform 0.5s ease; }
.banner-slide {
    min-width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 700; color: #fff;
}
.banner-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.2); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #fff; transition: var(--transition);
}
.banner-arrow:hover { background: rgba(255,255,255,0.4); }
.banner-arrow.prev { left: 16px; }
.banner-arrow.next { right: 16px; }
.banner-dots {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px;
}
.banner-dots button {
    width: 10px; height: 10px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5); background: transparent;
    cursor: pointer; transition: var(--transition); padding: 0;
}
.banner-dots button.active { background: #fff; border-color: #fff; width: 24px; border-radius: 5px; }

/* === Unified Stats + Marquee Card (overlaps banner bottom by ~70px) === */
.stats-section { position: relative; margin-top: -50px; z-index: 2; padding: 0 20px; }
.stats-card {
    max-width: 1200px; margin: 0 auto;
    background: #fff; border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(7,102,168,0.08), 0 16px 40px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}
/* Marquee row */
.stats-marquee-row {
    height: 40px; background: var(--primary-light);
    display: flex; align-items: center;
    border-bottom: 1px solid var(--border);
}
.stats-marquee-row .marquee-icon {
    display: flex; align-items: center; gap: 4px;
    padding: 0 16px; font-size: 13px; font-weight: 600; color: var(--primary);
    white-space: nowrap; z-index: 1; flex-shrink: 0;
}
.stats-marquee-row .marquee-track {
    flex: 1; overflow: hidden; height: 100%;
    display: flex; align-items: center;
}
.stats-marquee-row .marquee-inner {
    display: flex; gap: 60px; white-space: nowrap;
    animation: marquee 60s linear infinite;
}
.stats-marquee-row .marquee-inner a { color: var(--text-primary); font-size: 13px; }
.stats-marquee-row .marquee-inner a:hover { color: var(--primary); }
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* Stats row with dividers */
.stats-row {
    display: flex; padding: 24px 0;
    background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
}
.stat-col {
    flex: 1; text-align: center; padding: 0 16px;
    border-right: 1px solid var(--border);
    transition: var(--transition);
}
.stat-col:last-child { border-right: none; }
.stat-col:hover {
    background: linear-gradient(180deg, #fafcfe 0%, #f2f6fb 100%);
    box-shadow: inset 0 2px 8px rgba(7,102,168,0.04);
    border-radius: 8px;
}
.stat-col .stat-icon {
    width: 46px; height: 46px; margin: 0 auto 10px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e3f0fa, #d0e8f7);
}
.stat-col .stat-icon svg { width: 24px; height: 24px; }
.stat-col .stat-value {
    font-size: 28px; font-weight: 300; color: var(--primary);
    line-height: 1.2; letter-spacing: -1px;
}
.stat-col .stat-value .unit { font-size: 13px; font-weight: 400; color: var(--text-secondary); margin-left: 2px; }
.stat-col .stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* === Home: Announcement Rows (vertical, 2/3 + 1/3) === */
.home-announce-section {
    display: flex; flex-direction: column; gap: 20px;
    margin: 32px auto;
}
.home-row {
    display: flex; gap: 20px;
    height: 520px;
}
.home-announce-wide {
    flex: 3; min-width: 0;
    display: flex; flex-direction: column;
}
.home-announce-wide .card {
    flex: 1; display: flex; flex-direction: column; overflow: hidden;
}
.home-announce-wide .card-body {
    flex: 1; display: flex; flex-direction: column;
}
.home-sidebar {
    flex: 1; min-width: 0;
}

/* Card header with icon + title */
.card-header-icon {
    display: flex; align-items: center; gap: 10px;
    padding: 18px 20px; border-bottom: 1px solid #e8ecf1;
    background: linear-gradient(180deg, #fdfeff 0%, #f7f9fc 100%);
    font-weight: 600; font-size: 16px; color: var(--text-primary);
}
.card-header-icon .hd-icon {
    width: 32px; height: 32px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 1px 3px rgba(0,0,0,0.06);
}
.card-header-icon .hd-icon svg { width: 18px; height: 18px; }
.card-header-icon .hd-title { flex: 1; }
.card-header-icon .hd-more {
    font-size: 12px; font-weight: 400; color: var(--text-secondary);
    transition: var(--transition);
}
.card-header-icon .hd-more:hover { color: var(--primary); }

/* Announcement card overrides */
.announce-card .card-header-icon { border-bottom: 1px solid var(--border); }
.announce-card .card-header-icon .hd-icon { background: var(--primary-light); color: var(--primary); }
.announce-tabs {
    display: flex; gap: 0; flex-wrap: wrap; padding: 0 16px;
    border-bottom: 1px solid #e0e4ea; background: linear-gradient(180deg, #fafbfd 0%, #f5f7fa 100%);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.03);
}
.announce-tabs .tab-btn {
    padding: 10px 14px; border: none; background: none;
    cursor: pointer; font-size: 13px; color: var(--text-secondary);
    transition: var(--transition); position: relative; font-weight: 500;
}
.announce-tabs .tab-btn:hover { color: var(--primary); }
.announce-tabs .tab-btn.active { color: var(--primary); font-weight: 600; }
.announce-tabs .tab-btn.active::after {
    content: ''; position: absolute; bottom: -2px; left: 14px; right: 14px;
    height: 2px; background: var(--primary); border-radius: 2px 2px 0 0;
}
.announce-list { padding: 0; }
.announce-list li {
    padding: 14px 20px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    transition: var(--transition);
}
.announce-list li:last-child { border-bottom: none; }
.announce-list li:hover { background: #fafcfe; box-shadow: inset 3px 0 0 var(--primary); }
.announce-list li a {
    flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 14px; color: var(--text-primary);
}
.announce-list li a:hover { color: var(--primary); }
.announce-list li .date { font-size: 12px; color: var(--text-secondary); margin-left: 12px; white-space: nowrap; }
.more-link {
    display: block; text-align: center; padding: 10px;
    font-size: 13px; color: var(--primary); border-top: 1px solid var(--border);
    transition: var(--transition);
}
.more-link:hover { background: var(--primary-light); }

/* === Home: Sidebar Panels === */
.home-sidebar .card { height: 100%; display: flex; flex-direction: column; }
.home-sidebar .card-header-icon {
    flex-shrink: 0; font-size: 16px;
}
.home-sidebar .card-header-icon .hd-icon { background: var(--accent-light); color: var(--accent); }
.home-sidebar .card-body { flex: 1; padding: 12px 16px; }

/* Service Zone (Row 1 right) */
.service-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.service-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 18px 10px; border-radius: var(--radius);
    background: linear-gradient(180deg, #fafbfd 0%, #f3f5f9 100%);
    cursor: pointer; border: 1px solid #eef0f4;
    transition: var(--transition); text-decoration: none; color: var(--text-primary);
}
.service-item:hover {
    background: #fff; color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(7,102,168,0.1);
    transform: translateY(-2px);
}
.service-item .svc-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.service-item .svc-name { font-size: 13px; font-weight: 500; }
.service-item .svc-desc { font-size: 11px; color: var(--text-secondary); text-align: center; }

.svc-icon-register { background: #e8f2f9; color: #0766A8; }
.svc-icon-guide    { background: #e6f5ec; color: #078C3D; }
.svc-icon-faq      { background: #fef0f0; color: #e53935; }
.svc-icon-tool     { background: #fdf6ec; color: #e6a23c; }
.svc-icon-ca       { background: #f3e8ff; color: #7c3aed; }
.svc-icon-download { background: #eaf4fb; color: #2980b9; }

/* System Notice (Row 2 right) */
.notice-list { display: flex; flex-direction: column; }
.notice-item {
    padding: 12px 0; border-bottom: 1px solid var(--border);
    display: flex; align-items: flex-start; gap: 10px;
    transition: var(--transition);
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover {
    background: #fff; margin: 0 -16px; padding-left: 16px; padding-right: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-radius: 4px; border-bottom-color: transparent;
}
.notice-item .notice-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
    margin-top: 6px; flex-shrink: 0;
}
.notice-item .notice-content { flex: 1; min-width: 0; }
.notice-item .notice-title {
    font-size: 13px; color: var(--text-primary); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.notice-item .notice-title:hover { color: var(--primary); }
.notice-item .notice-date { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }

/* Policy (Row 3 right) */
.policy-list { display: flex; flex-direction: column; }
.policy-item {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 0; border-bottom: 1px solid var(--border);
    transition: var(--transition); font-size: 13px;
}
.policy-item:last-child { border-bottom: none; }
.policy-item:hover {
    color: var(--primary); background: #fafbfd;
    margin: 0 -16px; padding-left: 16px; padding-right: 16px;
    border-radius: 4px; border-bottom-color: transparent;
}
.policy-item .policy-icon { font-size: 14px; color: var(--gold); flex-shrink: 0; }
.policy-item .policy-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-primary); }
.policy-item:hover .policy-title { color: var(--primary); }

/* === List Page: Sidebar + Main Layout === */
.list-layout { display: flex; gap: 20px; margin-top: 8px; }
.list-sidebar {
    width: 260px; flex-shrink: 0;
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow); align-self: flex-start;
}
.list-sidebar .sidebar-title {
    padding: 16px 20px; font-size: 16px; font-weight: 600;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}
.cat-group { border-bottom: 1px solid var(--border); }
.cat-group:last-child { border-bottom: none; }
.cat-parent {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; cursor: pointer; transition: var(--transition);
    font-weight: 600; font-size: 14px; border-left: 3px solid transparent;
}
.cat-parent:hover { color: var(--primary); background: var(--primary-light); }
.cat-parent.active { color: var(--primary); background: var(--primary-light); border-left-color: var(--primary); }
.cat-parent > span:last-child { font-size: 12px; transition: transform 0.2s; }
.cat-group.expanded .cat-parent > span:last-child { transform: rotate(180deg); }
.cat-children { display: none; padding: 4px 0 10px 20px; }
.cat-group.expanded .cat-children { display: block; }
.cat-child {
    display: block; padding: 8px 20px 8px 30px;
    font-size: 13px; color: var(--text-secondary); cursor: pointer;
    transition: var(--transition); position: relative;
}
.cat-child::before {
    content: ''; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    width: 5px; height: 5px; background: var(--text-muted); border-radius: 50%;
}
.cat-child:hover { color: var(--primary); }
.cat-child.active { color: var(--primary); font-weight: 600; }
.cat-child.active::before { background: var(--primary); }
a.cat-child { color: var(--text-secondary); text-decoration: none; }
a.cat-child:hover { color: var(--primary); }
.list-main { flex: 1; min-width: 0; }

/* === Detail Page === */
.detail-wrap { max-width: 900px; margin: 0 auto 40px; }
.detail-header { text-align: center; padding: 24px 0; }
.detail-header h2 { font-size: 22px; color: var(--text-primary); line-height: 1.4; }
.detail-meta {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px;
    background: var(--bg-page); padding: 20px 24px; border-radius: var(--radius);
    margin: 16px 0;
}
.detail-meta .meta-item { font-size: 13px; }
.detail-meta .meta-item .label { color: var(--text-secondary); }
.detail-meta .meta-item .value { color: var(--text-primary); font-weight: 500; }
.detail-body {
    background: var(--bg-card); padding: 32px 40px;
    border-radius: var(--radius); box-shadow: var(--shadow);
    font-size: 15px; line-height: 1.8;
}
.detail-body h3 {
    font-size: 17px; margin: 24px 0 12px; color: var(--text-primary);
}
.detail-body h3:first-of-type { margin-top: 0; }
.detail-body p { margin: 8px 0; text-indent: 2em; }
.detail-body p:has(+ p) { margin-bottom: 4px; }
.detail-attach {
    margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border);
}
.detail-attach h4 { font-size: 15px; margin-bottom: 12px; color: var(--text-primary); }
.attach-list { display: flex; flex-direction: column; gap: 8px; }
.attach-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; background: var(--bg-page); border-radius: var(--radius-sm);
    transition: var(--transition);
}
.attach-item:hover { background: var(--primary-light); }
.attach-item .attach-icon { font-size: 18px; color: var(--accent); flex-shrink: 0; }
.attach-item .attach-name { flex: 1; font-size: 13px; color: var(--text-primary); }
.attach-item .attach-download { font-size: 12px; color: var(--primary); cursor: pointer; }
.attach-item .attach-download:hover { text-decoration: underline; }
.detail-nav {
    display: flex; justify-content: space-between;
    padding: 16px 0; margin-top: 20px;
}
.detail-nav a { font-size: 14px; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* === Side Toolbar === */
.side-toolbar {
    position: fixed; right: 4px; top: 50%; transform: translateY(-50%);
    z-index: 999; display: flex; flex-direction: column; gap: 1px;
    border-radius: 6px; overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.side-toolbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 58px; height: 58px; background: #fff; text-decoration: none;
    color: var(--text-secondary); font-size: 11px; gap: 3px;
    transition: all 0.25s;
}
.side-toolbar a:hover { color: #fff; background: var(--primary); }
.side-toolbar a .tb-icon { font-size: 18px; line-height: 1; }
.side-toolbar .tb-top { background: var(--primary); color: #fff; }
.side-toolbar .tb-top:hover { background: var(--primary-dark); }

/* === Utility === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
