/* ==========================================================================
   学习博客 · Poetize 风格视觉系统
   浅色 / 渐变 / 卡片 / 留白
   ========================================================================== */

:root {
    --ink: #171a26;
    --ink-2: #3c4152;
    --muted: #767d91;
    --bg: #fbfbfe;
    --card: #ffffff;
    --line: rgba(23, 26, 38, .08);
    --line-strong: rgba(23, 26, 38, .14);
    --violet: #6c5ce7;
    --violet-2: #8b7cf6;
    --blue: #4a9df8;
    --coral: #ff7a7a;
    --mint: #22c1a4;
    --amber: #f5b942;
    --radius: 22px;
    --radius-sm: 14px;
    --shadow-sm: 0 6px 20px rgba(31, 38, 64, .06);
    --shadow-md: 0 16px 44px rgba(31, 38, 64, .10);
    --shadow-lg: 0 28px 70px rgba(31, 38, 64, .14);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
            "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(108, 92, 231, .18); }

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.25;
    letter-spacing: -.02em;
    font-weight: 700;
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}
.container--narrow { width: min(860px, calc(100% - 48px)); }
.container--tiny { width: min(440px, calc(100% - 40px)); }

.spacer { flex: 1; }
.empty { color: var(--muted); font-size: 14px; }

/* ---------- 背景光斑 ---------- */
.ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.ambient__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
}
.ambient__blob--1 {
    width: 520px; height: 520px;
    top: -180px; left: -120px;
    background: radial-gradient(circle, rgba(255, 154, 158, .38), transparent 68%);
}
.ambient__blob--2 {
    width: 620px; height: 620px;
    top: -220px; right: -180px;
    background: radial-gradient(circle, rgba(108, 92, 231, .28), transparent 68%);
}
.ambient__blob--3 {
    width: 520px; height: 520px;
    bottom: -260px; left: 30%;
    background: radial-gradient(circle, rgba(34, 193, 164, .18), transparent 70%);
}

/* ---------- 导航 ---------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(251, 251, 254, .72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-nav.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 10px 30px rgba(31, 38, 64, .05);
    background: rgba(251, 251, 254, .88);
}
.nav-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--violet), var(--blue));
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(108, 92, 231, .28);
}
.brand__text {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -.01em;
    line-height: 1.2;
}
.brand__text small {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 3px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-2);
    transition: color .2s, background .2s;
}
.nav-links a svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .7; }
.nav-links a:hover { color: var(--ink); background: rgba(23, 26, 38, .045); }
.nav-links a.is-active { color: var(--violet); background: rgba(108, 92, 231, .09); font-weight: 600; }
.nav-actions { margin-left: 16px; display: flex; align-items: center; gap: 10px; }
.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid var(--line);
    transition: border-color .2s, box-shadow .2s, width .25s;
    width: 190px;
}
.nav-search:focus-within {
    border-color: rgba(108, 92, 231, .45);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, .09);
    width: 230px;
}
.nav-search svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.nav-search input {
    border: 0; outline: 0; background: transparent;
    font-size: 13.5px; width: 100%; color: var(--ink);
}
.nav-search input::placeholder { color: var(--muted); }
.nav-login { font-size: 14px; color: var(--ink-2); padding: 8px 6px; }
.nav-login:hover { color: var(--violet); }
.nav-cta {
    display: inline-flex; align-items: center; justify-content: center;
    height: 38px; padding: 0 18px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 13.5px; font-weight: 600;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(23, 26, 38, .22); background: #242838; }
.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    padding: 11px 10px;
    flex-direction: column;
    justify-content: space-between;
}
.nav-toggle span { display: block; height: 1.6px; background: var(--ink); border-radius: 2px; }

/* ---------- Flash ---------- */
.flash-wrap { padding-top: 18px; }
.flash {
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.flash--success { border-color: rgba(34, 193, 164, .3); background: #f2fdf9; color: #0e7a66; }
.flash--error { border-color: rgba(255, 122, 122, .35); background: #fff5f5; color: #b23b3b; }
.flash--info { border-color: rgba(74, 157, 248, .3); background: #f3f9ff; color: #27649e; }

/* ---------- 通用元素 ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11.5px; font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--violet);
}
.eyebrow__dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, .14);
}
.eyebrow--light { color: rgba(255, 255, 255, .72); }

.grad-text {
    background: linear-gradient(120deg, #6c5ce7 0%, #4a9df8 45%, #ff8fab 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 26px;
    border-radius: 999px;
    font-size: 15px; font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .22s, box-shadow .22s, background .22s, border-color .22s;
}
.btn svg { width: 17px; height: 17px; transition: transform .22s; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary {
    background: linear-gradient(135deg, var(--violet), var(--blue));
    color: #fff;
    box-shadow: 0 14px 30px rgba(108, 92, 231, .3);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(108, 92, 231, .38); }
.btn--ghost {
    background: rgba(255, 255, 255, .75);
    border-color: var(--line-strong);
    color: var(--ink);
}
.btn--ghost:hover { transform: translateY(-2px); background: #fff; box-shadow: var(--shadow-sm); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0, 0, 0, .22); }
.btn--sm { height: 38px; padding: 0 18px; font-size: 13.5px; }
.btn--block { width: 100%; }

.avatar {
    display: inline-grid; place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7, #4a9df8);
    color: #fff; font-weight: 700;
    flex-shrink: 0;
}
.avatar--md { width: 54px; height: 54px; font-size: 21px; }
.avatar--lg { width: 62px; height: 62px; font-size: 24px; }
.avatar--xl { width: 92px; height: 92px; font-size: 34px; }

.mini-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    display: inline-grid; place-items: center;
    background: linear-gradient(135deg, #6c5ce7, #4a9df8);
    color: #fff; font-size: 11px; font-weight: 700;
    flex-shrink: 0;
}
.mini-avatar--lg { width: 40px; height: 40px; font-size: 15px; }

.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .45; }
.meta-row {
    display: flex; align-items: center; gap: 9px;
    font-size: 12.5px; color: var(--muted);
}
.meta-row--bottom { margin-top: 18px; font-size: 12.5px; }

/* ---------- Hero（影院式海景） ---------- */
:root { --nav-h: 74px; }

.hero-cinema {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(88vh, 840px);
    margin-top: calc(var(--nav-h) * -1);
    padding: 150px 24px 172px;
    overflow: hidden;
    color: #fff;
}
.hero-cinema__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 44%;
    transform: scale(1.04);
    animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.07) translate3d(-10px, -6px, 0); }
}
.hero-cinema__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 28, 40, .5) 0%, rgba(6, 28, 40, .14) 26%, rgba(6, 28, 40, .04) 48%, rgba(6, 28, 40, .4) 100%),
        radial-gradient(56% 48% at 50% 44%, rgba(5, 34, 48, .38), transparent 74%);
}
.hero-cinema__content {
    position: relative;
    z-index: 2;
    max-width: 880px;
    text-align: center;
}
.hero-cinema__kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .44em;
    text-indent: .44em;
    color: rgba(255, 255, 255, .78);
    text-shadow: 0 1px 14px rgba(0, 30, 45, .35);
}
.hero-cinema__title {
    margin: 26px 0 20px;
    font-family: "STSong", "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
    font-size: clamp(44px, 6.4vw, 86px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: .1em;
    text-indent: .1em;
    text-shadow: 0 8px 46px rgba(0, 30, 45, .5);
}
.hero-cinema__sub {
    margin: 0 0 38px;
    font-size: clamp(14px, 1.4vw, 17px);
    letter-spacing: .14em;
    color: rgba(255, 255, 255, .86);
    text-shadow: 0 2px 22px rgba(0, 30, 45, .45);
}
.hero-cinema__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}
.btn--white {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 18px 44px rgba(0, 25, 40, .28);
}
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 24px 54px rgba(0, 25, 40, .34); }
.btn--outline-light {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
    backdrop-filter: blur(10px);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.hero-cinema__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 42px;
    font-size: 12.5px;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .74);
}
.hero-cinema__meta strong { font-size: 16px; color: #fff; margin-right: 2px; }
.hero-cinema__sep { width: 1px; height: 12px; background: rgba(255, 255, 255, .35); }

.hero-cinema__scroll {
    position: absolute;
    left: 50%;
    bottom: 98px;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 9.5px;
    letter-spacing: .32em;
    text-indent: .32em;
    color: rgba(255, 255, 255, .68);
}
.hero-cinema__scroll i {
    position: relative;
    display: block;
    width: 1px;
    height: 42px;
    background: rgba(255, 255, 255, .18);
    overflow: hidden;
}
.hero-cinema__scroll i::after {
    content: "";
    position: absolute;
    left: 0; top: -42px;
    width: 1px; height: 42px;
    background: linear-gradient(rgba(255, 255, 255, 0), #fff);
    animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
    0% { top: -42px; }
    65% { top: 42px; }
    100% { top: 42px; }
}
.hero-cinema__wave {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    z-index: 2;
    line-height: 0;
}
.hero-cinema__wave svg { display: block; width: 100%; height: 92px; }

/* 首页导航：浮在海景上 */
.has-hero .site-nav:not(.is-scrolled) {
    background: linear-gradient(180deg, rgba(7, 30, 42, .4), rgba(7, 30, 42, 0));
    border-bottom-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.has-hero .site-nav:not(.is-scrolled) .brand__text { color: #fff; }
.has-hero .site-nav:not(.is-scrolled) .brand__text small { color: rgba(255, 255, 255, .6); }
.has-hero .site-nav:not(.is-scrolled) .brand__mark {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .38);
    box-shadow: 0 8px 24px rgba(0, 25, 40, .18);
    backdrop-filter: blur(12px);
}
.has-hero .site-nav:not(.is-scrolled) .nav-links a { color: rgba(255, 255, 255, .88); }
.has-hero .site-nav:not(.is-scrolled) .nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.has-hero .site-nav:not(.is-scrolled) .nav-links a.is-active { color: #fff; background: rgba(255, 255, 255, .2); }
.has-hero .site-nav:not(.is-scrolled) .nav-login { color: rgba(255, 255, 255, .84); }
.has-hero .site-nav:not(.is-scrolled) .nav-login:hover { color: #fff; }
.has-hero .site-nav:not(.is-scrolled) .nav-search {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .28);
    backdrop-filter: blur(12px);
}
.has-hero .site-nav:not(.is-scrolled) .nav-search input { color: #fff; }
.has-hero .site-nav:not(.is-scrolled) .nav-search input::placeholder { color: rgba(255, 255, 255, .62); }
.has-hero .site-nav:not(.is-scrolled) .nav-search svg { color: rgba(255, 255, 255, .8); }
.has-hero .site-nav:not(.is-scrolled) .nav-cta {
    background: linear-gradient(135deg, #ff9a9e, #ff6b81);
    box-shadow: 0 12px 26px rgba(255, 107, 129, .35);
}
.has-hero .site-nav:not(.is-scrolled) .nav-toggle {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .32);
}
.has-hero .site-nav:not(.is-scrolled) .nav-toggle span { background: #fff; }
.has-hero .site-nav:not(.is-scrolled) .nav-links {
    background: transparent;
    box-shadow: none;
    border-bottom-color: transparent;
}

#latest { scroll-margin-top: 90px; }

/* 移动端展开菜单时，海景导航切换为浅色面板 */
body.nav-open.has-hero .site-nav:not(.is-scrolled) .nav-links {
    background: #fbfbfe;
    border-bottom-color: var(--line);
    box-shadow: 0 24px 40px rgba(31, 38, 64, .12);
}
body.nav-open.has-hero .site-nav:not(.is-scrolled) .nav-links a { color: var(--ink-2); }
body.nav-open.has-hero .site-nav:not(.is-scrolled) .nav-links a:hover { color: var(--ink); background: rgba(23, 26, 38, .05); }
body.nav-open.has-hero .site-nav:not(.is-scrolled) .nav-links a.is-active { color: var(--violet); background: rgba(108, 92, 231, .09); }

@media (max-width: 920px) {
    .hero-cinema { min-height: 82vh; padding: 132px 20px 148px; }
    .hero-cinema__title { letter-spacing: .04em; text-indent: .04em; }
    .hero-cinema__scroll { bottom: 88px; }
}
@media (max-width: 640px) {
    :root { --nav-h: 66px; }
    .hero-cinema { min-height: 76vh; padding: 112px 18px 124px; }
    .hero-cinema__kicker { font-size: 9.5px; letter-spacing: .3em; text-indent: .3em; }
    .hero-cinema__title { margin: 20px 0 16px; font-size: clamp(34px, 9.6vw, 40px); letter-spacing: .02em; text-indent: .02em; }
    .hero-cinema__sub { margin-bottom: 30px; letter-spacing: .08em; }
    .hero-cinema__meta { margin-top: 32px; gap: 10px; font-size: 11px; }
    .hero-cinema__meta strong { font-size: 14px; }
    .hero-cinema__wave svg { height: 56px; }
    .hero-cinema__scroll { bottom: 66px; }
    .hero-cinema__scroll span { display: none; }
    .hero-cinema__scroll i { height: 32px; }
}

/* ---------- Section ---------- */
.section { padding: 54px 0; }
.section__head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}
.section__title { font-size: clamp(26px, 3vw, 34px); margin-top: 10px; letter-spacing: -.03em; }
.link-more {
    font-size: 13.5px; font-weight: 600; color: var(--ink-2);
    display: inline-flex; align-items: center; gap: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line-strong);
    transition: color .2s, border-color .2s;
}
.link-more span { transition: transform .2s; }
.link-more:hover { color: var(--violet); border-color: rgba(108, 92, 231, .4); }
.link-more:hover span { transform: translateX(3px); }

/* ---------- 封面渐变 ---------- */
.cover--aurora { background: linear-gradient(135deg, #7f7fd5 0%, #86a8e7 52%, #91eae4 100%); }
.cover--sunset { background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%); }
.cover--ocean { background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%); }
.cover--forest { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.cover--candy { background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%); }
.cover--dusk { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.cover--mint { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.cover--rose { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }

.cover-glyph {
    position: absolute;
    right: 4px;
    bottom: -26px;
    font-size: 128px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.08em;
    color: rgba(255, 255, 255, .4);
    text-shadow: 0 8px 30px rgba(23, 26, 38, .07);
    pointer-events: none;
    user-select: none;
}
.cover-glyph--xl { font-size: 230px; right: 26px; bottom: -64px; color: rgba(255, 255, 255, .36); }

.cover-noise {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px);
    background-size: 14px 14px;
    opacity: .35;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

/* ---------- 精选 ---------- */
.featured-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.featured-card {
    display: flex;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .35s, box-shadow .35s;
}
.featured-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.featured-card--lg { grid-row: span 2; flex-direction: column; }
.featured-card__cover {
    position: relative;
    display: block;
    overflow: hidden;
    flex-shrink: 0;
}
.featured-card--lg .featured-card__cover { height: 320px; }
.featured-card:not(.featured-card--lg) .featured-card__cover { width: 190px; }
.featured-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.featured-card__cat {
    position: absolute; left: 16px; top: 16px;
    font-size: 11.5px; font-weight: 600;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(8px);
    padding: 5px 12px;
    border-radius: 999px;
    color: var(--ink);
}
.featured-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.featured-card--lg .featured-card__body { padding: 28px; }
.featured-card__body h3 { font-size: 21px; margin: 12px 0 10px; letter-spacing: -.025em; }
.featured-card--lg .featured-card__body h3 { font-size: 27px; }
.featured-card__body h3 a:hover { color: var(--violet); }
.featured-card__body p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured-card--lg .featured-card__body p { -webkit-line-clamp: 3; font-size: 15px; }
.featured-card__body .meta-row--bottom { margin-top: auto; padding-top: 18px; }

/* ---------- 文章卡片 ---------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.post-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .35s, box-shadow .35s;
    display: flex;
    flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card__cover {
    position: relative;
    display: block;
    height: 172px;
    overflow: hidden;
}
.post-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card__cat {
    position: absolute; left: 14px; top: 14px;
    font-size: 11px; font-weight: 600;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(8px);
    padding: 4px 11px;
    border-radius: 999px;
}
.post-card__date {
    position: absolute; right: 14px; bottom: 12px;
    font-size: 11px; font-weight: 600;
    color: rgba(23, 26, 38, .62);
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(6px);
    padding: 3px 9px;
    border-radius: 999px;
}
.post-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card__body h3 { font-size: 18.5px; letter-spacing: -.02em; }
.post-card__body h3 a:hover { color: var(--violet); }
.post-card__body p {
    margin: 10px 0 0;
    font-size: 13.5px;
    line-height: 1.72;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card__meta {
    display: flex; align-items: center; gap: 7px;
    margin-top: auto;
    padding-top: 18px;
    font-size: 12px;
    color: var(--muted);
}

/* ---------- 分类 / 标签面板 ---------- */
.split-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.panel__head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 18px;
}
.panel__head h3 { font-size: 19px; }
.panel__head span { font-size: 12px; color: var(--muted); }
.cat-list { display: flex; flex-direction: column; }
.cat-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 4px;
    border-bottom: 1px solid var(--line);
    transition: padding .25s, background .25s;
    border-radius: 10px;
}
.cat-item:last-child { border-bottom: 0; }
.cat-item:hover { padding-left: 12px; background: rgba(108, 92, 231, .035); }
.cat-item__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cat-item__name { font-size: 14.5px; font-weight: 500; }
.cat-item__count { margin-left: auto; font-size: 12px; color: var(--muted); }
.cat-item__arrow { color: var(--muted); font-size: 13px; opacity: 0; transition: opacity .2s, transform .2s; }
.cat-item:hover .cat-item__arrow { opacity: 1; transform: translateX(2px); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-pill {
    display: inline-flex; align-items: baseline; gap: 3px;
    font-size: 13px;
    padding: 6px 13px;
    border-radius: 999px;
    color: var(--tag-color, var(--violet));
    background: color-mix(in srgb, var(--tag-color, #6c5ce7) 9%, white);
    border: 1px solid color-mix(in srgb, var(--tag-color, #6c5ce7) 18%, transparent);
    transition: transform .2s, background .2s;
}
.tag-pill:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--tag-color, #6c5ce7) 16%, white); }
.tag-pill sup { font-size: 9.5px; opacity: .7; }
.panel__note {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.7;
    display: flex;
    gap: 8px;
}
.panel__note-mark { font-size: 26px; line-height: 1; color: rgba(108, 92, 231, .3); font-family: Georgia, serif; }

/* ---------- 友人帐条 ---------- */
.friend-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.friend-mini {
    display: flex; align-items: center; gap: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 16px;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.friend-mini:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.friend-mini__avatar {
    width: 38px; height: 38px;
    border-radius: 12px;
    display: grid; place-items: center;
    color: #fff; font-weight: 700; font-size: 15px;
    flex-shrink: 0;
}
.friend-mini__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.friend-mini__text strong { font-size: 14px; }
.friend-mini__text small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- CTA 横幅 ---------- */
.cta-band {
    display: flex; align-items: center; justify-content: space-between;
    gap: 30px;
    margin: 40px 0 70px;
    padding: 44px 48px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .18), transparent 40%),
        linear-gradient(120deg, #2b2f45 0%, #3a3560 55%, #4b3f7a 100%);
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 10px 0 8px; }
.cta-band p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .68); }

/* ---------- 页头 ---------- */
.page-head {
    padding: 62px 0 40px;
    text-align: left;
}
.page-head h1 {
    font-size: clamp(36px, 4.6vw, 54px);
    margin: 14px 0 14px;
    letter-spacing: -.04em;
}
.page-head p { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 620px; line-height: 1.85; }
.page-head--compact { padding-bottom: 18px; }

/* ---------- 筛选条 ---------- */
.filter-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
    margin-bottom: 30px;
}
.filter-chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 15px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 13px;
    color: var(--ink-2);
    transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.filter-chip:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-chip__dot { width: 7px; height: 7px; border-radius: 50%; }
.filter-chip sup { font-size: 9.5px; opacity: .6; }
.filter-query {
    margin-left: auto;
    font-size: 12.5px;
    color: var(--muted);
    background: rgba(255, 255, 255, .7);
    border: 1px dashed var(--line-strong);
    padding: 7px 13px;
    border-radius: 999px;
}
.filter-query a { color: var(--coral); margin-left: 6px; font-weight: 700; }

/* ---------- 分页 ---------- */
.pagination {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    margin-top: 44px;
}
.page-btn {
    padding: 9px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 13.5px;
    transition: border-color .2s, transform .2s;
}
.page-btn:hover { border-color: rgba(108, 92, 231, .4); transform: translateY(-1px); }
.page-info { font-size: 12.5px; color: var(--muted); }

/* ---------- 空状态 ---------- */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 20px;
    background: rgba(255, 255, 255, .6);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}
.empty-state__icon { font-size: 34px; display: block; margin-bottom: 12px; }
.empty-state h3 { font-size: 18px; margin-bottom: 6px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 13.5px; }
.empty-state a { color: var(--violet); }

/* ---------- 文章详情 ---------- */
.article-page { padding-top: 26px; }
.breadcrumb {
    display: flex; align-items: center; gap: 9px;
    font-size: 12.5px;
    color: var(--muted);
    padding: 10px 0 26px;
    flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--violet); }
.breadcrumb__current { color: var(--ink-2); }
.article-head { max-width: 860px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; font-weight: 500;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink-2);
    transition: border-color .2s, color .2s;
}
.chip:hover { border-color: rgba(108, 92, 231, .35); color: var(--violet); }
.chip--cat { background: rgba(108, 92, 231, .06); border-color: rgba(108, 92, 231, .16); color: #5346bd; }
.chip__dot { width: 6px; height: 6px; border-radius: 50%; }
.article-head h1 {
    font-size: clamp(34px, 4.6vw, 54px);
    letter-spacing: -.045em;
    line-height: 1.16;
    margin-bottom: 18px;
}
.article-head__summary {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.8;
    margin: 0 0 26px;
    max-width: 720px;
}
.article-head__meta {
    display: flex; align-items: center; gap: 12px;
    padding-bottom: 30px;
}
.article-head__byline { display: flex; flex-direction: column; line-height: 1.4; }
.article-head__byline strong { font-size: 14px; }
.article-head__byline small { font-size: 12px; color: var(--muted); }
.article-head__edit { margin-left: auto; }

.article-cover {
    position: relative;
    height: 340px;
    border-radius: 28px;
    overflow: hidden;
    margin: 6px 0 40px;
    box-shadow: var(--shadow-md);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover__mark {
    position: absolute;
    left: 34px; bottom: 28px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(23, 26, 38, .55);
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 999px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 264px;
    gap: 48px;
    align-items: start;
}
.article-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.side-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
}
.side-card h4 { font-size: 13px; letter-spacing: .04em; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.author-card { text-align: center; }
.author-card .avatar { margin: 0 auto 12px; }
.author-card strong { display: block; font-size: 15px; }
.author-card p { margin: 6px 0 16px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

.toc { font-size: 12.5px; line-height: 1.9; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc ul ul { padding-left: 12px; margin-top: 4px; border-left: 1px solid var(--line); }
.toc li { margin: 2px 0; }
.toc a { color: var(--ink-2); display: block; padding: 2px 0; transition: color .2s; }
.toc a:hover { color: var(--violet); }

/* ---------- 正文排版 ---------- */
.prose {
    font-size: 16.5px;
    line-height: 1.95;
    color: var(--ink-2);
    min-width: 0;
}
.prose > *:first-child { margin-top: 0; }
.prose h2 {
    font-size: 26px;
    margin: 46px 0 16px;
    padding-top: 8px;
    color: var(--ink);
    letter-spacing: -.03em;
    position: relative;
}
.prose h2::before {
    content: "";
    position: absolute; left: -18px; top: 16px;
    width: 4px; height: 18px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--violet), var(--blue));
}
.prose h3 { font-size: 20px; margin: 34px 0 12px; color: var(--ink); }
.prose h4 { font-size: 17px; margin: 26px 0 10px; color: var(--ink); }
.prose p { margin: 0 0 20px; }
.prose a { color: var(--violet); border-bottom: 1px solid rgba(108, 92, 231, .3); }
.prose a:hover { border-color: var(--violet); }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--violet); }
.prose blockquote {
    margin: 26px 0;
    padding: 18px 24px;
    background: linear-gradient(120deg, rgba(108, 92, 231, .06), rgba(74, 157, 248, .05));
    border-left: 3px solid rgba(108, 92, 231, .5);
    border-radius: 0 14px 14px 0;
    color: var(--ink-2);
    font-size: 15.5px;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code {
    font-family: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
    font-size: .88em;
    background: #f1f2f9;
    color: #5346bd;
    padding: 2px 6px;
    border-radius: 6px;
}
.prose pre {
    background: #1b1e2b;
    color: #e6e8f2;
    padding: 22px 24px;
    border-radius: 16px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 13.5px;
    line-height: 1.7;
    box-shadow: var(--shadow-sm);
}
.prose pre code { background: transparent; color: inherit; padding: 0; font-size: inherit; }
.prose img { border-radius: 16px; margin: 24px 0; box-shadow: var(--shadow-sm); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { background: #f7f7fc; font-weight: 600; font-size: 13px; }
.prose tr:last-child td { border-bottom: 0; }

.article-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px;
    margin: 44px 0 0;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.back-link { font-size: 13px; color: var(--muted); white-space: nowrap; }
.back-link:hover { color: var(--violet); }

/* ---------- 评论 ---------- */
.comments { margin-top: 46px; }
.comments__head {
    display: flex; align-items: baseline; gap: 10px;
    margin-bottom: 22px;
}
.comments__head h3 { font-size: 20px; }
.comments__head span { font-size: 12px; color: var(--muted); }
.comment { display: flex; gap: 13px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment__body { flex: 1; min-width: 0; }
.comment__meta { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.comment__meta strong { font-size: 13.5px; }
.comment__meta span { font-size: 11.5px; color: var(--muted); }
.comment__body p { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
.comment-form { margin-top: 26px; }
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    padding: 16px 18px;
    font-family: inherit;
    font-size: 14.5px;
    line-height: 1.75;
    resize: vertical;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
}
.comment-form textarea:focus {
    border-color: rgba(108, 92, 231, .5);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, .08);
}
.form-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--muted);
}
.login-hint {
    margin-top: 24px;
    padding: 18px 22px;
    background: rgba(108, 92, 231, .05);
    border: 1px dashed rgba(108, 92, 231, .28);
    border-radius: 16px;
    font-size: 13.5px;
    color: var(--ink-2);
}
.login-hint a { color: var(--violet); font-weight: 600; margin-left: 6px; }

/* ---------- 归档 ---------- */
.archive-group { margin-bottom: 40px; }
.archive-year {
    display: flex; align-items: baseline; gap: 12px;
    margin-bottom: 14px;
}
.archive-year span {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -.04em;
    background: linear-gradient(120deg, var(--violet), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.archive-year small { font-size: 12px; color: var(--muted); }
.archive-list { border-top: 1px solid var(--line); }
.archive-item {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 8px;
    border-bottom: 1px solid var(--line);
    transition: background .2s, padding .2s;
    border-radius: 10px;
}
.archive-item:hover { background: rgba(108, 92, 231, .035); padding-left: 16px; }
.archive-date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; width: 38px; }
.archive-title { font-size: 15px; font-weight: 500; }
.archive-cat {
    margin-left: auto;
    font-size: 11px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    padding: 2px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.archive-arrow { color: var(--muted); font-size: 13px; opacity: 0; transition: opacity .2s; }
.archive-item:hover .archive-arrow { opacity: 1; }

/* ---------- 友人帐 ---------- */
.friend-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.friend-card {
    display: flex; align-items: flex-start; gap: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s;
    position: relative;
}
.friend-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.friend-card--me { border-style: dashed; background: rgba(255, 255, 255, .55); }
.friend-card__avatar {
    width: 50px; height: 50px;
    border-radius: 15px;
    display: grid; place-items: center;
    color: #fff; font-weight: 700; font-size: 19px;
    flex-shrink: 0;
}
.friend-card__body { min-width: 0; }
.friend-card__body strong { font-size: 15.5px; }
.friend-card__body p { margin: 5px 0 8px; font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.friend-card__url { font-size: 11.5px; color: var(--violet); opacity: .8; }
.friend-card__link { font-size: 12.5px; color: var(--violet); font-weight: 600; }
.friend-card__arrow { position: absolute; right: 18px; top: 18px; color: var(--muted); font-size: 14px; }

/* ---------- 编辑器 ---------- */
.editor-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 2px 0 8px; }
.editor-toolbar .btn { height: 34px; padding: 0 14px; font-size: 12.5px; }
.editor-toolbar svg { width: 15px; height: 15px; }
.editor-toolbar__hint { font-size: 11.5px; color: var(--muted); }
.form-field input[type="file"] {
    width: 100%;
    padding: 11px 14px;
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    background: #fdfdfe;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.form-field input[type="file"]:hover { border-color: rgba(108, 92, 231, .4); background: #fff; }
.form-field input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 6px 12px;
    border: 0;
    border-radius: 8px;
    background: rgba(108, 92, 231, .09);
    color: var(--violet);
    font-weight: 600;
    font-size: 12.5px;
    cursor: pointer;
}

/* ---------- 关于 ---------- */
.page-head--about { padding-bottom: 26px; }
.about-head {
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.about-head__text h1 { font-size: clamp(34px, 4.4vw, 52px); margin: 14px 0; letter-spacing: -.04em; }
.about-head__text p { margin: 0; color: var(--ink-2); max-width: 560px; line-height: 1.85; }
.about-head__card {
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 26px 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.about-head__card .avatar { margin: 0 auto 12px; }
.about-head__card strong { display: block; font-size: 16px; }
.about-head__card > span:not(.avatar) { font-size: 12px; color: var(--muted); }
.about-head__tags { display: flex; gap: 6px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.about-head__tags span {
    font-size: 10.5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(108, 92, 231, .07);
    color: #5a4bc4;
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 44px;
}
.about-stats > div {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.about-stats strong { display: block; font-size: 26px; letter-spacing: -.03em; }
.about-stats span { font-size: 11.5px; color: var(--muted); }
.about-prose h2 { font-size: 23px; margin: 34px 0 12px; }
.about-prose p { margin: 0 0 16px; color: var(--ink-2); font-size: 15.5px; line-height: 1.95; }
.about-prose blockquote {
    margin: 30px 0;
    padding: 20px 26px;
    border-radius: 0 16px 16px 0;
    border-left: 3px solid rgba(108, 92, 231, .5);
    background: linear-gradient(120deg, rgba(108, 92, 231, .06), rgba(74, 157, 248, .04));
    font-size: 15.5px;
    color: var(--ink-2);
}
.about-cats h2 { font-size: 23px; margin: 40px 0 16px; }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cat-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 20px 18px 24px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.cat-card__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.cat-card strong { display: block; font-size: 15px; }
.cat-card small { font-size: 12px; color: var(--muted); }

/* ---------- 留言板 ---------- */
.guestbook-form { margin-bottom: 42px; }
.guestbook-list { display: flex; flex-direction: column; }
.guestbook-item { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.guestbook-item__body { flex: 1; }
.guestbook-item__meta { display: flex; align-items: baseline; gap: 10px; margin-bottom: 5px; }
.guestbook-item__meta strong { font-size: 14px; }
.guestbook-item__meta span { font-size: 11.5px; color: var(--muted); }
.guestbook-item__body p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.8; }

/* ---------- 表单 ---------- */
.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 34px;
    box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.form-field label em { color: var(--coral); font-style: normal; margin-left: 2px; }
.form-field small { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="url"],
.form-field input[type="datetime-local"],
.form-field input[type="search"],
.form-field select,
.form-field textarea,
.input {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    background: #fdfdfe;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-field textarea { line-height: 1.7; resize: vertical; }
.form-field select { height: 42px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .input:focus {
    border-color: rgba(108, 92, 231, .5);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, .08);
}
.form-actions {
    display: flex; align-items: center; justify-content: flex-end; gap: 12px;
    margin-top: 26px;
}
.form-hint { margin-right: auto; font-size: 12px; color: var(--muted); }
.field-error { font-size: 12px; color: #d64545; }
.form-errors {
    background: #fff5f5;
    border: 1px solid rgba(255, 122, 122, .35);
    color: #b23b3b;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 18px;
}

/* ---------- 登录注册 ---------- */
.auth-page { padding: 70px 0 90px; }
.auth-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 40px 36px;
    box-shadow: var(--shadow-md);
}
.auth-card h1 { font-size: 30px; margin: 12px 0 8px; letter-spacing: -.03em; }
.auth-card__sub { font-size: 13.5px; color: var(--muted); margin: 0 0 24px; line-height: 1.7; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form .form-field input {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.auth-form .form-field input:focus {
    border-color: rgba(108, 92, 231, .5);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, .08);
}
.auth-card__foot { margin: 22px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.auth-card__foot a { color: var(--violet); font-weight: 600; }
.auth-card__hint { margin: 10px 0 0; text-align: center; font-size: 11.5px; color: var(--muted); }
.auth-card__hint a { color: var(--violet); }
.auth-card--center { text-align: center; }
.auth-success {
    display: inline-grid;
    place-items: center;
    width: 52px; height: 52px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: rgba(34, 193, 164, .12);
    color: #0e9c84;
    font-size: 24px;
}
.check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--ink-2);
    cursor: pointer;
    user-select: none;
}
.check-row input { width: 16px; height: 16px; accent-color: var(--violet); }

/* ---------- 社交图标 ---------- */
.social-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.social-link {
    display: inline-grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    backdrop-filter: blur(10px);
    transition: transform .25s, background .25s, color .25s, border-color .25s;
}
.social-link svg { width: 17px; height: 17px; }
.social-link:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .24); }
.social-row--dark .social-link {
    background: #fff;
    border-color: var(--line);
    color: var(--ink-2);
    box-shadow: var(--shadow-sm);
    backdrop-filter: none;
}
.social-row--dark .social-link:hover { color: var(--violet); border-color: rgba(108, 92, 231, .3); }
.hero-cinema__social { display: flex; justify-content: center; margin-top: 24px; }
.footer-brand .social-row { margin-top: 16px; }
.footer-brand .social-link {
    width: 36px; height: 36px;
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .16);
}
.footer-brand .social-link:hover { background: rgba(255, 255, 255, .12); }
.about-social { margin-top: 46px; }
.about-social h2 { font-size: 23px; margin: 0 0 8px; }
.about-social p { margin: 0 0 16px; font-size: 14px; color: var(--muted); }

/* ---------- 用户菜单 ---------- */
.user-menu { position: relative; }
.user-menu__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 10px 0 4px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}
.user-menu__trigger:hover { background: rgba(23, 26, 38, .05); }
.mini-avatar--nav { width: 30px; height: 30px; font-size: 12px; }
.user-menu__chev { width: 14px; height: 14px; opacity: .5; transition: transform .2s; }
.user-menu.is-open .user-menu__chev { transform: rotate(180deg); }
.user-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 238px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 80;
}
.user-menu.is-open .user-menu__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
}
.user-menu__head div { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.user-menu__head strong { font-size: 13.5px; }
.user-menu__head small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu__panel a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13.5px;
    color: var(--ink-2);
}
.user-menu__panel a:hover { background: rgba(108, 92, 231, .07); color: var(--violet); }
.user-menu__panel .user-menu__logout { color: #d64545; }
.user-menu__panel .user-menu__logout:hover { background: rgba(214, 69, 69, .08); color: #d64545; }

.has-hero .site-nav:not(.is-scrolled) .user-menu__trigger {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .28);
}
.has-hero .site-nav:not(.is-scrolled) .user-menu__trigger:hover { background: rgba(255, 255, 255, .18); }
.has-hero .site-nav:not(.is-scrolled) .mini-avatar--nav {
    background: rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .38);
}

/* ---------- 个人中心 ---------- */
.page-head--profile { padding-bottom: 24px; }
.profile-head { display: flex; align-items: center; gap: 20px; }
.profile-head__text { flex: 1; min-width: 0; }
.profile-head__text h1 { font-size: clamp(30px, 3.4vw, 42px); margin: 8px 0 6px; letter-spacing: -.03em; }
.profile-head__text p { margin: 0; color: var(--muted); font-size: 13px; }
.role-badge {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(108, 92, 231, .09);
    color: var(--violet);
    font-size: 11.5px;
    font-weight: 600;
}
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.profile-stats > div {
    padding: 18px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}
.profile-stats strong { display: block; font-size: 24px; letter-spacing: -.02em; }
.profile-stats span { font-size: 11.5px; color: var(--muted); }
.profile-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 20px; align-items: start; }
.profile-panel { padding: 24px; }
.profile-item { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.profile-item:last-of-type { border-bottom: 0; }
.profile-item p { margin: 0 0 6px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.profile-item:hover p { color: var(--violet); }
.profile-item__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; color: var(--muted); }
.profile-panel__sub { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.profile-form { display: flex; flex-direction: column; gap: 14px; }
.profile-form .btn { align-self: flex-start; margin-top: 4px; }
.profile-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
}
.profile-links a { color: var(--muted); }
.profile-links a:hover { color: var(--violet); }

/* ---------- 页脚 ---------- */
.site-footer {
    margin-top: 40px;
    background: #14161f;
    color: rgba(255, 255, 255, .66);
    padding: 56px 0 26px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 38px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand--footer .brand__text { color: #fff; }
.brand--footer .brand__text small { color: rgba(255, 255, 255, .45); }
.footer-brand p { margin: 16px 0 0; font-size: 12.5px; line-height: 1.9; color: rgba(255, 255, 255, .5); }
.footer-col h4 {
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
    margin-bottom: 14px;
    font-weight: 600;
}
.footer-col a { display: block; font-size: 13px; padding: 4px 0; color: rgba(255, 255, 255, .68); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 22px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .38);
}

/* ---------- 回到顶部 ---------- */
.to-top {
    position: fixed;
    right: 26px; bottom: 26px;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 17px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .3s, transform .3s;
    z-index: 50;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---------- 动效 ---------- */
html.js .reveal.will-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.will-reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    html.js .reveal.will-reveal { opacity: 1; transform: none; transition: none; }
    .hero-cinema__bg { animation: none; }
    .hero-cinema__scroll i::after { animation: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
    .nav-links a svg { display: none; }
    .nav-links a { gap: 0; }
}

@media (max-width: 1080px) {
    .nav-links a { padding: 8px 9px; font-size: 14px; }
    .nav-search { width: 150px; }
}

@media (max-height: 780px) and (min-width: 921px) {
    .hero-cinema__scroll { display: none; }
    .hero-cinema { padding-top: 122px; padding-bottom: 142px; }
}

@media (max-width: 920px) {
    .nav-links {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 20px 18px;
        background: rgba(251, 251, 254, .98);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px rgba(31, 38, 64, .08);
        display: none;
    }
    body.nav-open .nav-links { display: flex; background: #fbfbfe; }
    .nav-links a { gap: 10px; padding: 12px 14px; }
    .nav-links a svg { display: block; opacity: .65; }
    .nav-toggle { display: flex; }
    .nav-search { display: none; }
    .nav-actions { margin-left: auto; }
    .featured-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .featured-card--lg { grid-row: auto; }
    .featured-card:not(.featured-card--lg) .featured-card__cover { width: 160px; }
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split-panels, .friend-grid { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; gap: 32px; }
    .article-side { position: static; flex-direction: row; flex-wrap: wrap; }
    .side-card { flex: 1; min-width: 240px; }
    .friend-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-head { flex-direction: column; align-items: flex-start; }
    .about-head__card { width: 100%; }
    .cta-band { flex-direction: column; align-items: flex-start; padding: 36px 32px; }
    .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .container, .container--narrow { width: calc(100% - 32px); }
    .nav-inner { height: 66px; gap: 12px; }
    .brand__text small { display: none; }
    .nav-cta, .nav-login { display: none; }
    .nav-toggle { margin-left: auto; }
    .user-menu__name, .user-menu__chev { display: none; }
    .user-menu__trigger { height: auto; padding: 0; background: transparent; border: 0; }
    .profile-head { align-items: flex-start; gap: 14px; }
    .profile-head .avatar--xl { width: 64px; height: 64px; font-size: 24px; }
    .profile-head__text h1 { font-size: 28px; }
    .profile-stats { gap: 10px; }
    .profile-stats > div { padding: 14px 8px; }
    .profile-stats strong { font-size: 20px; }
    .profile-stats span { font-size: 10.5px; }
    .post-grid { grid-template-columns: 1fr; }
    .featured-card { flex-direction: column; }
    .featured-card:not(.featured-card--lg) .featured-card__cover { width: 100%; height: 170px; }
    .featured-card--lg .featured-card__cover { height: 220px; }
    .article-cover { height: 200px; border-radius: 20px; }
    .article-head h1 { font-size: 31px; }
    .article-foot { flex-direction: column; align-items: flex-start; }
    .archive-item { flex-wrap: wrap; gap: 8px 12px; }
    .archive-cat { margin-left: 0; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: 1fr; }
    .friend-strip { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 6px; align-items: flex-start; }
    .form-grid { grid-template-columns: 1fr; }
    .form-card, .auth-card { padding: 24px 20px; }
    .filter-query { margin-left: 0; }
    .section { padding: 40px 0; }
    .to-top { display: none; }
}
