/* ================================================================
   style.css - 路丁路笔记 完整样式表
   路径: skin/ding/css/style.css
   ================================================================ */

/* ================================================================
   全局修复：防止横向滚动
   ================================================================ */
html,
body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}
* {
    max-width: 100vw;
    box-sizing: border-box;
}

/* ================================================================
   Skip Link - 键盘用户辅助（完全隐藏，仅聚焦时显示）
   ================================================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #0284c7;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 0.5rem 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.15s ease;
}
.skip-link:focus {
    top: 0;
}
.dark .skip-link {
    background: #0d9488;
}
@media (prefers-reduced-motion: reduce) {
    .skip-link {
        transition: none !important;
    }
}

/* ================================================================
   本地字体定义（9 个字重）
   ================================================================ */
@font-face {
    font-family: 'Alibaba PuHuiTi';
    src: url('../fonts/AlibabaPuHuiTi-3-35-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Alibaba PuHuiTi';
    src: url('../fonts/AlibabaPuHuiTi-3-45-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Alibaba PuHuiTi';
    src: url('../fonts/AlibabaPuHuiTi-3-55-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Alibaba PuHuiTi';
    src: url('../fonts/AlibabaPuHuiTi-3-65-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Alibaba PuHuiTi';
    src: url('../fonts/AlibabaPuHuiTi-3-75-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Alibaba PuHuiTi';
    src: url('../fonts/AlibabaPuHuiTi-3-85-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Alibaba PuHuiTi';
    src: url('../fonts/AlibabaPuHuiTi-3-95-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Alibaba PuHuiTi';
    src: url('../fonts/AlibabaPuHuiTi-3-105-Heavy.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Alibaba PuHuiTi';
    src: url('../fonts/AlibabaPuHuiTi-3-115-Black.woff2') format('woff2');
    font-weight: 950;
    font-style: normal;
    font-display: swap;
}

/* ================================================================
   路丁路笔记 - CSS 变量
   ================================================================ */
:root {
    /* ★ 主体背景色（浅色模式） */
    --body-bg: #f1f5f9;

    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    --card-radius: 1rem;
    --heading-color: #1f2937;
    --sub-color: #6b7280;
    --divider-color: #d1d5db;
    --body-color: #374151;
    --border-light: #e5e7eb;
    --theme-color: #0d9488;

    --quote-standard-border: #0284c7;
    --quote-standard-bg: rgba(2, 132, 199, 0.04);
    --quote-standard-color: #4b5563;
    --quote-marks-border: #0d9488;
    --quote-marks-bg: rgba(13, 148, 136, 0.05);
    --quote-marks-color: #374151;
    --quote-marks-mark-color: #0d9488;
    --quote-highlight-bg: #f0fdf4;
    --quote-highlight-border: #bbf7d0;
    --quote-highlight-color: #166534;
    --quote-highlight-icon: #059669;
    --quote-side-bg: #f8fafc;
    --quote-side-border: #e5e7eb;
    --quote-side-color: #1f2937;
    --quote-side-label: #0284c7;

    --link-color: #0284c7;
    --link-hover: #0369a1;

    /* ★ 页脚背景色 */
    --footer-bg: #ffffff;
    --footer-border: #e5e7eb;
}

.dark {
    /* ★ 主体背景色（深色模式） */
    --body-bg: #0f172a;

    --card-bg: #1f2937;
    --card-border: #374151;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --heading-color: #f3f4f6;
    --sub-color: #9ca3af;
    --divider-color: #4b5563;
    --body-color: #e5e7eb;
    --border-light: #374151;
    --theme-color: #14b8a6;

    --link-color: #7dd3fc;
    --link-hover: #bae6fd;

    --quote-standard-color: #d1d5db;
    --quote-marks-color: #d1d5db;
    --quote-marks-mark-color: #14b8a6;
    --quote-highlight-bg: #064e3b;
    --quote-highlight-border: #0d9488;
    --quote-highlight-color: #a7f3d0;
    --quote-highlight-icon: #34d399;
    --quote-side-bg: #1e293b;
    --quote-side-border: #374151;
    --quote-side-color: #e5e7eb;
    --quote-side-label: #7dd3fc;

    --footer-bg: #1f2937;
    --footer-border: #374151;
}

/* ================================================================
   主体背景色（使用 CSS 变量）
   ================================================================ */
body {
    background-color: var(--body-bg);
    font-family: 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: background-color 0.3s, color 0.3s;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* ===== 页脚背景色 ===== */
footer {
    background-color: var(--footer-bg) !important;
    border-color: var(--footer-border) !important;
}

/* ===== 板块行间距 ===== */
.section-gap {
    margin-top: 0.4rem;
}
@media (max-width: 640px) {
    .section-gap {
        margin-top: 0.25rem;
    }
}

/* ===== 所有卡片容器透明化 ===== */
.block-wrapper,
.city-intro,
.town-box,
.partner-box,
.town-section-bottom,
.city-showcase-wrapper,
.content-page-wrapper,
.related-section-wrapper,
.friend-links,
.comment-section-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* ===== 各容器内边距 ===== */
.block-wrapper { padding: 0.5rem 1rem; }
.city-intro { padding: 0.5rem 1rem; }
.town-box { padding: 0.5rem 0.75rem 0.4rem 0.75rem; }
.partner-box {
    padding: 0.5rem 0.75rem 0.4rem 0.75rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: -16px;
}
.town-section-bottom { padding: 0.5rem 1rem; }
.city-showcase-wrapper {
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.content-page-wrapper { padding: 0.75rem 1.25rem; }
.related-section-wrapper { padding: 0.5rem 1rem; }
.friend-links { padding: 0.4rem 0.75rem; }
.comment-section-wrapper { padding: 0.5rem 1rem 0.75rem 1rem; }

@media (max-width: 640px) {
    .block-wrapper { padding: 0.35rem 0.6rem; }
    .city-intro { padding: 0.35rem 0.6rem; }
    .town-box { padding: 0.35rem 0.5rem 0.25rem 0.5rem; }
    .partner-box {
        padding: 0.35rem 0.5rem 0.25rem 0.5rem;
        margin-bottom: 0;
    }
    .town-section-bottom { padding: 0.35rem 0.6rem; }
    .city-showcase-wrapper { padding: 0.35rem 0.6rem; }
    .content-page-wrapper { padding: 0.5rem 0.75rem; }
    .related-section-wrapper { padding: 0.35rem 0.6rem; }
    .friend-links { padding: 0.25rem 0.5rem; }
    .comment-section-wrapper { padding: 0.35rem 0.6rem 0.5rem 0.6rem; }
}

/* ===== 合作伙伴网格 - 底部对齐 ===== */
.partner-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 0.75rem;
    align-content: start;
}

/* ===== 更多链接 - 三角形加大 ===== */
.more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: #0284c7;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    padding: 0.15rem 0.3rem;
    border-radius: 0.25rem;
    flex-shrink: 0;
    background: transparent;
    border: none;
    white-space: nowrap;
}
.more-link:hover {
    color: #0369a1;
    transform: translateX(4px);
    background: rgba(2, 132, 199, 0.04);
}
.dark .more-link {
    color: #7dd3fc;
}
.dark .more-link:hover {
    color: #bae6fd;
    background: rgba(125, 211, 252, 0.06);
}
.more-link .arrow-triangle {
    font-size: 0.85rem;
    line-height: 1;
    color: #0d9488;
    transition: transform 0.25s ease;
    display: inline-block;
    flex-shrink: 0;
    font-weight: 400;
    vertical-align: middle;
}
.dark .more-link .arrow-triangle {
    color: #14b8a6;
}
.more-link:hover .arrow-triangle {
    transform: translateX(4px);
}
@media (max-width: 640px) {
    .more-link {
        font-size: 0.7rem;
        padding: 0.1rem 0.2rem;
    }
    .more-link .arrow-triangle {
        font-size: 0.7rem;
    }
}

/* ===== 标题、分割线、颜色统一 ===== */
.city-intro .intro-title,
.town-title,
.partner-title,
.city-showcase-title,
.rec-title,
.section-header .section-title,
.content-page-wrapper .article-title,
.related-section-wrapper .rec-title {
    color: var(--heading-color);
}

.city-intro .intro-title .intro-sub,
.town-title .town-sub,
.partner-title .partner-sub,
.city-showcase-title .city-showcase-sub,
.rec-title .rec-sub,
.section-header .section-title .title-sub,
.content-page-wrapper .article-title .title-sub {
    font-size: 0.95rem;
    color: var(--sub-color);
    letter-spacing: 0.2px;
}

.city-intro .intro-title .title-divider,
.town-title .title-divider,
.partner-title .title-divider,
.city-showcase-title .title-divider,
.rec-title .title-divider,
.section-header .section-title .title-divider {
    color: var(--divider-color);
}

/* ===== 通用标题行 ===== */
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--border-light);
}

.city-intro .intro-header {
    margin-bottom: 0.5rem;
}

.town-header {
    flex-wrap: wrap;
    margin-bottom: 0.875rem;
}

.partner-header {
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.city-showcase-header {
    flex-wrap: nowrap;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.rec-title,
.section-header,
.related-section-wrapper .rec-title,
.friend-links .friend-header,
.content-page-wrapper .article-title {
    border-bottom-color: var(--border-light);
}

.city-intro .intro-body p,
.content-page-wrapper .article-body,
.content-page-wrapper .article-body p {
    color: var(--body-color);
}

/* ===== 引用块 ===== */
blockquote {
    border-left-color: var(--quote-standard-border);
    background: var(--quote-standard-bg);
    color: var(--quote-standard-color);
}
blockquote.quote-with-marks {
    border-left-color: var(--quote-marks-border);
    background: var(--quote-marks-bg);
    color: var(--quote-marks-color);
}
blockquote.quote-with-marks::before,
blockquote.quote-with-marks::after {
    color: var(--quote-marks-mark-color);
}
blockquote.quote-highlight {
    background: var(--quote-highlight-bg);
    border-color: var(--quote-highlight-border);
    color: var(--quote-highlight-color);
}
blockquote.quote-highlight .highlight-icon {
    color: var(--quote-highlight-icon);
}
blockquote.quote-side {
    background: var(--quote-side-bg);
    border-color: var(--quote-side-border);
    color: var(--quote-side-color);
}
blockquote.quote-side .side-label {
    color: var(--quote-side-label);
}

/* ===== 基础样式 ===== */
.card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.15);
}
.hero-search input {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
    padding-right: 5.5rem;
}
.dark .hero-search input {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}
.hero-search input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}
.dark .hero-search input:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: #7dd3fc;
    box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.25);
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.site-logo {
    height: 60px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}
@media (max-width: 640px) {
    .site-logo {
        height: 45px;
    }
    .brand-wrapper {
        flex-direction: column;
    }
    .brand-wrapper .site-logo {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    .hero-search input {
        padding-right: 4.5rem;
        font-size: 0.95rem;
        padding-top: 0.9rem;
        padding-bottom: 0.9rem;
        padding-left: 1.2rem;
    }
}

.search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    padding: 0.3rem 0.5rem;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    border-radius: 50%;
    gap: 4px;
}
.search-btn .search-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.3px;
}
.search-btn:hover {
    color: #ffffff;
    transform: scale(1.05);
}
.search-btn:hover .search-label {
    color: #ffffff;
}
.search-btn:active {
    transform: scale(0.92);
}
@media (max-width: 480px) {
    .search-btn .search-label {
        font-size: 0.65rem;
    }
    .search-btn {
        font-size: 1rem;
        padding: 0.2rem 0.3rem;
    }
    .hero-search input {
        padding-right: 4rem;
    }
}

.clear-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    padding: 0.2rem 0.3rem;
    transition: color 0.2s, opacity 0.25s, width 0.25s ease;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    width: 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
}
.clear-btn.visible {
    opacity: 1;
    pointer-events: auto;
    width: 1.5rem;
}
.clear-btn:hover {
    color: #ffffff;
}
.search-actions {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 16px;
    z-index: 100;
    display: none;
    transition: opacity 0.2s;
    max-height: none;
    overflow: visible;
}
.dark .search-dropdown {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
}
.search-dropdown.show {
    display: block;
}
.search-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
@media (max-width: 640px) {
    .search-dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 400px) {
    .search-dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.search-dropdown-item {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    color: #374151;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    gap: 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.03);
}
.search-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #0284c7;
}
.dark .search-dropdown-item {
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.04);
}
.dark .search-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #7dd3fc;
}
.search-dropdown-item i {
    color: #9ca3af;
    font-size: 0.75rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.search-dropdown-item .hot-tag-icon {
    color: #ef4444;
}
.dark .search-dropdown-item .hot-tag-icon {
    color: #f87171;
}

.feature-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}
.feature-nav a {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s;
}
.feature-nav a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.dark .feature-nav a {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.06);
}
.dark .feature-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}
@media (max-width: 480px) {
    .feature-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    .feature-nav a {
        text-align: center;
        padding: 0.5rem 0.5rem;
        font-size: 0.85rem;
    }
}

.city-intro .intro-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 0.6rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--border-light);
}
.city-intro .intro-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.city-intro .intro-title i {
    color: #0284c7;
    font-size: 1.4rem;
}
.city-intro .intro-body p {
    font-size: 0.95rem;
    line-height: 1.9;
    text-indent: 2em;
    margin-bottom: 0.5rem;
}
.city-intro .intro-body p:last-child {
    margin-bottom: 0;
}
.city-intro .intro-body .highlight {
    color: #0284c7;
    font-weight: 700;
}
.dark .city-intro .intro-body .highlight {
    color: #7dd3fc;
}
@media (max-width: 640px) {
    .city-intro .intro-title {
        font-size: 1.2rem;
    }
    .city-intro .intro-title .intro-sub {
        font-size: 0.8rem;
    }
    .city-intro .intro-body p {
        font-size: 0.9rem;
        line-height: 1.8;
    }
    .section-header .section-title .title-sub {
        font-size: 0.8rem;
    }
}

.town-title,
.partner-title,
.city-showcase-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    font-weight: 700;
}
.town-title i,
.partner-title i,
.city-showcase-title i {
    color: #0284c7;
    font-size: 1.4rem;
}
.town-title .town-sub,
.partner-title .partner-sub,
.city-showcase-title .city-showcase-sub {
    font-size: 0.95rem;
    font-weight: 400;
}
@media (max-width: 640px) {
    .town-title,
    .partner-title,
    .city-showcase-title {
        font-size: 1rem;
    }
    .town-title .town-sub,
    .partner-title .partner-sub,
    .city-showcase-title .city-showcase-sub {
        font-size: 0.8rem;
    }
}

.town-links {
    display: grid;
    gap: 0.6rem;
}
.town-links a {
    text-align: center;
    border-radius: 0.4rem;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}
.town-box .town-links {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    flex: 1;
    align-content: start;
}
.town-box .town-links a {
    padding: 0.35rem 0.15rem;
    font-size: 0.75rem;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}
.dark .town-box .town-links a {
    color: #e5e7eb;
    background: #2d3748;
    border-color: #4a5568;
}
.town-box .town-links a:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    transform: translateY(-2px);
}
.dark .town-box .town-links a:hover {
    background: #38bdf8;
    color: #ffffff;
    border-color: #38bdf8;
}

.town-section-bottom .town-links {
    grid-template-columns: repeat(10, 1fr);
    max-width: 100%;
}
.town-section-bottom .town-links a {
    padding: 0.3rem 0.15rem;
    font-size: 0.75rem;
    white-space: nowrap;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}
.dark .town-section-bottom .town-links a {
    color: #e5e7eb;
    background: #2d3748;
    border-color: #4a5568;
}
.town-section-bottom .town-links a:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    transform: translateY(-2px);
}
.dark .town-section-bottom .town-links a:hover {
    background: #38bdf8;
    color: #ffffff;
    border-color: #38bdf8;
}
@media (max-width: 1024px) {
    .town-section-bottom .town-links {
        grid-template-columns: repeat(5, 1fr);
    }
}
@media (max-width: 640px) {
    .town-section-bottom .town-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.3rem;
    }
    .town-box .town-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.3rem;
    }
    .town-box .town-links a {
        font-size: 0.7rem;
        padding: 0.25rem 0.1rem;
    }
}
@media (max-width: 400px) {
    .town-section-bottom .town-links {
        grid-template-columns: repeat(2, 1fr);
    }
    .town-box .town-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

.partner-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 0.75rem;
    align-content: start;
}
.partner-item a {
    display: block;
    width: 100%;
    max-width: 170px;
    height: auto;
    text-decoration: none;
    line-height: 0;
    flex-shrink: 0;
}
.partner-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 170/60;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}
@media (max-width: 640px) {
    .partner-item a {
        max-width: 130px;
    }
    .partner-grid {
        gap: 0.4rem 0.5rem;
    }
}
@media (max-width: 480px) {
    .partner-item a {
        max-width: 100px;
    }
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== 城市印象 - 一体化轮播 ===== */
.city-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
    flex: 1;
    min-height: 260px;
}
.showcase-image {
    flex: 1 1 48%;
    min-width: 0;
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #d1d5db;
    flex: 1;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    min-height: 180px;
}
.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ★ 一体化幻灯片：图片 + 标题 ★ */
.carousel-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
}
.carousel-slide .slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
.carousel-slide .slide-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.carousel-slide .slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    pointer-events: none;
}
.carousel-slide .slide-caption a {
    display: block;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    transition: color 0.2s;
}
.carousel-slide .slide-caption a:hover {
    color: #7dd3fc;
}
@media (max-width: 640px) {
    .carousel-slide .slide-caption {
        padding: 12px 14px;
    }
    .carousel-slide .slide-caption a {
        font-size: 0.85rem;
    }
}
@media (max-width: 480px) {
    .carousel-slide .slide-caption {
        padding: 10px 12px;
    }
    .carousel-slide .slide-caption a {
        font-size: 0.75rem;
    }
}

.carousel-controls-right {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
}
.carousel-arrow,
.carousel-pause-btn {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0;
    width: auto;
    height: auto;
    color: rgba(255, 255, 255, 0.70);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: none !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
    padding: 4px 6px;
}
.carousel-arrow i,
.carousel-pause-btn i {
    font-size: 0.85rem;
}
.carousel-arrow:hover,
.carousel-pause-btn:hover {
    color: #ffffff;
    transform: scale(1.15);
}
.carousel-arrow:active,
.carousel-pause-btn:active {
    transform: scale(0.92);
}
.carousel-pause-btn[aria-pressed="true"] {
    color: rgba(255, 255, 255, 0.45);
}
.carousel-pause-btn[aria-pressed="true"]:hover {
    color: #ffffff;
}
.dark .carousel-arrow,
.dark .carousel-pause-btn {
    color: rgba(255, 255, 255, 0.55);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.40);
}
.dark .carousel-arrow:hover,
.dark .carousel-pause-btn:hover {
    color: #ffffff;
}
.dark .carousel-pause-btn[aria-pressed="true"] {
    color: rgba(255, 255, 255, 0.30);
}
.dark .carousel-pause-btn[aria-pressed="true"]:hover {
    color: #ffffff;
}

.showcase-list {
    flex: 1 1 48%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 0.05rem;
    padding: 0.05rem 0;
    counter-reset: showcase-item 0;
    min-width: 0;
    overflow: visible;
    height: auto;
}
.showcase-list-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.3rem;
    border-radius: 0.3rem;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-light);
    counter-increment: showcase-item;
    overflow: hidden;
    flex-shrink: 0;
}
.showcase-list-item:last-child {
    border-bottom: 1px solid var(--border-light);
}
.showcase-list-item:hover {
    background: rgba(2, 132, 199, 0.06);
}
.dark .showcase-list-item:hover {
    background: rgba(125, 211, 252, 0.08);
}
.showcase-list-item::before {
    content: counter(showcase-item, decimal-leading-zero);
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--divider-color);
    flex-shrink: 0;
    min-width: 20px;
    text-align: center;
    line-height: 1.4;
    transition: color 0.2s;
}
.showcase-list-item:hover::before {
    color: #0284c7;
}
.dark .showcase-list-item:hover::before {
    color: #7dd3fc;
}
.showcase-list-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
}
.showcase-list-title:hover {
    color: #0284c7;
}
.dark .showcase-list-title:hover {
    color: #7dd3fc;
}
.showcase-list-desc {
    display: block;
    font-size: 0.65rem;
    color: #9ca3af;
    line-height: 1.3;
    margin-top: 0.05rem;
    white-space: normal;
    word-break: break-word;
}
.dark .showcase-list-desc {
    color: #6b7280;
}

@media (orientation: landscape) and (max-width: 768px) {
    .city-showcase {
        flex-direction: row;
        flex-wrap: nowrap;
        height: auto;
        min-height: auto;
        gap: 0.75rem;
    }
    .showcase-image {
        flex: 0 0 55%;
        min-width: 0;
    }
    .showcase-list {
        flex: 1;
        width: auto;
        gap: 0.03rem;
        padding: 0.05rem 0;
        justify-content: flex-start;
        height: auto;
        min-height: 0;
    }
    .showcase-list-item {
        padding: 0.15rem 0.2rem;
        border-bottom-width: 1px;
    }
    .showcase-list-title {
        font-size: 0.7rem;
        line-height: 1.3;
    }
    .showcase-list-desc {
        font-size: 0.55rem;
        line-height: 1.3;
    }
    .showcase-list-item::before {
        font-size: 0.5rem;
        min-width: 16px;
    }
    .carousel-container {
        min-height: 140px;
    }
    .carousel-slide .slide-caption {
        padding: 10px 12px;
    }
    .carousel-slide .slide-caption a {
        font-size: 0.8rem;
    }
}
@media (max-width: 768px) {
    .city-showcase {
        flex-direction: column;
        height: auto;
        min-height: auto;
        gap: 0.75rem;
    }
    .showcase-image {
        flex: none;
        width: 100%;
    }
    .carousel-container {
        min-height: 180px;
    }
    .showcase-list {
        flex: none;
        width: 100%;
        gap: 0.03rem;
        padding: 0.1rem 0;
    }
    .showcase-list-item {
        padding: 0.25rem 0.2rem;
    }
    .showcase-list-title {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    .showcase-list-desc {
        font-size: 0.65rem;
        line-height: 1.3;
    }
    .showcase-list-item::before {
        font-size: 0.6rem;
        min-width: 18px;
    }
}
@media (max-width: 480px) {
    .showcase-list-item {
        padding: 0.2rem 0.15rem;
    }
    .showcase-list-title {
        font-size: 0.75rem;
    }
    .showcase-list-desc {
        font-size: 0.6rem;
    }
    .showcase-list-item::before {
        font-size: 0.55rem;
        min-width: 16px;
    }
}

.friend-links .friend-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.3rem 0.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--border-light);
}
.friend-links .friend-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.dark .friend-links .friend-title {
    color: #9ca3af;
}
.friend-links .friend-title i {
    font-size: 0.7rem;
    color: #9ca3af;
}
.dark .friend-links .friend-title i {
    color: #6b7280;
}
.friend-links .friend-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}
.friend-links .friend-list a {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    background: #f3f4f6;
    text-decoration: none;
    transition: all 0.25s;
    border: 1px solid #e5e7eb;
}
.friend-links .friend-list a:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}
.dark .friend-links .friend-list a {
    color: #d1d5db;
    background: #374151;
    border-color: #4b5563;
}
.dark .friend-links .friend-list a:hover {
    background: #38bdf8;
    color: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
}
@media (max-width: 640px) {
    .friend-links .friend-list a {
        padding: 0.15rem 0.5rem;
        font-size: 0.7rem;
    }
}

.content-page-wrapper .article-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}
@media (max-width: 640px) {
    .content-page-wrapper .article-title {
        font-size: 1.5rem;
    }
}
.content-page-wrapper .article-body {
    font-size: 1rem;
    line-height: 1.9;
}
.content-page-wrapper .article-body p {
    margin-bottom: 0.75rem;
    text-indent: 2em;
}
.content-page-wrapper .article-body p:last-of-type {
    margin-bottom: 0;
}
.content-page-wrapper .article-body h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 1.2rem 0 0.5rem 0;
    text-indent: 0;
}
.content-page-wrapper .article-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 1rem 0 0.4rem 0;
    text-indent: 0;
}
.content-page-wrapper .article-body ul,
.content-page-wrapper .article-body ol {
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}
.content-page-wrapper .article-body li {
    margin-bottom: 0.2rem;
}
.content-page-wrapper .article-body figure {
    margin: 0.8rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f3f4f6;
    cursor: pointer;
    position: relative;
}
.dark .content-page-wrapper .article-body figure {
    background: #2d3748;
}
.content-page-wrapper .article-body figure img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s;
}
.content-page-wrapper .article-body figure:hover img {
    opacity: 0.92;
}
.content-page-wrapper .article-body figure .zoom-hint {
    position: absolute;
    bottom: 0.8rem;
    right: 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.dark .content-page-wrapper .article-body figure .zoom-hint {
    background: rgba(0, 0, 0, 0.6);
}
.content-page-wrapper .article-body figure:hover .zoom-hint {
    opacity: 1;
}

.content-page-wrapper .article-body blockquote {
    border-left: 4px solid var(--quote-standard-border);
    padding: 0.4rem 0.8rem 0.4rem 1.2rem;
    margin: 0.8rem 0;
    background: var(--quote-standard-bg);
    border-radius: 0.25rem;
    color: var(--quote-standard-color);
    text-indent: 0;
}
.content-page-wrapper .article-body blockquote p {
    text-indent: 0;
    margin-bottom: 0;
}
.content-page-wrapper .article-body blockquote.quote-with-marks {
    position: relative;
    border-left: 4px solid var(--quote-marks-border);
    padding: 0.6rem 1.2rem 0.6rem 2rem;
    margin: 0.8rem 0;
    background: var(--quote-marks-bg);
    border-radius: 0.25rem;
    color: var(--quote-marks-color);
    text-indent: 0;
}
.content-page-wrapper .article-body blockquote.quote-with-marks::before {
    content: "\201C";
    position: absolute;
    top: -0.1rem;
    left: 0.4rem;
    font-size: 2.2rem;
    color: var(--quote-marks-mark-color);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1;
}
.content-page-wrapper .article-body blockquote.quote-with-marks::after {
    content: "\201D";
    position: absolute;
    bottom: -0.5rem;
    right: 0.8rem;
    font-size: 2.2rem;
    color: var(--quote-marks-mark-color);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1;
}
.content-page-wrapper .article-body blockquote.quote-with-marks p {
    text-indent: 0;
    margin-bottom: 0;
    font-style: italic;
}
.content-page-wrapper .article-body blockquote.quote-with-marks cite {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.8rem;
    font-style: normal;
    color: #6b7280;
    text-align: right;
}
.dark .content-page-wrapper .article-body blockquote.quote-with-marks cite {
    color: #9ca3af;
}
.content-page-wrapper .article-body blockquote.quote-highlight {
    padding: 0.7rem 1.2rem;
    margin: 0.8rem 0;
    background: var(--quote-highlight-bg);
    border-radius: 0.5rem;
    border: 1px solid var(--quote-highlight-border);
    color: var(--quote-highlight-color);
    text-indent: 0;
}
.content-page-wrapper .article-body blockquote.quote-highlight p {
    text-indent: 0;
    margin-bottom: 0;
}
.content-page-wrapper .article-body blockquote.quote-highlight .highlight-icon {
    display: inline-block;
    margin-right: 0.4rem;
    color: var(--quote-highlight-icon);
}
.content-page-wrapper .article-body blockquote.quote-side {
    float: right;
    width: 40%;
    padding: 0.6rem 1rem;
    margin: 0.4rem 0 0.8rem 1.2rem;
    background: var(--quote-side-bg);
    border-radius: 0.5rem;
    border: 1px solid var(--quote-side-border);
    color: var(--quote-side-color);
    text-indent: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.content-page-wrapper .article-body blockquote.quote-side p {
    text-indent: 0;
    margin-bottom: 0;
}
.content-page-wrapper .article-body blockquote.quote-side .side-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--quote-side-label);
    margin-bottom: 0.2rem;
}
@media (max-width: 768px) {
    .content-page-wrapper .article-body blockquote.quote-side {
        float: none;
        width: 100%;
        margin: 0.6rem 0;
    }
}
.content-page-wrapper .article-body .clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.content-page-wrapper .article-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    margin-top: 1rem;
    padding-top: 0;
    border-top: none;
}
.content-page-wrapper .article-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: all 0.2s;
}
.dark .content-page-wrapper .article-pagination .page-link {
    color: #d1d5db;
    background: #2d3748;
    border-color: #4a5568;
}
.content-page-wrapper .article-pagination .page-link:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}
.dark .content-page-wrapper .article-pagination .page-link:hover {
    background: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
}
.content-page-wrapper .article-pagination .page-link.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    cursor: default;
}
.dark .content-page-wrapper .article-pagination .page-link.active {
    background: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
}
.content-page-wrapper .article-pagination .page-link.disabled {
    color: #9ca3af;
    cursor: default;
    pointer-events: none;
}
.dark .content-page-wrapper .article-pagination .page-link.disabled {
    color: #4b5563;
}
.content-page-wrapper .article-pagination .page-info {
    font-size: 0.75rem;
    color: #6b7280;
    padding: 0 0.4rem;
}
.dark .content-page-wrapper .article-pagination .page-info {
    color: #9ca3af;
}

.content-page-wrapper .article-bottom-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem 1rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    transition: background 0.3s, border-color 0.3s;
}
.dark .content-page-wrapper .article-bottom-bar {
    background: #1e293b;
    border-color: #374151;
}
.content-page-wrapper .article-copyright {
    flex: 1;
    min-width: 200px;
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.6;
    text-align: left;
}
.dark .content-page-wrapper .article-copyright {
    color: #9ca3af;
}
.content-page-wrapper .article-copyright .link {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.content-page-wrapper .article-copyright .link:hover {
    color: #0284c7;
    text-decoration: underline;
}
.dark .content-page-wrapper .article-copyright .link:hover {
    color: #7dd3fc;
}
.content-page-wrapper .article-footer-meta {
    display: flex;
    gap: 0.8rem;
    margin-top: 0;
    padding-top: 0;
    border: none;
    font-size: 0.8rem;
    color: #6b7280;
    flex-shrink: 0;
}
.dark .content-page-wrapper .article-footer-meta {
    color: #9ca3af;
}
.content-page-wrapper .article-footer-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}
.content-page-wrapper .article-footer-meta .meta-item i {
    font-size: 0.7rem;
    color: #9ca3af;
}
.dark .content-page-wrapper .article-footer-meta .meta-item i {
    color: #6b7280;
}
@media (max-width: 768px) {
    .content-page-wrapper .article-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        padding: 0.4rem 0.6rem;
    }
    .content-page-wrapper .article-copyright {
        font-size: 0.75rem;
        text-align: left;
        min-width: auto;
        width: 100%;
    }
    .content-page-wrapper .article-footer-meta {
        font-size: 0.75rem;
        width: 100%;
        justify-content: flex-start;
    }
}

.related-section-wrapper .rec-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    font-size: 1.2rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 0.75rem;
}
.related-section-wrapper .rec-title .rec-title-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem 0.5rem;
}
.related-section-wrapper .rec-title i {
    color: #0284c7;
}
.dark .related-section-wrapper .rec-title i {
    color: #7dd3fc;
}
.related-section-wrapper .rec-title a {
    display: inline-block;
    background: #f3f4f6;
    color: #0284c7;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: 0.25rem;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.4;
    flex-shrink: 0;
}
.related-section-wrapper .rec-title a:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}
.dark .related-section-wrapper .rec-title a {
    background: #374151;
    color: #7dd3fc;
    border-color: #4b5563;
}
.dark .related-section-wrapper .rec-title a:hover {
    background: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
}
@media (max-width: 640px) {
    .related-section-wrapper .rec-title .rec-title-left {
        font-size: 1rem;
    }
    .related-section-wrapper .rec-title .rec-sub {
        font-size: 0.75rem;
    }
    .related-section-wrapper .rec-title a {
        font-size: 0.55rem;
        padding: 0.1rem 0.4rem;
    }
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 0.75rem;
}
@media (max-width: 1024px) {
    .recommend-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
}
@media (max-width: 640px) {
    .recommend-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 0.5rem;
    }
}

article.rec-card {
    background: var(--card-bg);
    border-radius: 0.6rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}
article.rec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
article.rec-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s ease-in-out infinite;
    display: block;
    flex-shrink: 0;
}
.dark article.rec-card img {
    background: linear-gradient(90deg, #2d3748 25%, #374151 50%, #2d3748 75%);
}
.related-section-wrapper article.rec-card img {
    height: 100px;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
    article.rec-card img {
        animation: none !important;
        background: #e5e7eb;
    }
    .dark article.rec-card img {
        background: #2d3748;
    }
}
article.rec-card .rec-body {
    padding: 0.5rem 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
article.rec-card .rec-body .rec-tags {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
    flex-shrink: 0;
}
article.rec-card .rec-body .rec-tag {
    display: inline-block;
    background: #ef4444;
    color: #fff;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 0.05rem 0.5rem;
    border-radius: 0.2rem;
    text-transform: uppercase;
}

/* ★ 分类标签链接 - 无需 class ★ */
article.rec-card .rec-body .rec-tags a {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.55rem;
    font-weight: 500;
    padding: 0.05rem 0.5rem;
    border-radius: 0.2rem;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.2s;
}
article.rec-card .rec-body .rec-tags a:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}
.dark article.rec-card .rec-body .rec-tags a {
    background: #374151;
    color: #9ca3af;
    border-color: #4b5563;
}
.dark article.rec-card .rec-body .rec-tags a:hover {
    background: #38bdf8;
    color: #ffffff;
    border-color: #38bdf8;
}

article.rec-card .rec-body h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 0.15rem 0;
    line-height: 1.4;
    flex: 0 0 auto;
}
article.rec-card .rec-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
article.rec-card .rec-body h3 a:hover {
    color: #0284c7;
}
.dark article.rec-card .rec-body h3 a:hover {
    color: #7dd3fc;
}
article.rec-card .rec-body p {
    font-size: 0.75rem;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 0 0 auto;
    margin: 0;
}
.dark article.rec-card .rec-body p {
    color: #9ca3af;
}
@media (max-width: 640px) {
    article.rec-card img {
        height: 100px;
    }
    .related-section-wrapper article.rec-card img {
        height: 80px;
    }
    article.rec-card .rec-body {
        padding: 0.4rem 0.5rem;
    }
    .recommend-grid {
        grid-auto-rows: auto;
    }
}
@media (max-width: 400px) {
    article.rec-card img {
        height: 80px;
    }
    .related-section-wrapper article.rec-card img {
        height: 60px;
    }
}

.masonry {
    column-count: 3;
    column-gap: 1rem;
}
.masonry .card {
    break-inside: avoid;
    margin-bottom: 1rem;
    width: 100%;
    display: inline-block;
}
.masonry .card .card-image {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    background-color: #d1d5db;
    display: block;
}

/* ★ 慈溪记忆 - 分类标签（如"老街"）- 链接无需 class ★ */
.card-tag-wrap a {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    transition: all 0.2s ease;
    background: #e5e7eb;
    color: #1f2937;
    text-decoration: none;
}
.card-tag-wrap a:hover {
    background: #d1d5db;
    color: #111827;
}
.dark .card-tag-wrap a {
    background: #374151;
    color: #d1d5db;
}
.dark .card-tag-wrap a:hover {
    background: #4b5563;
    color: #f3f4f6;
}

/* ★ 慈溪记忆 - 话题标签（如"#慈溪"）- 链接无需 class ★ */
.card-hashtag-wrap a {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    background: #f3f4f6;
    color: #4b5563;
    text-decoration: none;
}
.card-hashtag-wrap a:hover {
    background: #e5e7eb;
    color: #1f2937;
}
.dark .card-hashtag-wrap a {
    background: #374151;
    color: #9ca3af;
}
.dark .card-hashtag-wrap a:hover {
    background: #4b5563;
    color: #e5e7eb;
}

@media (max-width: 768px) {
    .masonry {
        column-count: 2;
        column-gap: 0.75rem;
    }
    .masonry .card {
        margin-bottom: 0.75rem;
    }
}
@media (max-width: 480px) {
    .masonry {
        column-count: 1;
        column-gap: 0;
    }
    .masonry .card {
        margin-bottom: 0.75rem;
    }
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 1.5rem;
    padding-top: 0;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    background: #ffffff;
    border: 1px solid #d1d5db;
    text-decoration: none;
    transition: all 0.15s;
    min-width: 2.2rem;
    height: 2.2rem;
    cursor: pointer;
}
.pagination a:first-child,
.pagination span:first-child {
    border-radius: 0.375rem 0 0 0.375rem;
}
.pagination a:last-child,
.pagination span:last-child {
    border-radius: 0 0.375rem 0.375rem 0;
}
.pagination a:not(:first-child),
.pagination span:not(:first-child) {
    border-left: none;
}
.pagination a.thisclass,
.pagination span.thisclass,
.pagination .active {
    color: #ffffff;
    background: #0284c7;
    border-color: #0284c7;
    position: relative;
    z-index: 1;
}
.pagination a.disabled,
.pagination span.disabled,
.pagination .disabled,
.pagination span:not([class]) {
    color: #9ca3af;
    cursor: default;
}
.pagination a.disabled:hover,
.pagination span.disabled:hover,
.pagination .disabled:hover,
.pagination span:not([class]):hover {
    background: #ffffff;
}
.pagination a:hover:not(.thisclass):not(.disabled),
.pagination span:hover:not(.thisclass):not(.disabled) {
    background: #f3f4f6;
}
.dark .pagination a,
.dark .pagination span {
    color: #d1d5db;
    background: #1f2937;
    border-color: #4b5563;
}
.dark .pagination a.thisclass,
.dark .pagination span.thisclass,
.dark .pagination .active {
    color: #ffffff;
    background: #38bdf8;
    border-color: #38bdf8;
}
.dark .pagination a.disabled,
.dark .pagination span.disabled,
.dark .pagination .disabled,
.dark .pagination span:not([class]) {
    color: #6b7280;
}
.dark .pagination a.disabled:hover,
.dark .pagination span.disabled:hover,
.dark .pagination .disabled:hover,
.dark .pagination span:not([class]):hover {
    background: #1f2937;
}
.dark .pagination a:hover:not(.thisclass):not(.disabled),
.dark .pagination span:hover:not(.thisclass):not(.disabled) {
    background: #374151;
}
@media (max-width: 640px) {
    .pagination a,
    .pagination span {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        min-width: 1.8rem;
        height: 1.8rem;
    }
}

.section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 0.8rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--border-light);
}
.section-header .section-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.section-header .section-title i {
    color: #0284c7;
    font-size: 1.4rem;
}
@media (max-width: 640px) {
    .section-header .section-title {
        font-size: 1.2rem;
    }
    .section-header .section-title .title-sub {
        font-size: 0.8rem;
    }
}

.story-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #ffffff;
    background: #0d9488;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    flex-shrink: 0;
    border: none;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}
.story-link:hover {
    background: #0f766e;
    transform: translateX(4px);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
}
.dark .story-link {
    background: #14b8a6;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
}
.dark .story-link:hover {
    background: #2dd4bf;
    color: #0f172a;
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.4);
}
.story-link i {
    font-size: 0.8rem;
    transition: transform 0.25s ease;
}
.story-link:hover i {
    transform: translateX(4px);
}
@media (max-width: 640px) {
    .story-link {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
}

.ldl-rec-block {
    background: transparent;
    padding: 0;
}
.ldl-rec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
@media (max-width: 640px) {
    .ldl-rec-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}
.ldl-rec-item {
    position: relative;
    background: #f3f4f6;
    border-radius: 0.4rem;
    overflow: hidden;
    transition: background 0.2s;
    border: 1px solid #e5e7eb;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}
.dark .ldl-rec-item {
    background: #1f2937;
    border-color: #374151;
}
.ldl-rec-item:hover {
    background: #e5e7eb;
}
.dark .ldl-rec-item:hover {
    background: #2d3748;
}
.ldl-rec-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ldl-rec-content img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}
.ldl-rec-content a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
.ldl-rec-tag {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 0.5rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.55);
    padding: 0.05rem 0.4rem;
    border-radius: 0.2rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    user-select: none;
    z-index: 1;
    text-transform: uppercase;
}
.dark .ldl-rec-tag {
    background: rgba(255, 255, 255, 0.2);
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.05);
}

.recommend-section {
    margin-bottom: 0;
}
.recommend-section .rec-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--heading-color);
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 0.75rem;
}
.recommend-section .rec-title .rec-title-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem 0.5rem;
}
.recommend-section .rec-title i {
    color: #ef4444;
}
.recommend-section .rec-title .title-divider {
    color: var(--divider-color);
}
.recommend-section .rec-title .rec-sub {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--sub-color);
    letter-spacing: 0.2px;
}
@media (max-width: 640px) {
    .recommend-section .rec-title .rec-title-left {
        font-size: 1rem;
    }
    .recommend-section .rec-title .rec-sub {
        font-size: 0.75rem;
    }
}

/* ================================================================
   评论板块样式（对接帝国CMS评论系统）
   ================================================================ */
.comment-section-wrapper .comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 0.75rem;
}
.comment-section-wrapper .comment-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--heading-color);
}
.comment-section-wrapper .comment-title i {
    color: #0284c7;
    font-size: 1.2rem;
}
.comment-section-wrapper .comment-title .comment-count {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--sub-color);
    margin-left: 0.2rem;
}
.comment-section-wrapper .comment-title .comment-count::before {
    content: "(";
}
.comment-section-wrapper .comment-title .comment-count::after {
    content: ")";
}

.comment-list {
    margin-bottom: 1.25rem;
}
.comment-item {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    gap: 0.75rem;
    transition: background 0.2s;
}
.comment-item:hover {
    background: rgba(0, 0, 0, 0.02);
}
.dark .comment-item:hover {
    background: rgba(255, 255, 255, 0.03);
}
.comment-item:last-child {
    border-bottom: none;
}
.comment-avatar {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    user-select: none;
}
.dark .comment-avatar {
    background: linear-gradient(135deg, #14b8a6, #2dd4bf);
}
.comment-body {
    flex: 1;
    min-width: 0;
}
.comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem 0.6rem;
    margin-bottom: 0.15rem;
}
.comment-author {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--heading-color);
}
.comment-time {
    font-size: 0.7rem;
    color: var(--sub-color);
}
.comment-text {
    font-size: 0.9rem;
    color: var(--body-color);
    line-height: 1.6;
    word-break: break-word;
}
.comment-text p {
    margin: 0;
}

.comment-form {
    background: var(--card-bg);
    border-radius: 0.6rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    transition: background 0.3s, border-color 0.3s;
}
.dark .comment-form {
    background: #1e293b;
    border-color: #374151;
}
.comment-form-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.6rem;
}
.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
}
@media (max-width: 480px) {
    .comment-form-row {
        grid-template-columns: 1fr;
    }
}
.comment-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.comment-form-group label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--sub-color);
    letter-spacing: 0.3px;
}
.comment-form-group input,
.comment-form-group textarea {
    padding: 0.4rem 0.6rem;
    border-radius: 0.4rem;
    border: 1px solid var(--border-light);
    background: var(--card-bg);
    color: var(--body-color);
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}
.dark .comment-form-group input,
.dark .comment-form-group textarea {
    background: #2d3748;
    border-color: #4b5563;
    color: #e5e7eb;
}
.comment-form-group input:focus,
.comment-form-group textarea:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.dark .comment-form-group input:focus,
.dark .comment-form-group textarea:focus {
    border-color: #7dd3fc;
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.15);
}
.comment-form-group textarea {
    resize: vertical;
    min-height: 70px;
}
.comment-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.4rem;
    flex-wrap: wrap;
}
.comment-form-actions .form-hint {
    font-size: 0.65rem;
    color: var(--sub-color);
    flex: 1;
}
.comment-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 1.2rem;
    border-radius: 0.4rem;
    border: none;
    background: #0d9488;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s;
    font-family: inherit;
}
.comment-submit-btn:hover {
    background: #0f766e;
}
.comment-submit-btn:active {
    transform: scale(0.95);
}
.dark .comment-submit-btn {
    background: #14b8a6;
    color: #0f172a;
}
.dark .comment-submit-btn:hover {
    background: #2dd4bf;
}
.comment-submit-btn i {
    font-size: 0.7rem;
}

@media (max-width: 640px) {
    .comment-section-wrapper .comment-title {
        font-size: 1rem;
    }
    .comment-item {
        padding: 0.4rem 0.5rem;
        gap: 0.5rem;
    }
    .comment-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    .comment-author {
        font-size: 0.8rem;
    }
    .comment-text {
        font-size: 0.8rem;
    }
    .comment-form {
        padding: 0.6rem 0.75rem;
    }
    .comment-form-row {
        gap: 0.4rem;
    }
}

/* ===== 页脚样式 ===== */
footer {
    background-color: var(--footer-bg) !important;
    border-color: var(--footer-border) !important;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #374151;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
    position: relative;
}
.footer-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.footer-social-btn i {
    font-size: 0.9rem;
}
.footer-social-btn .social-label {
    font-size: 0.6rem;
    letter-spacing: 0.2px;
}
.footer-social-btn.wechat {
    color: #07c160;
    border-color: rgba(7, 193, 96, 0.25);
    background: rgba(7, 193, 96, 0.06);
}
.footer-social-btn.wechat:hover {
    background: #07c160;
    color: #ffffff;
    border-color: #07c160;
    box-shadow: 0 4px 14px rgba(7, 193, 96, 0.3);
}
.dark .footer-social-btn.wechat {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.2);
    background: rgba(52, 211, 153, 0.06);
}
.dark .footer-social-btn.wechat:hover {
    background: #34d399;
    color: #0f172a;
    border-color: #34d399;
}
.footer-social-btn.weibo {
    color: #e6162d;
    border-color: rgba(230, 22, 45, 0.20);
    background: rgba(230, 22, 45, 0.04);
}
.footer-social-btn.weibo:hover {
    background: #e6162d;
    color: #ffffff;
    border-color: #e6162d;
    box-shadow: 0 4px 14px rgba(230, 22, 45, 0.3);
}
.dark .footer-social-btn.weibo {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.15);
    background: rgba(248, 113, 113, 0.04);
}
.dark .footer-social-btn.weibo:hover {
    background: #e6162d;
    color: #ffffff;
    border-color: #e6162d;
}
.footer-social-btn.theme-footer {
    color: #6b7280;
    border-color: rgba(107, 114, 128, 0.2);
    background: rgba(107, 114, 128, 0.06);
}
.footer-social-btn.theme-footer:hover {
    background: #6b7280;
    color: #ffffff;
    border-color: #6b7280;
    box-shadow: 0 4px 14px rgba(107, 114, 128, 0.3);
}
.dark .footer-social-btn.theme-footer {
    color: #9ca3af;
    border-color: rgba(156, 163, 175, 0.2);
    background: rgba(156, 163, 175, 0.06);
}
.dark .footer-social-btn.theme-footer:hover {
    background: #9ca3af;
    color: #0f172a;
    border-color: #9ca3af;
}
.footer-social-btn.theme-footer .theme-icon {
    transition: transform 0.4s ease;
}
.footer-social-btn.theme-footer:hover .theme-icon {
    transform: rotate(180deg);
}

.footer-link {
    color: #6b7280;
    transition: color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.footer-link:hover {
    color: #0d9488;
}
.dark .footer-link {
    color: #9ca3af;
}
.dark .footer-link:hover {
    color: #2dd4bf;
}
.footer-link i {
    color: #0d9488;
    font-size: 0.8rem;
    width: 1.1rem;
    text-align: center;
    flex-shrink: 0;
}
.dark .footer-link i {
    color: #14b8a6;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1f2937;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dark .footer-heading {
    color: #f3f4f6;
}
.footer-heading i {
    color: #0d9488;
    font-size: 0.9rem;
}
.dark .footer-heading i {
    color: #14b8a6;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr 0.9fr;
    gap: 1.5rem;
}

.nav-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.2rem 1rem;
}
.nav-grid-2col li {
    list-style: none;
}

.about-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.2rem 1rem;
}
.about-grid-2col li {
    list-style: none;
}
.about-grid-2col a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}
.about-grid-2col a:hover {
    color: #0d9488;
}
.dark .about-grid-2col a {
    color: #9ca3af;
}
.dark .about-grid-2col a:hover {
    color: #2dd4bf;
}
.about-grid-2col .user-center {
    font-weight: 700;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.contact-row .sep {
    color: #d1d5db;
    font-size: 0.7rem;
}
.dark .contact-row .sep {
    color: #4b5563;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 2rem;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    .nav-grid-2col,
    .about-grid-2col {
        grid-template-columns: 1fr 1fr;
        gap: 0.2rem 0.5rem;
        text-align: center;
        max-width: 280px;
        margin: 0 auto;
    }
    .nav-grid-2col li,
    .about-grid-2col li {
        text-align: center;
    }
    .nav-grid-2col a,
    .about-grid-2col a {
        justify-content: center;
        text-align: center;
    }
    .footer-heading {
        justify-content: center;
    }
    .footer-link {
        justify-content: center;
    }
    .contact-row {
        justify-content: center;
    }
    .footer-social-group {
        justify-content: center;
    }
    .footer-row-secondary .footer-links {
        text-align: center;
    }
    .footer-grid > div:first-child {
        text-align: center;
    }
    .footer-grid > div:first-child .flex {
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .footer-grid > div:first-child p {
        text-align: center;
    }
    .nav-grid-2col {
        max-width: 260px;
    }
    .about-grid-2col {
        max-width: 260px;
    }
}

/* ===== 面包屑 ===== */
.breadcrumb-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.breadcrumb {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0;
}
.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
}
.dark .breadcrumb-list {
    color: #9ca3af;
}
.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}
.breadcrumb-item a {
    color: #0284c7;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}
.breadcrumb-item a:hover {
    color: #0369a1;
    text-decoration: underline;
}
.dark .breadcrumb-item a {
    color: #7dd3fc;
}
.dark .breadcrumb-item a:hover {
    color: #bae6fd;
}
.breadcrumb-item.active {
    color: var(--heading-color);
    font-weight: 500;
}
.breadcrumb-separator {
    color: var(--divider-color);
    font-size: 0.9rem;
    user-select: none;
    padding: 0 0.1rem;
}
@media (max-width: 768px) {
    .breadcrumb-wrapper {
        padding: 0 1rem;
    }
    .breadcrumb {
        font-size: 0.75rem;
        padding: 0.4rem 0;
    }
}
@media (max-width: 480px) {
    .breadcrumb-wrapper {
        padding: 0 0.75rem;
    }
    .breadcrumb {
        font-size: 0.7rem;
        padding: 0.3rem 0;
    }
    .breadcrumb-item a i {
        font-size: 0.65rem;
    }
}

/* ================================================================
   灯箱样式
   ================================================================ */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
}
.lightbox-overlay.active {
    display: flex;
}
.lightbox-overlay .lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 90vw;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}
.lightbox-overlay .lightbox-container:active {
    cursor: grabbing;
}
.lightbox-overlay .lightbox-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto !important;
    opacity: 0;
}
.lightbox-overlay .lightbox-container img.loaded {
    opacity: 1;
}

.lightbox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 5;
    pointer-events: none;
}
.lightbox-loader.active {
    display: block;
}
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.lightbox-overlay .lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: #ffffff;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s;
    line-height: 1;
    background: transparent;
    border: none;
    font-family: inherit;
}
.lightbox-overlay .lightbox-close:hover {
    transform: scale(1.15);
}
.lightbox-overlay .lightbox-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.3rem 1rem;
    border-radius: 0.25rem;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}
.lightbox-overlay .lightbox-zoom {
    position: absolute;
    bottom: 20px;
    right: 30px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.3rem 0.8rem;
    border-radius: 0.25rem;
    backdrop-filter: blur(4px);
    font-family: inherit;
}
@media (max-width: 640px) {
    .lightbox-overlay .lightbox-close {
        top: 12px;
        right: 16px;
        font-size: 1.8rem;
    }
    .lightbox-overlay .lightbox-info {
        font-size: 0.7rem;
        bottom: 12px;
        padding: 0.2rem 0.6rem;
    }
    .lightbox-overlay .lightbox-zoom {
        font-size: 0.7rem;
        bottom: 12px;
        right: 16px;
        padding: 0.2rem 0.6rem;
    }
}

/* ===== 二维码弹窗 ===== */
.qr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}
.qr-modal-overlay.active {
    display: flex;
}
.qr-modal-box {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem 2rem 1.8rem 2rem;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
    animation: scaleIn 0.35s ease;
    position: relative;
}
.dark .qr-modal-box {
    background: #1f2937;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}
.qr-modal-box .qr-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
    background: transparent;
    border: none;
    line-height: 1;
}
.qr-modal-box .qr-close:hover {
    color: #374151;
}
.dark .qr-modal-box .qr-close:hover {
    color: #e5e7eb;
}
.qr-modal-box .qr-icon {
    font-size: 2.5rem;
    color: #0284c7;
    margin-bottom: 0.5rem;
}
.qr-modal-box .qr-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}
.qr-modal-box .qr-sub {
    font-size: 0.85rem;
    color: var(--sub-color);
    margin-bottom: 1rem;
}
.qr-modal-box #qrcode {
    display: inline-block;
    padding: 12px;
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    min-height: 80px;
}
.qr-modal-box #qrcode img {
    display: block;
    margin: 0 auto;
}
.qr-url-wrapper {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0;
    background: #f3f4f6;
    padding: 0.3rem 0.5rem 0.3rem 0.8rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    transition: background 0.2s, border-color 0.2s;
}
.dark .qr-url-wrapper {
    background: #374151;
    border-color: #4b5563;
}
.qr-url-wrapper .qr-url {
    flex: 1;
    font-size: 0.7rem;
    color: #6b7280;
    word-break: break-all;
    text-align: left;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dark .qr-url-wrapper .qr-url {
    color: #9ca3af;
}
.qr-url-wrapper .qr-copy-btn {
    flex-shrink: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 1rem;
    padding: 0.2rem 0.2rem 0.2rem 0.4rem;
    transition: color 0.2s, transform 0.15s;
    border-radius: 0.25rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.25rem;
}
.qr-url-wrapper .qr-copy-btn:hover {
    color: #0284c7;
}
.dark .qr-url-wrapper .qr-copy-btn:hover {
    color: #7dd3fc;
}
.qr-url-wrapper .qr-copy-btn:active {
    transform: scale(0.92);
}
.qr-url-wrapper .qr-copy-btn .copy-icon {
    display: inline;
}
.qr-url-wrapper .qr-copy-btn .copy-feedback {
    display: none;
    font-size: 0.6rem;
    font-weight: 500;
    color: #10b981;
    pointer-events: none;
    white-space: nowrap;
}
.dark .qr-url-wrapper .qr-copy-btn .copy-feedback {
    color: #34d399;
}
.qr-url-wrapper .qr-copy-btn.copied .copy-icon {
    display: none;
}
.qr-url-wrapper .qr-copy-btn.copied .copy-feedback {
    display: inline;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

*:focus-visible {
    outline: 2px solid #0284c7;
    outline-offset: 2px;
    border-radius: 2px;
}
.dark *:focus-visible {
    outline-color: #7dd3fc;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .card:hover,
    article.rec-card:hover,
    .partner-item:hover,
    .feature-nav a:hover,
    .friend-links .friend-list a:hover,
    .ldl-rec-item:hover {
        transform: none !important;
    }
    .more-link:hover,
    .story-link:hover {
        transform: none !important;
    }
    .more-link:hover .arrow-triangle,
    .story-link:hover i {
        transform: none !important;
    }
    .card,
    article.rec-card {
        transition: none !important;
    }
    .qr-modal-overlay {
        animation: none !important;
    }
    .qr-modal-box {
        animation: none !important;
    }
    .hero-search input,
    .clear-btn,
    .search-btn {
        transition: none !important;
    }
    article.rec-card img {
        animation: none !important;
    }
    .footer-social-btn {
        transition: none !important;
    }
    .footer-social-btn:hover {
        transform: none !important;
    }
}

@media (max-width: 400px) {
    .card .p-5 {
        padding: 0.5rem;
    }
    .card .text-lg {
        font-size: 0.9rem;
    }
    .section-header .section-title {
        font-size: 1rem;
    }
    .content-page-wrapper .article-title {
        font-size: 1.2rem;
    }
}

.landscape-stack {
    gap: 1.75rem;
}
@media (orientation: landscape) and (max-width: 820px) {
    .landscape-stack {
        flex-direction: column !important;
    }
    .landscape-stack>.md\:w-2\/3,
    .landscape-stack>.md\:w-1\/3 {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
}

/* ================================================================
   双向滚动按钮 - TOP / End 版
   ================================================================ */
.scroll-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    color: #0f172a;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    transform: scale(0.6) translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.3s,
                box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
}
.scroll-btn.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}
.scroll-btn:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}
.scroll-btn:active {
    transform: scale(0.88) !important;
}

.progress-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    transform: rotate(-90deg);
    pointer-events: none;
}
.progress-ring__bg {
    stroke: #e2e8f0;
    fill: transparent;
}
.progress-ring__circle {
    stroke: #0d9488;
    fill: transparent;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.15s ease;
}

.scroll-btn__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: -2px;
    pointer-events: none;
}
.scroll-btn__content i {
    font-size: 1.1rem;
    line-height: 1.2;
    margin-bottom: -2px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
    color: #0f172a;
}
.scroll-btn__percent {
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
    letter-spacing: 0.5px;
}

.scroll-btn.mode-up i {
    transform: rotate(0deg);
}
.scroll-btn.mode-up:hover i {
    transform: translateY(-2px);
}
.scroll-btn.mode-down i {
    transform: rotate(0deg);
}
.scroll-btn.mode-down:hover i {
    transform: translateY(2px);
}

.dark .scroll-btn {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: #f1f5f9;
}
.dark .scroll-btn:hover {
    background: rgba(30, 41, 59, 0.85);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.dark .progress-ring__bg {
    stroke: #334155;
}
.dark .progress-ring__circle {
    stroke: #14b8a6;
}
.dark .scroll-btn__content i {
    color: #f1f5f9;
}
.dark .scroll-btn__percent {
    color: #f1f5f9;
}

@media (max-width: 640px) {
    .scroll-btn {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }
    .scroll-btn__content i {
        font-size: 0.95rem;
    }
    .scroll-btn__percent {
        font-size: 0.5rem;
    }
}
@media (max-width: 400px) {
    .scroll-btn {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
    }
    .scroll-btn__content i {
        font-size: 0.85rem;
    }
    .scroll-btn__percent {
        font-size: 0.45rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-btn {
        transition: none !important;
    }
    .scroll-btn:hover i {
        transform: none !important;
    }
    .progress-ring__circle {
        transition: none !important;
    }
}