/* 优企品牌库 — 编辑型品牌目录风 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=Noto+Serif+SC:wght@600;700&display=swap");

:root {
    --ink: #0c1c33;
    --ink-soft: #1a3354;
    --paper: #f4f6fa;
    --panel: #ffffff;
    --line: #e2e8f0;
    --muted: #6b7a90;
    --crimson: #c8102e;
    --crimson-deep: #9e0c24;
    --mark: #1e4fd6;
    --gold: #c9a46c;
    --max: 1200px;
    --side: 300px;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(12, 28, 51, 0.06);
    --shadow-hover: 0 16px 40px rgba(12, 28, 51, 0.1);
    --font-display: "Noto Serif SC", "Songti SC", "SimSun", serif;
    --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background:
        radial-gradient(1000px 420px at 8% -10%, rgba(30, 79, 214, 0.08), transparent 55%),
        radial-gradient(900px 380px at 100% 0%, rgba(200, 16, 46, 0.06), transparent 50%),
        linear-gradient(180deg, #e9eef6 0%, var(--paper) 28%, #eef2f7 100%);
    color: var(--ink);
    line-height: 1.65;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
    z-index: 0;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.topbar,
.main,
.footer { position: relative; z-index: 1; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(12, 28, 51, 0.06);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.topbar-inner,
.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 22px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    transition: transform 0.25s ease;
}

.brand:hover { transform: translateY(-1px); }

.brand img {
    height: 46px;
    width: auto;
    display: block;
}

.nav-link {
    position: relative;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 6px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--crimson);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-link:hover { color: var(--crimson); }
.nav-link:hover::after { transform: scaleX(1); }

.main { padding: 28px 0 56px; }

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--side);
    gap: 22px;
    align-items: start;
}

.panel,
.side-card {
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(12, 28, 51, 0.04);
}

.panel { padding: 28px 32px 32px; }

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.section-head .label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-head .label::before {
    content: "";
    width: 5px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--mark), #5b8cff);
    box-shadow: 0 4px 10px rgba(30, 79, 214, 0.28);
}

.section-head h1 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.04em;
}

.section-head .hint {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    padding: 22px 8px;
    border-bottom: 1px solid var(--line);
    border-radius: 10px;
    transition: background 0.25s ease, transform 0.25s ease;
    animation: rise 0.55s ease both;
}

.item:nth-child(1) { animation-delay: 0.04s; }
.item:nth-child(2) { animation-delay: 0.08s; }
.item:nth-child(3) { animation-delay: 0.12s; }
.item:nth-child(4) { animation-delay: 0.16s; }
.item:nth-child(5) { animation-delay: 0.2s; }

.item:last-of-type { border-bottom: none; }

.item:hover {
    background: linear-gradient(90deg, rgba(30, 79, 214, 0.035), transparent 70%);
    transform: translateX(2px);
}

@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.thumb {
    display: block;
    width: 220px;
    height: 138px;
    border-radius: 10px;
    overflow: hidden;
    background:
        linear-gradient(145deg, #dbe4f3, #f3f5f9 55%, #e8edf5);
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(12, 28, 51, 0.04);
}

.thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(12, 28, 51, 0.18));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.item:hover .thumb img { transform: scale(1.06); }
.item:hover .thumb::after { opacity: 1; }

.body { min-width: 0; display: flex; flex-direction: column; padding-top: 2px; }

.title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.item:hover .title { color: var(--crimson); }

.excerpt {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.meta {
    margin-top: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--muted);
    font-size: 12px;
}

.meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c5cedb;
}

.meta .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(12, 28, 51, 0.05);
    color: var(--ink-soft);
    font-weight: 600;
}

.meta .badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--crimson);
}

.side { display: grid; gap: 16px; }

.side-card {
    padding: 18px 18px 10px;
    overflow: hidden;
    position: relative;
}

.side-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--crimson), var(--mark));
}

.side-head {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    padding-bottom: 12px;
    margin-bottom: 2px;
    border-bottom: 1px solid var(--line);
    letter-spacing: 0.04em;
}

.side-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px dashed #edf1f6;
    font-size: 13px;
    line-height: 1.5;
}

.side-list li:last-child { border-bottom: none; }

.side-list a {
    flex: 1;
    min-width: 0;
    color: #334155;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.side-list a:hover { color: var(--crimson); }

.side-list time {
    flex-shrink: 0;
    color: #9aa8bc;
    font-size: 12px;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

.rank {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #e8eef6;
    color: #5b6b82;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.rank.top {
    background: linear-gradient(145deg, var(--crimson), var(--crimson-deep));
    color: #fff;
    box-shadow: 0 4px 10px rgba(200, 16, 46, 0.28);
}

.empty-side {
    color: var(--muted);
    justify-content: center;
    padding: 24px 0 !important;
}

.pager {
    margin-top: 18px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    color: var(--muted);
    font-size: 13px;
}

.pager .pages { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.pager a,
.pager span.cur,
.pager span.disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #d5dde8;
    background: #fff;
    color: #516074;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pager span.cur {
    background: linear-gradient(145deg, var(--crimson), var(--crimson-deep));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 14px rgba(200, 16, 46, 0.25);
}

.pager span.disabled { color: #b7c0ce; background: #f7f9fc; }

.pager a:hover {
    border-color: var(--crimson);
    color: var(--crimson);
    transform: translateY(-1px);
}

.pager .go-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.pager .go-form input {
    width: 54px;
    height: 34px;
    border: 1px solid #d5dde8;
    border-radius: 8px;
    text-align: center;
    outline: none;
}

.pager .go-form input:focus {
    border-color: var(--mark);
    box-shadow: 0 0 0 3px rgba(30, 79, 214, 0.12);
}

.pager .go-form button {
    height: 34px;
    padding: 0 14px;
    border: none;
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.pager .go-form button:hover { background: var(--crimson); }

.empty {
    padding: 72px 0;
    text-align: center;
    color: var(--muted);
    font-family: var(--font-display);
}

/* 详情 */
.crumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
}

.crumb a { color: var(--ink-soft); font-weight: 600; }
.crumb a:hover { color: var(--crimson); }

.article-title {
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: var(--muted);
    font-size: 13px;
    padding-bottom: 20px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

.content {
    font-size: 16px;
    color: #2a3648;
    word-break: break-word;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.content p { margin: 0 0 1.05em; }
.content h2, .content h3 {
    font-family: var(--font-display);
    color: var(--ink);
    margin: 1.4em 0 0.6em;
}

.nav-arts {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
    font-size: 14px;
    color: #516074;
}

.nav-arts a {
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-arts a:hover { color: var(--crimson); }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: var(--ink) !important;
}

.footer {
    text-align: center;
    padding: 8px 16px 48px;
    color: #96a3b6;
    font-size: 12px;
    line-height: 1.9;
}

.footer .brand-line {
    font-family: var(--font-display);
    color: var(--ink-soft);
    font-size: 13px;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.footer .footer-contact a {
    color: #7a8aa3;
    text-decoration: none;
    border-bottom: 1px solid rgba(122, 138, 163, 0.35);
}

.footer .footer-contact a:hover {
    color: var(--ink-soft);
    border-bottom-color: var(--ink-soft);
}

@media (max-width: 980px) {
    .layout { grid-template-columns: 1fr; }
    .side { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav { height: 60px; gap: 16px; }
    .brand img { height: 36px; }
    .main { padding: 16px 0 40px; }
    .panel { padding: 18px 16px 22px; }
    .side { grid-template-columns: 1fr; }
    .item {
        grid-template-columns: 112px 1fr;
        gap: 12px;
        padding: 16px 0;
    }
    .thumb { width: 112px; height: 78px; border-radius: 8px; }
    .title { font-size: 16px; margin-bottom: 6px; }
    .excerpt { -webkit-line-clamp: 2; font-size: 13px; }
    .pager .go-form { margin-left: 0; width: 100%; }
    .article-title { font-size: 22px; }
}
