:root {
    --bg: #fff6ee;
    --ink: #3b241c;
    --muted: #8a6a5b;
    --line: #f0d8c8;
    --card: #fff;
    --brand: #ff6b3d;
    --brand-dark: #e4542a;
    --violet: #6d4aff;
    --max: 1120px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% -10%, #ffe1c4 0, transparent 32%),
        radial-gradient(circle at 100% 0, #efe4ff 0, transparent 28%),
        var(--bg);
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    line-height: 1.6;
}

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

.wrap {
    width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 246, 238, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    line-height: 1.2;
}

.logo-img {
    display: block;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    white-space: nowrap;
}

.logo:hover .logo-img { opacity: 0.92; }
.logo:hover .logo-text { color: var(--brand-dark); }

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    flex: 1;
}

.nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: #8a6a5b;
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    transition: color 0.15s ease;
}

.nav a.is-active {
    background: transparent;
    color: var(--brand);
    font-weight: 800;
}

.nav a:not(.is-active):hover { color: var(--brand-dark); }

.nav a.nav-search {
    flex-shrink: 0;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    margin-left: 0.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8a6a5b;
}

.nav a.nav-search svg { display: block; }

.nav a.nav-search.is-active {
    color: var(--brand-dark);
    background: #ffe8dc;
}

.nav a.nav-search:not(.is-active):hover {
    color: var(--brand-dark);
    background: #fff3ec;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff8a3d, #ff5a36);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.92rem;
}

.topbar-user {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    margin-left: auto;
}

.login-btn {
    flex-shrink: 0;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-dark);
    background: #fff;
    border: 1px solid #ffc7b0;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(255, 107, 61, 0.08);
}

.login-btn:hover {
    background: #fff8f4;
    border-color: #ffb088;
}

.account-admin {
    font-size: 0.82rem;
    color: var(--muted, #5c6370);
    text-decoration: none;
    padding: 0 0.35rem;
}

.account-admin:hover {
    color: var(--accent, #2563eb);
}

.account-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    padding: 0.22rem 0.35rem 0.22rem 0.28rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
}

.account-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #ff8a3d, #ff5a36);
}

.account-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #6b4e43;
    max-width: 5.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-out {
    font-size: 0.78rem;
    color: var(--muted);
    padding-right: 0.35rem;
}

.account-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    color: inherit;
}

.account-link:hover .account-name { color: var(--brand-dark); }

.account-out:hover { color: var(--brand-dark); }

.login-panel {
    max-width: 360px;
    margin: 0 auto;
    padding: 1.35rem 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(255, 107, 61, 0.06);
}

.login-panel label {
    display: block;
    margin-bottom: 0.85rem;
}

.login-panel label span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #6b4e43;
}

.login-panel input {
    width: 100%;
    padding: 0.62rem 0.75rem;
    border: 1px solid #f0d8c8;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fffaf6;
}

.login-panel input:focus {
    outline: 2px solid rgba(255, 107, 61, 0.25);
    border-color: #ffb088;
}

.login-panel .btn {
    width: 100%;
    margin-top: 0.35rem;
    text-align: center;
    padding: 0.68rem 1rem;
}

.login-error {
    margin: 0 0 0.85rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #a33b2a;
    background: #fff0eb;
}

.auth-switch {
    margin: 0.85rem 0 0;
    text-align: center;
    font-size: 0.88rem;
    color: var(--muted);
}

.auth-switch a {
    color: var(--brand-dark);
    font-weight: 700;
}

.auth-switch a:hover { color: var(--brand); }

main { flex: 1 0 auto; }

.btn-ghost {
    background: #fff;
    color: var(--brand-dark);
    border: 1px solid #ffc7b0;
}

.hero { padding: 2.8rem 0 0.5rem; }

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(268px, 0.85fr);
    gap: 1.75rem;
    align-items: center;
    background: linear-gradient(135deg, #fff 0%, #fff4ea 55%, #f4ecff 100%);
    border: 1px solid #ffe0cc;
    border-radius: 28px;
    padding: 2rem 2rem 2rem 2.1rem;
    box-shadow: 0 18px 40px rgba(255, 122, 61, 0.08);
}

.eyebrow {
    margin: 0 0 0.4rem;
    color: var(--brand);
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.hero h1, .page-banner h1 {
    margin: 0 0 0.6rem;
    font-size: 2.1rem;
    line-height: 1.25;
}

.hero-lead, .page-banner p { margin: 0; color: var(--muted); }

.hero-lead { max-width: 36rem; }

.hero-actions { display: flex; gap: 0.7rem; margin-top: 1.2rem; }

.hero-stats {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 24px;
    background:
        radial-gradient(90% 70% at 100% 0%, rgba(255, 176, 122, 0.42), transparent 58%),
        linear-gradient(165deg, #3b241c 0%, #5a3226 52%, #8d4128 100%);
    box-shadow: 0 18px 36px rgba(59, 36, 28, 0.16);
}

.hero-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.72rem 0;
}

.hero-stat + .hero-stat {
    border-top: 1px solid rgba(255, 226, 208, 0.18);
}

.hero-stat-value {
    margin: 0;
    order: 2;
    flex: none;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff7f2;
    font-variant-numeric: tabular-nums;
}

.hero-stat:nth-child(3) .hero-stat-value {
    font-size: 1.28rem;
    letter-spacing: 0.02em;
}

.hero-stat-label {
    margin: 0;
    order: 1;
    font-size: 0.8rem;
    line-height: 1.45;
    letter-spacing: 0.04em;
    color: rgba(255, 228, 214, 0.72);
}

.block { padding: 1.6rem 0; }

.block-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.9rem;
}

.block-head h2 { margin: 0; font-size: 1.25rem; }
.block-head a { color: var(--brand-dark); font-size: 0.9rem; }

.hot-inline {
    font-size: 0.7rem;
    background: #ef4444;
    color: #fff;
    border-radius: 4px;
    padding: 0.05rem 0.3rem;
    vertical-align: middle;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.card {
    background: var(--card);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #ffe4d4;
    box-shadow: 0 10px 24px rgba(90, 40, 20, 0.05);
    display: flex;
    flex-direction: column;
}

.card-cover { position: relative; display: block; }
.card-cover img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #ffe8d6; }

.pill {
    position: absolute;
    left: 0.6rem;
    top: 0.6rem;
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
}

.pill-paid { background: #fff4cc; color: #9a6700; }
.pill-free { background: #e7f8ee; color: #157a45; }

.card-body { padding: 0.8rem 0.9rem 0.95rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.card h3 { margin: 0; font-size: 1rem; line-height: 1.35; font-weight: 400; }
.card h3 a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}
.card h3 a:hover { color: var(--brand-dark); }
.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.list-grid .card h3 { font-size: 14px; }
.list-grid .card p { display: none; }
.list-grid .card-foot {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0.4rem;
}
.list-grid .card {
    min-width: 0;
}
.list-grid .card-tags {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-content: flex-start;
    overflow: hidden;
    max-height: calc(1.4em + 0.24rem + 1px);
}
.list-grid .card-tags a {
    flex-shrink: 0;
    white-space: nowrap;
}
.card-meta { display: inline-flex; align-items: center; gap: 0.7rem; }
.card-views { display: none; }
.list-grid .card-views { display: inline; }

.card-foot {
    margin-top: auto;
    padding-top: 0.45rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    color: #b08978;
    font-size: 0.75rem;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; justify-content: flex-end; }
.card-tags a,
.detail-tags a {
    color: var(--brand-dark);
    background: #ffe8dc;
    border: 0;
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
    line-height: 1.4;
}
.card-tags a:hover,
.detail-tags a:hover { background: #ffd7c4; }
.detail-tags a {
    color: #c2410c;
    background: #ffd0b8;
    border: 1px solid #ffb48c;
    padding: 0.28rem 0.78rem;
    font-size: 14px;
    line-height: 1.45;
}
.detail-tags a:hover {
    background: #ffb899;
    border-color: #ff9d70;
}

.page-banner { padding: 2.8rem 0 0.75rem; }
.page-banner .banner-desc {
    margin: 0;
    color: #6b4e43;
    font-size: 14px;
    line-height: 1.75;
}
.page-banner.page-banner-center .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.page-banner.page-banner-center h1 {
    width: 100%;
    text-align: center;
}
.page-banner.page-banner-center .banner-desc {
    margin: 0;
    width: min(100%, 34rem);
    text-align: center;
}

.search-hero {
    padding: 2.8rem 0 2.2rem;
    background: linear-gradient(180deg, rgba(255, 241, 230, 0.65) 0%, transparent 100%);
}

.search-hero-inner {
    max-width: 36rem;
    margin: 0 auto;
    text-align: center;
}

.search-hero h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
}

.search-lead {
    margin: 0;
    color: #6b4e43;
    font-size: 0.98rem;
    line-height: 1.7;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.35rem;
    padding: 0.35rem 0.35rem 0.35rem 0.2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(255, 107, 61, 0.1);
}

.search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0.62rem 0.85rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ink);
}

.search-input:focus { outline: none; }

.search-form .btn {
    flex-shrink: 0;
    padding: 0.58rem 1.25rem;
    border-radius: 999px;
}

.search-hot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.15rem;
}

.search-hot > span {
    font-size: 0.82rem;
    color: var(--muted);
}

.search-hot a {
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-dark);
    background: #ffe8dc;
}

.search-hot a:hover { background: #ffd7c4; }

.search-body { padding-top: 0.2rem; }

.search-result-head {
    margin: 0 0 1.1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
}

.search-result-head strong {
    color: var(--brand-dark);
    font-weight: 800;
}

@media (max-width: 640px) {
    .search-form { flex-direction: column; border-radius: 18px; padding: 0.65rem; }
    .search-form .btn { width: 100%; text-align: center; }
    .search-input { width: 100%; text-align: center; }
}

.list-tools {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.2rem;
}

.tool-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tool-label {
    flex: 0 0 3rem;
    white-space: nowrap;
    color: #6b4e43;
    font-size: 0.92rem;
    font-weight: 700;
}

.tool-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tool-pills a {
    display: inline-flex;
    align-items: center;
    height: 2.15rem;
    padding: 0 0.95rem;
    border-radius: 999px;
    background: #ffe8dc;
    border: 0;
    color: var(--brand-dark);
    font-size: 0.92rem;
    font-weight: 700;
}

.tool-pills a:hover { background: #ffd7c4; }
.tool-pills a.is-on { background: #ffc7a8; }

.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 2.4rem 0 0.4rem;
}

.pager a,
.pager span {
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #ffe0cc;
    color: var(--ink);
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(90, 40, 20, 0.05);
}

.pager .pager-nav { padding: 0 1.15rem; letter-spacing: 0.04em; }
.pager a:hover { color: var(--brand-dark); border-color: #ffc2a4; }
.pager .is-current {
    background: linear-gradient(180deg, #ff7a4d 0%, var(--brand-dark) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(228, 84, 42, 0.28);
}
.pager .is-disabled {
    color: #c9b0a4;
    background: #fff8f4;
    box-shadow: none;
}

.pager .pager-ellipsis {
    min-width: auto;
    padding: 0 0.25rem;
    border: none;
    background: transparent;
    box-shadow: none;
    color: #c9b0a4;
    font-weight: 700;
}

.detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.2rem 1.4rem;
    padding-top: 2.2rem;
    align-items: start;
}

.detail-head {
    grid-column: 1 / -1;
    margin-bottom: 1.75rem;
}

.crumb { color: var(--muted); font-size: 0.85rem; }
.crumb { margin: 0; }
.detail-head h1 {
    margin: 0.5rem 0 0;
    font-size: clamp(1.45rem, 3.2vw, 2rem);
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.02em;
}
.detail-lead {
    margin: 0.55rem 0 0;    
}
.detail-desc {
    margin: 0;
    color: #6b4e43;
    font-size: 14px;
    line-height: 1.75;
}
.detail-tagbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1rem;
}
.detail-tagbar .detail-tags { flex: 1; min-width: 0; }
.detail-tagbar-end {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: auto;
    flex: none;
    --detail-chip-pad-y: 0.32rem;
    --detail-chip-pad-x: 0.85rem;
    --detail-chip-min-h: calc(var(--detail-chip-pad-y) * 2 + 0.95rem * 1.25);
}
.detail-tagbar-end .detail-fav,
.detail-tagbar-end .detail-fav-link,
.detail-tagbar-end .detail-views {
    box-sizing: border-box;
    min-height: var(--detail-chip-min-h);
    align-items: center;
    padding: var(--detail-chip-pad-y) var(--detail-chip-pad-x);
}
.detail-fav-form { margin: 0; }
.detail-fav,
.detail-fav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.32rem 0.85rem;
    background: #fff;
    border: 1px solid #e8ddd8;
    border-radius: 999px;
    color: #7c4a3a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    font-family: inherit;
}
.detail-fav:hover,
.detail-fav-link:hover {
    border-color: #ffd7c4;
    background: #fff8f4;
    color: #c2410c;
}
.detail-fav.is-on {
    background: #fff1eb;
    border-color: #ffb899;
    color: #c2410c;
}
.detail-fav-icon {
    display: inline-block;
    width: 0.95em;
    height: 0.95em;
    flex: none;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0.55;
}
.detail-fav.is-on .detail-fav-icon {
    opacity: 1;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.detail-tagbar-end .detail-fav-icon {
    width: 0.95rem;
    height: 0.95rem;
}
.detail-tagbar-end .detail-fav-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.25;
}
.fav-manage-fav-form {
    flex: none;
    align-self: center;
}
.fav-manage-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.fav-manage-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f0e8e4;
}
.fav-manage-item:last-child { border-bottom: 0; padding-bottom: 0; }
.fav-manage-title {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
    line-height: 1.35;
}
.fav-manage-title a { color: inherit; text-decoration: none; }
.fav-manage-title a:hover { color: #c2410c; }
.fav-manage-summary {
    margin: 0 0 0.35rem;
    color: #6b5b55;
    font-size: 0.88rem;
    line-height: 1.45;
}
.fav-manage-meta {
    margin: 0;
    font-size: 0.78rem;
    color: #a08a82;
}
.detail-views {
    margin: 0;
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.85rem;
    background: #fff8f4;
    border: 1px solid #ffd7c4;
    border-radius: 999px;
    line-height: 1.25;
}
.detail-views span {
    color: #a67a68;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}
.detail-views strong {
    margin: 0;
    color: #c2410c;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}
.detail-intro { margin-top: 0.65rem; }
.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
}
.detail-badges li {
    padding: 0.38rem 0.95rem;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.4;
    background: #ffe8dc;
    color: var(--brand-dark);
}
.detail-pitch {
    margin: 0;
    max-width: 40rem;
    color: #6b4e43;
    font-size: 0.96rem;
    line-height: 1.72;
}
.detail-pitch p { margin: 0; }
.detail-pitch p + p { margin-top: 0.38rem; }
.detail-intro:has(.detail-badges) .detail-pitch { margin-top: 0.15rem; }
.detail-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0.65rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}
.detail-facts span + span::before {
    content: "·";
    margin: 0 0.45rem;
    color: #e0c4b4;
}
.item-prose {
  white-space: pre-wrap;
  line-height: 1.65;
  font-size: 0.95rem;
}
.item-rich {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: normal;
}
.item-rich p {
  min-width: 0;
  max-width: 100%;
  margin: 0.65rem 0;
}
.item-rich img,
.item-prose img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0.85rem 0;
  box-shadow: none;
  filter: none;
}

.comments {
    margin-top: 1.8rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.15rem 1.2rem 1.25rem;
    box-shadow: 0 10px 28px rgba(59, 36, 28, 0.04);
}

.comments-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0 0 0.85rem;
}

.comments-head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
}

.comments-head span {
    font-size: 0.82rem;
    color: var(--muted);
}

.comment-flash { margin: 0 0 0.7rem; font-size: 0.88rem; }
.comment-flash.ok { color: #157a45; }
.comment-flash.err { color: #a33b2a; }
.comment-flash a { margin-left: 0.4rem; color: var(--brand-dark); font-weight: 700; }

.composer {
    padding: 0.8rem 0.9rem 0.7rem;
    background: #fff8ef;
    border: 1px solid #ffe8dc;
    border-radius: 14px;
}

.composer textarea {
    width: 100%;
    min-height: 4.2rem;
    padding: 0.1rem 0.05rem 0;
    border: 0;
    resize: vertical;
    background: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ink);
}

.composer textarea::placeholder { color: #c4a394; }
.composer textarea:focus { outline: none; }

.composer-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
    margin-top: 0.15rem;
}

.composer-bar p {
    margin: 0 auto 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.composer-bar a { color: var(--brand-dark); font-weight: 700; }
.composer-bar .btn { padding: 0.42rem 1.05rem; font-size: 0.86rem; }

.quotes {
    list-style: none;
    margin: 1.05rem 0 0;
    padding: 0.35rem 0 0;
    border-top: 1px solid #f0e0d4;
}

.quote-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
}

.quote-item + .quote-item {
    border-top: 1px solid #f5ebe3;
}

.quote-avatar {
    width: 2.125rem;
    height: 2.125rem;
    margin-top: 0.05rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffe8dc, #ffd0b8);
    border: 1px solid #ffc9ad;
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    font-size: 0.88rem;
    font-weight: 800;
}

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

.quote-by {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    margin: 0;
    min-height: 1.35rem;
}

.quote-by strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
}

.quote-by time {
    font-size: 12px;
    color: #b08978;
    font-variant-numeric: tabular-nums;
}

.quote-by time::before {
    content: "·";
    margin-right: 0.55rem;
    color: #dcc4b8;
    font-weight: 700;
}

.quote-text {
    margin: 0.55rem 0 0;
    color: #4a332b;
    font-size: 14px;
    line-height: 1.75;
    word-break: break-word;
}

.thread-empty {
    margin: 0.85rem 0 0.15rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.detail-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
.side-buy { margin-top: 0.2rem; }
.side-buy .detail-price { margin-bottom: 0.75rem; }
.side-buy .detail-price span { display: block; margin: 0.35rem 0 0; }
.detail-price {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1;
}
.detail-price.free { color: #157a45; }
.detail-price span {
    margin-left: 0.55rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
}
.side-buy .btn { width: 100%; text-align: center; padding: 0.72rem 1.5rem; font-size: 1rem; }
.detail-banner { margin: 0.65rem 0 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.detail-banner img { display: block; width: 100%; max-height: 320px; object-fit: cover; background: #ffe8d6; }
.detail-marketing {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
}
.detail-marketing li {
    font-size: 0.88rem;
    font-weight: 600;
    color: #7c3a12;
    background: linear-gradient(135deg, #fff4eb, #ffe8d6);
    border: 1px solid #ffd4b8;
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
}
.detail-main {
    min-width: 0;
}
.lesson-block {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem 1.1rem 0.4rem;
    margin: 0.9rem 0;
}
.lesson-block h2, .lock-box h2 { margin: 0 0 0.6rem; font-size: 1.05rem; }
.lesson-block p { margin: 0.25rem 0 0.7rem; color: #5c463c; }
.check-list, .lesson-block ol, .include-list, .lock-box ul {
    margin: 0 0 0.8rem;
    padding-left: 1.2rem;
    color: #5c463c;
}
.steps { list-style: none; padding-left: 0; }
.steps li { padding: 0.7rem 0 0.2rem; border-top: 1px dashed var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.script {
    background: #fff8ef;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
}
.script p { margin: 0.25rem 0; }
.lock-box {
    margin: 0.9rem 0;
    padding: 1.1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, #fff4ea);
    border: 1px dashed #ffb088;
}
.detail-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 1.1rem 0 0;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: #fff8f4;
    border: 1px solid #ffd7c4;
    color: #6b4e43;
    font-size: 0.84rem;
    line-height: 1.7;
}
.detail-notice span {
    flex: none;
    margin-top: 0.12rem;
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    background: #ffe8dc;
    color: #c2410c;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.5;
}
.download-box {
    margin: 0.9rem 0;
    padding: 1rem 1.1rem 1.05rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, #fff6ef);
    border: 1px solid #ffd4b8;
}
.download-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}
.download-head h2 { margin: 0; font-size: 1.05rem; }
.download-head p {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}
.download-head a { color: var(--brand-dark); font-weight: 700; }
.download-count {
    flex: none;
    margin: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 0.28rem;
    padding: 0.45rem 0.75rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #ffd4b8;
    line-height: 1;
    white-space: nowrap;
}
.download-count strong {
    font-size: 1.35rem;
    color: var(--brand-dark);
}
.download-count span {
    color: var(--muted);
    font-size: 0.85rem;
}
.download-note { margin: 0 0 0.85rem; }
.download-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}
.extract-code {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    background: #fff;
    border: 1px dashed #ffb088;
}
.extract-code span {
    color: var(--muted);
    font-size: 0.82rem;
}
.extract-code strong {
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    font-variant-numeric: tabular-nums;
}
.pan-btn { flex: none; margin: 0; }
.pan-btn.is-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.buy-card {
    position: sticky;
    top: 84px;
    margin-top: 0.9rem;
    background: #fff;
    border-radius: 20px;
    padding: 0 0 1rem;
    overflow: hidden;
    border: 1px solid #ffd7c4;
    box-shadow: 0 12px 30px rgba(255, 107, 61, 0.08);
}
.buy-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #3b241c;
    color: #fff8f3;
    padding: 1rem 1.1rem;
}
a.buy-banner { text-decoration: none; }
a.buy-banner:hover { filter: brightness(1.05); }
.buy-banner p { margin: 0; font-size: 1.7rem; font-weight: 800; line-height: 1; }
.buy-banner span {
    background: linear-gradient(135deg, #ff8a3d, #ff5a36);
    color: #fff;
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 800;
}
.buy-banner-free p { color: #b7f0d0; }
.buy-jump {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.85rem 1.05rem 0;
    padding: 0.48rem 0.75rem;
    border-radius: 10px;
    background: #fff4ea;
    color: var(--brand-dark);
    font-size: 0.88rem;
    font-weight: 700;
}
.buy-jump:hover { background: #ffe4d4; }
.buy-jump::after {
    content: "";
    width: 0.38rem;
    height: 0.38rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
}
#hidden { scroll-margin-top: 92px; }
.buy-card > .btn-ghost { margin: 0.85rem 1.05rem 0; width: calc(100% - 2.1rem); text-align: center; }
.price { margin: 0 0 0.4rem; font-size: 2rem; font-weight: 800; color: var(--brand-dark); }
.price.free { color: #157a45; }
.buy-note { color: var(--muted); }
.buy-card h3 { margin: 0.2rem 0 0.4rem; font-size: 0.95rem; }
.spec-list { margin: 0.95rem 1.05rem 0; }
.buy-card > .spec-list:first-child { margin-top: 1.05rem; }
.spec-list div {
    display: block;
    text-align: left;
    padding: 0.42rem 0;
    border-bottom: 1px solid #f3e4da;
    font-size: 0.88rem;
    line-height: 1.55;
}
.spec-list dt { color: var(--muted); font-weight: 500; }
.spec-list dd { display: block; margin: 0.08rem 0 0; text-align: left; overflow-wrap: break-word; }
.side-help { margin: 0.8rem 1.05rem 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.side-list { margin: 0; padding-left: 1.1rem; color: #6b4e43; font-size: 0.88rem; }
.side-meta { color: var(--muted); font-size: 0.82rem; }

.related {
    margin-top: 2rem;
    margin-bottom: 2.4rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem 1.1rem 1.15rem;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.related-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem 1.35rem;
}
.related-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}
.related-thumb {
    flex: none;
    width: 118px;
}
.related-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    background: #ffe8d6;
}
.related-copy { min-width: 0; flex: 1; }
.related-copy h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}
.related-copy h3 a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}
.related-copy h3 a:hover { color: var(--brand-dark); }
.related-time {
    margin: 0.35rem 0 0;
    color: #b08978;
    font-size: 0.75rem;
    line-height: 1.4;
}
.buy-card .btn { width: calc(100% - 2.1rem); margin-left: 1.05rem; margin-right: 1.05rem; text-align: center; }

/* —— VIP：浅色顶栏方案卡 —— */
.vip-shell {
    flex: 1;
    padding-bottom: 2.75rem;
}

.vip-head { padding-bottom: 2.25rem; }

.vip-head .vip-subtitle {
    font-size: 14px;
    line-height: 1.75;
}

.vip-head h1 {
    max-width: 15em;
    margin-left: auto;
    margin-right: auto;
}

.vip-plans-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: stretch;
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0.65rem 0 0;
}

.vip-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0e4dc;
    background: #fff;
    box-shadow: 0 6px 20px rgba(59, 36, 28, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.vip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(59, 36, 28, 0.08);
}

.vip-card:not(.is-hot):not(.is-life) {
    border-color: #d6d3d1;
}

.vip-card.is-hot {
    border-color: #ffc9a8;
    box-shadow: 0 8px 24px rgba(255, 107, 61, 0.1);
}

.vip-card.is-life { border-color: #c4b5fd; }

.vip-card-cap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    background: linear-gradient(135deg, #57534e, #44403c);
    color: #fafaf9;
}

.vip-card:not(.is-hot):not(.is-life) .vip-card-tag {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.vip-card.is-hot .vip-card-cap {
    color: #fff;
    background: linear-gradient(135deg, #ff8a3d, #ff6b3d 45%, #e4542a);
}

.vip-card.is-life .vip-card-cap {
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #6d4aff 50%, #5b36e0);
}

.vip-card-label {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.vip-card-tag {
    flex-shrink: 0;
    padding: 0.1rem 0.38rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.55);
    color: inherit;
}

.vip-card.is-hot .vip-card-tag {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.vip-card-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.95rem 0.85rem 1rem;
}

.vip-card-price {
    margin: 0 0 0.65rem;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.vip-card-price span {
    display: inline-block;
    margin-left: 0.12rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0;
}

.vip-card-list {
    list-style: none;
    margin: 0;
    padding: 0.65rem 0 0;
    border-top: 1px solid #f5ebe4;
    flex: 1;
}

.vip-card-list li {
    position: relative;
    padding-left: 0.95rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #7a635a;
}

.vip-card-list li + li { margin-top: 0.32rem; }

.vip-card-list li::before {
    content: "·";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: #a8a29e;
}

.vip-card.is-hot .vip-card-list li::before { color: #ea580c; }

.vip-card.is-life .vip-card-list li::before { color: #7c3aed; }

@media (prefers-reduced-motion: reduce) {
    .vip-card { transition: none; }
    .vip-card:hover,
    .vip-card.is-hot,
    .vip-card.is-hot:hover { transform: none; }
}

/* 兼容旧 class（若其它页引用 .plans） */
.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.1rem 0 2rem;
}

.empty { color: var(--muted); padding: 2rem 0; }

.site-footer {
    margin-top: auto;
    background: #3b241c;
    color: #f8e7dc;
    padding: 3.4rem 0 1.8rem;
}

.site-footer-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.6rem 2rem;
    align-items: start;
}

.site-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: #fff7f2;
}

.site-footer-logo:hover { color: #ffd7c2; }

.site-footer-logo img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 0;
}

.site-footer-logo span {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.25;
}

.site-footer-desc {
    margin: 0.9rem 0 0;
    max-width: 20rem;
    font-size: 14px;
    line-height: 1.85;
    color: #e7cbbd;
}

.site-footer-cats h3,
.site-footer-info h3 {
    margin: 0 0 1rem;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff7f2;
}

.site-footer-cats nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 1.25rem;
}

.site-footer-info {
    text-align: left;
}

.site-footer-info nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1.15rem;
}

.site-footer-cats a,
.site-footer-info a,
.site-footer-copyline,
.site-footer-copyline a {
    font-size: 14px;
}

.site-footer-cats a,
.site-footer-info a {
    color: #ffd7c2;
}

.site-footer-cats a:hover,
.site-footer-info a:hover { color: #fff; }

.site-footer-empty {
    margin: 0;
    font-size: 14px;
    color: #c9a896;
}

.page-article {
    padding: 0 0 2.8rem;
}

.page-article .prose {
    max-width: 40rem;
    font-size: 14px;
    line-height: 1.9;
    color: #4a332b;
}

.page-article .prose p { margin: 0 0 0.9rem; }
.page-article .prose p:last-child { margin-bottom: 0; }

.site-footer-copyline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.28rem;
    margin: 1.45rem 0 0;
    line-height: 1.6;
    color: #b89a8c;
}

.site-footer-copyline span {
    display: block;
}

.site-footer-copyline a {
    display: block;
    margin: 0;
    color: #b89a8c;
}

.site-footer-copyline a:hover { color: #ffd7c2; }

@media (max-width: 980px) {
    .site-footer-row { grid-template-columns: 1fr 1fr; }
    .site-footer-info { grid-column: 1 / -1; }
    .grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-inner, .detail, .plans, .vip-plans-row { grid-template-columns: minmax(0, 1fr); }
    .vip-card.is-hot { order: -1; }
    .topbar-inner { flex-wrap: wrap; }
    .nav { flex: 1 1 100%; }
    .buy-card { position: static; }
    .hero-stats { max-width: 28rem; }
}

@media (max-width: 640px) {
    .site-footer-row { grid-template-columns: 1fr; }
    .grid, .related-grid, .related-list { grid-template-columns: 1fr; }
    .hero h1, .page-banner h1, .detail-head h1 { font-size: 1.45rem; }
    .detail-tagbar { align-items: flex-start; }
    .detail-views { margin-top: 0.15rem; }
    .download-panel { flex-direction: column; align-items: stretch; }
    .pan-btn { text-align: center; }
}

.account-layout {
    display: grid;
    grid-template-columns: 11.5rem minmax(0, 1fr);
    gap: 1.15rem;
    align-items: start;
    padding: 0.2rem 0 2.6rem;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.4rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.account-nav a {
    padding: 0.48rem 0.75rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #6b4e43;
}

.account-nav a.is-active {
    background: #ffe8dc;
    color: var(--brand-dark);
}

.account-nav a:hover { color: var(--brand-dark); }

.account-stack { display: flex; flex-direction: column; gap: 1rem; }

.account-forms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.account-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.15rem 1.2rem 1.25rem;
    box-shadow: 0 12px 28px rgba(255, 107, 61, 0.05);
}

.account-card h2 {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
}

.account-card label {
    display: block;
    margin-bottom: 0.8rem;
}

.account-card label span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #6b4e43;
}

.account-card input {
    width: 100%;
    padding: 0.62rem 0.75rem;
    border: 1px solid #f0d8c8;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fffaf6;
}

.account-card input:focus {
    outline: 2px solid rgba(255, 107, 61, 0.25);
    border-color: #ffb088;
}

.account-id {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.account-id h2 { margin: 0; }

.account-id p {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.account-avatar-lg {
    width: 52px;
    height: 52px;
    font-size: 1.15rem;
}

.vip-pill {
    display: inline-block;
    margin-top: 0.4rem;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--brand-dark);
    background: #ffe8dc;
}

.vip-pill.is-off {
    color: var(--muted);
    background: #f6efe9;
}

.account-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.account-stats div {
    background: #fffaf6;
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
}

.account-stats span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
}

.account-stats strong { font-size: 1.05rem; }

.account-hint {
    margin: 0.85rem 0 0;
    color: #6b4e43;
    font-size: 0.88rem;
}

.account-card > .btn { margin-top: 0.85rem; }

.account-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.account-card-head h2 { margin: 0; }

.account-card-head a {
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 600;
}

.download-log {
    list-style: none;
    margin: 0.55rem 0 0;
    padding: 0;
}

.download-log li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    padding: 0.72rem 0;
    border-bottom: 1px solid var(--line);
}

.download-log li:last-child { border-bottom: 0; padding-bottom: 0; }

.download-log a {
    min-width: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-log a:hover { color: var(--brand-dark); }

.download-log time {
    flex: none;
    color: #a67a68;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.comment-manage-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-manage-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
}

.comment-manage-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.comment-manage-body {
    margin: 0 0 0.35rem;
    line-height: 1.55;
    font-size: 0.95rem;
}

.comment-manage-meta {
    margin: 0;
    font-size: 0.85rem;
    color: #a67a68;
}

.comment-manage-meta a {
    color: var(--brand-dark);
    font-weight: 600;
}

.comment-manage-item form {
    flex: none;
}

.account-notice {
    margin: 0;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: #fff6e8;
    color: #9a4b12;
    font-size: 0.88rem;
}

.download-quota a {
    color: var(--brand-dark);
    font-weight: 700;
}

@media (max-width: 800px) {
    .account-layout,
    .account-forms { grid-template-columns: minmax(0, 1fr); }
    .account-nav { flex-direction: row; flex-wrap: wrap; }
}
