/* =====================================================================
   链淘快讯网 - 区块链新闻资讯门户 主样式
   设计风格：专业蓝白（Professional Blue & White）
   面向百度SEO：语义化、轻量、无外部字体依赖、PC+移动端适配
   ===================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    /* 品牌主色 - 专业蓝 */
    --brand: #1d4ed8;
    --brand-dark: #1e3a8a;
    --brand-darker: #172554;
    --brand-light: #3b82f6;
    --brand-lighter: #60a5fa;
    --brand-dim: rgba(29, 78, 216, 0.08);
    --brand-dim-2: rgba(29, 78, 216, 0.14);

    /* 强调色（排行/标签高亮，克制使用） */
    --accent: #d97706;
    --accent-dim: rgba(217, 119, 6, 0.10);

    /* 行情色 */
    --up: #16a34a;
    --down: #dc2626;

    /* 背景 */
    --bg: #f4f6f9;
    --bg-card: #ffffff;
    --bg-soft: #eef2f7;
    --bg-elevated: #ffffff;

    /* 文字 */
    --text: #1e293b;
    --text-2: #475569;
    --text-3: #64748b;
    --text-muted: #94a3b8;

    /* 边框 */
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --border-brand: rgba(29, 78, 216, 0.30);

    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 36px rgba(15, 23, 42, 0.12);
    --shadow-brand: 0 8px 24px rgba(29, 78, 216, 0.18);

    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* 间距 */
    --container-max: 1200px;
    --header-h: 68px;

    /* 字体 - 系统字体栈，无需外部加载，国内访问快 */
    --font-sans: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

    /* 过渡 */
    --t-fast: 0.15s ease;
    --t-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
}
p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
code, pre { font-family: var(--font-mono); }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--brand);
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    height: var(--header-h);
    gap: 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--brand);
    flex-shrink: 0;
}
.logo:hover { color: var(--brand-dark); }
.logo-mark {
    display: inline-flex;
    transition: transform var(--t-base);
}
.logo:hover .logo-mark { transform: scale(1.06); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: var(--brand-dark);
}
.logo-slogan {
    font-size: 11px;
    color: var(--text-3);
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}
.nav-item {
    position: relative;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-2);
    border-radius: var(--radius-sm);
    transition: all var(--t-base);
}
.nav-item:hover {
    color: var(--brand);
    background: var(--brand-dim);
}
.nav-item.active {
    color: var(--brand);
    font-weight: 700;
}
.nav-item.active::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 2px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 4px 4px 16px;
    width: 240px;
    transition: all var(--t-base);
}
.search-box:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-dim);
    width: 280px;
}
.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 14px;
    height: 32px;
}
.search-box input::placeholder { color: var(--text-3); }
.search-box button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--brand);
    color: #fff;
    border-radius: 50%;
    transition: background var(--t-fast);
}
.search-box button:hover { background: var(--brand-dark); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 8px 6px;
    border-radius: var(--radius-sm);
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--t-base);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay { display: none; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    font-size: 13px;
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; color: var(--text-3); }
.breadcrumbs li:not(:last-child)::after { content: '/'; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs li:last-child { color: var(--text); }

/* ---------- Main Layout ---------- */
.main-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    padding-top: 28px;
    padding-bottom: 48px;
    min-height: calc(100vh - var(--header-h) - 300px);
}
.main-content { min-width: 0; }
.sidebar { min-width: 0; }

/* ---------- Section Title ---------- */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}
.section-title h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
}
.section-title h2::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--brand);
    border-radius: 2px;
}
.section-title .more {
    font-size: 13px;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 4px;
}
.section-title .more:hover { color: var(--brand); }

/* ---------- Hero (首页焦点) ---------- */
.hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 36px;
}
.hero-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 320px;
    background: var(--bg-soft);
    box-shadow: var(--shadow-md);
}
.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform var(--t-slow);
}
.hero-main:hover img { transform: scale(1.04); }
.hero-main::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.5) 45%, rgba(15, 23, 42, 0.12) 100%);
    z-index: 1;
}
.hero-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 24px;
    z-index: 2;
}
.hero-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.hero-title {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 8px;
}
.hero-title a { color: #ffffff; }
.hero-title a:hover { color: var(--brand-lighter); }
.hero-summary {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hero-side-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--t-base);
    flex: 1;
}
.hero-side-item:hover {
    border-color: var(--border-brand);
    box-shadow: var(--shadow-sm);
}
.hero-side-item .thumb {
    flex-shrink: 0;
    width: 96px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-soft);
}
.hero-side-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-side-item .info { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.hero-side-item .title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.hero-side-item:hover .title { color: var(--brand); }
.hero-side-item .meta { font-size: 12px; color: var(--text-3); }

/* ---------- Article List ---------- */
.article-list { display: flex; flex-direction: column; gap: 4px; }
.article-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--t-base);
    position: relative;
    overflow: hidden;
}
.article-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--brand);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--t-base);
}
.article-card:hover {
    border-color: var(--border-brand);
    box-shadow: var(--shadow-md);
}
.article-card:hover::before { transform: scaleY(1); }
.article-card .cover {
    width: 100%;
    height: 160px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-soft);
}
.article-card .cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}
.article-card:hover .cover img { transform: scale(1.08); }
.article-card .body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.article-card .category-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 2px 10px;
    background: var(--brand-dim);
    color: var(--brand);
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 8px;
    border: 1px solid var(--border-brand);
}
.article-card .title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card:hover .title { color: var(--brand); }
.article-card .title em { color: var(--brand); font-style: normal; font-weight: 700; background: var(--brand-dim); padding: 0 3px; border-radius: 2px; }
.article-card .summary {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}
.article-card .meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    font-size: 12px;
    color: var(--text-3);
}
.article-card .meta .source { color: var(--brand); }
.article-card .meta .original-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
    font-weight: 600;
}
.article-card .meta .views::before { content: '👁 '; opacity: 0.6; }

/* ---------- Home Category Section ---------- */
.category-section { margin-bottom: 36px; }
.category-section .article-card { grid-template-columns: 160px 1fr; padding: 16px; }
.category-section .article-card .cover { height: 110px; }
.category-section .article-card .title { font-size: 16px; -webkit-line-clamp: 2; }

/* ---------- Sidebar ---------- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}
.widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.widget-title .title-bar {
    width: 3px;
    height: 16px;
    background: var(--brand);
    border-radius: 2px;
}

.hot-list { display: flex; flex-direction: column; gap: 12px; }
.hot-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 4px 0;
}
.hot-rank {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    color: var(--text-3);
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    font-family: var(--font-mono);
}
.hot-rank.rank-1 { background: var(--brand); color: #fff; }
.hot-rank.rank-2 { background: var(--brand-light); color: #fff; }
.hot-rank.rank-3 { background: var(--accent); color: #fff; }
.hot-link {
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.5;
    transition: color var(--t-fast);
}
.hot-link:hover { color: var(--brand); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item {
    padding: 4px 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 13px;
    border-radius: 999px;
    transition: all var(--t-base);
}
.tag-item:hover {
    background: var(--brand-dim);
    border-color: var(--border-brand);
    color: var(--brand);
}

.link-list { display: flex; flex-direction: column; gap: 8px; }
.link-list a {
    color: var(--text-2);
    font-size: 13px;
    transition: color var(--t-fast);
    padding: 4px 0;
}
.link-list a:hover { color: var(--brand); }

/* ---------- Article Detail ---------- */
.article-detail {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.article-detail .breadcrumb-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--brand-dim);
    color: var(--brand);
    border: 1px solid var(--border-brand);
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    margin-bottom: 16px;
}
.article-detail h1 {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text);
}
.article-detail .article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    margin-bottom: 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-3);
}
.article-detail .article-meta .author { color: var(--brand); font-weight: 600; }
.article-detail .article-meta .source { color: var(--brand); }
.article-detail .article-cover {
    margin: 0 0 28px;
    border-radius: var(--radius-md);
    overflow: hidden;
    max-height: 440px;
}
.article-detail .article-cover img { width: 100%; object-fit: cover; }
.article-detail .article-content { font-size: 16px; line-height: 1.85; color: var(--text); }
.article-detail .article-content p { margin: 0 0 1.2em; color: #334155; }
.article-detail .article-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 1.8em 0 0.8em;
    padding-left: 14px;
    border-left: 4px solid var(--brand);
    color: var(--text);
}
.article-detail .article-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 1.5em 0 0.6em;
    color: var(--text);
}
.article-detail .article-content ul,
.article-detail .article-content ol {
    margin: 0 0 1.2em;
    padding-left: 24px;
}
.article-detail .article-content ul li,
.article-detail .article-content ol li {
    margin-bottom: 0.5em;
    color: #334155;
    list-style: disc;
}
.article-detail .article-content ol li { list-style: decimal; }
.article-detail .article-content blockquote {
    margin: 1.5em 0;
    padding: 16px 20px;
    background: var(--brand-dim);
    border-left: 4px solid var(--brand);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--brand-dark);
    font-size: 15px;
    font-style: italic;
}
.article-detail .article-content img {
    margin: 1.5em auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}
.article-detail .article-content code {
    background: var(--bg-soft);
    color: var(--brand);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.article-detail .article-content a {
    color: var(--brand);
    text-decoration: underline;
    text-decoration-color: var(--border-brand);
    text-underline-offset: 3px;
}
.article-detail .article-content a:hover { color: var(--brand-dark); }

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.article-tags .tag-label {
    color: var(--text-3);
    font-size: 13px;
    align-self: center;
    margin-right: 8px;
}
.article-tags .tag-item { font-size: 13px; }

.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.article-nav a {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--t-base);
}
.article-nav a:hover {
    border-color: var(--border-brand);
    background: var(--bg-card);
}
.article-nav .nav-label { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.article-nav .nav-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-nav a:hover .nav-title { color: var(--brand); }
.article-nav .nav-next { text-align: right; }

.related-list {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.related-list h3 {
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.related-list h3::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--brand);
    border-radius: 2px;
}
.related-list ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related-list li a {
    display: block;
    padding: 12px 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 14px;
    transition: all var(--t-base);
}
.related-list li a:hover {
    color: var(--brand);
    border-color: var(--border-brand);
}

/* ---------- Category Info (栏目页标题区) ---------- */
.category-info {
    padding: 24px 28px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
    border-radius: var(--radius-lg);
    color: #fff;
    box-shadow: var(--shadow-brand);
}
.category-info h1 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 8px;
    color: #fff;
}
.category-info .desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}
.category-info .category-stat {
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-mono);
}

/* 侧栏空状态 */
.widget-empty {
    margin: 0;
    padding: 16px 0;
    color: var(--text-3);
    font-size: 13px;
    text-align: center;
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 32px;
    padding: 24px 0;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--t-base);
}
.pagination a:hover {
    border-color: var(--border-brand);
    color: var(--brand);
}
.pagination .current {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 700;
}
.pagination .ellipsis { background: transparent; border-color: transparent; color: var(--text-3); }
.pagination .page-prev, .pagination .page-next { padding: 0 20px; }

/* ---------- Search Page ---------- */
.search-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    margin-bottom: 24px;
}
.search-header h1 {
    font-size: 22px;
    margin-bottom: 8px;
}
.search-header .search-keyword {
    color: var(--brand);
    font-weight: 900;
}
.search-header p { margin: 0; color: var(--text-3); font-size: 13px; }
.search-result-list { display: flex; flex-direction: column; gap: 12px; }
.search-result {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--t-base);
}
.search-result:hover { border-color: var(--border-brand); }
.search-result .title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.search-result .title a { color: var(--text); }
.search-result .title a:hover { color: var(--brand); }
.search-result .summary { color: var(--text-2); font-size: 14px; line-height: 1.6; }
.search-result .summary em { color: var(--brand); font-style: normal; font-weight: 600; background: var(--brand-dim); padding: 0 4px; border-radius: 2px; }
.search-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-3);
}
.search-empty .empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }
.search-empty p { margin: 0 0 4px; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--brand-darker);
    color: #cbd5e1;
    padding: 40px 0 24px;
    margin-top: 48px;
}
.footer-inner { display: flex; flex-direction: column; gap: 20px; }
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    font-size: 13px;
}
.footer-nav-label { color: #94a3b8; }
.footer-nav a { color: #cbd5e1; transition: color var(--t-fast); }
.footer-nav a:hover { color: #fff; }
.footer-risk {
    padding: 16px 20px;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #fca5a5;
    line-height: 1.6;
}
.footer-risk strong { color: #f87171; }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #94a3b8;
}
.footer-bottom a { color: #cbd5e1; }
.footer-bottom a:hover { color: #fff; }
.footer-tech { font-family: var(--font-mono); font-size: 12px; opacity: 0.7; }

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    right: 32px;
    bottom: 32px;
    width: 48px;
    height: 48px;
    background: var(--brand);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-brand);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--t-base);
    z-index: 99;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brand-dark); transform: translateY(-4px); }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.5s ease-out both; }
.fade-in-up:nth-child(1) { animation-delay: 0.05s; }
.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.15s; }
.fade-in-up:nth-child(4) { animation-delay: 0.2s; }
.fade-in-up:nth-child(5) { animation-delay: 0.25s; }
.fade-in-up:nth-child(6) { animation-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .main-container { grid-template-columns: 1fr 300px; gap: 24px; }
    .article-card { grid-template-columns: 200px 1fr; }
    .hero-section { grid-template-columns: 1fr; }
    .hero-side { flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
    .hero-side-item { min-width: 300px; }
}

@media (max-width: 991px) {
    .main-container { grid-template-columns: 1fr; }
    .sidebar { order: 2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .main-content { order: 1; }
    .article-detail { padding: 28px; }
}

@media (max-width: 767px) {
    :root { --header-h: 56px; }
    .container { padding: 0 16px; }
    .header-inner { gap: 12px; height: var(--header-h); }

    .site-header {
        background: #fff;
        z-index: 250;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: #fff;
        border-left: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        padding: 72px 16px 24px;
        gap: 4px;
        transform: translateX(100%);
        transition: transform var(--t-base);
        z-index: 200;
        max-height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    }
    .main-nav.open { transform: translateX(0); }
    .nav-item { padding: 14px 16px; font-size: 16px; border-radius: var(--radius-sm); }
    .nav-item.active::after { display: none; }
    .nav-item.active { background: var(--brand-dim); }

    .search-box { display: none; }
    .menu-toggle {
        display: flex;
        margin-left: auto;
        z-index: 201;
        position: relative;
        background: var(--bg-soft);
        border-radius: var(--radius-sm);
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all var(--t-base);
        z-index: 150;
    }
    .nav-overlay.visible { opacity: 1; visibility: visible; }

    .logo-slogan { display: none; }
    .logo-name { font-size: 18px; }

    .main-container { padding-top: 20px; gap: 20px; }
    .sidebar { grid-template-columns: 1fr; }
    .section-title h2 { font-size: 18px; }

    .article-card { grid-template-columns: 1fr; padding: 16px; }
    .article-card .cover { height: 180px; }
    .article-card .title { font-size: 17px; }

    .hero-main { height: 220px; }
    .hero-title { font-size: 20px; }
    .hero-summary { font-size: 13px; }

    .category-info { padding: 20px; }
    .category-info h1 { font-size: 22px; }
    .category-info .desc { font-size: 13px; }

    .article-detail { padding: 20px; }
    .article-detail h1 { font-size: 24px; }
    .article-detail .article-content { font-size: 15px; }
    .article-detail .article-content h2 { font-size: 19px; }

    .article-nav { grid-template-columns: 1fr; }
    .article-nav .nav-next { text-align: left; }
    .related-list ul { grid-template-columns: 1fr; }

    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

    .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }

    .pagination a, .pagination span { min-width: 36px; height: 36px; font-size: 13px; }
    .pagination .page-prev, .pagination .page-next { padding: 0 14px; }
}

@media (max-width: 480px) {
    .logo-mark svg { width: 30px; height: 30px; }
    .article-card .cover { height: 160px; }
    .hero-side-item { min-width: 280px; }
    .hero-side-item .thumb { width: 80px; height: 60px; }
}

/* ---------- Ad Inline（文章详情页标题下方内嵌广告） ---------- */
.ad-inline {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0 24px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--t-base);
    position: relative;
    overflow: hidden;
}
.ad-inline:hover {
    border-color: var(--border-brand);
    box-shadow: var(--shadow-md);
}
.ad-inline img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    background: var(--bg-soft);
}
.ad-inline-text { flex: 1; min-width: 0; }
.ad-inline-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 4px;
}
.ad-inline-desc {
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ad-inline-label {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-soft);
    padding: 2px 8px;
    border-radius: 3px;
    pointer-events: none;
}

/* ---------- Ad Float PC（PC端底部悬浮广告） ---------- */
.ad-float-pc {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 180;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    padding-right: 36px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    transition: all var(--t-base);
    max-width: 420px;
}
.ad-float-pc:hover {
    border-color: var(--border-brand);
    transform: translateY(-2px);
}
.ad-float-pc img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    background: var(--bg-soft);
}
.ad-float-pc .ad-float-text { flex: 1; min-width: 0; }
.ad-float-pc .ad-float-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ad-float-pc .ad-float-desc {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ad-float-pc .ad-float-cta {
    flex-shrink: 0;
    padding: 8px 18px;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}
.ad-float-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-3);
    cursor: pointer;
    line-height: 1;
    transition: all var(--t-fast);
}
.ad-float-close:hover { background: #fff; color: var(--text); }

/* ---------- Ad Float Mobile（移动端底部悬浮广告） ---------- */
.ad-float-mobile { display: none; }

@media (max-width: 767px) {
    .ad-float-pc { display: none; }
    .ad-float-mobile {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 180;
        align-items: center;
        gap: 10px;
        padding: 10px 16px;
        padding-right: 34px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        background: var(--bg-elevated);
        border-top: 1px solid var(--border-strong);
        box-shadow: 0 -4px 16px rgba(0,0,0,0.10);
        text-decoration: none;
    }
    .ad-float-mobile img {
        width: 52px;
        height: 52px;
        object-fit: cover;
        border-radius: var(--radius-sm);
        flex-shrink: 0;
        background: var(--bg-soft);
    }
    .ad-float-mobile .ad-float-text { flex: 1; min-width: 0; }
    .ad-float-mobile .ad-float-title {
        font-size: 13px;
        font-weight: 700;
        color: var(--text);
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .ad-float-mobile .ad-float-desc {
        font-size: 11px;
        color: var(--text-3);
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .ad-float-mobile .ad-float-cta {
        flex-shrink: 0;
        padding: 7px 14px;
        background: var(--brand);
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        border-radius: var(--radius-sm);
        white-space: nowrap;
    }
    .ad-float-mobile .ad-float-close { top: -8px; right: -8px; }

    .ad-inline { padding: 12px 14px; gap: 12px; }
    .ad-inline img { width: 80px; height: 80px; }
    .ad-inline-title { font-size: 14px; }
    .ad-inline-desc { font-size: 12px; }
}

/* ---------- Print ---------- */
@media print {
    .site-header, .sidebar, .site-footer, .back-to-top, .breadcrumbs { display: none; }
    body { background: white; color: black; }
    .article-detail { border: none; padding: 0; }
}
