/* ============================================
   VJShi Blog Theme - Main Stylesheet
   光厂官方博客定制主题
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --vjshi-primary: #000000;
    --vjshi-primary-dark: #1a1a1a;
    --vjshi-primary-light: #333333;
    --vjshi-dark: #1a1a2e;
    --vjshi-darker: #16162a;
    --vjshi-text: #333333;
    --vjshi-text-light: #666666;
    --vjshi-text-muted: #999999;
    --vjshi-bg: #ffffff;
    --vjshi-bg-gray: #f5f5f7;
    --vjshi-border: #e5e5e5;
    --vjshi-radius: 8px;
    --vjshi-radius-lg: 12px;
    --vjshi-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --vjshi-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --vjshi-transition: 0.3s ease;
    --vjshi-container: 1200px;
    --vjshi-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
        --vjshi-fixed-header-offset: 96px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--vjshi-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--vjshi-text);
    background: var(--vjshi-bg);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--vjshi-transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

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

.vjshi-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--vjshi-text);
    margin-bottom: 24px;
}

/* ============================================
   Header - 与光厂主站一致
   ============================================ */
.vjshi-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 44px;
    height: 80px;
    transition: transform 0.5s;
}

.vjshi-header-spacer {
    display: block;
    width: 100%;
    height: 80px;
}

body.admin-bar .vjshi-header {
    top: 32px;
}

body.admin-bar .vjshi-header-spacer {
    height: 80px;
}

body.admin-bar {
    --vjshi-fixed-header-offset: 128px;
}

.vjshi-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 8px 16px;
    color: #000;
    font-size: 18px;
    font-weight: 500;
    border-radius: 100px;
    transition: background 0.2s;
}

.vjshi-nav-item:hover {
    background: #f0f0f0;
}

/* Badge */
.vjshi-badge-wrap {
    position: relative;
    display: inline-flex;
}

.vjshi-badge {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    transform: translate(calc(100% - 8px), -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 6px;
    min-width: 18px;
    min-height: 18px;
    text-align: center;
    font-size: 12px;
    color: #fff;
    background: #395AE5;
    border-radius: 9999px;
    line-height: 1;
}

.vjshi-badge--blue {
    background: #395AE5;
}

/* Dropdown menu */
.vjshi-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 1100;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    padding: 8px;
    width: 128px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dd:hover > .vjshi-dropdown-menu,
.dd:focus-within > .vjshi-dropdown-menu {
    display: flex !important;
}

.vjshi-dropdown-item {
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    color: #000;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.15s;
}

.vjshi-dropdown-item:hover {
    background: #f0f0f0;
}

.dd {
    position: relative;
}

.dd::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
}

/* Header actions */
.vjshi-header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vjshi-header__action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 36px;
    padding: 0 12px;
    border-radius: 100px;
    transition: background 0.2s;
    color: #000;
    font-size: 16px;
    font-weight: 500;
}

.vjshi-header__action-link:hover {
    background: #f0f0f0;
}

.vjshi-header__auth {
    margin-left: 16px;
}

.vjshi-header__login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 36px;
    border-radius: 100px;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background: #000;
    transition: background 0.2s;
}

.vjshi-header__login-btn:hover {
    background: #333;
    color: #fff;
}

.vjshi-header__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.vjshi-header__mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #000;
    border-radius: 2px;
    transition: all var(--vjshi-transition);
}

/* ============================================
   Hero Section - 标题模块
   ============================================ */
.vjshi-hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--vjshi-dark) 0%, #2d1b4e 50%, #1a1a2e 100%);
}

.vjshi-main > .vjshi-hero:first-child {
    margin-top: calc(-1 * var(--vjshi-fixed-header-offset));
    padding-top: var(--vjshi-fixed-header-offset);
}

.vjshi-main > .vjshi-article-hero:first-child {
    margin-top: calc(-1 * var(--vjshi-fixed-header-offset));
    padding-top: var(--vjshi-fixed-header-offset);
}

.vjshi-main > .vjshi-article-hero:first-child .vjshi-article-hero__breadcrumb-wrap {
    top: calc(var(--vjshi-fixed-header-offset) + 28px);
}

.vjshi-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.vjshi-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vjshi-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 24px;
    max-width: 690px;
}

.vjshi-hero__title {
    font-size: 52px;
    font-weight: 800;
    color: #0D0D0D;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.vjshi-hero__desc {
    font-size: 16px;
    color: rgba(13, 13, 13, 0.8);
    line-height: 1.7;
    margin-bottom: 32px;
}

.vjshi-hero__btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--vjshi-primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    transition: all var(--vjshi-transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.vjshi-hero__btn:hover {
    background: var(--vjshi-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
    color: #ffffff;
}

/* ============================================
   Popular Posts - 热门文章（可滑动）
   ============================================ */
.vjshi-popular {
    padding: 48px 0;
    background: var(--vjshi-bg-gray);
    overflow-x: hidden;
}

.vjshi-popular__slider {
    position: relative;
    overflow: visible;
}

.vjshi-popular .swiper-wrapper {
    align-items: stretch;
}

.vjshi-popular .swiper-slide {
    height: auto;
    padding: 12px 8px 16px;
    box-sizing: border-box;
}

.vjshi-popular__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: var(--vjshi-radius-lg);
    overflow: hidden;
    box-shadow: var(--vjshi-shadow);
    transition: all var(--vjshi-transition);
}

.vjshi-popular__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--vjshi-shadow-hover);
}

.vjshi-popular__thumb {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
    position: relative;
    overflow: hidden;
    background: #eee;
}

.vjshi-popular__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vjshi-popular__thumb-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
}

.vjshi-popular__card-title {
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--vjshi-text);
    line-height: 1.5;
    height: calc(15px * 1.5 * 2 + 28px);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vjshi-popular .swiper-button-prev,
.vjshi-popular .swiper-button-next {
    color: var(--vjshi-primary);
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vjshi-popular .swiper-button-prev::after,
.vjshi-popular .swiper-button-next::after {
    font-size: 16px;
    font-weight: 700;
}

/* ============================================
   Categories - 分类切换
   ============================================ */
.vjshi-blog-list {
    padding: 48px 0 80px;
}

.vjshi-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.vjshi-categories__item {
    display: inline-block;
    padding: 10px 24px;
    font-size: 15px;
    color: var(--vjshi-text-light);
    background: var(--vjshi-bg-gray);
    border-radius: 24px;
    transition: all var(--vjshi-transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.vjshi-categories__item:hover {
    color: var(--vjshi-primary);
    border-color: var(--vjshi-primary);
    background: #fff;
}

.vjshi-categories__item.active {
    color: #ffffff;
    background: var(--vjshi-primary);
    border-color: var(--vjshi-primary);
}

/* ============================================
   Posts Grid - 文章列表
   ============================================ */
.vjshi-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    min-height: 200px;
}

.vjshi-post-card {
    background: #fff;
    border-radius: var(--vjshi-radius-lg);
    overflow: hidden;
    box-shadow: var(--vjshi-shadow);
    transition: all var(--vjshi-transition);
}

.vjshi-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--vjshi-shadow-hover);
}

.vjshi-post-card__link {
    display: block;
}

.vjshi-post-card__thumb {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 固定 16:9 比例 */
    overflow: hidden;
    background: #eee;
}

.vjshi-post-card__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--vjshi-transition);
}

.vjshi-post-card:hover .vjshi-post-card__thumb img {
    transform: scale(1.05);
}

.vjshi-post-card__thumb-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
}

.vjshi-post-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    font-size: 12px;
    color: #fff;
    background: var(--vjshi-primary);
    border-radius: 12px;
}

.vjshi-post-card__body {
    padding: 20px;
}

.vjshi-post-card__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--vjshi-text);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vjshi-post-card__excerpt {
    font-size: 14px;
    color: var(--vjshi-text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vjshi-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: var(--vjshi-text-muted);
    font-size: 16px;
}

/* ============================================
   Pagination - 翻页
   ============================================ */
.vjshi-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.vjshi-pagination button,
.vjshi-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    color: var(--vjshi-text-light);
    background: #fff;
    border: 1px solid var(--vjshi-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--vjshi-transition);
}

.vjshi-pagination button:hover:not(:disabled),
.vjshi-pagination__page:hover {
    border-color: var(--vjshi-primary);
    color: var(--vjshi-primary);
}

.vjshi-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.vjshi-pagination__page.active {
    background: var(--vjshi-primary);
    border-color: var(--vjshi-primary);
    color: #fff;
}

.vjshi-pagination__pages {
    display: flex;
    gap: 6px;
}

/* ============================================
   Article Hero - 文章标题区
   ============================================ */
.vjshi-article-hero {
    position: relative;
    background: #1a1a2e url("../images/article_banner.webp") center/cover no-repeat;
    padding: 72px 0 84px;
}

.vjshi-article-hero__shell {
    width: min(100%, var(--vjshi-container));
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 220px;
    padding-top: 92px;
}

.vjshi-article-hero__breadcrumb-wrap {
    position: absolute;
    top: 28px;
    left: 24px;
    right: 24px;
    z-index: 1;
}

.vjshi-article-hero__content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    align-self: center;
    text-align: center;
}

.vjshi-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 8px;
    margin-bottom: 0;
    font-size: 14px;
    flex-wrap: wrap;
}

.vjshi-breadcrumb a {
    color: rgba(13, 13, 13, 0.7);
    transition: color var(--vjshi-transition);
}

.vjshi-breadcrumb a:hover {
    color: var(--vjshi-primary);
}

.vjshi-breadcrumb__sep {
    color: rgba(13, 13, 13, 0.4);
    font-size: 12px;
}

.vjshi-breadcrumb__current {
    color: rgba(13, 13, 13, 0.5);
}

.vjshi-article-hero__title {
    font-size: 52px;
    font-weight: 800;
    color: #0D0D0D;
    line-height: 1.25;
    margin-bottom: 20px;
}

.vjshi-article-hero__desc {
    font-size: 16px;
    color: rgba(13, 13, 13, 0.8);
    line-height: 1.8;
    max-width: 720px;
    margin: 0 auto;
}

/* ============================================
   Article Layout - 文章内容 + 侧边目录
   ============================================ */
.vjshi-article-content {
    padding: 48px 0 64px;
}

.vjshi-article-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
}

/* TOC - 侧边目录 */
.vjshi-toc {
    position: sticky;
    top: calc(var(--vjshi-fixed-header-offset) + 16px);
}

.vjshi-toc__inner {
    background: var(--vjshi-bg-gray);
    border-radius: var(--vjshi-radius-lg);
    padding: 24px;
}

.vjshi-toc__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--vjshi-text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--vjshi-primary);
}

.vjshi-toc__nav a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: var(--vjshi-text-light);
    border-left: 2px solid transparent;
    padding-left: 12px;
    transition: all var(--vjshi-transition);
    line-height: 1.5;
}

.vjshi-toc__nav a:hover,
.vjshi-toc__nav a.active {
    color: var(--vjshi-primary);
    border-left-color: var(--vjshi-primary);
}

/* Article Body */
.vjshi-article {
    min-width: 0;
}

.vjshi-article__meta {
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--vjshi-text-muted);
}

.vjshi-article__meta time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vjshi-article__body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--vjshi-text);
}

.vjshi-article__body h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--vjshi-text);
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--vjshi-primary);
    position: relative;
    scroll-margin-top: calc(var(--vjshi-fixed-header-offset) + 24px);
}

.vjshi-article__body h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 60px;
    height: 3px;
    background: var(--vjshi-primary);
}

.vjshi-article__body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--vjshi-text);
    margin: 32px 0 16px;
    scroll-margin-top: calc(var(--vjshi-fixed-header-offset) + 24px);
}

.vjshi-article__body h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 12px;
    scroll-margin-top: calc(var(--vjshi-fixed-header-offset) + 24px);
}

.vjshi-article__body p {
    margin-bottom: 16px;
}

.vjshi-article__body img {
    border-radius: var(--vjshi-radius);
    margin: 24px 0;
}

.vjshi-article__body ul,
.vjshi-article__body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.vjshi-article__body ul {
    list-style: disc;
}

.vjshi-article__body ol {
    list-style: decimal;
}

.vjshi-article__body li {
    margin-bottom: 8px;
}

.vjshi-article__body blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: var(--vjshi-bg-gray);
    border-left: 4px solid var(--vjshi-primary);
    border-radius: 0 var(--vjshi-radius) var(--vjshi-radius) 0;
    font-style: italic;
    color: var(--vjshi-text-light);
}

.vjshi-article__body a {
    color: var(--vjshi-primary);
    text-decoration: underline;
}

.vjshi-article__body a:hover {
    color: var(--vjshi-primary-dark);
}

.vjshi-article__body pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 20px;
    border-radius: var(--vjshi-radius);
    overflow-x: auto;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.6;
}

.vjshi-article__body code {
    background: var(--vjshi-bg-gray);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.vjshi-article__body pre code {
    background: none;
    padding: 0;
}

.vjshi-article__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.vjshi-article__body th,
.vjshi-article__body td {
    padding: 12px 16px;
    border: 1px solid var(--vjshi-border);
    text-align: left;
}

.vjshi-article__body th {
    background: var(--vjshi-bg-gray);
    font-weight: 600;
}

/* ============================================
   CTA Banner
   ============================================ */
.vjshi-cta {
    padding: 64px 0;
    background: #f3f1ea url("../images/cta_banner.webp") center/cover no-repeat;
}

.vjshi-cta__inner {
    text-align: center;
    max-width: 730px;
    margin: 0 auto;
}

.vjshi-cta__title {
    font-size: 52px;
    font-weight: 800;
    color: #0D0D0D;
    margin-bottom: 16px;
}

.vjshi-cta__desc {
    font-size: 16px;
    color: rgba(13, 13, 13, 0.8);
    line-height: 1.7;
    margin-bottom: 32px;
}

.vjshi-cta__btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--vjshi-primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    transition: all var(--vjshi-transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.vjshi-cta__btn:hover {
    background: var(--vjshi-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
    color: #ffffff;
}

/* ============================================
   Related Posts - 相关文章
   ============================================ */
.vjshi-related {
    padding: 48px 0 64px;
    background: var(--vjshi-bg-gray);
}

.vjshi-related__slider {
    position: relative;
    overflow: visible;
}

.vjshi-related .swiper-wrapper {
    align-items: stretch;
}

.vjshi-related .swiper-slide {
    height: auto;
    padding: 12px 8px 16px;
    box-sizing: border-box;
}

.vjshi-related__card {
    display: block;
    background: #fff;
    border-radius: var(--vjshi-radius-lg);
    overflow: hidden;
    box-shadow: var(--vjshi-shadow);
    transition: all var(--vjshi-transition);
}

.vjshi-related__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.vjshi-related__thumb {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    overflow: hidden;
    background: #eee;
}

.vjshi-related__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vjshi-related__thumb-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
}

.vjshi-related__card-title {
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--vjshi-text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vjshi-related .swiper-button-prev,
.vjshi-related .swiper-button-next {
    color: var(--vjshi-primary);
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vjshi-related .swiper-button-prev::after,
.vjshi-related .swiper-button-next::after {
    font-size: 16px;
    font-weight: 700;
}

/* ============================================
   Footer - 与光厂主站一致
   ============================================ */
.vjshi-footer {
    font-size: 14px;
    color: #000;
}

.vjshi-footer__surface {
    background: #f5f5f5;
}

.vjshi-footer__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 44px;
    display: flex;
    justify-content: space-between;
    gap: 120px;
    width: 100%;
    box-sizing: border-box;
}

.vjshi-footer__brand {
    width: 400px;
    flex-shrink: 0;
}

.vjshi-footer__brand-copy svg {
    display: block;
}

.vjshi-footer__tagline {
    margin: 24px 0 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
}

.vjshi-footer__description {
    margin: 8px 0 0;
    color: #737373;
    font-size: 14px;
    line-height: 1.8;
}

.vjshi-footer__copyright {
    margin: 20px 0 0;
    color: #737373;
    font-size: 12px;
    line-height: 1;
}

.vjshi-footer__social {
    display: inline-grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-top: 48px;
}

.vjshi-footer__menus {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 32px;
    min-width: 0;
}

.vjshi-footer__group {
    flex: 1;
    min-width: 0;
}

.vjshi-footer__toggle {
    display: none;
}

.vjshi-footer__heading {
    display: block;
    margin: 0 0 24px;
    font-weight: 500;
    line-height: 1.5;
}

.vjshi-footer__chevron {
    display: none;
}

.vjshi-footer__panel {
    overflow: visible;
}

.vjshi-footer__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.vjshi-footer__link {
    cursor: pointer;
    text-decoration: none;
    color: #737373;
    transition: color 0.2s;
}

.vjshi-footer__link:hover {
    text-decoration: underline;
    color: #000;
}

.vjshi-footer__social-btn {
    height: 48px;
    width: 48px;
    background: #ededed;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    cursor: pointer;
    color: #000;
    border: none;
    transition: background 0.2s;
}

.vjshi-footer__social-btn:hover {
    background: #e0e0e0;
}

.vjshi-footer__social-btn svg {
    width: 20px;
    height: 20px;
}

.vjshi-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 28px;
    padding: 16px 20px;
    background: #000;
    color: #ccc;
    font-size: 14px;
}

.vjshi-footer__icp-link {
    cursor: pointer;
    text-decoration: none;
    color: #ccc;
    transition: color 0.2s;
}

.vjshi-footer__icp-link:hover {
    text-decoration: underline;
    color: #fff;
}

/* 回到顶部 */
.vjshi-back-to-top {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.vjshi-back-to-top:hover {
    background: #f5f5f5;
    color: #000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Loading State
   ============================================ */
.vjshi-loading {
    position: relative;
    pointer-events: none;
}

.vjshi-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

@keyframes vjshi-spin {
    to { transform: rotate(360deg); }
}

.vjshi-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--vjshi-border);
    border-top-color: var(--vjshi-primary);
    border-radius: 50%;
    animation: vjshi-spin 0.8s linear infinite;
    margin: 40px auto;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .vjshi-article-layout {
        grid-template-columns: 200px 1fr;
        gap: 32px;
    }

    .vjshi-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --vjshi-fixed-header-offset: 84px;
    }

    .vjshi-header__nav,
    .vjshi-header__actions {
        display: none !important;
    }

    .vjshi-header__mobile-toggle {
        display: flex;
    }

    .vjshi-header {
        padding: 0 20px;
        height: 68px;
    }

    .vjshi-header-spacer {
        height: 68px;
    }

    body.admin-bar .vjshi-header {
        top: 46px;
    }

    body.admin-bar .vjshi-header-spacer {
        height: 114px;
    }

    body.admin-bar {
        --vjshi-fixed-header-offset: 130px;
    }

    .vjshi-header.menu-open .vjshi-header__nav {
        display: block !important;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 16px 24px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid #e5e5e5;
    }

    .vjshi-header.menu-open .vjshi-header__nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .vjshi-hero {
        min-height: 280px;
    }

    .vjshi-hero__title {
        font-size: 28px;
    }

    .vjshi-hero__desc {
        font-size: 15px;
    }

    .vjshi-article-layout {
        grid-template-columns: 1fr;
    }

    .vjshi-toc {
        position: relative;
        top: auto;
        order: -1;
    }

    .vjshi-posts-grid {
        grid-template-columns: 1fr;
    }

    .vjshi-article-hero__title {
        font-size: 26px;
    }

    .vjshi-section-title {
        font-size: 22px;
    }

    .vjshi-footer__surface {
        background: #fff;
    }

    .vjshi-footer__container {
        padding: 0;
        display: block;
    }

    .vjshi-footer__brand {
        width: auto;
        padding: 40px 20px 0;
    }

    .vjshi-footer__tagline {
        font-size: 18px;
    }

    .vjshi-footer__social {
        display: grid;
        width: 100%;
        gap: 12px;
        margin-top: 40px;
        padding-bottom: 40px;
    }

    .vjshi-footer__social-btn {
        width: 52px;
        height: 52px;
    }

    .vjshi-footer__menus {
        display: block;
        gap: 0;
    }

    .vjshi-footer__group {
        border-bottom: 1px solid #ededed;
    }

    .vjshi-footer__group:last-child {
        border-bottom: 0;
    }

    .vjshi-footer__heading {
        margin: 0;
        padding: 16px 44px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
    }

    .vjshi-footer__chevron {
        display: block;
        transition: transform 0.3s ease;
    }

    .vjshi-footer__panel {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .vjshi-footer__toggle:checked + .vjshi-footer__heading .vjshi-footer__chevron {
        transform: rotate(180deg);
    }

    .vjshi-footer__toggle:checked + .vjshi-footer__heading + .vjshi-footer__panel {
        max-height: 220px;
    }

    .vjshi-footer__list {
        display: flex;
        flex-wrap: wrap;
        gap: 16px 28px;
        padding: 16px 44px;
        background: #f5f5f5;
    }

    .vjshi-footer__bottom {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
        padding: 16px 20px;
        text-align: center;
    }

    .vjshi-cta__title {
        font-size: 28px;
    }

    .vjshi-categories {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .vjshi-categories::-webkit-scrollbar {
        display: none;
    }

    .vjshi-categories__item {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .vjshi-footer__brand {
        padding-left: 20px;
        padding-right: 20px;
    }

    .vjshi-footer__heading,
    .vjshi-footer__list {
        padding-left: 20px;
        padding-right: 20px;
    }

    .vjshi-hero {
        min-height: 240px;
    }

    .vjshi-hero__title {
        font-size: 24px;
    }

    .vjshi-hero__btn {
        padding: 12px 32px;
        font-size: 14px;
    }

    .vjshi-cta__title {
        font-size: 24px;
    }

    .vjshi-post-card__body {
        padding: 16px;
    }

    .vjshi-post-card__title {
        font-size: 15px;
    }

    .vjshi-article__body h2 {
        font-size: 22px;
    }
}
