/* 公开博客（blog.php）样式。2026-10-23 从 blog.html 的 <style> 原样搬来，下面「GEO 新增」那段之外别改动外观。 */
        :root { color-scheme: only light; }
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        /* ── Tokens · Apple Minimal × Dark Tech ── */
        :root {
            --bg: #fafafa;
            --surface: #ffffff;
            --surface-2: #f5f5f7;
            --ink: #1d1d1f;
            --ink-2: #48484d;
            --ink-3: #6e6e73;
            --ink-4: #707076;
            --line: rgba(0, 0, 0, 0.08);
            --hairline: rgba(0, 0, 0, 0.06);
            --accent: #6d5cff;
            --grad: linear-gradient(115deg, #8a5cff 0%, #5c6cff 45%, #3d7bff 100%);
            --grad-soft: linear-gradient(115deg, rgba(138, 92, 255, 0.12), rgba(61, 123, 255, 0.10));
            --nav-bg: rgba(250, 250, 250, 0.72);
            --card: #ffffff;
            --card-line: rgba(0, 0, 0, 0.06);
            --glow-a: rgba(122, 92, 255, 0.14);
            --glow-b: rgba(61, 123, 255, 0.10);
            --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(29, 29, 31, 0.06);
        }
        body.dark {
            --bg: #060608;
            --surface: #060608;
            --surface-2: #0b0b0f;
            --ink: #f5f5f7;
            --ink-2: #c9c9d1;
            --ink-3: #98989f;
            --ink-4: #7e7e86;
            --line: rgba(255, 255, 255, 0.09);
            --hairline: rgba(255, 255, 255, 0.07);
            --nav-bg: rgba(6, 6, 8, 0.55);
            --card: rgba(255, 255, 255, 0.035);
            --card-line: rgba(255, 255, 255, 0.08);
            --glow-a: rgba(122, 92, 255, 0.25);
            --glow-b: rgba(61, 123, 255, 0.18);
            --shadow-card: none;
        }

        html { scroll-behavior: smooth; }
        /* 内联 SVG 图标（替代 Font Awesome 整包） */
        .ico {
            width: 1em; height: 1em;
            display: inline-block;
            vertical-align: -0.125em;
            flex-shrink: 0;
        }
        .ico.spin { animation: icoSpin 1s linear infinite; }
        @keyframes icoSpin { to { transform: rotate(360deg); } }
        .post-meta .ico, .article-meta .ico { margin-right: 5px; }
        .article-meta .ico { color: var(--accent); }
        .featured-badge .ico { width: 0.7rem; height: 0.7rem; }
        .state-msg .ico {
            width: 1.8rem; height: 1.8rem;
            display: block; margin: 0 auto 14px;
            opacity: 0.4;
        }
        a:focus-visible, button:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 3px;
            border-radius: 6px;
        }
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
            color: var(--ink);
            background: var(--bg);
            min-height: 100vh;
            transition: background 0.3s, color 0.3s;
            -webkit-font-smoothing: antialiased;
            text-rendering: optimizeLegibility;
        }

        /* ── Nav（玻璃） ── */
        .nav {
            position: sticky; top: 0; z-index: 100;
            height: 64px;
            background: var(--nav-bg);
            -webkit-backdrop-filter: saturate(180%) blur(20px);
            backdrop-filter: saturate(180%) blur(20px);
            border-bottom: 1px solid var(--hairline);
            display: flex; align-items: center;
            padding: 0 clamp(20px, 5vw, 56px);
            gap: 20px;
        }
        .nav-brand {
            display: flex; align-items: center; gap: 10px;
            font-weight: 650; font-size: 1rem; color: var(--ink);
            letter-spacing: -0.02em;
            text-decoration: none; flex-shrink: 0;
        }
        .nav-brand-mark {
            width: 36px; height: 36px;
            display: flex; align-items: center; justify-content: center;
        }
        .nav-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
        .nav-links {
            display: flex; align-items: center; gap: 34px; flex: 1;
            justify-content: center;
        }
        .nav-links a {
            color: var(--ink-3); text-decoration: none;
            font-size: 0.95rem; font-weight: 500; letter-spacing: -0.01em;
            transition: color 0.2s; white-space: nowrap;
        }
        .nav-links a:hover { color: var(--ink); }
        .nav-links a.active { color: var(--ink); font-weight: 600; }
        .nav-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

        .lang-btn {
            height: 34px; padding: 0 13px;
            border: 1px solid var(--line);
            border-radius: 999px;
            background: transparent;
            color: var(--ink-3);
            font-size: 0.82rem; font-weight: 600;
            font-family: inherit;
            cursor: pointer; transition: all 0.2s;
        }
        .lang-btn:hover { border-color: var(--ink-3); color: var(--ink); }
        .lang-btn.active {
            background: var(--ink); color: var(--bg); border-color: var(--ink);
        }

        .dark-btn {
            width: 40px; height: 40px; border-radius: 999px;
            border: 1px solid rgba(109, 92, 255, 0.4);
            background: var(--grad-soft); color: var(--accent);
            display: flex; align-items: center; justify-content: center;
            cursor: pointer; font-size: 1rem;
            transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
        }
        .dark-btn:hover {
            border-color: var(--accent);
            box-shadow: 0 0 18px rgba(109, 92, 255, 0.35);
            transform: translateY(-1px);
        }
        body.dark .dark-btn {
            background: rgba(122, 92, 255, 0.14);
            border-color: rgba(138, 118, 255, 0.45);
            color: #b9adff;
        }
        body.dark .dark-btn:hover { box-shadow: 0 0 20px rgba(138, 118, 255, 0.45); }

        .nav-cta {
            background: var(--ink); color: var(--bg); border: none;
            height: 34px; display: inline-flex; align-items: center;
            padding: 0 18px; border-radius: 999px;
            font-weight: 600; font-size: 0.88rem; letter-spacing: -0.01em;
            font-family: inherit;
            cursor: pointer; text-decoration: none;
            transition: opacity 0.2s, transform 0.2s; white-space: nowrap;
        }
        .nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

        /* ── Hero ── */
        .blog-hero {
            position: relative;
            padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 60px) clamp(40px, 6vw, 72px);
            text-align: center;
            overflow: hidden;
        }
        .blog-hero::before {
            content: "";
            position: absolute; inset: 0;
            background-image:
                linear-gradient(var(--hairline) 1px, transparent 1px),
                linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
            background-size: 72px 72px;
            -webkit-mask-image: radial-gradient(ellipse 72% 52% at 50% 0%, #000 25%, transparent 70%);
            mask-image: radial-gradient(ellipse 72% 52% at 50% 0%, #000 25%, transparent 70%);
            opacity: 0.55;
            pointer-events: none;
        }
        .blog-hero::after {
            content: "";
            position: absolute; inset: 0;
            background:
                radial-gradient(640px 380px at 50% -15%, var(--glow-a), transparent 65%),
                radial-gradient(480px 320px at 85% 15%, var(--glow-b), transparent 68%);
            pointer-events: none;
        }
        .blog-hero > * { position: relative; z-index: 1; }
        .blog-hero-eyebrow {
            display: inline-block;
            font-size: 0.76rem; font-weight: 650;
            letter-spacing: 0.14em; text-transform: uppercase;
            background: var(--grad);
            -webkit-background-clip: text; background-clip: text;
            -webkit-text-fill-color: transparent; color: transparent;
            margin-bottom: 18px;
        }
        .blog-hero h1 {
            font-size: clamp(2.6rem, 6vw, 4.6rem);
            font-weight: 700; letter-spacing: -0.04em; line-height: 1.05;
            color: var(--ink);
            margin-bottom: 18px;
        }
        .blog-hero p {
            font-size: clamp(1.02rem, 1.7vw, 1.18rem);
            color: var(--ink-3); line-height: 1.7;
            max-width: 540px; margin: 0 auto;
        }

        /* ── Body ── */
        .blog-body { padding: clamp(28px, 4vw, 48px) clamp(20px, 5vw, 60px) clamp(64px, 8vw, 100px); }
        #listView, #singlePost { max-width: 1080px; margin: 0 auto; }

        /* ── Grid ── */
        #postGrid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
            gap: 22px;
        }
        .post-card {
            background: var(--card);
            border: 1px solid var(--card-line);
            border-radius: 24px; overflow: hidden;
            cursor: pointer;
            box-shadow: var(--shadow-card);
            transition: transform 0.35s cubic-bezier(0.2, 0.65, 0.2, 1), border-color 0.3s, box-shadow 0.3s, background 0.3s;
            display: flex; flex-direction: column;
            animation: cardIn 0.7s cubic-bezier(0.2, 0.65, 0.2, 1) both;
            animation-delay: calc(var(--i, 0) * 70ms);
        }
        @keyframes cardIn {
            from { opacity: 0; transform: translateY(22px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .post-card:hover {
            transform: translateY(-4px);
            border-color: rgba(109, 92, 255, 0.35);
            box-shadow: 0 18px 48px rgba(109, 92, 255, 0.12);
        }
        body.dark .post-card:hover {
            background: rgba(255, 255, 255, 0.055);
            box-shadow: 0 0 0 1px rgba(138, 118, 255, 0.12), 0 20px 60px rgba(109, 92, 255, 0.14);
        }
        .post-cover-wrap { overflow: hidden; }
        .post-cover {
            width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
            transition: transform 0.6s cubic-bezier(0.2, 0.65, 0.2, 1);
        }
        .post-card:hover .post-cover { transform: scale(1.04); }
        .post-cover-placeholder {
            width: 100%; aspect-ratio: 16/9;
            background: var(--grad-soft);
            display: flex; align-items: center; justify-content: center;
            color: var(--accent); font-size: 1.8rem; opacity: 0.55;
        }
        .post-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; gap: 9px; }
        .post-meta {
            font-size: 0.8rem; color: var(--ink-4);
            display: flex; gap: 12px; align-items: center;
            letter-spacing: 0.02em;
        }
        .post-title {
            font-size: 1.15rem; font-weight: 650; line-height: 1.4;
            letter-spacing: -0.02em; color: var(--ink);
        }
        .post-excerpt { font-size: 0.95rem; color: var(--ink-3); line-height: 1.7; flex: 1; }
        .post-read-more {
            display: inline-flex; align-items: center; gap: 6px;
            color: var(--accent); font-weight: 600; font-size: 0.88rem; margin-top: 6px;
        }
        .post-read-more i { font-size: 0.72rem; transition: transform 0.25s; }
        .post-card:hover .post-read-more i { transform: translateX(3px); }

        /* 特色首篇：整行横排 */
        .post-card.featured { grid-column: 1 / -1; }
        @media (min-width: 760px) {
            .post-card.featured {
                display: grid;
                grid-template-columns: 1.15fr 1fr;
                align-items: stretch;
            }
            .post-card.featured .post-cover-wrap { height: 100%; max-height: 460px; }
            .post-card.featured .post-cover { height: 100%; aspect-ratio: auto; min-height: 300px; }
            .post-card.featured .post-cover-placeholder { height: 100%; aspect-ratio: auto; min-height: 300px; }
            .post-card.featured .post-body { padding: clamp(26px, 3.5vw, 44px); justify-content: center; gap: 12px; }
            .post-card.featured .post-title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
            .post-card.featured .post-excerpt { font-size: 0.95rem; flex: none; }
        }
        .featured-badge {
            display: inline-flex; align-items: center; gap: 6px;
            width: fit-content;
            font-size: 0.7rem; font-weight: 650;
            letter-spacing: 0.1em; text-transform: uppercase;
            color: var(--accent);
            background: var(--grad-soft);
            border: 1px solid rgba(109, 92, 255, 0.18);
            padding: 5px 12px; border-radius: 999px;
        }

        /* ── Single post ── */
        #singlePost { max-width: 760px; }
        .back-btn {
            display: inline-flex; align-items: center; gap: 8px;
            color: var(--ink-3); background: transparent;
            border: 1px solid var(--line); border-radius: 999px;
            padding: 10px 20px;
            font-size: 0.9rem; font-weight: 550; font-family: inherit;
            cursor: pointer; margin-bottom: 32px;
            transition: color 0.2s, border-color 0.2s;
        }
        .back-btn:hover { color: var(--ink); border-color: var(--ink-3); }
        .article-cover {
            width: 100%; border-radius: 24px; aspect-ratio: 16/7;
            object-fit: cover; margin-bottom: 32px; display: block;
            border: 1px solid var(--card-line);
        }
        .article-meta {
            display: flex; gap: 16px; color: var(--ink-4);
            font-size: 0.88rem; margin-bottom: 14px; flex-wrap: wrap;
        }
        .article-title {
            font-size: clamp(1.7rem, 4.5vw, 2.6rem);
            font-weight: 700; line-height: 1.18; letter-spacing: -0.035em;
            margin-bottom: 28px; color: var(--ink);
        }
        .article-content { font-size: 1.08rem; line-height: 1.9; color: var(--ink-2); }
        .article-content h2, .article-content h3 {
            font-weight: 650; letter-spacing: -0.02em; color: var(--ink);
            margin: 36px 0 14px;
        }
        .article-content h2 { font-size: 1.45rem; }
        .article-content h3 { font-size: 1.15rem; }
        .article-content p { margin-bottom: 16px; }
        .article-content ul, .article-content ol { padding-left: 22px; margin-bottom: 16px; }
        .article-content li { margin-bottom: 6px; }
        .article-content img { max-width: 100%; border-radius: 16px; margin: 12px 0; }
        .article-content a { color: var(--accent); }
        .article-content blockquote {
            border-left: 3px solid var(--accent);
            padding: 14px 20px;
            background: var(--grad-soft);
            border-radius: 0 14px 14px 0;
            margin: 20px 0; font-style: italic;
            color: var(--ink-2);
        }
        .article-content code {
            background: rgba(0, 0, 0, 0.06); padding: 2px 6px;
            border-radius: 6px;
            font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
            font-size: 0.88em;
        }
        body.dark .article-content code { background: rgba(255, 255, 255, 0.1); }
        .article-content pre code {
            display: block; padding: 18px; overflow-x: auto;
            background: #0b0b12; color: #cdd6f4;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px;
        }

        /* ── Hashtags ── */
        .post-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .post-tags .tag {
            font-size: 0.8rem;
            font-weight: 550;
            color: var(--accent);
            background: var(--grad-soft);
            border: 1px solid rgba(109, 92, 255, 0.15);
            padding: 4px 13px;
            border-radius: 999px;
            white-space: nowrap;
        }
        body.dark .post-tags .tag {
            color: #a99bff;
            border-color: rgba(138, 118, 255, 0.28);
        }
        .article-tags { margin-bottom: 20px; }

        /* ── 小红书分享墙 ── */
        .xhs-wall { margin-top: clamp(56px, 8vw, 90px); }
        .xhs-wall-head { text-align: center; margin-bottom: clamp(28px, 4vw, 40px); }
        .xhs-wall-eyebrow {
            display: inline-flex; align-items: center; gap: 8px;
            font-size: 0.76rem; font-weight: 650;
            letter-spacing: 0.14em; text-transform: uppercase;
            color: #ff2442; margin-bottom: 14px;
        }
        .xhs-wall-eyebrow img { width: 16px; height: 16px; object-fit: contain; }
        .xhs-wall-title {
            font-size: clamp(1.5rem, 3.2vw, 2.2rem);
            font-weight: 700; letter-spacing: -0.03em;
            color: var(--ink);
        }
        .xhs-wall-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
            gap: 18px;
        }
        .xhs-note-card {
            display: flex; flex-direction: column;
            background: var(--card);
            border: 1px solid var(--card-line);
            border-radius: 18px; overflow: hidden;
            text-decoration: none;
            box-shadow: var(--shadow-card);
            transition: transform 0.3s cubic-bezier(0.2, 0.65, 0.2, 1), border-color 0.25s, box-shadow 0.25s;
        }
        .xhs-note-card:hover {
            transform: translateY(-4px);
            border-color: rgba(255, 36, 66, 0.45);
            box-shadow: 0 14px 40px rgba(255, 36, 66, 0.12);
        }
        .xhs-note-cover-wrap { position: relative; overflow: hidden; }
        .xhs-note-cover {
            width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block;
            transition: transform 0.5s cubic-bezier(0.2, 0.65, 0.2, 1);
        }
        .xhs-note-card:hover .xhs-note-cover { transform: scale(1.04); }
        .xhs-note-cover-ph {
            width: 100%; aspect-ratio: 3/4;
            display: flex; align-items: center; justify-content: center;
            background: linear-gradient(115deg, rgba(255, 36, 66, 0.1), rgba(255, 120, 80, 0.08));
        }
        .xhs-note-cover-ph img { width: 34px; height: 34px; object-fit: contain; opacity: 0.6; }
        .xhs-note-logo {
            margin-left: auto; flex-shrink: 0;
            width: 18px; height: 18px; border-radius: 5px;
            overflow: hidden;
        }
        .xhs-note-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
        .xhs-note-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
        .xhs-note-title {
            font-size: 0.9rem; font-weight: 600; line-height: 1.45;
            color: var(--ink);
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
        }
        .xhs-note-author {
            margin-top: auto;
            display: flex; align-items: center; gap: 6px;
            font-size: 0.76rem; color: var(--ink-4);
        }
        .xhs-note-author .ico { width: 0.85em; height: 0.85em; }

        /* ── States ── */
        .state-msg { grid-column: 1 / -1; text-align: center; padding: 90px 20px; color: var(--ink-4); }
        .state-msg i { font-size: 1.8rem; margin-bottom: 14px; display: block; opacity: 0.4; }

        /* ── Footer ── */
        .site-footer {
            border-top: 1px solid var(--hairline);
            padding: 26px clamp(20px, 5vw, 60px) 38px;
            display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
            gap: 12px; color: var(--ink-4); font-size: 0.88rem;
            max-width: 1200px; margin: 0 auto;
        }
        .site-footer a { color: var(--ink-3); text-decoration: none; transition: color 0.2s; }
        .site-footer a:hover { color: var(--ink); }

        @media (prefers-reduced-motion: reduce) {
            .post-card { animation: none; }
            .post-card:hover .post-cover { transform: none; }
            html { scroll-behavior: auto; }
        }

        @media (max-width: 640px) {
            /* 375px 宽下这一行以前溢出 12px（英文）/ 2px（马来文）：
               整页可以横向拖动，右边的 Subscribe 被视口切掉。
               收内边距和间距，并让语言键、CTA 在窄屏上瘦一点，
               把最宽的那种语言（英文）也压回视口内。 */
            .nav { padding: 0 12px; height: 58px; gap: 8px; }
            .nav-links { display: none; }
            .nav-brand span:last-child { display: none; }
            .nav-tools { gap: 6px; }
            .lang-btn { padding: 0 10px; }
            .nav-cta { padding: 8px 13px; }
        }

/* ── GEO 新增（2026-10-23）── */
a.post-card { color: inherit; text-decoration: none; }
a.lang-btn { display: inline-flex; align-items: center; text-decoration: none; }
a.back-btn { text-decoration: none; margin-bottom: 24px; }
.post-title { margin: 0; }
.dark-btn .ico-sun { display: none; }
body.dark .dark-btn .ico-sun { display: inline-flex; }
body.dark .dark-btn .ico-moon { display: none; }
.lang-hint { max-width: 1080px; margin: 0 auto 20px; text-align: center; }
.lang-hint a {
    display: inline-block; padding: 8px 16px; border-radius: 999px;
    border: 1px solid var(--line); color: var(--accent); text-decoration: none; font-weight: 600;
}
.blog-cta {
    margin-top: 48px; padding: 28px 28px 30px; border-radius: 24px;
    background: var(--grad-soft); border: 1px solid rgba(109, 92, 255, 0.18); text-align: center;
}
.blog-cta-text { font-size: 1.15rem; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.blog-cta-btn {
    display: inline-block; padding: 12px 22px; border-radius: 999px;
    background: var(--grad); color: #fff; font-weight: 600; text-decoration: none;
}
.blog-cta-btn:hover { opacity: 0.9; }
