/*
 * 时光录 · timelog
 * 二次元 / 樱花粉 · 星光紫 · 天青
 */

:root {
    --paper: #0e0c16;
    --paper-deep: #08070d;
    --card: #17141f;
    --surface: #1a1626;
    --surface-2: #211c30;
    --surface-3: #2b2439;
    --hairline: rgba(255, 255, 255, .1);
    --ink: #e9e4f6;
    --ink-soft: #b4adc7;
    --ink-dim: #8a83a0;
    --line: rgba(255, 255, 255, .1);
    --cinnabar: #ff6fa5;
    --cinnabar-deep: #ff8ab8;
    --bamboo: #6ee7ff;
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --pink: #ff6fa5;
    --pink-soft: rgba(255, 111, 165, .14);
    --violet: #b78cff;
    --sky: #7fdcff;
    --grad-main: linear-gradient(135deg, #ff6fa5 0%, #b78cff 52%, #6ee7ff 100%);
    --shadow-soft: 0 2px 12px rgba(0, 0, 0, .3);
    --shadow-hover: 0 4px 20px rgba(255, 111, 165, .18);
    --serif: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
    --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background-color: var(--paper);
    background-image:
        radial-gradient(920px 620px at 6% -8%, rgba(255, 111, 165, .2) 0%, rgba(255, 111, 165, 0) 62%),
        radial-gradient(880px 560px at 104% -4%, rgba(110, 231, 255, .16) 0%, rgba(110, 231, 255, 0) 60%),
        radial-gradient(780px 640px at 50% 112%, rgba(183, 140, 255, .18) 0%, rgba(183, 140, 255, 0) 64%);
    background-attachment: fixed;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14.5px;
    line-height: 1.75;
    letter-spacing: .01em;
}

/* 星光颗粒 */
.paper-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .75;
    background-image:
        radial-gradient(circle at 12% 22%, rgba(255, 158, 195, .75) 0 1.5px, transparent 1.5px),
        radial-gradient(circle at 68% 44%, rgba(150, 210, 255, .6) 0 1.5px, transparent 1.5px),
        radial-gradient(circle at 34% 78%, rgba(255, 255, 255, .9) 0 2px, transparent 2px),
        radial-gradient(circle at 88% 86%, rgba(196, 170, 255, .6) 0 1px, transparent 1px);
    background-size: 260px 260px, 320px 320px, 420px 420px, 180px 180px;
}

.tl-wrap {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s, color .2s;
}

a:hover {
    color: var(--cinnabar);
    border-bottom-color: rgba(166, 61, 42, .4);
}

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

::selection { background: rgba(255, 111, 165, .3); }

/* ---------- 头部 ---------- */

.site-head {
    position: relative;
    z-index: 40;
    padding: 44px 0 0;
}

.head-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

.brand { position: relative; }

.brand-name {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: .12em;
    border: none;
}

.brand-name:hover { color: var(--ink); }

.brand-sub {
    margin-top: 6px;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink-dim);
    letter-spacing: .12em;
}

/* 朱砂印章：取站名末字 */
.brand-seal {
    position: absolute;
    top: -14px;
    right: -44px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cinnabar);
    color: #f8f2e7;
    font-size: 19px;
    font-weight: 700;
    border-radius: 4px;
    transform: rotate(6deg);
    box-shadow: 1px 1px 0 rgba(140, 50, 34, .45);
    user-select: none;
}

.head-rule {
    margin-top: 22px;
    color: var(--line);
}

.head-rule svg { display: block; width: 100%; height: 8px; }

/* 导航 */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 10px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--ink);
    margin: 5px 0;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--sans);
}

.nav-item { position: relative; }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 14.5px;
    color: var(--ink-soft);
    border: none;
    letter-spacing: .05em;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
    color: var(--cinnabar);
}

.nav-link[aria-current="page"] {
    background-image: linear-gradient(transparent 62%, rgba(166, 61, 42, .22) 62%, rgba(166, 61, 42, .22) 92%, transparent 92%);
}

.nav-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
}

.nav-drop {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 128px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(43, 38, 32, .12);
    z-index: 30;
}

.nav-item:hover .nav-drop,
.nav-item:focus-within .nav-drop { display: block; }

.nav-drop .nav-link { display: flex; width: 100%; }

.nav-login {
    border: 1px solid var(--ink-soft);
    border-radius: var(--radius);
    padding: 5px 16px;
    margin-left: 6px;
}

.nav-login:hover {
    border-color: var(--cinnabar);
    background: var(--cinnabar);
    color: #f8f2e7;
}

/* ---------- 首页时间轴 ---------- */

.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 56px;
    padding-top: 46px;
    padding-bottom: 80px;
}

.home-intro {
    margin-bottom: 40px;
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--cinnabar);
    color: var(--ink-soft);
    font-size: 15px;
}

.home-intro p { margin: 0; }

.timeline { position: relative; }

.timeline::before {
    content: "";
    position: absolute;
    left: 42px;
    top: 6px;
    bottom: 0;
    width: 1px;
    background: repeating-linear-gradient(to bottom, var(--line) 0 5px, transparent 5px 11px);
}

.tl-month { position: relative; }

.tl-month-mark {
    position: relative;
    padding-left: 84px;
    margin: 44px 0 10px;
}

.tl-month:first-child { margin-top: 0; }

.tl-month-mark::before {
    content: "";
    position: absolute;
    left: 34px;
    top: 50%;
    width: 17px;
    height: 17px;
    transform: translateY(-50%) rotate(45deg);
    background: var(--cinnabar);
    border-radius: 3px;
}

.tl-month-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .2em;
    color: var(--ink-soft);
}

.tl-item {
    position: relative;
    padding-left: 84px;
    margin-bottom: 34px;
}

.tl-node {
    position: absolute;
    left: 38.5px;
    top: 30px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--ink-dim);
    transition: border-color .2s, background .2s;
}

.tl-item:hover .tl-node {
    border-color: var(--cinnabar);
    background: var(--cinnabar);
}

.tl-item.is-top .tl-node {
    border-color: var(--cinnabar);
}

.tl-date {
    position: absolute;
    left: 0;
    top: 22px;
    width: 30px;
    text-align: center;
}

.tl-date-d {
    display: block;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
}

.tl-date-w {
    display: block;
    font-size: 11px;
    color: var(--ink-dim);
    font-family: var(--sans);
}

.tl-card {
    display: flex;
    gap: 22px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: 0 1px 0 rgba(43, 38, 32, .04);
    transition: box-shadow .25s, transform .25s;
}

.tl-item:hover .tl-card {
    box-shadow: 0 8px 26px rgba(43, 38, 32, .09);
}

.tl-cover {
    flex: 0 0 168px;
    border: none;
    overflow: hidden;
    border-radius: 2px;
    align-self: flex-start;
}

.tl-cover img {
    display: block;
    width: 168px;
    height: 112px;
    object-fit: cover;
    filter: saturate(.92);
    transition: transform .4s ease;
}

.tl-cover:hover img { transform: scale(1.04); }

.tl-card-body { flex: 1; min-width: 0; }

.tl-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .02em;
}

.tl-title a { border: none; }

.tl-flag {
    display: inline-block;
    vertical-align: 3px;
    margin-left: 10px;
    padding: 1px 7px;
    font-size: 11px;
    font-family: var(--sans);
    color: #f8f2e7;
    background: var(--cinnabar);
    border-radius: 2px;
    letter-spacing: .1em;
}

.tl-excerpt {
    font-size: 14.5px;
    color: var(--ink-soft);
    line-height: 1.85;
}

.tl-meta {
    margin-top: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--ink-dim);
}

.tl-meta-sort {
    padding: 1px 8px;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--ink-soft);
}

.tl-meta-sort:hover { border-color: var(--cinnabar); }

.tl-tag {
    color: var(--ink-dim);
    font-size: 12.5px;
}

.tl-tag::before { content: "#"; color: var(--bamboo); }

.tl-stat { color: var(--ink-dim); }

.tl-stat::before { content: "·"; margin-right: 10px; color: var(--line); }

/* 翻页 */
.tl-pager { margin-top: 46px; text-align: center; font-family: var(--sans); }

.tl-pager a,
.tl-pager span {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 14px;
    font-size: 13.5px;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.tl-pager a:hover {
    color: var(--cinnabar);
    border-color: var(--cinnabar);
}

.tl-pager .current,
.tl-pager span.current {
    background: var(--cinnabar);
    border-color: var(--cinnabar);
    color: #f8f2e7;
}

.tl-empty { padding: 80px 0; text-align: center; font-size: 18px; }

.tl-empty .dim { color: var(--ink-dim); font-size: 14px; }

/* ---------- 侧边栏 ---------- */

.tl-side { padding-top: 6px; }

.wg {
    margin-bottom: 34px;
    padding-bottom: 26px;
    border-bottom: 1px dashed var(--line);
}

.wg:last-child { border-bottom: none; }

.wg-title {
    margin: 0 0 16px;
    font-size: 15px;
    letter-spacing: .28em;
    color: var(--ink);
    font-weight: 700;
}

.wg-title::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    background: var(--cinnabar);
    border-radius: 2px;
    transform: rotate(45deg) translateY(-1px);
}

.wg-list { margin: 0; padding: 0; list-style: none; font-size: 14.5px; }

.wg-list > li { padding: 5px 0; }

.wg-list a { color: var(--ink-soft); }

.wg-list a:hover { color: var(--cinnabar); }

.wg-num {
    margin-left: 8px;
    font-size: 12px;
    color: var(--ink-dim);
    font-family: var(--sans);
}

.wg-sub { padding-left: 18px; list-style: none; }

.wg-sub li { padding: 3px 0; }

.wg-blogger { text-align: center; }

.wg-blogger-ava img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 3px solid var(--card);
    box-shadow: 0 0 0 1px var(--line);
    object-fit: cover;
}

.wg-blogger-name { margin-top: 12px; font-size: 17px; font-weight: 700; }

.wg-blogger-desc {
    margin-top: 8px;
    font-size: 13px;
    color: var(--ink-dim);
    line-height: 1.8;
}

.wg-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.wg-tag {
    padding: 3px 12px;
    border: 1px solid var(--line);
    border-radius: 2px;
    font-size: 13px;
    color: var(--ink-soft);
    font-family: var(--sans);
    background: var(--card);
}

.wg-tag:hover { border-color: var(--cinnabar); color: var(--cinnabar); }

.wg-search { display: flex; gap: 8px; }

.wg-search-input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--ink);
    outline: none;
}

.wg-search-input:focus { border-color: var(--cinnabar); }

.wg-search-btn {
    padding: 8px 16px;
    border: 1px solid var(--ink-soft);
    background: none;
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 13.5px;
    cursor: pointer;
    color: var(--ink-soft);
}

.wg-search-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }

.wg-comment { display: flex; gap: 10px; }

.wg-comment-ava {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
}

.wg-comment-top {
    font-size: 13px;
    font-family: var(--sans);
}

.wg-comment-top span { margin-left: 8px; color: var(--ink-dim); font-size: 12px; }

.wg-comment a { font-size: 13.5px; color: var(--ink-soft); }

.wg-murmur-text { font-size: 14px; color: var(--ink-soft); }

.wg-murmur-meta { margin-top: 4px; font-size: 12px; color: var(--ink-dim); font-family: var(--sans); }

.wg-post a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wg-custom { font-size: 14px; color: var(--ink-soft); }

.wg-archive li a { display: flex; justify-content: space-between; }

#calendar table { width: 100%; font-size: 13px; font-family: var(--sans); color: var(--ink-soft); }
#calendar caption { font-weight: 700; letter-spacing: .2em; padding-bottom: 8px; }
#calendar a { color: var(--cinnabar); }

/* ---------- 文章页 ---------- */

.tl-article {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 0 90px;
}

.tl-article-head { text-align: center; margin-bottom: 38px; }

.tl-article-crumb {
    font-size: 13.5px;
    font-family: var(--sans);
    color: var(--ink-dim);
    margin-bottom: 16px;
}

.tl-sort { color: var(--cinnabar); border: none; letter-spacing: .1em; }

.tl-edit { margin-left: 14px; border: none; color: var(--ink-dim); }
.tl-edit:hover { color: var(--cinnabar); }

.tl-article-title {
    margin: 0;
    font-size: 34px;
    line-height: 1.45;
    font-weight: 700;
    letter-spacing: .03em;
}

.tl-article-meta {
    margin-top: 18px;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink-dim);
}

.tl-article-meta a { border: none; }

.tl-article-meta .dot { margin: 0 10px; color: var(--line); }

.tl-article-cover {
    margin: 0 0 40px;
    border-radius: var(--radius);
    overflow: hidden;
}

.tl-article-cover img { display: block; width: 100%; }

/* 正文排版 */
.tl-article-content { font-size: 16.5px; }

.tl-article-content p { margin: 0 0 1.4em; }

.tl-article-content h2,
.tl-article-content h3,
.tl-article-content h4 {
    margin: 2em 0 .9em;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.5;
}

.tl-article-content h2 { font-size: 23px; }

.tl-article-content h2::before {
    content: "§";
    margin-right: 10px;
    color: var(--cinnabar);
    font-weight: 400;
}

.tl-article-content h3 { font-size: 19px; }
.tl-article-content h4 { font-size: 16.5px; }

.tl-article-content a {
    color: var(--cinnabar);
    border-bottom: 1px solid rgba(255, 111, 165, .45);
}

.tl-article-content blockquote {
    margin: 1.8em 0;
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--bamboo);
    color: var(--ink-soft);
    font-size: 15.5px;
}

.tl-article-content blockquote p { margin-bottom: .6em; }

.tl-article-content ul,
.tl-article-content ol { padding-left: 1.6em; margin-bottom: 1.4em; }

.tl-article-content li { margin-bottom: .35em; }

.tl-article-content img { border-radius: var(--radius); }

.tl-article-content hr {
    border: none;
    text-align: center;
    margin: 2.6em 0;
    overflow: visible;
    height: auto;
}

.tl-article-content hr::after {
    content: "❖ ❖ ❖";
    font-size: 12px;
    letter-spacing: 1.2em;
    color: var(--line);
    padding-left: 1.2em;
}

.tl-article-content code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: .88em;
    background: var(--paper-deep);
    padding: 2px 6px;
    border-radius: 3px;
}

.tl-article-content pre {
    background: #100c1f;
    color: #ddd6f5;
    padding: 18px 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.7;
}

.tl-article-content pre code { background: none; padding: 0; color: inherit; }

.tl-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.4em;
    font-size: 14.5px;
}

.tl-article-content th,
.tl-article-content td {
    border: 1px solid var(--line);
    padding: 8px 12px;
    text-align: left;
}

.tl-article-content th { background: var(--paper-deep); }

.tl-article-tags { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }

/* 详情页 · 互动条 */
.tl-article-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    padding: 14px 0 0;
    border-top: 1px dashed var(--hairline);
}

.tl-act {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 999px;
    color: var(--ink-soft);
    font-family: var(--sans);
    font-size: 13px;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s, transform .15s;
}

.tl-act:hover {
    border-color: rgba(255, 111, 165, .4);
    color: var(--ink);
    transform: translateY(-1px);
}

.tl-act svg { flex: none; opacity: .88; }

.tl-act.on {
    color: var(--cinnabar);
    border-color: rgba(255, 111, 165, .45);
    background: var(--pink-soft);
}

.tl-act.tl-collect.on { color: var(--bamboo); border-color: rgba(110, 231, 255, .45); background: rgba(110, 231, 255, .12); }

.tl-act.tl-share { color: var(--ink-dim); }
.tl-act.tl-share:hover { color: var(--ink-soft); border-color: rgba(127, 220, 255, .4); }

.tl-act.is-busy { opacity: .6; pointer-events: none; }

/* 文末印章 */
.tl-seal-end {
    margin: 48px auto 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cinnabar);
    color: #f8f2e7;
    font-size: 20px;
    border-radius: 4px;
    transform: rotate(-4deg);
    box-shadow: 1px 1px 0 rgba(140, 50, 34, .45);
    user-select: none;
}

/* 上下篇 */
.tl-neighbor {
    margin-top: 44px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    font-family: var(--sans);
}

.tl-neighbor-item {
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    border-bottom: 1px solid var(--line);
}

.tl-neighbor-item.next { text-align: right; }

.tl-neighbor-item:hover { border-color: var(--cinnabar); }

.tl-neighbor-dir {
    display: block;
    font-size: 12px;
    color: var(--cinnabar);
    letter-spacing: .3em;
    margin-bottom: 6px;
}

.tl-neighbor-title {
    display: block;
    font-size: 14.5px;
    color: var(--ink-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- 评论 ---------- */

.tl-comments { margin-top: 56px; }

.tl-comments-title {
    font-size: 17px;
    letter-spacing: .24em;
    margin: 0 0 22px;
}

.tl-comment {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px 0;
    border-top: 1px dashed var(--line);
}

.tl-comment-child {
    flex: 0 0 auto;
    width: calc(100% - 48px);
    margin-top: 4px;
    margin-left: 48px;
    border-left: 2px solid var(--hairline);
    padding-left: 18px;
}

.tl-comment-ava {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
    border: 1px solid var(--line);
}

.tl-comment-body { flex: 1; min-width: 0; }

.tl-comment-head {
    font-family: var(--sans);
    font-size: 14px;
}

.tl-comment-head b { font-weight: 600; }

.tl-comment-head a { border: none; color: var(--ink); }

.tl-comment-time { margin-left: 10px; font-size: 12px; color: var(--ink-dim); }

.tl-comment-text {
    margin-top: 6px;
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.8;
}

.tl-comment-text p { margin: 0 0 .6em; }

.tl-comment-reply {
    margin-top: 8px;
    padding: 0;
    border: none;
    background: none;
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--ink-dim);
    cursor: pointer;
    letter-spacing: .1em;
}

.tl-comment-reply:hover { color: var(--cinnabar); }

.tl-comment-page { margin-top: 20px; font-family: var(--sans); }

/* 评论表单 */
.tl-comment-post {
    margin-bottom: 36px;
    padding: 26px 28px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.tl-comment-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    font-family: var(--serif);
    font-size: 15px;
    color: var(--ink);
    resize: vertical;
    outline: none;
}

.tl-comment-input:focus { border-color: var(--cinnabar); }

.tl-comment-fields {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.tl-input {
    flex: 1;
    min-width: 160px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 13.5px;
    outline: none;
}

.tl-input:focus { border-color: var(--cinnabar); }

.tl-captcha { margin-top: 12px; font-family: var(--sans); }

.tl-captcha input {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    margin-right: 8px;
    outline: none;
}

.tl-comment-actions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--sans);
    font-size: 14px;
}

.tl-btn {
    padding: 8px 26px;
    background: var(--cinnabar);
    color: #f8f2e7;
    border: 1px solid var(--cinnabar);
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 14px;
    letter-spacing: .2em;
    cursor: pointer;
    transition: background .2s;
}

.tl-btn:hover { background: var(--cinnabar-deep); }

.tl-btn.ghost {
    background: none;
    color: var(--ink-dim);
    border-color: var(--line);
    display: none;
}

.tl-btn.ghost:hover { color: var(--cinnabar); border-color: var(--cinnabar); }

/* ---------- 页脚 ---------- */

.site-foot { margin-top: 30px; }

.foot-rule { color: var(--line); }

.foot-rule svg { display: block; width: 100%; height: 8px; }

.foot-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 34px;
    padding-bottom: 40px;
}

.foot-brand { font-size: 20px; font-weight: 700; letter-spacing: .14em; }

.foot-note { margin-top: 6px; font-size: 12.5px; color: var(--ink-dim); font-family: var(--sans); }

.foot-right { text-align: right; font-family: var(--sans); }

.foot-line { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 4px; }

.foot-line.dim { color: var(--ink-dim); }

.foot-line a { border: none; color: var(--ink-soft); }

.to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink-soft);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(43, 38, 32, .1);
    z-index: 40;
}

.to-top:hover { color: var(--cinnabar); border-color: var(--cinnabar); }

.to-top svg { width: 18px; height: 18px; }

/* ---------- 用户中心 ---------- */

.uc-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 48px;
    padding-top: 46px;
    padding-bottom: 80px;
}

.uc-side-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
}

.uc-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--paper);
    box-shadow: 0 0 0 1px var(--line);
}

.uc-name { margin-top: 12px; font-size: 18px; font-weight: 700; }

.uc-bio {
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--ink-dim);
    font-family: var(--sans);
    line-height: 1.7;
    word-break: break-all;
}

.uc-menu {
    margin: 22px 0 0;
    padding: 18px 0 0;
    list-style: none;
    border-top: 1px dashed var(--line);
    text-align: left;
    font-family: var(--sans);
}

.uc-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 10px;
    font-size: 14px;
    color: var(--ink-soft);
    border: none;
    border-radius: var(--radius);
}

.uc-menu a:hover { color: var(--cinnabar); background: var(--paper); }

.uc-menu a.on {
    color: var(--cinnabar);
    background: rgba(166, 61, 42, .08);
}

.uc-menu .num { font-size: 12px; color: var(--ink-dim); }

.uc-quit {
    display: block;
    margin-top: 18px;
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--ink-dim);
    border: none;
}

.uc-main { min-width: 0; }

.uc-panel-title {
    margin: 0 0 24px;
    font-size: 21px;
    letter-spacing: .18em;
    font-weight: 700;
}

.uc-panel-title::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 10px;
    background: var(--cinnabar);
}

.uc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    margin-bottom: 36px;
}

.uc-stat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
}

.uc-stat b {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: var(--cinnabar);
    font-family: var(--sans);
}

.uc-stat span {
    font-size: 12.5px;
    color: var(--ink-dim);
    font-family: var(--sans);
    letter-spacing: .15em;
}

.uc-section-title {
    font-size: 15px;
    letter-spacing: .2em;
    margin: 0 0 14px;
    color: var(--ink-soft);
}

.uc-post-list { margin: 0; padding: 0; list-style: none; }

.uc-post-item {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 11px 2px;
    border-bottom: 1px dashed var(--line);
    font-size: 15px;
}

.uc-post-item time {
    flex: none;
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--ink-dim);
    width: 92px;
}

.uc-post-item a {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: none;
}

.uc-post-item .st {
    flex: none;
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink-dim);
}

.uc-post-item .st.draft { color: var(--cinnabar); }

.uc-post-item .op {
    flex: none;
    font-family: var(--sans);
    font-size: 12.5px;
}

.uc-comment-item {
    padding: 14px 2px;
    border-bottom: 1px dashed var(--line);
}

.uc-comment-text { font-size: 14.5px; color: var(--ink-soft); }

.uc-comment-meta {
    margin-top: 6px;
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--ink-dim);
}

.uc-form { max-width: 480px; font-family: var(--sans); }

.uc-form-row { margin-bottom: 18px; }

.uc-form-row label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    color: var(--ink-soft);
    letter-spacing: .1em;
}

.uc-form-row .uc-input {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    font-size: 14px;
    color: var(--ink);
    outline: none;
    font-family: var(--sans);
}

.uc-form-row .uc-input:focus { border-color: var(--cinnabar); }

.uc-form-row textarea.uc-input { resize: vertical; font-family: var(--serif); }

.uc-form-tip { margin-top: 5px; font-size: 12px; color: var(--ink-dim); }

.uc-msg {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 13.5px;
}

.uc-msg.ok {
    background: rgba(95, 112, 82, .12);
    border: 1px solid rgba(95, 112, 82, .4);
    color: var(--bamboo);
}

.uc-msg.err {
    background: rgba(166, 61, 42, .08);
    border: 1px solid rgba(166, 61, 42, .4);
    color: var(--cinnabar);
}

.uc-guest { text-align: center; padding: 90px 0; }

.uc-guest p { font-size: 17px; }

.uc-guest .tl-btn { display: inline-block; margin-top: 18px; text-decoration: none; }

/* ---------- 404 / 密码页 ---------- */

.tl-404, .tl-pw {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.nf-card, .pw-card {
    position: relative;
    z-index: 1;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 56px 64px;
    max-width: 420px;
    width: 100%;
}

.nf-code {
    font-size: 54px;
    font-weight: 700;
    letter-spacing: .3em;
    color: var(--cinnabar);
}

.nf-msg { margin: 18px 0 26px; color: var(--ink-soft); font-size: 15px; }

.nf-home {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
}

.pw-seal {
    margin: 0 auto 20px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cinnabar);
    color: #f8f2e7;
    font-size: 24px;
    border-radius: 4px;
    transform: rotate(-5deg);
}

.pw-tip { color: var(--ink-soft); font-size: 15px; margin: 0 0 22px; }

.pw-form { display: flex; gap: 10px; }

.pw-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    outline: none;
    font-family: var(--sans);
}

.pw-form input:focus { border-color: var(--cinnabar); }

.pw-form button {
    padding: 10px 20px;
    background: var(--cinnabar);
    color: #f8f2e7;
    border: none;
    border-radius: var(--radius);
    letter-spacing: .2em;
    cursor: pointer;
    font-family: var(--sans);
}

.pw-back {
    display: inline-block;
    margin-top: 22px;
    font-size: 13px;
    font-family: var(--sans);
    color: var(--ink-dim);
    border: none;
}

/* ---------- 登录 / 注册弹窗 ---------- */

body.modal-open { overflow: hidden; }

.tl-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.tl-modal.open { display: flex; }

.tl-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(4, 3, 10, .74);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.tl-modal-card {
    position: relative;
    width: 100%;
    max-width: 372px;
    padding: 34px 32px 28px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04) inset;
    animation: tlRise .26s ease-out;
}

@keyframes tlRise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.tl-modal-x {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--ink-dim);
    cursor: pointer;
}

.tl-modal-x svg { width: 16px; height: 16px; }

.tl-modal-x:hover { color: var(--cinnabar); }

.tl-modal-head { text-align: center; margin-bottom: 20px; }

.tl-modal-seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    background: var(--cinnabar);
    color: #f8f2e7;
    font-size: 19px;
    border-radius: 3px;
    transform: rotate(-4deg);
    box-shadow: 0 6px 16px rgba(166, 61, 42, .2);
}

.tl-modal-title {
    margin: 0;
    font-size: 20px;
    letter-spacing: .16em;
    font-weight: 700;
}

.tl-modal-sub {
    margin: 8px 0 0;
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--ink-dim);
    line-height: 1.7;
}

.tl-auth-tabs {
    display: flex;
    gap: 22px;
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--line);
}

.tl-auth-tabs button {
    position: relative;
    padding: 5px 0 9px;
    background: none;
    border: none;
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: .2em;
    color: var(--ink-dim);
    cursor: pointer;
}

.tl-auth-tabs button.on { color: var(--cinnabar); }

.tl-auth-tabs button.on::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--cinnabar);
}

.tl-auth-field { display: block; margin-bottom: 14px; }

.tl-auth-field span {
    display: block;
    margin-bottom: 6px;
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--ink-dim);
    letter-spacing: .1em;
}

.tl-auth-field input {
    width: 100%;
    padding: 10px 13px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink);
    outline: none;
}

.tl-auth-field input:focus { border-color: var(--cinnabar); }

.tl-auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 16px;
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--ink-dim);
    cursor: pointer;
}

.tl-auth-check input { margin: 0; accent-color: var(--cinnabar); }

.tl-auth-submit { width: 100%; }

.tl-auth-msg {
    min-height: 18px;
    margin: 10px 0 0;
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--ink-dim);
}

.tl-auth-msg.ok { color: var(--bamboo); }

.tl-auth-msg.err { color: var(--cinnabar); }

.nav-auth { display: inline-flex; align-items: center; gap: 8px; }

.nav-signup {
    padding: 5px 6px;
    font-size: 13px;
    color: var(--ink-dim);
    border: none;
}

.nav-signup:hover { color: var(--cinnabar); }

.tl-btn.ghost-line {
    background: none;
    color: var(--ink-soft);
    border-color: var(--line);
}

.tl-btn.ghost-line:hover {
    background: none;
    color: var(--cinnabar);
    border-color: var(--cinnabar);
}

/* ---------- 用户中心：写文章 ---------- */

.uc-write-btn {
    display: block;
    margin-top: 20px;
    padding: 9px 0;
    background: var(--cinnabar);
    color: #f8f2e7;
    border: none;
    border-bottom: none;
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 14px;
    letter-spacing: .26em;
    text-align: center;
}

.uc-write-btn:hover {
    background: var(--cinnabar-deep);
    color: #f8f2e7;
    border-bottom-color: transparent;
}

.uc-side-card .uc-quit { margin-top: 10px; }

.uc-write { max-width: 100%; }

.uc-write-head { margin-bottom: 6px; }

.uc-write-title {
    width: 100%;
    padding: 4px 2px 14px;
    background: none;
    border: none;
    border-bottom: 1px dashed var(--line);
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--ink);
    outline: none;
}

.uc-write-title:focus { border-color: var(--cinnabar); }

.uc-write-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 18px 0;
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--ink-dim);
}

.uc-write-select,
.uc-write-date { display: flex; align-items: center; gap: 8px; }

.uc-write-meta select,
.uc-write-date input {
    padding: 6px 9px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink);
    outline: none;
}

.uc-write-meta select:focus,
.uc-write-date input:focus { border-color: var(--cinnabar); }

.uc-write-date input { width: 178px; }

.uc-write-editor {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.uc-write-tools {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
    border-bottom: 1px dashed var(--line);
}

.uc-tool {
    padding: 4px 12px;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--ink-soft);
    cursor: pointer;
}

.uc-tool:hover { color: var(--cinnabar); border-color: var(--cinnabar); }

.uc-write-hint { font-family: var(--sans); font-size: 11.5px; color: var(--ink-dim); }

.uc-write-content {
    display: block;
    width: 100%;
    min-height: 320px;
    padding: 18px 20px;
    background: transparent;
    border: none;
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.9;
    color: var(--ink);
    outline: none;
    resize: vertical;
}

.uc-write-extra {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px dashed var(--line);
}

.uc-cover-row { display: flex; gap: 10px; align-items: center; }

.uc-cover-row .uc-input { flex: 1; }

.uc-cover-preview { margin: 10px 0 0; }

.uc-cover-preview img {
    max-width: 220px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.uc-write-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.uc-write-back {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink-dim);
    border: none;
}

.uc-write-back:hover { color: var(--cinnabar); }

.uc-write-note {
    margin: 14px 0 0;
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink-dim);
    letter-spacing: .04em;
}

/* 头像 / 文件选择 */

.uc-avatar-edit { display: flex; align-items: center; gap: 18px; }

.uc-avatar-edit .uc-avatar { width: 72px; height: 72px; }

.uc-avatar-acts { display: flex; flex-direction: column; gap: 7px; }

.uc-file-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--ink-soft);
    cursor: pointer;
    overflow: hidden;
}

.uc-file-btn:hover { color: var(--cinnabar); border-color: var(--cinnabar); }

.uc-file-btn input {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

.uc-inline-msg {
    min-height: 16px;
    margin: 0;
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink-dim);
}

.uc-inline-msg.ok { color: var(--bamboo); }

.uc-inline-msg.err { color: var(--cinnabar); }

/* 访客引导 */

.uc-guest-seal {
    width: 52px;
    height: 52px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cinnabar);
    color: #f8f2e7;
    font-size: 26px;
    border-radius: 4px;
    transform: rotate(-4deg);
    box-shadow: 0 8px 20px rgba(166, 61, 42, .18);
}

.uc-guest p { font-size: 16px; line-height: 2; color: var(--ink-soft); }

.uc-guest-acts {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}

.uc-guest-acts .tl-btn {
    display: inline-block;
    margin-top: 0;
    line-height: 1.6;
    text-decoration: none;
}

/* ---------- 响应式 ---------- */

@media (max-width: 960px) {
    .main-grid { grid-template-columns: 1fr; gap: 40px; }
    .uc-grid { grid-template-columns: 1fr; gap: 30px; }
    .uc-side-card { max-width: 420px; }
}

@media (max-width: 720px) {
    .site-head { padding-top: 28px; }
    .brand-name { font-size: 27px; }
    .brand-seal { width: 28px; height: 28px; font-size: 15px; right: -36px; top: -10px; }
    .nav-toggle { display: block; }
    .site-nav { display: none; width: 100%; }
    .site-nav.open { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; padding-top: 12px; }
    .nav-link { padding: 10px 6px; }
    .nav-drop { position: static; box-shadow: none; border: none; padding-left: 18px; display: block; background: transparent; }
    .nav-login { margin: 6px 0 0; text-align: center; }
    .nav-auth { display: flex; justify-content: center; margin: 6px 0 0; }
    .tl-modal-card { padding: 28px 22px 24px; }
    .uc-write-title { font-size: 20px; }
    .uc-write-date input { width: 100%; }

    .timeline::before { left: 30px; }
    .tl-item { padding-left: 58px; }
    .tl-date { display: none; }
    .tl-node { left: 26.5px; }
    .tl-month-mark { padding-left: 58px; }
    .tl-month-mark::before { left: 22px; }
    .tl-card { flex-direction: column; padding: 18px; }
    .tl-cover { flex: none; }
    .tl-cover img { width: 100%; height: 160px; }
    .tl-article-title { font-size: 26px; }
    .tl-neighbor { grid-template-columns: 1fr; }
    .tl-comment-child { width: calc(100% - 20px); margin-left: 20px; }
    .foot-inner { flex-direction: column; }
    .foot-right { text-align: left; }
    .nf-card, .pw-card { padding: 40px 26px; }
}

/* ==========================================================
   二次元皮肤 · 2026
   樱花粉 / 星光紫 / 天青，圆角 + 柔光 + 小装饰
   ========================================================== */

::selection { background: rgba(255, 122, 168, .24); }

/* ---------- 头部 ---------- */

.site-head { padding-top: 38px; }

.brand-name {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: .1em;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.brand-name:hover { border-bottom: none; }

.brand-seal {
    background: var(--grad-main);
    border-radius: 12px;
    transform: rotate(8deg);
    box-shadow: 0 8px 18px rgba(255, 122, 168, .3);
}

.brand-sub {
    color: var(--ink-dim);
    letter-spacing: .08em;
}

.head-rule { color: rgba(255, 122, 168, .42); }

.nav-link {
    border-radius: 4px;
    padding: 7px 14px;
    color: var(--ink-soft);
}

.nav-link:hover {
    color: var(--cinnabar-deep);
    background: var(--pink-soft);
}

.nav-link[aria-current="page"] {
    color: var(--cinnabar-deep);
    background: var(--pink-soft);
    background-image: none;
}

.nav-login {
    margin-left: 6px;
    padding: 6px 18px;
    border: none;
    border-radius: 4px;
    background: var(--grad-main);
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 122, 168, .26);
}

.nav-login:hover {
    background: linear-gradient(135deg, #ff8ab5, #b795ff);
    color: #fff;
    border: none;
}

.nav-signup { color: var(--ink-dim); }

.nav-drop {
    border-radius: 8px;
    border-color: var(--hairline);
    box-shadow: 0 16px 36px rgba(170, 140, 220, .2);
}

.nav-avatar {
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 0 0 2px rgba(255, 111, 165, .38);
}

.nav-toggle { border-radius: 12px; border-color: var(--hairline); background: var(--surface); }

/* ---------- 首页 ---------- */

.tl-list-page { padding-top: 44px; padding-bottom: 80px; }

.home-intro {
    padding: 16px 20px;
    border-left: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, .08);
    color: var(--ink-soft);
    font-size: 14.5px;
}

.tl-listbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.tl-listbar-count {
    font-size: 12.5px;
    color: var(--ink-dim);
    letter-spacing: .12em;
}

.tl-listbar-count::before {
    content: "❀ ";
    color: var(--pink);
}

.tl-view-switch {
    display: inline-flex;
    gap: 2px;
    padding: 4px;
    background: rgba(18, 14, 34, .68);
    border: 1px solid var(--hairline);
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.tl-view-switch button {
    min-width: 62px;
    padding: 5px 14px;
    background: none;
    border: none;
    border-radius: 4px;
    font-family: var(--sans);
    font-size: 12.5px;
    letter-spacing: .12em;
    color: var(--ink-dim);
    cursor: pointer;
    transition: color .2s, background .2s, box-shadow .2s;
}

.tl-view-switch button:hover { color: var(--cinnabar-deep); }

.tl-view-switch button.on {
    background: var(--grad-main);
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 122, 168, .26);
}

/* 时间轴 */

.timeline::before {
    width: 2px;
    background: repeating-linear-gradient(to bottom, rgba(255, 122, 168, .32) 0 4px, transparent 4px 12px);
}

.tl-month-mark::before {
    width: 15px;
    height: 15px;
    border-radius: 5px;
    background: var(--grad-main);
    box-shadow: 0 4px 12px rgba(255, 122, 168, .3);
}

.tl-month-text {
    font-size: 19px;
    letter-spacing: .18em;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.tl-node {
    width: 9px;
    height: 9px;
    border: 2px solid rgba(255, 122, 168, .55);
    background: var(--surface);
}

.tl-item:hover .tl-node {
    border-color: var(--cinnabar);
    background: var(--cinnabar);
    box-shadow: 0 0 0 4px rgba(255, 122, 168, .16);
}

.tl-date-d {
    font-size: 20px;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.tl-date-w { color: var(--ink-dim); }

.tl-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 22px 24px;
    box-shadow: 0 8px 24px rgba(180, 155, 255, .14);
}

.tl-item:hover .tl-card {
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px rgba(255, 122, 168, .28), 0 18px 40px rgba(255, 122, 168, .2);
}

.tl-cover { border-radius: 6px; }

.tl-cover img {
    border-radius: 6px;
    filter: none;
}

.tl-title { font-size: 19.5px; }

.tl-title a:hover { color: var(--cinnabar-deep); }

.tl-flag {
    background: var(--grad-main);
    border-radius: 4px;
    padding: 1px 10px;
    letter-spacing: .08em;
}

.tl-excerpt { color: var(--ink-soft); }

.tl-meta-sort {
    border: 1px solid var(--hairline);
    border-radius: 4px;
    padding: 2px 10px;
    background: var(--surface-2);
    color: var(--ink-soft);
}

.tl-tag::before { color: var(--violet); }

.tl-pager a,
.tl-pager span {
    border-radius: 4px;
    border-color: var(--hairline);
    background: var(--surface);
    box-shadow: 0 4px 12px rgba(180, 155, 255, .12);
}

.tl-pager a:hover { border-color: var(--cinnabar); background: var(--pink-soft); }

.tl-pager .current,
.tl-pager span.current {
    background: var(--grad-main);
    border-color: transparent;
    color: #fff;
}

.tl-empty {
    padding: 80px 0;
    font-size: 17px;
    color: var(--ink-soft);
}

/* 横排：杂志跨页（大图 + 居中标题 + 横向日期轨） */

.timeline[data-view="hero"]::before { display: none; }

.timeline[data-view="hero"] .tl-month {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    column-gap: 0;
    row-gap: 16px;
    align-content: space-between;
    min-height: 440px;
    margin-bottom: 26px;
    padding: 30px 32px 26px;
    border-radius: 26px;
    overflow: hidden;
    background-color: #3a2b52;
    background-image: linear-gradient(135deg, #ff9ec3 0%, #b49bff 55%, #7fc9ff 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 20px 50px rgba(150, 110, 210, .26);
}

.timeline[data-view="hero"] .tl-month::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(30, 18, 46, .42) 0%, rgba(30, 18, 46, .62) 48%, rgba(24, 14, 38, .82) 100%);
}

.timeline[data-view="hero"] .tl-month > * { position: relative; z-index: 1; }

.timeline[data-view="hero"] .tl-month-mark {
    position: absolute;
    top: 24px;
    left: 28px;
    z-index: 2;
    margin: 0;
    padding-left: 0;
}

.timeline[data-view="hero"] .tl-month-mark::before { display: none; }

.timeline[data-view="hero"] .tl-month-text {
    display: inline-block;
    padding: 4px 16px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 4px;
    background: rgba(255, 255, 255, .16);
    background-clip: border-box;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    color: #fff;
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: .16em;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* 头条：当月第一篇 */

.timeline[data-view="hero"] .tl-month > .tl-item:first-of-type {
    grid-column: 1 / -1;
    align-self: center;
    padding: 62px 14px 26px;
    margin: 0;
}

.timeline[data-view="hero"] .tl-month > .tl-item:first-of-type .tl-node,
.timeline[data-view="hero"] .tl-month > .tl-item:first-of-type .tl-date { display: none; }

.timeline[data-view="hero"] .tl-month > .tl-item:first-of-type .tl-card {
    display: block;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transform: none;
}

.timeline[data-view="hero"] .tl-month > .tl-item:first-of-type .tl-cover { display: none; }

.timeline[data-view="hero"] .tl-month > .tl-item:first-of-type .tl-card-body { padding: 0; }

.timeline[data-view="hero"] .tl-month > .tl-item:first-of-type .tl-title {
    margin: 0 0 22px;
    text-align: center;
    font-size: 33px;
    font-weight: 700;
    letter-spacing: .1em;
    color: #fff;
    text-shadow: 0 6px 26px rgba(26, 14, 42, .5);
}

.timeline[data-view="hero"] .tl-month > .tl-item:first-of-type .tl-title a { color: #fff; border-bottom: none; }

.timeline[data-view="hero"] .tl-month > .tl-item:first-of-type .tl-title a:hover { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .55); }

.timeline[data-view="hero"] .tl-month > .tl-item:first-of-type .tl-flag { background: rgba(255, 255, 255, .22); }

.timeline[data-view="hero"] .tl-month > .tl-item:first-of-type .tl-excerpt {
    margin: 0 0 0 auto;
    max-width: 56%;
    font-size: 13.5px;
    line-height: 2.05;
    color: rgba(255, 255, 255, .9);
    text-shadow: 0 2px 10px rgba(26, 14, 42, .45);
}

.timeline[data-view="hero"] .tl-month > .tl-item:first-of-type .tl-meta {
    justify-content: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, .76);
}

.timeline[data-view="hero"] .tl-month > .tl-item:first-of-type .tl-meta-sort {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
}

.timeline[data-view="hero"] .tl-month > .tl-item:first-of-type .tl-tag { color: rgba(255, 255, 255, .72); }

.timeline[data-view="hero"] .tl-month > .tl-item:first-of-type .tl-stat::before { color: rgba(255, 255, 255, .3); }

/* 日期轨：当月其余文章 */

.timeline[data-view="hero"] .tl-month > .tl-item:not(:first-of-type) {
    align-self: end;
    padding: 14px 4px 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, .26);
}

.timeline[data-view="hero"] .tl-month > .tl-item:not(:first-of-type) .tl-node { display: none; }

.timeline[data-view="hero"] .tl-month > .tl-item:not(:first-of-type) .tl-date {
    position: static;
    width: auto;
    margin: 0 auto 10px;
    text-align: center;
}

.timeline[data-view="hero"] .tl-month > .tl-item:not(:first-of-type) .tl-date-d {
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    background-clip: border-box;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    color: #fff;
    font-size: 14px;
    line-height: 42px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background .2s, transform .2s;
}

.timeline[data-view="hero"] .tl-month > .tl-item:not(:first-of-type) .tl-date-w {
    margin-top: 4px;
    color: rgba(255, 255, 255, .6);
    font-size: 10.5px;
}

.timeline[data-view="hero"] .tl-month > .tl-item:not(:first-of-type) .tl-card {
    display: block;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transform: none;
}

.timeline[data-view="hero"] .tl-month > .tl-item:not(:first-of-type) .tl-card-body { padding: 0; }

.timeline[data-view="hero"] .tl-month > .tl-item:not(:first-of-type) .tl-cover,
.timeline[data-view="hero"] .tl-month > .tl-item:not(:first-of-type) .tl-excerpt,
.timeline[data-view="hero"] .tl-month > .tl-item:not(:first-of-type) .tl-meta { display: none; }

.timeline[data-view="hero"] .tl-month > .tl-item:not(:first-of-type) .tl-title {
    writing-mode: vertical-rl;
    text-orientation: upright;
    width: 1.4em;
    max-height: 112px;
    margin: 0 auto;
    overflow: hidden;
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: .18em;
    color: rgba(255, 255, 255, .82);
}

.timeline[data-view="hero"] .tl-month > .tl-item:not(:first-of-type) .tl-title a { color: rgba(255, 255, 255, .82); }

.timeline[data-view="hero"] .tl-month > .tl-item:not(:first-of-type):hover .tl-date-d {
    background: var(--grad-main);
    border-color: transparent;
    transform: scale(1.06);
}

.timeline[data-view="hero"] .tl-month > .tl-item:not(:first-of-type):hover .tl-date-d,
.timeline[data-view="hero"] .tl-month > .tl-item:not(:first-of-type):hover .tl-date-w { color: #fff; }

/* ---------- 文章页 ---------- */

.tl-article {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 44px 46px 40px;
    margin-top: 44px;
    box-shadow: var(--shadow-soft);
}

.tl-article-title {
    font-size: 28px;
    letter-spacing: .04em;
}

.tl-article-crumb a { color: var(--cinnabar-deep); }

.tl-article-cover img { border-radius: 8px; }

.tl-article-tags .tl-tag { font-size: 13px; }

.tl-seal-end {
    background: var(--grad-main);
    border-radius: 10px;
}

.tl-comments input:not([type="submit"]),
.tl-comments textarea {
    border-radius: 6px;
    border-color: var(--hairline);
    background: var(--surface-2);
}

/* ---------- 页脚 ---------- */

.site-foot { padding-top: 40px; }

.foot-rule { color: rgba(255, 122, 168, .36); }

.foot-brand { color: var(--ink); letter-spacing: .1em; }

.foot-note { color: var(--ink-dim); }

.to-top {
    border: 1px solid var(--hairline);
    background: var(--surface);
    color: var(--cinnabar-deep);
    box-shadow: 0 8px 22px rgba(180, 155, 255, .2);
}

/* ---------- 用户中心 ---------- */

.uc-side-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}

.uc-avatar {
    border: 3px solid var(--surface-3);
    box-shadow: 0 0 0 3px rgba(255, 111, 165, .32), 0 8px 24px rgba(0, 0, 0, .5);
}

.uc-menu { border-top: 1px dashed var(--hairline); }

.uc-menu a { border-radius: 4px; }

.uc-menu a:hover { background: var(--surface-2); }

.uc-menu a.on {
    background: var(--pink-soft);
    color: var(--cinnabar-deep);
    font-weight: 700;
}

.uc-write-btn {
    border-radius: 4px;
    background: var(--grad-main);
    box-shadow: 0 8px 20px rgba(255, 122, 168, .26);
    letter-spacing: .2em;
}

.uc-write-btn:hover {
    background: linear-gradient(135deg, #ff8ab5, #b795ff);
}

.uc-panel-title {
    font-size: 20px;
    letter-spacing: .14em;
}

.uc-panel-title::after {
    width: 34px;
    height: 3px;
    border-radius: 4px;
    background: var(--grad-main);
}

.uc-stat {
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 6px 18px rgba(180, 155, 255, .12);
}

.uc-stat b {
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.uc-section-title {
    letter-spacing: .16em;
}

.uc-section-title::before {
    content: "✿";
    margin-right: 8px;
    color: var(--cinnabar);
}

.uc-post-list { border-top: none; }

.uc-post-item {
    border-radius: 6px;
    padding: 10px 14px;
    transition: background .2s;
}

.uc-post-item:hover { background: var(--surface-2); }

.uc-post-item .st {
    border-radius: 4px;
    padding: 1px 9px;
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    color: var(--ink-dim);
}

.uc-post-item .st.draft {
    background: var(--pink-soft);
    border-color: rgba(255, 111, 165, .45);
    color: var(--cinnabar-deep);
}

.uc-post-item .op { color: var(--cinnabar-deep); }

.uc-msg {
    border-radius: 6px;
    border: none;
    background: var(--pink-soft);
    color: var(--cinnabar-deep);
}

.uc-msg.ok {
    background: rgba(110, 231, 255, .12);
    color: var(--bamboo);
}

.uc-comment-item {
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 6px 18px rgba(180, 155, 255, .1);
}

.uc-form .uc-input,
.uc-form input[type="password"],
.uc-form input[type="email"],
.uc-form textarea {
    border-radius: 6px;
    border-color: var(--hairline);
    background: var(--surface-2);
}

.uc-form .uc-input:focus,
.uc-form textarea:focus {
    border-color: var(--cinnabar);
    box-shadow: 0 0 0 3px rgba(255, 122, 168, .14);
}

.uc-file-btn { border-radius: 4px; border-color: var(--hairline); background: var(--surface); }

/* 写作页 */

.uc-write-title { font-size: 24px; border-bottom-color: var(--hairline); }

.uc-write-select select,
.uc-write-date input {
    border-radius: 4px;
    border-color: var(--hairline);
    background: var(--surface);
    padding: 6px 14px;
}

.uc-write-editor {
    border-color: var(--hairline);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 6px 18px rgba(180, 155, 255, .1);
}

.uc-write-tools { border-bottom: 1px dashed var(--hairline); }

.uc-tool { border-radius: 4px; border-color: var(--hairline); background: var(--surface); }

.uc-write-extra { border-top: 1px dashed var(--hairline); }

.uc-write-note { color: var(--ink-dim); }

/* 访客引导 */

.uc-guest-seal {
    background: var(--grad-main);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(255, 122, 168, .26);
}

/* ---------- 按钮 ---------- */

.tl-btn {
    display: inline-block;
    padding: 9px 26px;
    border: none;
    border-radius: 4px;
    background: var(--grad-main);
    color: #fff;
    font-family: var(--sans);
    font-size: 13.5px;
    letter-spacing: .1em;
    line-height: 1.7;
    box-shadow: 0 8px 20px rgba(255, 122, 168, .26);
    transition: transform .2s, box-shadow .2s, background .2s;
    cursor: pointer;
}

.tl-btn:hover {
    color: #fff;
    border-bottom-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(180, 140, 255, .28);
}

.tl-btn.ghost-line {
    background: var(--surface);
    color: var(--ink-soft);
    border: 1px solid var(--hairline);
    box-shadow: none;
}

.tl-btn.ghost-line:hover {
    color: var(--cinnabar-deep);
    border-color: rgba(255, 111, 165, .45);
    background: var(--surface);
    box-shadow: 0 8px 18px rgba(255, 122, 168, .14);
}

/* ---------- 登录 / 注册弹窗 ---------- */

body.modal-open { overflow: hidden; }

.tl-modal-mask {
    background: rgba(52, 38, 76, .38);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    backdrop-filter: blur(6px) saturate(120%);
}

.tl-modal-card {
    max-width: 384px;
    padding: 34px 32px 28px;
    border: 1px solid var(--hairline);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 28px 70px rgba(150, 110, 210, .3);
    overflow: hidden;
}

.tl-modal-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--grad-main);
}

.tl-modal-seal {
    width: 40px;
    height: 40px;
    background: var(--grad-main);
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(255, 122, 168, .28);
}

.tl-modal-title { letter-spacing: .12em; }

.tl-modal-sub { color: var(--ink-dim); }

.tl-auth-tabs { border-bottom: 1px dashed var(--hairline); }

.tl-auth-tabs button.on::after {
    height: 3px;
    border-radius: 4px;
    background: var(--grad-main);
}

.tl-auth-field input {
    border-radius: 6px;
    border-color: var(--hairline);
    background: var(--surface-2);
}

.tl-auth-field input:focus {
    border-color: var(--cinnabar);
    box-shadow: 0 0 0 3px rgba(255, 122, 168, .14);
}

.tl-auth-check input { accent-color: var(--cinnabar); }

.tl-auth-submit { border-radius: 4px; }

/* ---------- 二次元响应式 ---------- */

@media (max-width: 960px) {
    .uc-grid { grid-template-columns: 1fr; gap: 26px; }
    .uc-side-card { max-width: 100%; }
}

@media (max-width: 720px) {
    .brand-name { font-size: 26px; }
    .brand-seal { border-radius: 10px; }

    .tl-list-page { padding-top: 30px; }

    .tl-listbar { flex-wrap: wrap; gap: 10px; }

    .tl-view-switch button { min-width: 54px; padding: 5px 10px; }

    .timeline[data-view="list"] .tl-card {
        flex-direction: column;
        padding: 16px;
    }

    .timeline[data-view="list"] .tl-cover { width: 100%; }

    .timeline[data-view="list"] .tl-cover img { width: 100%; height: 168px; }

    .timeline[data-view="hero"] .tl-month {
        grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
        min-height: 380px;
        padding: 22px 18px 18px;
        border-radius: 10px;
    }

    .timeline[data-view="hero"] .tl-month > .tl-item:first-of-type { padding: 46px 4px 20px; }

    .timeline[data-view="hero"] .tl-month > .tl-item:first-of-type .tl-title { font-size: 22px; }

    .timeline[data-view="hero"] .tl-month > .tl-item:first-of-type .tl-excerpt {
        max-width: 100%;
        margin-top: 14px;
        font-size: 12.5px;
        line-height: 1.95;
    }

    .timeline[data-view="hero"] .tl-month > .tl-item:not(:first-of-type) .tl-date-d {
        width: 36px;
        height: 36px;
        font-size: 12px;
        line-height: 34px;
    }

    .timeline[data-view="hero"] .tl-month > .tl-item:not(:first-of-type) .tl-title {
        max-height: 84px;
        font-size: 10.5px;
    }

    .tl-article { padding: 26px 20px 24px; margin-top: 26px; border-radius: 10px; }

    .tl-article-title { font-size: 23px; }

    .uc-side-card { border-radius: 8px; }

    .tl-modal-card { padding: 30px 20px 24px; border-radius: 10px; }
}

/* ==========================================================
   横排：把竖排横过来（横向滚动 + 自动加载）
   ========================================================== */

.timeline[data-view="horizontal"] {
    display: flex;
    align-items: stretch;
    gap: 30px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 14px 44px 34px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background:
        radial-gradient(760px 480px at 6% 0%, rgba(255, 111, 165, .13), rgba(255, 111, 165, 0) 62%),
        radial-gradient(700px 460px at 94% 100%, rgba(110, 231, 255, .1), rgba(110, 231, 255, 0) 60%);
}

.timeline[data-view="horizontal"]::-webkit-scrollbar { display: none; }

.timeline[data-view="horizontal"]::before { display: none; }

.timeline[data-view="horizontal"] .tl-month {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    gap: 20px;
    padding-right: 34px;
    margin: 0;
}

/* 横轴：一条连续的虚线轴，珠子落在轴上 */
.timeline[data-view="horizontal"] .tl-month::before {
    content: "";
    position: absolute;
    left: 0;
    right: -34px;
    bottom: 34px;
    height: 1px;
    background: repeating-linear-gradient(90deg, rgba(255, 111, 165, .48) 0 8px, transparent 8px 18px);
    pointer-events: none;
}

.timeline[data-view="horizontal"] .tl-month:last-child { padding-right: 0; }

.timeline[data-view="horizontal"] .tl-month:last-child::before { right: 4px; }

/* 轴的起点：一枚渐变菱形 */
.timeline[data-view="horizontal"] .tl-month:first-child::after {
    content: "";
    position: absolute;
    left: 1px;
    bottom: 28px;
    width: 13px;
    height: 13px;
    border-radius: 2px;
    transform: rotate(45deg);
    background: var(--grad-main);
    box-shadow: 0 0 16px rgba(255, 111, 165, .55);
}

.timeline[data-view="horizontal"] .tl-month-mark {
    position: sticky;
    left: 0;
    z-index: 4;
    flex: 0 0 auto;
    align-self: flex-start;
    margin: 0;
    padding: 0;
}

.timeline[data-view="horizontal"] .tl-month-mark::before { display: none; }

.timeline[data-view="horizontal"] .tl-month-text {
    display: inline-block;
    padding: 16px 7px;
    border-radius: 4px;
    background: var(--surface);
    -webkit-text-fill-color: currentColor;
    border: 1px solid var(--hairline);
    color: var(--ink-soft);
    font-size: 12px;
    letter-spacing: .16em;
    box-shadow: none;
    writing-mode: vertical-rl;
}

.timeline[data-view="horizontal"] .tl-item {
    position: relative;
    flex: 0 0 300px;
    width: 300px;
    height: 470px;
    display: flex;
    flex-direction: column;
    padding: 0 0 88px;
    margin: 0;
}

/* 轴上的空心环 */
.timeline[data-view="horizontal"] .tl-node {
    display: block;
    position: absolute;
    left: 50%;
    top: auto;
    bottom: 28px;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(255, 111, 165, .8);
    box-shadow: 0 0 10px rgba(255, 111, 165, .35);
    z-index: 2;
    transition: background .2s, border-color .2s, box-shadow .25s;
}

.timeline[data-view="horizontal"] .tl-item:hover .tl-node {
    background: var(--cinnabar);
    border-color: var(--cinnabar);
    box-shadow: 0 0 0 4px rgba(255, 111, 165, .18), 0 0 18px rgba(255, 111, 165, .6);
}

/* 日期落在轴上方：渐变数字 + 星期 */
.timeline[data-view="horizontal"] .tl-date {
    position: absolute;
    left: 2px;
    bottom: 46px;
    top: auto;
    z-index: 3;
    display: flex;
    align-items: baseline;
    gap: 9px;
    width: auto;
    margin: 0;
    text-align: left;
    text-shadow: none;
}

.timeline[data-view="horizontal"] .tl-date-d {
    display: block;
    font-size: 30px;
    line-height: 1;
    letter-spacing: .02em;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 10px rgba(255, 111, 165, .25));
}

.timeline[data-view="horizontal"] .tl-date-w {
    font-size: 11px;
    letter-spacing: .14em;
    color: var(--ink-dim);
}

.timeline[data-view="horizontal"] .tl-card {
    position: relative;
    flex: 1 1 auto;
    display: block;
    height: auto;
    padding: 0;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.timeline[data-view="horizontal"] .tl-item:hover .tl-card {
    transform: translateY(-4px);
    border-color: rgba(255, 111, 165, .45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 24px rgba(255, 111, 165, .18);
}

/* 封面铺满整张卡片，像一张海报 */
.timeline[data-view="horizontal"] .tl-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.timeline[data-view="horizontal"] .tl-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    filter: saturate(1.06) brightness(.9);
    transition: transform .6s ease, filter .4s;
}

.timeline[data-view="horizontal"] .tl-item:hover .tl-cover img {
    transform: scale(1.06);
    filter: saturate(1.16) brightness(1);
}

.timeline[data-view="horizontal"] .tl-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex: none;
    flex-direction: column;
    padding: 96px 22px 20px;
    background: linear-gradient(180deg, rgba(8, 6, 18, 0) 0%, rgba(8, 6, 18, .62) 40%, rgba(8, 6, 18, .95) 100%);
}

.timeline[data-view="horizontal"] .tl-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 10px;
    font-size: 18.5px;
    line-height: 1.5;
    letter-spacing: .02em;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .65);
}

.timeline[data-view="horizontal"] .tl-title a { color: #fff; }

.timeline[data-view="horizontal"] .tl-excerpt { display: none; }

.timeline[data-view="horizontal"] .tl-meta {
    margin-top: auto;
    padding-top: 10px;
    gap: 8px;
    font-size: 11.5px;
    color: rgba(236, 231, 255, .6);
}

.timeline[data-view="horizontal"] .tl-meta-sort {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .16);
    color: #ffd9e8;
}

.timeline[data-view="horizontal"] .tl-tag { color: rgba(236, 231, 255, .56); }

.timeline[data-view="horizontal"] .tl-stat { color: rgba(236, 231, 255, .5); }

/* 没有封面时，给一张渐变海报 */
.timeline[data-view="horizontal"] .tl-card:not(:has(.tl-cover))::before {
    content: "✿";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    background:
        radial-gradient(320px 240px at 72% 16%, rgba(110, 231, 255, .26), rgba(110, 231, 255, 0) 70%),
        radial-gradient(320px 280px at 20% 84%, rgba(255, 111, 165, .3), rgba(255, 111, 165, 0) 70%),
        linear-gradient(150deg, #241d3d, #100c20 72%);
    color: rgba(255, 255, 255, .55);
    font-size: 44px;
    letter-spacing: .32em;
}

@media (max-width: 720px) {
    .timeline[data-view="horizontal"] { gap: 22px; padding: 12px 20px 28px; }
    .timeline[data-view="horizontal"] .tl-item { flex: 0 0 244px; width: 244px; height: 400px; padding-bottom: 78px; }
    .timeline[data-view="horizontal"] .tl-month { gap: 14px; padding-right: 24px; }
    .timeline[data-view="horizontal"] .tl-month::before { right: -24px; bottom: 30px; }
    .timeline[data-view="horizontal"] .tl-node { bottom: 24px; }
    .timeline[data-view="horizontal"] .tl-month:first-child::after { bottom: 24px; left: 0; width: 12px; height: 12px; }
    .timeline[data-view="horizontal"] .tl-month-text { font-size: 11.5px; padding: 12px 5px; }
    .timeline[data-view="horizontal"] .tl-card-body { padding: 80px 16px 16px; }
    .timeline[data-view="horizontal"] .tl-title { font-size: 16px; }
    .timeline[data-view="horizontal"] .tl-date-d { font-size: 26px; }
    .timeline[data-view="horizontal"] .tl-date { left: 0; bottom: 40px; gap: 6px; }
}

/* ---------- 横排左右翻页按钮 ---------- */

.tl-board { position: relative; }

/* 横排时整块铺满屏幕 */
.tl-board:has(> .timeline[data-view="horizontal"]) {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.tl-scroll-btn {
    position: absolute;
    top: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    background: rgba(18, 14, 34, .78);
    color: #ffe1ee;
    cursor: pointer;
    z-index: 6;
    transform: translateY(-50%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 111, 165, .16);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: background .2s, color .2s, box-shadow .2s, transform .2s, opacity .2s;
}

.tl-scroll-btn svg { width: 28px; height: 28px; }

.tl-scroll-btn:hover {
    background: var(--grad-main);
    color: #fff;
    box-shadow: 0 18px 44px rgba(255, 111, 165, .36), 0 0 26px rgba(255, 111, 165, .4);
}

.tl-scroll-prev { left: 18px; }

.tl-scroll-next { right: 18px; }

.tl-scroll-prev:hover { transform: translateY(-50%) translateX(-3px) scale(1.06); }

.tl-scroll-next:hover { transform: translateY(-50%) translateX(3px) scale(1.06); }

.tl-board:has(> .timeline[data-view="horizontal"]) .tl-scroll-btn { display: flex; }

.tl-board.at-start .tl-scroll-prev,
.tl-board.at-end .tl-scroll-next {
    opacity: .22;
    pointer-events: none;
    box-shadow: none;
}

@media (max-width: 720px) {
    .tl-scroll-btn { width: 48px; height: 48px; }
    .tl-scroll-btn svg { width: 22px; height: 22px; }
    .tl-scroll-prev { left: 6px; }
    .tl-scroll-next { right: 6px; }
}

/* ---------- 无限加载 ---------- */

.tl-loadmore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 26px 0 8px;
    color: var(--ink-dim);
    font-size: 12.5px;
    letter-spacing: .14em;
}

.tl-loadmore-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grad-main);
    animation: tlPulse 1.1s ease-in-out infinite;
}

.tl-loadmore.end { color: var(--ink-dim); }

.tl-loadmore.end .tl-loadmore-dot {
    animation: none;
    background: #ffd0e2;
}

.tl-loadmore.retry {
    color: var(--cinnabar-deep);
    cursor: pointer;
}

.tl-loadmore.retry .tl-loadmore-dot {
    animation: none;
    background: var(--cinnabar);
}

@keyframes tlPulse {
    0%, 100% { transform: scale(.7); opacity: .5; }
    50% { transform: scale(1.15); opacity: 1; }
}

.tl-pager.is-infinite { display: none; }

/* ---------- 二次元小元素 ---------- */

.tl-petals {
    position: fixed;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
}

.tl-petal {
    position: absolute;
    top: -8vh;
    left: var(--l, 10%);
    width: 13px;
    height: 13px;
    background: radial-gradient(circle at 32% 28%, #ffe4ef, rgba(255, 158, 195, .92));
    border-radius: 62% 38% 55% 45% / 55% 62% 38% 45%;
    opacity: .42;
    transform: scale(var(--s, 1));
    animation: tlFall var(--d, 16s) linear var(--dl, 0s) infinite;
}

@keyframes tlFall {
    0% { transform: translate3d(0, -12vh, 0) rotate(0deg) scale(var(--s, 1)); }
    100% { transform: translate3d(-14vw, 114vh, 0) rotate(300deg) scale(var(--s, 1)); }
}

.brand-name {
    background-size: 180% 180%;
    animation: tlShimmer 9s ease-in-out infinite;
}

@keyframes tlShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.brand-sub::before {
    content: "✧ ";
    color: var(--violet);
}

.tl-card { position: relative; }

.tl-card::after {
    content: "✦";
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    color: #ff9ec3;
    font-size: 13px;
    opacity: .3;
    transform: scale(.8);
    transition: opacity .25s, transform .25s;
    text-shadow: 0 2px 8px rgba(255, 122, 168, .4);
}

/* 与卡片上浮同一触发范围，鼠标落在日期或卡片上都会亮起 */
.tl-item:hover .tl-card::after {
    opacity: .95;
    transform: scale(1) rotate(18deg);
}

.tl-view-switch button.on {
    background-size: 160% 160%;
    animation: tlShimmer 7s ease-in-out infinite;
}

::-webkit-scrollbar { width: 10px; height: 10px; }

::-webkit-scrollbar-track { background: transparent; }

::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 4px;
    background: linear-gradient(180deg, #ff6fa5, #b78cff);
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover { background: #ff8fbe; background-clip: padding-box; }

@media (prefers-reduced-motion: reduce) {
    .tl-petal, .brand-name, .tl-view-switch button.on, .tl-loadmore-dot { animation: none; }
}

@media (max-width: 720px) {
    .tl-petals { display: none; }
}

/* ==========================================================
   夜色 · 层次与细节
   ========================================================== */

.tl-card {
    box-shadow: 0 16px 38px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .035) inset;
}

.tl-item:hover .tl-card {
    box-shadow: 0 22px 48px rgba(0, 0, 0, .58), 0 0 32px rgba(255, 111, 165, .18);
}

.brand-seal {
    background: var(--grad-main);
    box-shadow: 0 6px 18px rgba(255, 111, 165, .38);
}

.nav-drop {
    box-shadow: 0 18px 44px rgba(0, 0, 0, .6);
}

/* 深色底上的输入框统一用浅字，占位文字压暗 */
.tl-comments input:not([type="submit"]),
.tl-comments textarea,
.tl-auth-field input,
.uc-input,
.uc-write-content,
.uc-write-title,
.uc-write-select {
    color: var(--ink);
}

.tl-comments input::placeholder,
.tl-comments textarea::placeholder,
.tl-auth-field input::placeholder,
.uc-input::placeholder,
.uc-write-title::placeholder {
    color: var(--ink-dim);
}

/* 花瓣在夜里带一点微光 */
.tl-petal {
    background: radial-gradient(circle at 32% 28%, #ffd9e8, rgba(255, 111, 165, .9));
    opacity: .55;
    box-shadow: 0 0 14px rgba(255, 111, 165, .45);
}

/* ==========================================================
   Element 化 · 系统组件 + 二次元时间轴
   ========================================================== */

/* ---------- 背景漂浮光球 ---------- */

.tl-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.tl-orb {
    position: absolute;
    left: var(--x, 10%);
    top: var(--y, 12%);
    width: var(--s, 220px);
    height: var(--s, 220px);
    border-radius: 50%;
    background: radial-gradient(circle at 34% 30%,
            rgba(var(--c), .32) 0%,
            rgba(var(--c), .08) 46%,
            rgba(var(--c), 0) 70%);
    filter: blur(4px);
    opacity: .5;
    animation: tlOrb var(--t, 26s) ease-in-out infinite;
}

@keyframes tlOrb {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(16px, -26px, 0) scale(1.06); }
}

/* ---------- 竖排：虚线轴 / 空心环 / 平铺卡片 ---------- */

.timeline[data-view="list"]::before {
    left: 42.5px;
    width: 1px;
    background: repeating-linear-gradient(to bottom, rgba(255, 111, 165, .46) 0 6px, transparent 6px 14px);
}

.timeline[data-view="list"] .tl-month-mark { margin: 40px 0 6px; }

.timeline[data-view="list"] .tl-month-mark::before {
    left: 35px;
    width: 15px;
    height: 15px;
    border-radius: 2px;
    background: var(--grad-main);
    box-shadow: 0 0 14px rgba(255, 111, 165, .4);
}

.timeline[data-view="list"] .tl-month-text {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .12em;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.timeline[data-view="list"] .tl-item { margin-bottom: 12px; }

.timeline[data-view="list"] .tl-node {
    left: 37.5px;
    top: 25px;
    width: 11px;
    height: 11px;
    background: transparent;
    border: 2px solid rgba(255, 111, 165, .6);
}

.timeline[data-view="list"] .tl-item:hover .tl-node {
    background: var(--cinnabar);
    border-color: var(--cinnabar);
    box-shadow: 0 0 0 4px rgba(255, 111, 165, .16), 0 0 14px rgba(255, 111, 165, .5);
}

.timeline[data-view="list"] .tl-date { top: 24px; }

.timeline[data-view="list"] .tl-date-d { font-size: 22px; font-weight: 700; }

.timeline[data-view="list"] .tl-date-w { font-size: 10px; letter-spacing: .04em; }

.timeline[data-view="list"] .tl-card {
    gap: 18px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    box-shadow: none;
}

.timeline[data-view="list"] .tl-item:hover .tl-card {
    transform: none;
    background: var(--surface-2);
    border-color: rgba(255, 111, 165, .36);
    box-shadow: 0 0 0 1px rgba(255, 111, 165, .14);
}

.timeline[data-view="list"] .tl-cover {
    flex: 0 0 150px;
    border-radius: var(--radius-sm);
}

.timeline[data-view="list"] .tl-cover img {
    width: 150px;
    height: 94px;
    border-radius: var(--radius-sm);
}

.timeline[data-view="list"] .tl-title {
    margin-bottom: 6px;
    font-size: 17px;
    font-weight: 600;
}

.timeline[data-view="list"] .tl-excerpt {
    font-size: 13px;
    line-height: 1.7;
    color: var(--ink-soft);
}

.timeline[data-view="list"] .tl-meta { margin-top: 10px; gap: 8px; font-size: 12px; }

.timeline[data-view="list"] .tl-item.is-top .tl-card { border-color: rgba(255, 111, 165, .34); }

/* ---------- 控件：输入 / 按钮 / 分段器 ---------- */

.tl-comment-input,
.tl-input,
.tl-captcha input,
.tl-auth-field input,
.pw-form input,
.uc-input,
.uc-form input,
.uc-form textarea,
.uc-write-title,
.uc-write-content,
.uc-write-meta select,
.uc-write-date input {
    background: var(--paper-deep);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    color: var(--ink);
    box-shadow: none;
}

.tl-comment-input:focus,
.tl-input:focus,
.tl-auth-field input:focus,
.pw-form input:focus,
.uc-input:focus,
.uc-form textarea:focus,
.uc-write-title:focus,
.uc-write-meta select:focus,
.uc-write-date input:focus {
    border-color: var(--cinnabar);
    box-shadow: 0 0 0 2px rgba(255, 111, 165, .14);
}

.tl-btn,
.uc-write-btn,
.nav-login {
    background: var(--cinnabar);
    background-image: none;
    border-radius: var(--radius-sm);
    box-shadow: none;
    letter-spacing: .06em;
}

.tl-btn:hover,
.uc-write-btn:hover,
.nav-login:hover {
    background: var(--cinnabar-deep);
    background-image: none;
    color: #fff;
    transform: none;
    box-shadow: none;
}

.tl-btn.ghost-line { background: var(--surface); color: var(--ink-soft); }

.tl-view-switch {
    padding: 0;
    gap: 0;
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    overflow: hidden;
}

.tl-view-switch button {
    min-width: 56px;
    padding: 6px 16px;
    border-radius: 0;
    font-size: 13px;
    letter-spacing: .04em;
}

.tl-view-switch button.on {
    background: var(--cinnabar);
    background-image: none;
    color: #fff;
    box-shadow: none;
}

/* ---------- 面板 / 卡片 ---------- */

.tl-article,
.uc-side-card,
.uc-stat,
.uc-comment-item,
.uc-write-editor,
.tl-comment-post,
.home-intro {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    box-shadow: none;
}

.tl-modal-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px 4px rgba(0, 0, 0, .42), 0 8px 20px rgba(0, 0, 0, .3);
}

.nav-drop {
    background: var(--surface);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}

.nav-toggle { border-radius: var(--radius-sm); }

/* ---------- 标签 / 分页 ---------- */

.tl-flag {
    padding: 1px 7px;
    border: 1px solid rgba(255, 111, 165, .28);
    border-radius: var(--radius-sm);
    background: rgba(255, 111, 165, .14);
    background-image: none;
    color: var(--cinnabar);
    font-size: 11px;
    font-weight: 500;
}

.tl-meta-sort {
    padding: 1px 8px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--ink-soft);
}

.uc-post-item .st,
.uc-menu a { border-radius: var(--radius-sm); }

.tl-pager a,
.tl-pager span {
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: none;
    font-size: 13px;
}

.tl-pager .current,
.tl-pager span.current {
    background: var(--cinnabar);
    background-image: none;
    border-color: var(--cinnabar);
    color: #fff;
}

/* ---------- 排版细节 ---------- */

.tl-comments-title,
.uc-panel-title,
.uc-section-title,
.tl-listbar-count { letter-spacing: .06em; }

.tl-article-content { font-size: 15.5px; }

.tl-article-content h2 { font-size: 21px; }

.tl-article-content h3 { font-size: 18px; }

::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); }

::-webkit-scrollbar-thumb:hover { background: rgba(255, 111, 165, .5); }

@media (prefers-reduced-motion: reduce) {
    .tl-orb { animation: none; }
}

/* ==========================================================
   用户中心 · 交付前细节打磨
   ========================================================== */

/* ---------- 整体骨架 ---------- */

.uc-grid {
    grid-template-columns: 224px minmax(0, 1fr);
    gap: 36px;
    max-width: 1160px;
}

.uc-grid > aside {
    position: sticky;
    top: 22px;
    align-self: start;
}

/* ---------- 侧边名片 ---------- */

.uc-side-card {
    padding: 24px 18px 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .28);
}

.uc-avatar { width: 80px; height: 80px; }

.uc-name { font-size: 17px; letter-spacing: .02em; }

.uc-bio {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    word-break: break-word;
}

.uc-menu a {
    padding: 9px 10px 9px 12px;
    gap: 10px;
}

.uc-menu a.on {
    box-shadow: inset 2px 0 0 var(--cinnabar);
}

.uc-menu .num {
    min-width: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

.uc-menu a.on .num {
    background: rgba(255, 111, 165, .18);
    color: var(--cinnabar-deep);
}

.uc-write-btn {
    padding: 8px 0;
    font-size: 13px;
    letter-spacing: .12em;
}

.uc-quit { margin-top: 14px; }

.uc-quit:hover { color: var(--cinnabar); }

/* ---------- 面板标题 / 统计 ---------- */

.uc-panel-title {
    margin-bottom: 22px;
    font-size: 19px;
    letter-spacing: .1em;
}

.uc-panel-title::after {
    width: 30px;
    height: 2px;
}

.uc-stats { gap: 12px; margin-bottom: 32px; }

.uc-stat { padding: 16px 12px; }

.uc-stat b {
    font-size: 22px;
    letter-spacing: .02em;
}

.uc-stat span {
    font-size: 12px;
    letter-spacing: .1em;
}

/* ---------- 文章列表 ---------- */

.uc-post-list { border-top: 1px solid var(--hairline); }

.uc-post-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    font-size: 14.5px;
}

.uc-post-item time {
    width: auto;
    font-size: 12px;
}

.uc-post-item .st {
    padding: 0;
    border: none;
    background: none;
    color: var(--ink-dim);
    font-size: 12px;
}

.uc-post-item .st.draft {
    padding: 1px 8px;
    border: 1px solid rgba(255, 111, 165, .35);
    background: var(--pink-soft);
}

.uc-post-item .op {
    padding: 1px 8px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--ink-dim);
    font-size: 12px;
}

.uc-post-item .op:hover {
    border-color: rgba(255, 111, 165, .3);
    background: var(--pink-soft);
    color: var(--cinnabar-deep);
}

/* ---------- 评论列表 ---------- */

.uc-comment-item {
    margin-bottom: 10px;
    padding: 14px 16px;
    border-radius: var(--radius);
}

.uc-comment-item:last-child { margin-bottom: 0; }

.uc-comment-text {
    font-size: 14px;
    line-height: 1.75;
    color: var(--ink);
}

.uc-comment-meta { margin-top: 8px; font-size: 12px; }

/* 空状态 */

.uc-empty {
    margin: 0;
    padding: 44px 20px;
    border: 1px dashed var(--hairline);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .02);
    color: var(--ink-dim);
    font-size: 13.5px;
    text-align: center;
}

.uc-empty a { color: var(--cinnabar); }

/* ---------- 表单面板 ---------- */

.uc-form:not(.uc-write) {
    max-width: 560px;
    padding: 24px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.uc-form-row { margin-bottom: 20px; }

.uc-form-row label {
    margin-bottom: 8px;
    font-size: 12.5px;
    letter-spacing: .06em;
}

.uc-form-row .uc-input,
.uc-form input[type="password"],
.uc-form input[type="email"],
.uc-form textarea {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.uc-form-tip {
    margin-top: 6px;
    line-height: 1.6;
}

.uc-form .tl-btn { margin-top: 6px; min-width: 120px; }

.uc-avatar-edit {
    gap: 16px;
    padding: 14px;
    border: 1px dashed var(--hairline);
    border-radius: var(--radius);
    background: var(--paper-deep);
}

.uc-avatar-edit .uc-avatar { width: 64px; height: 64px; }

/* ---------- 写作页 ---------- */

.uc-write .uc-write-title {
    padding: 4px 2px 14px;
    border: 0;
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
    background: transparent;
    font-size: 24px;
}

.uc-write .uc-write-title:focus {
    border-bottom-color: var(--cinnabar);
    box-shadow: none;
}

.uc-write-meta { gap: 10px; margin: 16px 0 18px; }

.uc-write-select,
.uc-write-date {
    padding: 0 4px 0 10px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.uc-write-meta select,
.uc-write-date input {
    padding: 5px 8px;
    border: none;
    border-radius: 0;
    background: transparent;
}

.uc-write-select:focus-within,
.uc-write-date:focus-within { border-color: var(--cinnabar); }

.uc-write-meta select:focus,
.uc-write-date input:focus { box-shadow: none; }

.uc-write-editor { background: var(--surface); }

.uc-write-tools {
    padding: 8px 10px;
    gap: 10px;
    background: var(--paper-deep);
}

.uc-write .uc-write-content {
    min-height: 340px;
    padding: 18px 20px;
    border: 0;
    background: transparent;
    font-size: 15.5px;
}

.uc-write-extra {
    margin-top: 24px;
    padding-top: 22px;
}

/* 写作页分类下拉：藏掉原生外观，自绘箭头 */
.uc-select { position: relative; }

.uc-select select {
    display: block;
    width: 100%;
    padding: 8px 38px 8px 12px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background-color: var(--paper-deep);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
    appearance: none;
    -webkit-appearance: none;
    color-scheme: dark;
    cursor: pointer;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.uc-select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 15px;
    width: 7px;
    height: 7px;
    margin-top: -5px;
    border-right: 1.5px solid var(--ink-dim);
    border-bottom: 1.5px solid var(--ink-dim);
    transform: rotate(45deg);
    pointer-events: none;
    transition: border-color .2s;
}

.uc-select select:hover { border-color: rgba(255, 255, 255, .2); }

.uc-select select:focus {
    border-color: var(--cinnabar);
    box-shadow: 0 0 0 2px rgba(255, 111, 165, .14);
}

.uc-select:hover::after,
.uc-select:focus-within::after { border-color: var(--cinnabar); }

.uc-select select option {
    background: var(--surface);
    color: var(--ink);
}

.uc-write-actions {
    gap: 10px;
    margin-top: 24px;
}

.uc-write-back { margin-left: 4px; }

.uc-cover-preview img { border-radius: var(--radius-sm); }

/* ---------- 用户中心 · 扩充功能 ---------- */

/* 列表行操作 */
.uc-post-ops {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.uc-post-ops form { margin: 0; }

.uc-post-ops .op {
    background: none;
    font-family: var(--sans);
    cursor: pointer;
}

.uc-post-item .op.op-del { color: rgba(255, 122, 168, .72); }

.uc-post-item .op.op-del:hover {
    border-color: rgba(255, 111, 165, .4);
    background: var(--pink-soft);
    color: var(--cinnabar);
}

.uc-comment-del {
    display: inline-block;
    margin-left: 10px;
    vertical-align: baseline;
}

.uc-comment-del .op {
    padding: 0 4px;
    border: 0;
    background: none;
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink-dim);
    cursor: pointer;
}

.uc-comment-del .op:hover { color: var(--cinnabar); }

/* 近七日发布 */
.uc-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 28px;
    padding: 16px 18px 12px;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
}

.uc-week-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: var(--sans);
}

.uc-week-num {
    font-size: 12px;
    color: var(--ink-dim);
}

.uc-week-bar {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 52px;
    border-bottom: 1px dashed var(--hairline);
}

.uc-week-bar i {
    display: block;
    width: 100%;
    min-height: 4px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(to top, rgba(255, 111, 165, .18), var(--cinnabar));
}

.uc-week-day em {
    font-style: normal;
    font-size: 11px;
    color: var(--ink-dim);
}

.uc-week-day.today .uc-week-num,
.uc-week-day.today em { color: var(--cinnabar-deep); }

.uc-week-day.today .uc-week-bar { border-bottom-color: rgba(255, 111, 165, .35); }

/* 快捷入口 */
.uc-quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 34px;
}

.uc-quick a {
    display: block;
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    transition: border-color .2s, background .2s, transform .2s;
}

.uc-quick a:hover {
    border-color: rgba(255, 111, 165, .4);
    background: var(--surface-2);
    color: var(--ink);
    transform: translateY(-1px);
}

.uc-quick b {
    display: block;
    font-size: 14px;
    letter-spacing: .06em;
}

.uc-quick span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--ink-dim);
}

.uc-brief {
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.uc-brief li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--hairline);
    font-size: 13.5px;
}

.uc-brief a { color: var(--ink-soft); }

.uc-brief a:hover { color: var(--cinnabar); }

.uc-brief time {
    flex: none;
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink-dim);
}

/* 我的标签 */
.uc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.uc-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    color: var(--ink-soft);
}

.uc-tag::before { content: "#"; color: var(--bamboo); }

.uc-tag span {
    padding: 0 6px;
    border-radius: 999px;
    background: var(--surface-2);
    font-family: var(--sans);
    font-size: 11px;
    color: var(--ink-dim);
}

.uc-tag:hover {
    border-color: rgba(255, 111, 165, .4);
    color: var(--cinnabar);
}

/* ---------- 移动端 ---------- */

@media (max-width: 960px) {
    .uc-grid { gap: 24px; }
    .uc-grid > aside { position: static; }
}

@media (max-width: 720px) {
    .uc-grid {
        padding-top: 24px;
        padding-bottom: 60px;
    }

    .uc-side-card {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px 12px;
        max-width: none;
        padding: 16px;
        text-align: left;
    }

    .uc-avatar {
        width: 52px;
        height: 52px;
        border-width: 2px;
    }

    .uc-name { margin: 0; font-size: 15px; }

    .uc-bio {
        order: 2;
        flex-basis: 100%;
        margin: 0;
        -webkit-line-clamp: 2;
    }

    .uc-menu {
        order: 3;
        flex-basis: 100%;
        display: flex;
        gap: 6px;
        margin: 0;
        padding: 10px 0 0;
        overflow-x: auto;
        border-top: 1px dashed var(--hairline);
        scrollbar-width: none;
    }

    .uc-menu::-webkit-scrollbar { display: none; }

    .uc-menu li { flex: 0 0 auto; }

    .uc-menu a {
        padding: 7px 12px;
        border: 1px solid var(--hairline);
        font-size: 13px;
    }

    .uc-menu a.on {
        border-color: rgba(255, 111, 165, .45);
        box-shadow: none;
    }

    .uc-menu .num { display: none; }

    .uc-write-btn {
        order: 1;
        width: auto;
        margin: 0 0 0 auto;
        padding: 6px 14px;
        font-size: 13px;
        letter-spacing: .08em;
    }

    .uc-quit {
        order: 4;
        flex-basis: 100%;
        margin: 0;
        text-align: right;
    }

    .uc-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .uc-stat { padding: 14px 8px; }

    .uc-stat b { font-size: 20px; }

    .uc-post-item {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 10px;
        padding: 12px 8px;
    }

    .uc-post-item time {
        order: 2;
        font-size: 11.5px;
    }

    .uc-post-item a:not(.op) {
        order: 1;
        flex: 1 1 100%;
        white-space: normal;
        line-height: 1.55;
    }

    .uc-post-item .st { order: 3; }

    .uc-post-item .op {
        order: 4;
        margin-left: auto;
    }

    .uc-post-ops {
        order: 4;
        margin-left: auto;
    }

    .uc-post-ops .op { margin-left: 0; }

    .uc-week { gap: 6px; padding: 12px 10px 10px; }

    .uc-week-bar { height: 40px; }

    .uc-form:not(.uc-write) { padding: 18px 16px; }

    .uc-avatar-edit { padding: 12px; }

    .uc-write .uc-write-title { font-size: 21px; }

    .uc-write-date input { width: 100%; }

    .uc-write .uc-write-content {
        min-height: 280px;
        padding: 14px 14px;
        font-size: 15px;
    }
}

/* 键盘焦点可见 */

.uc-menu a:focus-visible,
.uc-post-item .op:focus-visible,
.uc-write-btn:focus-visible,
.uc-quit:focus-visible,
.tl-btn:focus-visible {
    outline: 2px solid rgba(255, 111, 165, .5);
    outline-offset: 2px;
}

