/* ------------------------------------
 * Typecho Default Theme
 *
 * @author  Typecho Team
 * @link  http://typecho.org/
 * @update  2013-10-28
 * --------------------------------- */

/* ---- 色彩令牌 ---- */
:root {
    /* 主色 - 金色/黄色 */
    --color-primary: #fdd220;
    --color-primary-dark: #ffbf00;
    --color-primary-light: #fff3d0;
    --color-primary-bg: rgba(253, 210, 32, 0.05);
    --color-primary-glow: rgba(253, 210, 32, 0.1);
    --color-primary-shadow: rgba(253, 210, 32, 0.4);

    /* 辅助色 - 蓝紫 */
    --color-accent-indigo: #6366f1;
    --color-accent-indigo-dark: #4f46e5;
    --color-accent-indigo-light: #e0e7ff;
    --color-accent-indigo-bg: rgba(99, 102, 241, 0.05);
    --color-accent-indigo-glow: rgba(99, 102, 241, 0.1);
    --color-accent-indigo-shadow: rgba(99, 102, 241, 0.4);

    /* 其他辅助色 */
    --color-accent-green: #10b981;
    --color-accent-green-dark: #059669;
    --color-accent-green-light: #d1fae5;
    --color-accent-green-bg: rgba(16, 185, 129, 0.05);
    --color-accent-green-glow: rgba(16, 185, 129, 0.1);
    --color-accent-green-shadow: rgba(16, 185, 129, 0.4);
    --color-accent-purple: #9b7fd4;
    --color-accent-purple-light: #f0ebfa;
    --color-accent-blue: #4a90d9;
    --color-accent-orange: #f5a623;
    --color-accent-red: #ff6b6b;
    --color-accent-red-light: #fee2e2;

    /* 危险操作色（删除等破坏性操作） */
    --color-danger: #ff4d4f;
    --color-danger-dark: #d9363e;
    --color-danger-light: #fff1f0;
    --color-danger-shadow: rgba(255, 77, 79, 0.3);

    /* 背景色 */
    --color-bg-page: #fdfdfd;
    --color-bg-hero: #fef8e7;
    --color-bg-tools: #fdfdfd;
    --color-bg-pricing: #fef8e7;
    --color-bg-footer: #fffdf5;
    --color-bg-gray: #f5f5f5;
    --color-bg-hover: #f5f5f5;

    /* 文字色 */
    --color-text-primary: #333;
    --color-text-secondary: #5a5a5a;
    --color-text-tertiary: #999999;
    --color-text-white: #ffffff;
    --color-text-yellow: #ffbf00;

    /* 边框色 */
    --color-border: #fbe699;
    --color-border-light: #e5e5e5;
}

/* ---- 字体令牌 ---- */
:root {
    --font-family-base:
        "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 13px;
    --font-size-base: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 22px;
    --font-size-2xl: 28px;
    --font-size-3xl: 36px;
}

/* ---- 间距令牌 ---- */
:root {
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 20px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
}

/* ---- 圆角令牌 ---- */
:root {
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 999px;
}

/* ---- 阴影令牌 ---- */
:root {
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ---- 过渡令牌 ---- */
:root {
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
}

/* ---- 布局令牌 ---- */
:root {
    --max-width: 1440px;
    --navbar-height: clamp(
        50px,
        calc((110 - 50) / (1440 - 750) * 100vw),
        110px
    );
    --navbar-height-subPage: 50px;
}

/* ---- 基础重置 ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-base);
    color: var(--color-text-primary);
    background: var(--color-bg-page);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul,
ol {
    list-style: none;
}

/* ==================== 响应式 ==================== */

.PC-show {
    display: block;
}
.H5-show {
    display: none;
}

/* 媒体查询 */
@media screen and (max-width: 768px) {
    .PC-show {
        display: none;
    }
    .H5-show {
        display: block;
    }
}

/* ------------------
 * Global style
 * --------------- */
a {
    color: var(--color-text-primary);
    text-decoration: none;
}
a:hover,
a:active {
    color: var(--color-text-yellow);
}
pre,
code {
    background: #f3f3f3;
    font-family:
        Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
    font-size: 0.92857em;
}
code {
    padding: 2px 4px;
    color: #b94a48;
}
pre {
    padding: 8px;
    overflow: auto;
    max-height: 400px;
}
pre code {
    display: block;
    padding: 3px;
    color: #444;
}

blockquote {
    margin: 1em 0;
    padding-left: 1.5em;
    border-left: 4px solid #eee;
    color: #666;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

th,
td {
    border: 1px solid #ddd;
    padding: 8px;
}

th {
    background: #f5f5f5;
}

/* ------------------
 * Comments
 * --------------- */
.comment-list {
    list-style: none;
    padding: 0;
    font-size: var(--font-size-xs);
}

.comment-list li {
    margin-bottom: 20px;
}

/* ------------------
 * Layout
 * --------------- */
.main-container {
    margin: 0 auto;
    margin-top: var(--navbar-height);
    padding: 20px;
    display: flex;
    gap: 20px;
}

.detail-main-container {
    margin: 0 auto;
    margin-top: var(--navbar-height);
    padding: 20px;
    max-width: var(--max-width);
}

/* 文章详情页内容布局 */
.post-content-wrapper {
    display: flex;
    gap: 20px;
}

.post-content-main {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.05);
}

.post-content-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* 评论区占位（与文章内容同宽） */
.post-comments-main {
    flex: 1;
    min-width: 0;
}

.post-comments-main #comments {
    margin-bottom: 0;
}

.content-main {
    flex: 1;
    min-width: 0;
}

.sidebar-left {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #fdd220;
}

/* 分类列表 */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-item a {
    display: block;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
    color: #5a5a5a;
}

.category-item a:hover,
.category-item.current a {
    background: rgba(253, 210, 32, 0.05);
    color: #fdd220;
}

.category-count {
    margin-left: 4px;
    font-size: 13px;
    color: #999;
}

.category-item a:hover .category-count,
.category-item.current a .category-count {
    color: #fdd220;
}

/* 推荐列表 */
.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recommend-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    color: #5a5a5a;
}

.recommend-item a:hover {
    background: rgba(253, 210, 32, 0.05);
    color: #fdd220;
}

.recommend-title {
    font-size: 14px;
    flex: 1;
    margin-right: 8px;
}

.recommend-date {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

.no-recommend {
    color: #999;
    font-size: 13px;
    text-align: center;
    padding: 16px;
}
/* 文章列表 - 自适应瀑布流布局（CSS Columns）
   卡片宽度由列宽决定（width:100%），杜绝临界宽度溢出重叠；
   容器 max-width 与列数精确匹配，保证卡片 500px、间距 20px、左对齐 */
.article-list {
    column-count: 1;
    column-gap: 20px;
    max-width: 500px;
}

.article-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width: 100%;
    break-inside: avoid;
    margin-bottom: 20px;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card-link:hover {
    color: inherit;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0;
}

.card-title {
    color: #333;
}

.article-card:hover .card-title {
    color: #fdd220;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #999;
}

.card-excerpt {
    font-size: 14px;
    color: #5a5a5a;
    line-height: 1.8;
    margin-top: 20px;
}

/* 摘要内保留的正文格式 */
.card-excerpt p {
    margin-bottom: 5px;
}

.card-excerpt hr {
    height: 0;
    border: 1px dotted #e5e5e5;
    margin: 10px 0;
}

.card-excerpt p:last-child {
    margin-bottom: 0;
}

.card-excerpt h2,
.card-excerpt h3,
.card-excerpt h4,
.card-excerpt h5,
.card-excerpt h6 {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.card-excerpt ol {
    line-height: 1.5;
    margin-bottom: 10px;
    margin-left: 1.2em;
    list-style: decimal;
}

.card-excerpt ul {
    line-height: 1.5;
    margin-bottom: 10px;
    margin-left: 1.2em;
    list-style: disc;
}

.card-excerpt img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
}

.card-excerpt blockquote {
    margin: 10px 0;
    padding: 4px 0 4px 14px;
    border-left: 3px solid #fdd220;
    color: #777;
}

.card-excerpt pre {
    margin: 10px 0;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow-x: auto;
}

.card-excerpt code {
    background: #f3f3f3;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.card-excerpt pre code {
    background: none;
    padding: 0;
}

.card-excerpt strong,
.card-excerpt b {
    font-weight: 700;
    color: #333;
}

.card-excerpt table {
    margin: 10px 0;
    font-size: 13px;
    display: block;
    overflow-x: auto;
}

/* Banner 图样式 */
.card-banner {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.card-banner img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .card-banner img {
    transform: scale(1.05);
}

/* 分页导航 */
.page-navigator {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.page-navigator a {
    display: inline-block;
    padding: 8px 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    color: #5a5a5a;
    transition: all 0.2s ease;
}

.page-navigator a:hover,
.page-navigator .current a {
    background: #fdd220;
    border-color: #fdd220;
    color: #fff;
}

/* ------------------
 * 面包屑导航
 * --------------- */
.breadcrumb-container {
    margin: 0 0 20px 10px;
}

.breadcrumb {
    font-size: 13px;
    color: #999;
}

.breadcrumb a {
    color: #5a5a5a;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #fdd220;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

/* ------------------
 * 文章详情页
 * --------------- */
.post-header {
    margin-bottom: 40px;
    text-align: center;
}

.post-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    color: #333;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}

.post-content {
    margin-bottom: 40px;
    font-size: var(--font-size-base);
    line-height: 2;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 700;
    color: #333;
}

.post-content p {
    margin-bottom: 16px;
}

.post-content hr {
    height: 0;
    border: 1px dotted #e5e5e5;
    margin: 10px 0;
}

.post-content img {
    margin: 20px 0;
    border-radius: 12px;
    max-width: 100%;
    height: auto;
}

.post-content pre {
    background: #f5f5f5;
    padding: 16px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 20px 0;
}

.post-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.9em;
}

.post-tags {
    margin-bottom: 0;
}

.post-tags a {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(253, 210, 32, 0.1);
    color: #fdd220;
    border-radius: 999px;
    font-size: 13px;
    margin-right: 8px;
    transition: all 0.2s ease;
}

.post-tags a:hover {
    background: #fdd220;
    color: #fff;
}

/* ------------------
 * 评论区（盖楼式布局）
 * --------------- */
#comments {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

#comments h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

/* 主评论（楼层） */
.comment-floor {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid #e8eaed;
}

.comment-floor-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-floor-number {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.comment-children .comment-floor {
    background: none;
}

.comment-author-name {
    color: #333;
}

.comment-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.comment-content {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: #333;
    margin-bottom: 12px;
}

/* 待审核评论提示 */
.comment-moderation {
    font-size: 13px;
    color: var(--color-text-yellow);
    background: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    display: inline-block;
}

.comment-actions {
    display: flex;
    gap: 16px;
}

.comment-reply-link a {
    font-size: 13px;
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s;
}

.comment-reply-link a:hover {
    color: #004c99;
    text-decoration: underline;
}

/* 回复项（盖楼） */
.comment-reply-item {
    background: #fff;
    border: 1px solid #e8eaed;
    border-left: 3px solid #0066cc;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
}

.comment-reply-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.comment-reply-author {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.comment-reply-time {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}

.comment-reply-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 8px;
}

.comment-reply-actions {
    display: flex;
}

/* 盖楼区域（子评论容器） */
.comment-children {
    padding-left: 20px;
    border-left: 2px dashed #e8eaed;
}

.comment-children-inner {
    padding: 10px 0 0 10px;
}

.comment-list-children {
    margin-bottom: 0;
}

.comment-list-children li {
    margin-bottom: 10px;
}

.comment-list-children li:last-child {
    border-bottom: none;
}

/* 博主标识 */
.comment-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #fdd220 0%, #f9c000 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    line-height: 1.2;
}

.comment-badge-author {
    background: linear-gradient(135deg, #fdd220 0%, #f9c000 100%);
}

/* 评论者身份标识 */
.comment-by-author .comment-author-name,
.comment-by-author .comment-reply-author {
    color: #0066cc;
}

/* 评论表单 */
.respond {
    margin-top: 40px;
}

.respond h3 {
    margin-bottom: 20px;
}

.comment-form p {
    margin-bottom: 16px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #f9f9f9;
    color: #333;
    font-size: 14px;
    transition: all 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #fdd220;
    outline: none;
    background: #fff;
}

.comment-form textarea {
    resize: vertical;
    min-height: 80px;
}

.comment-form button[type="submit"],
.comment-form button#submit-button {
    padding: 12px 32px;
    background: #fdd220;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-width: 120px;
}

.comment-form button[type="submit"]:hover,
.comment-form button#submit-button:hover {
    background: #ffbf00;
    transform: translateY(-2px);
}

.comment-form button#submit-button.loading {
    cursor: not-allowed;
    opacity: 0.8;
}

.comment-form button#submit-button.loading:hover {
    transform: none;
}

/* Loading 动画 */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ------------------
 * 页脚
 * --------------- */
.footer {
    background: var(--color-bg-tools);
    position: relative;
    box-shadow: 0 -1px 20px rgba(0, 0, 0, 0.05);
}

.footer-wave {
    width: 100%;
    display: block;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(var(--space-xl));
    padding-bottom: 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-2xl);
}

.footer-brand img {
    width: calc(141px);
}

.footer-links {
    display: flex;
    gap: var(--space-4xl);
    flex: 1;
    justify-content: center;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-col h5 {
    font-size: var(--font-size-md);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.footer-col a {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--color-text-primary);
}

.footer-bottom {
    padding: var(--space-lg);
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
}

.footer-cta {
    position: relative;
    margin-top: -35px;
}

.footer-cta img {
    width: calc(170px);
}

.copyright {
    padding: var(--space-lg);
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
}

.copyright-img {
    max-width: 100%;
    height: auto;
    opacity: 0.6;
}

.login-footer-bar[data-v-0fdb2a4a] {
    background: #ffffff80;
    color: #999;
    font-size: 13px;
    padding: 20px;
    text-align: center;
}

/* ------------------
 * 响应式布局
 * --------------- */
@media screen and (max-width: 1020px) {
    .main-container {
        gap: 20px;
    }

    .sidebar-left {
        width: 240px;
    }
}

/* ===== 瀑布流列数断点（内容区 = 窗口宽 - 360：侧边栏280 + 容器padding40 + flex gap40）
   N 列所需宽度 = N×500 + (N-1)×20 ===== */
@media screen and (min-width: 1380px) {
    .article-list {
        column-count: 2;
        max-width: 1020px;
    }
}

@media screen and (min-width: 1900px) {
    .article-list {
        column-count: 3;
        max-width: 1540px;
    }
}

@media screen and (min-width: 2420px) {
    .article-list {
        column-count: 4;
        max-width: 2060px;
    }
}

@media screen and (max-width: 768px) {
    /* ===== 导航栏适配 ===== */

    /* ===== 首页两栏布局适配 ===== */
    .main-container {
        flex-direction: column !important;
        padding: 16px;
    }

    .sidebar-left,
    .content-main {
        width: 100% !important;
        flex: none !important;
    }

    .sidebar-widget {
        position: static;
        margin-bottom: 20px;
    }

    /* 调整顺序：先分类和推荐，再文章列表 */
    .sidebar-left {
        order: 1;
    }

    .content-main {
        order: 2;
    }

    /* 瀑布流：单列，卡片填满内容区 */
    .article-list {
        column-count: 1;
        max-width: none;
    }

    /* ===== 文章详情页适配 ===== */
    .main {
        padding: 16px;
    }

    .breadcrumb-container {
        margin-bottom: 16px;
    }

    .post-layout,
    .main > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .post-content,
    article.post[style*="flex"] {
        width: 100% !important;
        flex: none !important;
    }

    aside[style*="width: 280px"] {
        width: 100% !important;
        flex: none !important;
    }

    .post-title {
        font-size: 20px;
    }

    .post-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .post-header,
    .post-content,
    .post-footer {
        padding: 20px;
    }

    /* ===== 评论表单适配 ===== */
    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"],
    .comment-form textarea {
        width: 100%;
    }

    /* ===== 页脚适配 ===== */
    .footer {
        margin-top: 32px;
        padding: 32px 0 20px;
    }

    .footer-inner {
        padding: 0 16px;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding-bottom: 20px;
    }

    .footer-brand {
        order: 1;
    }

    .footer-links {
        order: 2;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .footer-cta {
        order: 3;
    }

    .footer-cta img {
        width: 120px;
    }

    .footer-col h5 {
        font-size: 14px;
    }

    .footer-col a {
        font-size: 12px;
    }

    /* ===== 文章卡片适配 ===== */
    .card-title {
        font-size: 18px;
    }

    .card-meta {
        flex-wrap: wrap;
        gap: 12px;
    }

    .card-banner {
        height: 200px;
    }

    .card-content {
        padding: 16px;
    }
}

@media screen and (max-width: 480px) {
    .navbar {
        height: 60px;
    }

    .main-container {
        padding: 12px;
    }

    .card-content {
        padding: 16px;
    }

    .post-title {
        font-size: 20px;
    }

    .breadcrumb-container {
        padding: 12px 16px;
    }
}

/* ------------------
 * Navbar
 * --------------- */
/* ============================================
   导航栏公共样式
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-height);
    backdrop-filter: blur(12px);
}

.navbar-inner {
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 calc(var(--space-lg));
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.05);
}

.nav-logo img {
    width: 100%;
    height: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-3xl);
    position: relative;
    transform-origin: right center;
}

.nav-link {
    font-size: var(--font-size-xl);
    color: var(--color-text-primary);
    position: relative;
    padding: var(--space-xs) 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link.active {
    color: var(--color-text-yellow);
}

.nav-link:hover,
.nav-link.active {
    font-weight: 600;
}

.nav-indicator {
    position: absolute;
    bottom: -8px;
    left: 19px;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    transition: transform var(--transition-base);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    transform-origin: right center;
}

.nav-points,
.nav-profile {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-lg);
    color: var(--color-text-primary);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    cursor: pointer;
    width: 160px;
    height: 50px;
    box-sizing: border-box;
    padding: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-points {
    background-color: #fdf4d9;
}

.nav-points:hover,
.nav-profile:hover {
    border-color: var(--color-primary);
    font-weight: 600;
}

.nav-arrow {
    font-size: var(--font-size-base);
    color: var(--color-text-tertiary);
}

.nav-icon {
    width: 27px;
}

.return-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-md);
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1;
}

.return-btn:hover {
    color: var(--color-primary);
}

.return-arrow {
    width: 20px;
    height: 20px;
}

.subPage_nav {
    border-bottom: 1px solid var(--color-border-light);
}

.subPage_nav .navbar {
    height: var(--navbar-height-subPage);
    position: static;
}

.subPage_nav .nav-logo {
    width: 100px;
}

.subPage_nav .nav-link {
    font-size: var(--font-size-base);
}

.subPage_nav .nav-indicator {
    bottom: -11px;
    left: 8px;
    width: 30px;
    height: 3px;
    border-radius: 0;
}

/* 媒体查询 */
@media screen and (min-width: 768px) {
    .subPage_nav .nav-points,
    .subPage_nav .nav-profile {
        font-size: var(--font-size-base);
        width: 140px;
        height: 34px;
    }

    .subPage_nav .nav-icon {
        width: 16px;
    }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-logo {
        width: 100px;
    }

    .navbar-inner {
        padding: 0 7px;
    }

    .nav-actions {
        transform: scale(0.7);
        transform-origin: right center;
    }
}

/* ------------------
 * Footer
 * --------------- */
#footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #999;
    font-size: 0.9em;
}
