/* 资讯中心只使用新版站点 Token 与组件，不依赖旧版 blog / usercenter 资源。 */
.v2-blog-hero,
.v2-blog-detail-hero { background: var(--color-hero); }
.v2-blog-hero__inner { padding: 105px 0 32px; }
.v2-blog-breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--color-text-secondary); font-size: 14px; line-height: 22px; }
.v2-blog-breadcrumb a { transition: color .16s ease; }
.v2-blog-breadcrumb a:hover { color: var(--color-ink); }
.v2-blog-hero h1 { margin: 14px 0 6px; color: var(--color-title); font-size: 40px; line-height: 56px; font-weight: var(--font-weight-medium); }
.v2-blog-hero p { margin: 0; color: var(--color-text-muted); font-size: 17px; line-height: 28px; }

.v2-blog-list-section { padding: 36px 0 88px; }
.v2-blog-list__heading { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 24px; }
.v2-blog-list__heading h2,
.v2-blog-recommend__heading h2 { margin: 0; color: var(--color-title); font-size: 32px; line-height: 48px; font-weight: var(--font-weight-medium); }
.v2-blog-list__heading p { margin: 4px 0 0; color: var(--color-text-secondary); font-size: 14px; line-height: 22px; }
.v2-blog-categories { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.v2-blog-categories .v2-chip { transition: color .16s ease, background-color .16s ease, border-color .16s ease; }
.v2-blog-categories .v2-chip:not(.is-active):hover { color: var(--color-ink); border-color: var(--color-text-secondary); }
.v2-blog-list { display: grid; gap: 16px; }

.v2-blog-card { min-height: 200px; display: grid; grid-template-columns: 280px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-card); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.v2-blog-card:hover { border-color: rgba(122, 211, 84, .72); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.v2-blog-card__image { display: block; min-height: 198px; overflow: hidden; background-color: var(--color-surface-muted); background-position: center; background-repeat: no-repeat; background-size: cover; }
.v2-blog-card__body { min-width: 0; padding: 24px 28px 22px; }
.v2-blog-card__meta { display: flex; align-items: center; gap: 16px; color: var(--color-text-secondary); font-size: 13px; line-height: 20px; }
.v2-blog-card__meta .v2-tag { height: 24px; }
.v2-blog-card h3 { margin: 12px 0 6px; color: var(--color-ink); font-size: 20px; line-height: 30px; font-weight: var(--font-weight-medium); }
.v2-blog-card h3 a,
.v2-blog-recommend-card h3 a { transition: color .16s ease; }
.v2-blog-card h3 a:hover,
.v2-blog-recommend-card h3 a:hover { color: #5ebd42; }
.v2-blog-card__body > p { min-height: 48px; margin: 0; overflow: hidden; color: var(--color-text-muted); font-size: 15px; line-height: 24px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.v2-blog-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--color-ink); font-size: 14px; line-height: 22px; font-weight: var(--font-weight-medium); }
.v2-blog-card__more span { color: var(--color-brand); font-size: 18px; }

.v2-blog-empty { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-card); text-align: center; }
.v2-blog-empty h3 { margin: 0; font-size: 24px; line-height: 36px; font-weight: var(--font-weight-medium); }
.v2-blog-empty p { margin: 8px 0 24px; color: var(--color-text-secondary); }
.v2-blog-empty .v2-button { width: 120px; height: 42px; }

/* 分页改用 components/pagination.html + components.css 的 .v2-pagination，
   这里只保留资讯列表页需要的外边距。 */
.v2-blog-page .v2-pagination { margin-top: 40px; }

/* 文章详情 */
.v2-blog-detail-hero__inner { padding: 105px 0 34px; }
.v2-blog-detail-hero h1 { max-width: 900px; margin: 18px 0 12px; color: var(--color-title); font-size: 40px; line-height: 56px; font-weight: var(--font-weight-medium); overflow-wrap: anywhere; }
.v2-blog-detail-hero__meta { display: flex; align-items: center; gap: 24px; color: var(--color-text-secondary); font-size: 14px; line-height: 22px; }
.v2-blog-detail-hero__meta .v2-tag { height: 24px; }
.v2-blog-detail-layout { display: grid; grid-template-columns: minmax(0, 860px) 300px; gap: 40px; align-items: start; padding-top: 20px; }
.v2-blog-article,
.v2-blog-aside__panel { border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-card); }
.v2-blog-article { padding: 24px 36px 36px; overflow: hidden; }

.v2-blog-article-content { color: var(--color-ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.v2-blog-article-content > :first-child { margin-top: 0; }
.v2-blog-article-content > :last-child { margin-bottom: 0; }
.v2-blog-article-content p,
.v2-blog-article-content ul,
.v2-blog-article-content ol,
.v2-blog-article-content blockquote,
.v2-blog-article-content pre,
.v2-blog-article-content table { margin: 0 0 22px; }
.v2-blog-article-content h1,
.v2-blog-article-content h2,
.v2-blog-article-content h3,
.v2-blog-article-content h4,
.v2-blog-article-content h5,
.v2-blog-article-content h6 { margin: 40px 0 16px; color: var(--color-title); font-weight: var(--font-weight-medium); line-height: 1.5; }
.v2-blog-article-content h1 { font-size: 30px; }
.v2-blog-article-content h2 { font-size: 26px; }
.v2-blog-article-content h3 { font-size: 22px; }
.v2-blog-article-content h4,
.v2-blog-article-content h5,
.v2-blog-article-content h6 { font-size: 18px; }
.v2-blog-article-content a { color: #4fab38; text-decoration: underline; text-underline-offset: 3px; }
.v2-blog-article-content img,
.v2-blog-article-content video,
.v2-blog-article-content iframe { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.v2-blog-article-content blockquote { padding: 18px 20px; border-left: 4px solid var(--color-brand); background: var(--color-brand-soft); color: var(--color-text-muted); }
.v2-blog-article-content pre { max-width: 100%; padding: 18px 20px; overflow-x: auto; border-radius: var(--radius-sm); background: var(--color-ink); color: var(--color-on-dark); }
.v2-blog-article-content code { padding: 2px 5px; border-radius: 4px; background: var(--color-surface-muted); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .9em; }
.v2-blog-article-content pre code { padding: 0; background: transparent; }
.v2-blog-article-content table { width: 100%; border-collapse: collapse; }
.v2-blog-article-content th,
.v2-blog-article-content td { padding: 12px 14px; border: 1px solid var(--color-border); text-align: left; }
.v2-blog-article-content th { background: var(--color-card-soft); font-weight: var(--font-weight-medium); }

.v2-blog-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--color-border); color: var(--color-text-secondary); font-size: 13px; }
.v2-blog-tags a,
.v2-blog-tags__item { padding: 5px 10px; border-radius: var(--radius-pill); background: var(--color-brand-soft); color: #4fab38; }
.v2-blog-adjacent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.v2-blog-adjacent a { min-width: 0; min-height: 112px; display: flex; flex-direction: column; justify-content: center; padding: 20px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); transition: border-color .16s ease, background-color .16s ease; }
.v2-blog-adjacent a:hover { border-color: var(--color-brand); background: var(--color-brand-soft); }
.v2-blog-adjacent span { margin-bottom: 8px; color: var(--color-text-secondary); font-size: 13px; }
.v2-blog-adjacent strong { color: var(--color-ink); font-size: 15px; line-height: 24px; font-weight: var(--font-weight-medium); display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.v2-blog-aside { position: sticky; top: 24px; }
.v2-blog-aside__panel { padding: 24px 24px 8px; }
.v2-blog-aside__panel > h2 { margin: 0 0 24px; color: var(--color-title); font-size: 22px; line-height: 33px; font-weight: var(--font-weight-medium); }
.v2-blog-related-group { margin-bottom: 28px; }
.v2-blog-related-group h3 { position: relative; margin: 0 0 12px; padding-left: 12px; color: var(--color-text-muted); font-size: 14px; line-height: 22px; font-weight: var(--font-weight-medium); }
.v2-blog-related-group h3::before { content: ""; position: absolute; top: 5px; left: 0; width: 3px; height: 12px; border-radius: 2px; background: var(--color-brand); }
.v2-blog-related-group a { display: block; padding: 8px 0; color: var(--color-ink); font-size: 14px; line-height: 22px; transition: color .16s ease; }
.v2-blog-related-group a:hover { color: #5ebd42; }
.v2-blog-aside__empty { color: var(--color-text-secondary); }

.v2-blog-recommend { padding: 56px 0 96px; }
.v2-blog-recommend__heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.v2-blog-recommend__heading > a { color: var(--color-text-muted); font-size: 14px; }
.v2-blog-recommend__heading > a span { color: var(--color-brand); font-size: 18px; }
.v2-blog-recommend__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.v2-blog-recommend-card { overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-card); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.v2-blog-recommend-card:hover { border-color: rgba(122, 211, 84, .72); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.v2-blog-recommend-card__image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background-color: var(--color-surface-muted); background-position: center; background-repeat: no-repeat; background-size: cover; }
.v2-blog-recommend-card > div { padding: 18px 20px 22px; }
.v2-blog-recommend-card time { color: var(--color-text-secondary); font-size: 13px; line-height: 20px; }
.v2-blog-recommend-card h3 { min-height: 52px; margin: 8px 0 0; color: var(--color-ink); font-size: 17px; line-height: 26px; font-weight: var(--font-weight-medium); display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.v2-blog-page .v2-footer { margin-top: 0; padding-top: 80px; }
.v2-blog-detail-page:not(.has-recommendations) #main-content { padding-bottom: 96px; }

@media (max-width: 767px) {
    html,
    body.site-v2 { min-width: 0; }
    .v2-container { width: min(100% - 32px, var(--content-width)); }
    .v2-header { top: 16px; width: 100%; }
    .v2-header__inner { width: calc(100% - 32px); height: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
    .v2-header__lead { display: contents; }
    .v2-brand,
    .v2-brand img { width: 120px; height: auto; }
    .v2-brand { order: 1; }
    .v2-header__actions { order: 2; width: auto; gap: 6px; }
    .v2-header__actions .v2-button { width: auto; min-width: 66px; height: 36px; padding: 0 10px; font-size: 13px; }
    .v2-nav { order: 3; grid-column: 1 / -1; width: 100%; gap: 20px; overflow-x: auto; scrollbar-width: none; }
    .v2-nav::-webkit-scrollbar { display: none; }
    .v2-nav__item { height: 34px; font-size: 13px; }
    .v2-nav__item.is-active::after { bottom: 0; width: 48px; height: 2px; }
    .v2-product-menu { top: 92px; left: 0; width: 100%; height: auto; max-height: calc(100vh - 124px); padding: 14px; overflow-y: auto; border-radius: var(--radius-sm); }
    .v2-product-menu__grid { grid-template-columns: 1fr; gap: 12px; }
    .v2-product-menu__card { width: 100%; height: auto; padding: 16px; }
    .v2-product-menu__card > p { height: auto; }
    .v2-product-menu__card ul { grid-template-columns: 1fr; }
    .v2-product-menu__actions { flex-wrap: wrap; }

    .v2-blog-hero__inner { padding: 112px 0 24px; }
    .v2-blog-hero h1 { margin-top: 12px; font-size: 34px; line-height: 48px; }
    .v2-blog-hero p { font-size: 15px; line-height: 24px; }
    .v2-blog-list-section { padding: 28px 0 64px; }
    .v2-blog-list__heading { display: block; margin-bottom: 24px; }
    .v2-blog-list__heading h2,
    .v2-blog-recommend__heading h2 { font-size: 26px; line-height: 39px; }
    .v2-blog-categories { justify-content: flex-start; gap: 8px; margin-top: 20px; }
    .v2-blog-categories .v2-chip { height: 36px; padding: 0 12px; font-size: 13px; }
    .v2-blog-card { min-height: 0; grid-template-columns: 1fr; }
    .v2-blog-card__image { min-height: 0; aspect-ratio: 16 / 8; }
    .v2-blog-card__body { padding: 20px; }
    .v2-blog-card__meta { gap: 10px; }
    .v2-blog-card h3 { font-size: 19px; line-height: 29px; }
    .v2-blog-card__body > p { min-height: 72px; -webkit-line-clamp: 3; }
    .v2-blog-page .v2-pagination { gap: 5px; margin-top: 32px; }

    .v2-blog-detail-hero__inner { width: calc(100% - 32px); padding: 112px 0 24px; }
    .v2-blog-detail-hero .v2-blog-breadcrumb { overflow: hidden; white-space: nowrap; }
    .v2-blog-detail-hero .v2-blog-breadcrumb a,
    .v2-blog-detail-hero .v2-blog-breadcrumb span { flex: 0 0 auto; }
    .v2-blog-detail-hero h1 { margin: 14px 0 10px; font-size: 29px; line-height: 42px; }
    .v2-blog-detail-hero__meta { flex-wrap: wrap; gap: 10px 16px; }
    .v2-blog-detail-layout { grid-template-columns: 1fr; gap: 20px; padding-top: 12px; }
    .v2-blog-article { padding: 16px 16px 24px; }
    .v2-blog-article-content { font-size: 15px; line-height: 1.85; }
    .v2-blog-article-content h1 { font-size: 25px; }
    .v2-blog-article-content h2 { font-size: 22px; }
    .v2-blog-article-content h3 { font-size: 19px; }
    .v2-blog-article-content table { display: block; overflow-x: auto; white-space: nowrap; }
    .v2-blog-adjacent { grid-template-columns: 1fr; }
    .v2-blog-aside { position: static; }
    .v2-blog-recommend { padding: 40px 0 72px; }
    .v2-blog-recommend__grid { grid-template-columns: 1fr; }
    .v2-blog-detail-page:not(.has-recommendations) #main-content { padding-bottom: 72px; }

    .v2-blog-page .v2-footer { margin-top: 0; padding: 64px 0 32px; }
    .v2-footer__inner { width: calc(100% - 32px); display: block; margin-bottom: 36px; }
    .v2-footer__intro { width: 100%; }
    .v2-footer__groups { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; margin-top: 40px; }
    .v2-footer__group { width: auto; }
    .v2-footer__legal { width: calc(100% - 32px); white-space: normal; }
}
