/* ==========================================================
 * 资讯门户版（首页版本2 / 登录页版本2）样式
 * 参考凤凰资讯门户风格：红色主视觉 + 频道导航 + 图文信息流
 * ========================================================== */

:root {
    --v2-brand: #c9151e;
    --v2-brand-dark: #9e0f18;
    --v2-brand-soft: #fdecec;
    --v2-orange: #e8663d;
    --v2-text: #1a1a1a;
    --v2-text-sec: #444;
    --v2-text-light: #999;
    --v2-border: #e8e8e8;
    --v2-border-strong: #dcdcdc;
    --v2-bg: #ffffff;
    --v2-bg-soft: #f7f8fa;
    --v2-bg-gray: #f2f3f5;
    --v2-container: 1200px;
    --v2-radius: 4px;
}

body.v2-body {
    background: #f2f3f5;
    color: var(--v2-text);
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

body.v2-body a { color: inherit; text-decoration: none; }
body.v2-body a:hover { color: var(--v2-brand); }
body.v2-body img { display: block; max-width: 100%; }

.v2-container {
    width: 100%;
    max-width: var(--v2-container);
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* ---------------- 顶部：细条 ---------------- */
.v2-topbar {
    background: #f7f7f7;
    border-bottom: 1px solid var(--v2-border);
    font-size: 12px;
    color: var(--v2-text-light);
}
.v2-topbar .v2-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 32px;
    gap: 16px;
}
.v2-topbar-left { display: flex; align-items: center; gap: 12px; }
.v2-topbar-left .v2-date { color: var(--v2-text-sec); }
.v2-topbar-right { display: flex; align-items: center; gap: 14px; }
.v2-topbar-right a { color: var(--v2-text-sec); }
.v2-topbar-right a:hover { color: var(--v2-brand); }
.v2-topbar-divider { color: #ccc; }
.v2-topbar-login { color: var(--v2-brand) !important; font-weight: 600; }

/* ---------------- 头部：Logo + 搜索 ---------------- */
.v2-head {
    background: #fff;
    padding: 18px 0;
}
.v2-head .v2-container {
    display: flex;
    align-items: center;
    gap: 30px;
}
.v2-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.v2-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
}
.v2-logo-text { display: flex; flex-direction: column; }
.v2-logo-name {
    font-size: 26px;
    font-weight: 700;
    color: var(--v2-brand);
    letter-spacing: 2px;
    line-height: 1.2;
}
.v2-logo-slogan {
    font-size: 12px;
    color: var(--v2-text-light);
    letter-spacing: 1px;
}
.v2-head-search {
    flex: 1;
    max-width: 460px;
    margin-left: auto;
}
.v2-search-form {
    display: flex;
    border: 2px solid var(--v2-brand);
    border-radius: var(--v2-radius);
    overflow: hidden;
    background: #fff;
}
.v2-search-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 12px;
    height: 36px;
    font-size: 14px;
    color: var(--v2-text);
    min-width: 0;
}
.v2-search-form button {
    border: none;
    background: var(--v2-brand);
    color: #fff;
    font-size: 14px;
    padding: 0 22px;
    height: 36px;
    cursor: pointer;
    letter-spacing: 2px;
    transition: background .2s;
}
.v2-search-form button:hover { background: var(--v2-brand-dark); }
.v2-head-hotkeys {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--v2-text-light);
}
.v2-head-hotkeys a { color: var(--v2-text-sec); }
/* SEARCH_BOX_V1：热搜推广位——高亮词条（后台可勾选） */
.v2-head-hotkeys a.v2-hotkey-hot { color: #e53935; font-weight: 700; }
.v2-head-hotkeys a:hover { color: var(--v2-brand); }
.v2-head-hotkeys a.v2-hotkey-hot:hover { color: #c62828; }

/* ---------------- 频道导航 ---------------- */
.v2-nav {
    background: #fff;
    border-bottom: 3px solid var(--v2-brand);
    position: sticky;
    top: 0;
    z-index: 200;
}
.v2-nav .v2-container {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 44px;
    overflow-x: auto;
    scrollbar-width: none;
}
.v2-nav .v2-container::-webkit-scrollbar { display: none; }
.v2-nav-item {
    flex-shrink: 0;
    padding: 0 16px;
    height: 44px;
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--v2-text);
    position: relative;
    transition: color .15s;
    white-space: nowrap;
}
.v2-nav-item:hover { color: var(--v2-brand); }
.v2-nav-item.active { color: #fff; background: var(--v2-brand); font-weight: 600; }
.v2-nav-item.active:hover { color: #fff; }
.v2-nav-spacer { flex: 1; min-width: 0; }
.v2-nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding-left: 12px; }
/* SEARCH_BOX_V1：游客的「注册 / 登录」默认仅手机端显示（PC 端入口在顶部细条）
   后台「系统配置 → 搜索框与热搜推广」关闭该开关后，加 .v2-nav-auth-all 恢复全端显示 */
.v2-nav-auth-guest { display: none; align-items: center; gap: 8px; }
.v2-nav-auth-guest.v2-nav-auth-all { display: flex; }
@media (max-width: 900px) {
    .v2-nav-auth-guest { display: flex; }
}
/* 已登录用户的「👤 用户名」入口：顶部细条与分类栏通用，长名字省略号截断 */
.v2-topbar-user,
.v2-nav-user { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-nav-btn {
    border: 1px solid var(--v2-brand);
    color: var(--v2-brand);
    border-radius: var(--v2-radius);
    padding: 4px 14px;
    font-size: 13px;
    white-space: nowrap;
    transition: all .2s;
}
.v2-nav-btn:hover { background: var(--v2-brand); color: #fff; }
.v2-nav-btn.solid { background: var(--v2-brand); color: #fff; }
.v2-nav-btn.solid:hover { background: var(--v2-brand-dark); border-color: var(--v2-brand-dark); }

/* ---------------- 公告条 ---------------- */
.v2-notice {
    background: var(--v2-brand-soft);
    border: 1px solid #f6d5d5;
    border-radius: var(--v2-radius);
    padding: 8px 14px;
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--v2-brand-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------------- 主区域布局 ---------------- */
.v2-main { padding: 16px 0 30px; }
.v2-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}
.v2-col-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.v2-col-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 58px; }

/* ---------------- 焦点区（轮播+头条+热榜） ---------------- */
.v2-focus {
    background: #fff;
    border-radius: var(--v2-radius);
    padding: 14px;
    /* 轮播图与热点速递已合并：整行只保留一个全宽轮播 */
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}
.v2-focus-slider { min-width: 0; }
.v2-focus-main { min-width: 0; }
.v2-focus-center { min-width: 0; }

/* 头条要闻条（焦点区下方） */
.v2-headline-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 26px;
    align-items: start;
}
.v2-headline-bar .v2-headline-big { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.v2-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--v2-radius);
    /* 合并后为整行全宽轮播（容器 1200px），加高以匹配比例 */
    height: 420px;
    background: #000;
}
/* 兼容性说明：部分旧内核浏览器（老版 UC/QQ/安卓 WebView）对 flex 子项
   `flex:0 0 100%` 与 `object-fit:cover` 支持不完整，会出现轮播只显示一半、
   图片不被裁切的问题。这里改用 inline-block + 固定高度（全内核可用），
   并为不支持 object-fit 的浏览器提供背景图兜底。 */
.v2-slider-track {
    height: 100%;
    font-size: 0;          /* 消除 inline-block 间隙 */
    white-space: nowrap;   /* 不换行，横向排列 */
    transition: transform .45s ease;
    -webkit-transition: -webkit-transform .45s ease;
}
.v2-slider-slide {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
    vertical-align: top;
    font-size: 14px;
    white-space: normal;
}
.v2-slider-slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-color: #000;
}
.v2-slider-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 不支持 object-fit 时隐藏 img，由 a 标签的背景图（cover）接管显示 */
@supports not (object-fit: cover) {
    .v2-slider-slide img { display: none; }
}
.v2-slider-ph {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #d8443f, #9e0f18);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.9); font-size: 48px;
}
.v2-slider-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 70px 24px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,.78));
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.v2-slider-dots {
    position: absolute;
    right: 14px; top: 12px;
    display: flex; gap: 6px;
    z-index: 3;
}
.v2-slider-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    border: none; padding: 0;
}
.v2-slider-dot.active { background: var(--v2-brand); }
.v2-slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 30px; height: 50px; line-height: 50px; text-align: center;
    background: rgba(0,0,0,.35); color: #fff; cursor: pointer;
    font-size: 20px; z-index: 3; opacity: 0; transition: opacity .2s;
    user-select: none;
}
.v2-slider:hover .v2-slider-arrow { opacity: 1; }
.v2-slider-arrow.prev { left: 0; border-radius: 0 4px 4px 0; }
.v2-slider-arrow.next { right: 0; border-radius: 4px 0 0 4px; }

/* 头条区 */
.v2-headline-big { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--v2-border); }
.v2-headline-big h2 {
    font-size: 22px; line-height: 1.4; margin: 0 0 6px; font-weight: 700;
}
.v2-headline-big h2 a:hover { color: var(--v2-brand); }
.v2-headline-big p { margin: 0; color: var(--v2-text-sec); font-size: 13px; }
.v2-headline-list { list-style: none; margin: 0; padding: 0; }
.v2-headline-list li {
    padding: 5px 0;
    display: flex; align-items: baseline; gap: 8px;
    border-bottom: 1px dashed #f0f0f0;
}
.v2-headline-list li:last-child { border-bottom: none; }
.v2-headline-dot { color: var(--v2-brand); font-size: 12px; flex-shrink: 0; }
.v2-headline-list a {
    flex: 1; min-width: 0;
    font-size: 15px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.v2-headline-list .v2-time { color: var(--v2-text-light); font-size: 12px; flex-shrink: 0; }

/* 侧栏卡片标题 */
.v2-side-card h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    border-left: 4px solid var(--v2-brand);
    padding-left: 8px;
    line-height: 1.2;
}
.v2-quick-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.v2-quick-list li { padding: 6px 0; border-bottom: 1px dashed #f0f0f0; display: flex; gap: 8px; align-items: center; }
.v2-quick-list li:last-child { border-bottom: none; }
.v2-quick-list a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-quick-num { width: 18px; height: 18px; line-height: 18px; text-align: center; background: var(--v2-bg-gray); color: var(--v2-text-sec); font-size: 12px; flex-shrink: 0; }
.v2-quick-list li:nth-child(1) .v2-quick-num { background: var(--v2-brand); color: #fff; }
.v2-quick-list li:nth-child(2) .v2-quick-num { background: #e8663d; color: #fff; }
.v2-quick-list li:nth-child(3) .v2-quick-num { background: #f0a03c; color: #fff; }


/* ---------------- 侧边栏卡片 ---------------- */
.v2-side-card {
    background: #fff;
    border-radius: var(--v2-radius);
    padding: 14px;
}
.v2-rank-list { list-style: none; margin: 0; padding: 0; }
.v2-rank-list li {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 0; border-bottom: 1px dashed #f0f0f0;
}
.v2-rank-list li:last-child { border-bottom: none; }
.v2-rank-num {
    flex-shrink: 0;
    width: 20px; height: 20px; line-height: 20px; text-align: center;
    background: #c0c0c0; color: #fff; font-size: 12px; font-weight: 700;
    border-radius: 2px;
}
.v2-rank-list li:nth-child(1) .v2-rank-num { background: var(--v2-brand); }
.v2-rank-list li:nth-child(2) .v2-rank-num { background: #e8663d; }
.v2-rank-list li:nth-child(3) .v2-rank-num { background: #f0a03c; }
/* 标题 / 阅读数 / 日期 同一行：标题单行省略，元信息右侧不换行 */
.v2-rank-title {
    flex: 1; min-width: 0;
    font-size: 13.5px; line-height: 1.5;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.v2-rank-title a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-rank-meta { flex-shrink: 0; color: var(--v2-text-light); font-size: 12px; white-space: nowrap; }

.v2-stat-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px;
}
.v2-stat-item {
    background: var(--v2-bg-soft);
    border-radius: var(--v2-radius);
    padding: 12px 10px;
    text-align: center;
}
.v2-stat-num { font-size: 22px; font-weight: 700; color: var(--v2-brand); line-height: 1.2; }
.v2-stat-label { font-size: 12px; color: var(--v2-text-light); }

.v2-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-tag {
    background: var(--v2-bg-soft);
    border: 1px solid var(--v2-border);
    border-radius: 12px;
    padding: 3px 12px;
    font-size: 12.5px;
    color: var(--v2-text-sec);
}
.v2-tag:hover, .v2-tag.active { background: var(--v2-brand); border-color: var(--v2-brand); color: #fff; }

/* ---------------- 内容区块 ---------------- */
.v2-section {
    background: #fff;
    border-radius: var(--v2-radius);
    padding: 16px 18px;
}
.v2-section-head {
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--v2-border);
    padding-bottom: 10px;
    margin-bottom: 14px;
}
.v2-section-title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    display: flex; align-items: center; gap: 8px;
}
.v2-section-title::before {
    content: '';
    width: 4px; height: 18px;
    background: var(--v2-brand);
    border-radius: 2px;
}
.v2-section-more { font-size: 13px; color: var(--v2-text-light); }
.v2-section-more:hover { color: var(--v2-brand); }

/* 图文卡片列表 */
.v2-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.v2-card { display: block; }
.v2-card-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--v2-radius);
    background: var(--v2-bg-gray);
}
.v2-card-ph {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--v2-radius);
    background: linear-gradient(135deg, #e9ecf1, #f6f7f9);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: #b7bcc4;
}
.v2-card-title {
    margin: 8px 0 0;
    font-size: 14.5px;
    line-height: 1.5;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 3em;
}
.v2-card:hover .v2-card-title { color: var(--v2-brand); }
.v2-card-meta { margin-top: 6px; font-size: 12px; color: var(--v2-text-light); display: flex; gap: 10px; }
.v2-lock-badge { color: var(--v2-orange); }

/* 图文混排列表（信息流） */
.v2-flow { display: flex; flex-direction: column; }
.v2-flow-item {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--v2-border);
}
.v2-flow-item:last-child { border-bottom: none; }
.v2-flow-cover { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--v2-radius); background: var(--v2-bg-gray); }
.v2-flow-ph {
    width: 100%; aspect-ratio: 16/10; border-radius: var(--v2-radius);
    background: linear-gradient(135deg, #e9ecf1, #f6f7f9);
    display: flex; align-items: center; justify-content: center; font-size: 28px; color: #b7bcc4;
}
.v2-flow-title { margin: 0 0 8px; font-size: 17px; font-weight: 700; line-height: 1.5; }
.v2-flow-item:hover .v2-flow-title { color: var(--v2-brand); }
.v2-flow-desc {
    margin: 0 0 8px;
    color: var(--v2-text-sec);
    font-size: 13px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.v2-flow-meta { font-size: 12px; color: var(--v2-text-light); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.v2-flow-tag {
    background: var(--v2-brand-soft);
    color: var(--v2-brand);
    border-radius: 2px;
    padding: 1px 6px;
    font-size: 12px;
}
.v2-flow-empty { text-align: center; padding: 50px 0; color: var(--v2-text-light); }
.v2-flow-empty .icon { font-size: 46px; margin-bottom: 8px; }

/* 分页 */
.v2-pager { display: flex; justify-content: center; gap: 6px; padding: 20px 0 4px; flex-wrap: wrap; }
.v2-pager a {
    padding: 6px 12px;
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius);
    background: #fff;
    color: var(--v2-text-sec);
    font-size: 13px;
}
.v2-pager a:hover { border-color: var(--v2-brand); color: var(--v2-brand); }
.v2-pager a.active { background: var(--v2-brand); border-color: var(--v2-brand); color: #fff; }

/* ---------------- 页脚 ---------------- */
.v2-footer {
    background: #2b2b2b;
    color: #b6b6b6;
    margin-top: 20px;
    padding: 30px 0 20px;
    font-size: 13px;
}
.v2-footer a { color: #b6b6b6; }
.v2-footer a:hover { color: #fff; }
.v2-footer-top {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 160px;
    gap: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #3d3d3d;
}
.v2-footer h4 {
    margin: 0 0 12px;
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}
.v2-footer-qr {
    width: 110px; height: 110px; object-fit: contain;
    background: #fff; border-radius: 4px; padding: 4px;
}
.v2-footer-contact p { margin: 0 0 6px; }
.v2-footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.v2-footer-bottom {
    padding-top: 16px;
    text-align: center;
    line-height: 1.9;
    font-size: 12.5px;
}
.v2-footer-bottom p { margin: 0; }
.v2-footer-login {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 18px;
    border: 1px solid #555;
    border-radius: var(--v2-radius);
    color: #ddd !important;
}
.v2-footer-login:hover { border-color: var(--v2-brand); background: var(--v2-brand); color: #fff !important; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
    .v2-slider { height: 340px; }
    .v2-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .v2-layout { grid-template-columns: minmax(0, 1fr); }
    .v2-col-side { position: static; }
    .v2-topbar { display: none; }
    .v2-head { padding: 12px 0; }
    .v2-head .v2-container { gap: 14px; }
    .v2-logo-name { font-size: 20px; }
    .v2-head-search { max-width: none; }
    .v2-head-hotkeys { display: none; }
    /* SEARCH_BOX_V1：后台开启「手机端也显示热搜词」后，平板/手机端（≤900px）继续展示推广位 */
    .v2-head-hotkeys.v2-hotkeys-mobile { display: flex; flex-wrap: wrap; gap: 8px 10px; }
    .v2-nav .v2-container { height: 42px; }
    .v2-nav-item { font-size: 15px; padding: 0 12px; }
    .v2-focus { grid-template-columns: minmax(0, 1fr); padding: 10px; }
    .v2-slider { height: 240px; }
    .v2-slider-caption { font-size: 15px; padding: 46px 14px 14px; }
    .v2-headline-bar { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .v2-headline-bar .v2-headline-big { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--v2-border); }
    .v2-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .v2-flow-item { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
    .v2-flow-title { font-size: 15.5px; }
    .v2-flow-desc { -webkit-line-clamp: 2; }
    .v2-footer-top { grid-template-columns: 1fr; gap: 18px; }
    .v2-footer-bottom { text-align: left; }
}

@media (max-width: 560px) {
    .v2-head-search { display: none; }
    .v2-search-mobile { display: block; }
    .v2-container { padding: 0 10px; }
    .v2-main { padding: 10px 0 20px; }
    .v2-section { padding: 12px 12px; }
    .v2-flow-item { grid-template-columns: 100px minmax(0, 1fr); gap: 10px; padding: 12px 0; }
    .v2-flow-title { font-size: 15px; }
    .v2-flow-desc { font-size: 12.5px; -webkit-line-clamp: 2; }
    .v2-slider { height: 180px; border-radius: 3px; }
    .v2-headline-big h2 { font-size: 18px; }
    .v2-headline-list a { font-size: 14px; }
    .v2-section-title { font-size: 17px; }
}

/* ==========================================================
 * 文章详情页（门户版 v2）
 * ========================================================== */
.v2-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
}
.v2-article-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.v2-article-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 58px; }

.v2-article-page .ap-article {
    border-radius: var(--v2-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    margin: 0;
}
.v2-article-page .ap-title { font-size: 24px; line-height: 1.45; padding: 24px 28px 12px; }
.v2-article-page .ap-meta { padding: 0 28px 16px; }
.v2-article-page .ap-cat-tag { background: var(--v2-brand); border-radius: 2px; }
.v2-article-page .ap-meta > span { color: var(--v2-text-light); }
.v2-article-page .ap-content { padding: 8px 28px 24px; font-size: 16px; line-height: 1.9; }
.v2-article-page .ap-content h1,
.v2-article-page .ap-content h2,
.v2-article-page .ap-content h3 { color: var(--v2-text); }
.v2-article-page .ap-content a { color: var(--v2-brand); }
.v2-article-page .ap-content blockquote { border-left-color: var(--v2-brand); background: var(--v2-brand-soft); }
.v2-article-page .ap-related { border-radius: var(--v2-radius); box-shadow: none; border: 1px solid var(--v2-border); margin-top: 0; }
.v2-article-page .ap-related-title { border-bottom-color: var(--v2-border); }
.v2-article-page .ap-doc { border-top-color: var(--v2-border); background: var(--v2-bg-soft); }
.v2-article-page .ap-doc .dl-btn { background: var(--v2-brand); }
.v2-article-page .ap-doc .pv-btn { color: var(--v2-brand); border-color: var(--v2-brand); }

/* 门户版兜底：正文内 v1 组件类（按钮 / 卡片） */
.v2-article-page .card { background: #fff; border-radius: var(--v2-radius); padding: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.v2-article-page .btn {
    display: inline-block; padding: 8px 18px; border-radius: var(--v2-radius);
    font-size: 14px; line-height: 1.4; border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.v2-article-page .btn-primary { background: var(--v2-brand); border-color: var(--v2-brand); color: #fff; }
.v2-article-page .btn-primary:hover { background: var(--v2-brand-dark); color: #fff; }
.v2-article-page .btn-outline { background: #fff; border-color: var(--v2-border-strong); color: var(--v2-text-sec); }
.v2-article-page .btn-sm { padding: 5px 12px; font-size: 13px; }

/* ==========================================================
 * 搜索结果页（门户版 v2）
 * ========================================================== */
.v2-search-wrap { width: 100%; }
.v2-search-bar { margin-bottom: 16px; }
.v2-search-form.wide {
    display: flex; width: 100%; max-width: 560px;
    border: 2px solid var(--v2-brand); border-radius: 2px; overflow: hidden; background: #fff;
}
.v2-search-form.wide input { flex: 1; border: none !important; outline: none; padding: 10px 14px; font-size: 15px; background: #fff; }
.v2-search-form.wide button { border: none; background: var(--v2-brand); color: #fff; padding: 10px 28px; font-size: 15px; cursor: pointer; }
.v2-search-form.wide button:hover { background: var(--v2-brand-dark); }

.v2-search-page .sp-info {
    padding: 0 0 12px; margin-bottom: 8px;
    border-bottom: 1px solid var(--v2-border);
    font-size: 14px; color: var(--v2-text-sec);
}
.v2-search-page .sp-info b { color: var(--v2-brand); }
.v2-search-page .sp-results { display: flex; flex-direction: column; }
.v2-search-page .sp-item {
    border-radius: 0; box-shadow: none; background: #fff;
    border-bottom: 1px solid var(--v2-border);
}
.v2-search-page .sp-item:hover { box-shadow: none; transform: none; background: var(--v2-bg-soft); }
.v2-search-page .sp-item a { padding: 14px 4px; }
.v2-search-page .sp-item .si-cover,
.v2-search-page .sp-item .si-placeholder { width: 168px; height: 105px; border-radius: var(--v2-radius); }
.v2-search-page .sp-item .si-title { font-size: 16px; font-weight: 700; color: var(--v2-text); }
.v2-search-page .sp-item:hover .si-title { color: var(--v2-brand); }
.v2-search-page .sp-item .si-tag { background: var(--v2-brand); border-radius: 2px; }
.v2-search-page .sp-item .si-lock { color: var(--v2-orange); }
.v2-search-page .sp-empty { padding: 60px 0; color: var(--v2-text-light); }
.v2-search-page .sp-pagination { display: flex; gap: 6px; justify-content: center; padding: 22px 0 4px; flex-wrap: wrap; }
.v2-search-page .sp-pagination a {
    padding: 6px 12px; border: 1px solid var(--v2-border); border-radius: var(--v2-radius);
    background: #fff; color: var(--v2-text-sec); font-size: 13px;
}
.v2-search-page .sp-pagination a:hover { border-color: var(--v2-brand); color: var(--v2-brand); }
.v2-search-page .sp-pagination a.active { background: var(--v2-brand); border-color: var(--v2-brand); color: #fff; }

/* ---------------- 详情页 / 搜索页响应式 ---------------- */
@media (max-width: 1000px) {
    .v2-article-layout { grid-template-columns: minmax(0, 1fr); }
    .v2-article-side { position: static; }
}
@media (max-width: 768px) {
    .v2-article-page .ap-title { font-size: 19px; padding: 16px 14px 10px; }
    .v2-article-page .ap-meta { padding: 0 14px 12px; font-size: 12px; }
    .v2-article-page .ap-content { padding: 4px 14px 18px; font-size: 15.5px; }
    .v2-search-form.wide input { padding: 9px 12px; font-size: 14px; }
    .v2-search-form.wide button { padding: 9px 18px; font-size: 14px; }
    .v2-search-page .sp-item a { padding: 12px 2px; gap: 10px; }
    .v2-search-page .sp-item .si-cover,
    .v2-search-page .sp-item .si-placeholder { width: 100px; height: 68px; }
    .v2-search-page .sp-item .si-title { font-size: 15px; }
}
