:root {
    --page: #1d1d1f;
    --paper: #171719;
    --ink: #e7e8ed;
    --muted: #999ba5;
    --line: #303034;
    --accent: #5b7cff;
    --accent-soft: #202947;
    --radius: 16px;
    --shadow: 0 12px 36px rgba(32, 57, 43, .055);
    --bodyBground: var(--page);
    --conBgcolor: var(--paper);
    --fontColor: var(--ink);
    --marRadius: var(--radius);
    --buttonBgColor: var(--accent);
    --buttonTextColor: #fff;
    --borderColor: var(--line);
}

[data-theme="light"] {
    --page: #f4f6fa;
    --paper: #fff;
    --ink: #252833;
    --muted: #7b8190;
    --line: #e3e6ed;
    --accent: #4e70e8;
    --accent-soft: #e9efff;
    --shadow: 0 12px 36px rgba(32, 45, 75, .07);
    --buttonTextColor: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font: 15px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; transition: color .2s, background .2s; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

/* 顶部主导航 */
.site-header { position: relative; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1240px; min-height: 76px; margin: auto; padding: 0 28px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--accent); color: #fff; font-size: 24px; font-weight: 700; }
.brand-logo { display: block; width: auto; max-width: 240px; height: 52px; object-fit: contain; flex: 0 1 auto; }
.brand-image-mode .brand-copy { display: none; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.35; }
.brand-copy strong { font-size: 16px; letter-spacing: .03em; }
.brand-copy small { max-width: 220px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.blog-header-nav { display: block; flex: 0 0 auto; margin-left: 0; }
.nav-list { display: flex; align-items: center; gap: 7px; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.nav-list > .list-menu { position: relative; list-style: none; }
.header-avatar { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; object-fit: cover; }
.user-menu-trigger { display: inline-flex; align-items: center; gap: 7px; }
.nav-list .nav-link { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 8px 11px; border-radius: 9px; color: var(--ink); font-size: 15px; }
.nav-list .nav-link:hover, .nav-list .nav-link[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.dropdown-menus { position: absolute; top: calc(100% + 3px); left: 0; z-index: 30; min-width: 168px; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(5px); transition: opacity .18s, transform .18s, visibility .18s; }
.dropdown-menus .list-menu { list-style: none; }
.dropdown-menus .nav-link { display: flex; width: 100%; min-height: 38px; justify-content: flex-start; padding: 7px 10px; white-space: normal; }
.list-menu:hover > .dropdown-menus, .list-menu:focus-within > .dropdown-menus { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.nav-toggle { display: none; margin-left: auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); }
.header-search { display: flex; width: 275px; height: 39px; flex: 0 1 275px; align-items: center; overflow: hidden; margin-left: auto; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: #f1f2f4; }
.header-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #262831; font-size: 12px; }
.header-search input::placeholder { color: #858894; }
.header-search button { border: 0; background: transparent; color: #858894; font-size: 22px; cursor: pointer; }
.header-account { position: relative; flex: 0 0 auto; margin-left: 0; }
.header-account-trigger { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid #dfe4e8; border-radius: 50%; background: var(--paper); color: #525965; cursor: pointer; transition: border-color .18s, color .18s, box-shadow .18s; }
.header-account-trigger:hover, .header-account:focus-within .header-account-trigger, .header-account.is-open .header-account-trigger { border-color: #a9dfe3; color: var(--accent); box-shadow: 0 5px 18px rgba(69, 118, 145, .12); }
.account-popover { position: absolute; top: calc(100% + 10px); right: 0; z-index: 35; width: 350px; padding: 15px; border: 1px solid var(--line); border-radius: 19px; background: var(--paper); box-shadow: 0 18px 50px rgba(25, 34, 51, .18); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(7px); transition: opacity .18s, transform .18s, visibility .18s; }
.account-popover::before { position: absolute; top: -12px; right: 0; left: 0; height: 13px; content: ""; }
.header-account:hover .account-popover, .header-account:focus-within .account-popover, .header-account.is-open .account-popover { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.account-promo { display: flex; width: 100%; align-items: center; gap: 10px; padding: 11px 12px; border: 0; border-radius: 12px; background: #fff3ce; color: #875300; text-align: left; cursor: pointer; }
.account-promo-star { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 8px; background: #fff; color: #a86400; }
.account-promo-arrow { margin-left: auto; font-size: 23px; line-height: 1; }
.account-popover h2 { margin: 15px 3px 8px; color: var(--muted); font-size: 12px; font-weight: 650; }
.account-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.account-actions button { display: flex; min-height: 85px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 11px; background: transparent; color: var(--ink); font-size: 12px; cursor: pointer; }
.account-actions button:hover { background: var(--accent-soft); color: var(--accent); }
.account-links { display:grid; gap:4px; }
.account-links a { display:block; padding:10px 11px; border-radius:9px; color:var(--ink); font-size:13px; text-decoration:none; }
.account-links a:hover { background:var(--accent-soft); color:var(--accent); }
.account-action-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; font-size: 17px; font-weight: 750; }
.account-icon-login { background: #e1f3ff; color: #1493ce; }
.account-icon-signup { background: #ddf8e8; color: #10a75e; }
.account-icon-reset { background: #f0e5ff; color: #8b51d7; }
.account-popover p { margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; text-align: center; }
[data-theme="dark"] .account-promo { background: #45391d; color: #f4d28d; }
[data-theme="dark"] .account-promo-star { background: #594722; color: #ffcf65; }
.theme-switch-group { display: none; }
.theme-switch { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; margin-left: 12px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--accent); cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.theme-switch:hover { transform: rotate(12deg); background: var(--accent-soft); }
.theme-icon { display: none; }
[data-theme="light"] .theme-icon-sun, [data-theme="dark"] .theme-icon-moon { display: block; }

/* 欢迎区与分类入口 */
.page-wrap { max-width: 1240px; margin: auto; padding: 24px 28px 70px; }
.welcome-panel { position: relative; min-height: 252px; display: flex; align-items: center; overflow: hidden; margin: 0 0 25px; padding: 38px 48px; border: 1px solid #e2eae4; border-radius: 22px; background: linear-gradient(112deg, #fff 0%, #fff 58%, #edf4ef 100%); box-shadow: var(--shadow); }
[data-theme="dark"] .welcome-panel { border-color: var(--line); background: linear-gradient(112deg, var(--paper) 0%, var(--paper) 58%, #28372e 100%); }
.welcome-copy { position: relative; z-index: 2; max-width: 680px; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .16em; }
.welcome-panel h1 { margin: 10px 0 8px; font-size: clamp(27px, 3.6vw, 39px); line-height: 1.3; letter-spacing: -.035em; }
.welcome-panel p { max-width: 620px; margin: 0; color: var(--muted); font-size: 14px; }
.welcome-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 19px; color: var(--accent); font-size: 13px; font-weight: 650; }
.welcome-art { position: absolute; top: 50%; right: 9%; width: 180px; height: 180px; display: grid; place-items: center; transform: translateY(-50%); border: 1px solid rgba(57, 116, 92, .2); border-radius: 50%; background: radial-gradient(circle, rgba(223, 237, 227, .9), rgba(255,255,255,0) 70%); color: var(--accent); font-family: Georgia, serif; font-size: 108px; opacity: .72; }
.welcome-art::before, .welcome-art::after { position: absolute; inset: 15px; border: 1px solid rgba(57, 116, 92, .16); border-radius: 50%; content: ""; }
.welcome-art::after { inset: -16px; }
.welcome-art i, .welcome-art b { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #d5a56e; }
.welcome-art i { top: 20px; right: 23px; }
.welcome-art b { bottom: 15px; left: 24px; width: 5px; height: 5px; }
.topic-nav { display: flex; gap: 9px; overflow-x: auto; margin: 0 0 28px; padding: 0 0 3px; scrollbar-width: none; }
.topic-nav::-webkit-scrollbar { display: none; }
.topic-chip { flex: 0 0 auto; padding: 8px 15px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); color: var(--muted); font-size: 12px; }
.topic-chip:hover, .topic-chip.is-current { border-color: var(--accent); background: var(--accent); color: #fff; }

/* 文章与右侧信息栏 */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 0 0 17px; }
.section-heading h2 { margin: 4px 0 0; font-size: 24px; line-height: 1.3; letter-spacing: -.03em; }
.archive-section-heading { align-items:center; margin:0 0 15px; padding:2px 2px 13px; border-bottom:1px solid var(--line); }
.archive-section-heading h2 { margin:0; font-size:23px; line-height:1.35; letter-spacing:-.025em; }
.archive-section-heading .post-count { padding:5px 10px; border:1px solid var(--line); border-radius:99px; background:var(--paper); font-size:11px; }
.archive-section-heading .post-count strong { font-size:14px; }
.post-count { padding-bottom: 5px; color: var(--muted); font-size: 12px; }
.post-count strong { color: var(--accent); font-size: 17px; }
.heading-note { padding-bottom: 4px; color: var(--muted); font-size: 9px; letter-spacing: .13em; }
.article-card { position:relative; display: flex; gap: 21px; min-height: 166px; margin: 0 0 15px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 4px 15px rgba(32, 57, 43, .025); transition: transform .2s, box-shadow .2s; }
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.article-card-featured { min-height: 195px; }
.article-cover { display: block; width: 150px; height: 150px; flex: 0 0 150px; align-self: flex-start; overflow: hidden; border-radius: 11px; background: var(--accent-soft); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.article-cover:hover img { transform: scale(1.04); }
.article-cover-placeholder { display: grid; place-items: center; background: radial-gradient(circle at 72% 25%, rgba(255,255,255,.9) 0 3%, transparent 3.5%), linear-gradient(140deg, #dce9ff, #e9eef9 54%, #d9eee7); }
.article-thumb-art { position: relative; display: block; width: 76px; height: 58px; overflow: hidden; border: 2px solid rgba(78,112,232,.25); border-radius: 12px; background: rgba(255,255,255,.38); }
.article-thumb-art::before { position: absolute; top: 10px; right: 13px; width: 11px; height: 11px; border-radius: 50%; background: #e5b76f; content: ""; }
.article-thumb-art i, .article-thumb-art b { position: absolute; bottom: -13px; width: 52px; height: 42px; border-radius: 12px 12px 0 0; background: rgba(78,112,232,.38); transform: rotate(38deg); }
.article-thumb-art i { left: 3px; }
.article-thumb-art b { right: -1px; bottom: -19px; width: 58px; height: 48px; background: rgba(76,156,126,.5); transform: rotate(-37deg); }
.article-thumb-art em { position: absolute; right: 7px; bottom: 7px; left: 7px; height: 1px; background: rgba(47,91,145,.2); }
.article-body { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; }
.article-kicker { display: flex; min-height: 20px; align-items: center; gap: 8px; color: var(--accent); font-size: 11px; }
.article-commerce-badge { position:absolute; z-index:2; top:16px; right:17px; display:inline-flex; min-height:29px; align-items:center; gap:7px; padding:5px 11px; border:1px solid transparent; border-radius:999px 999px 7px 999px; font-size:12px; font-weight:750; line-height:1; letter-spacing:.01em; white-space:nowrap; box-shadow:0 5px 14px rgba(34,48,77,.1); transition:transform .2s,box-shadow .2s; }
.article-card:hover .article-commerce-badge { transform:translateY(-1px) rotate(-1deg); box-shadow:0 7px 18px rgba(34,48,77,.16); }
.article-commerce-badge.is-paid { border-color:rgba(255,255,255,.62); background:linear-gradient(135deg,#fff4de 0%,#ffe5bd 100%); color:#a76124; box-shadow:0 5px 14px rgba(198,126,48,.16),inset 0 1px rgba(255,255,255,.9); }
.article-commerce-badge.is-member { border-color:rgba(255,255,255,.5); background:linear-gradient(135deg,#edf1ff 0%,#dce5ff 100%); color:#4d64bd; box-shadow:0 5px 14px rgba(78,100,189,.15),inset 0 1px rgba(255,255,255,.9); }
.loglist-sort a { color: var(--accent); }
.log-topflg { display: inline-block; padding: 2px 8px; border-radius: 99px; background: #fff2df; color: #a16d30; font-size: 10px; vertical-align: middle; }
.article-body h3 { margin: 6px 0 3px; font-size: 19px; line-height: 1.5; letter-spacing: -.02em; }
.article-card-featured h3 { font-size: 21px; }
.article-excerpt { display: -webkit-box; overflow: hidden; margin: 3px 0 13px; color: var(--muted); font-size: 13px; line-height: 1.8; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.article-meta { display: flex; flex-wrap: wrap; gap: 7px 15px; margin-top: auto; color: var(--muted); font-size: 11px; }
.article-meta a:hover { color: var(--accent); }
.author-dot a::before { display: inline-block; width: 6px; height: 6px; margin: 0 7px 1px 0; border-radius: 50%; background: #d5a56e; content: ""; }
.side-bar { display: flex; flex-direction: column; gap: 14px; }
.widget { overflow: hidden; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.widget-title { margin: 0 0 12px; }
.widget-title h3 { margin: 0; font-size: 15px; }
.widget-list, .widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.widget li:last-child { border: 0; }
.widget .log-classify-f { display:grid; gap:3px; }
.widget .log-classify-f > li { padding:0; border:0; font-size:13px; }
.widget .log-classify-f > li > a { display:flex; min-height:38px; align-items:center; justify-content:space-between; gap:10px; padding:8px 10px; border-radius:9px; color:var(--ink); transition:background .16s,color .16s; }
.widget .log-classify-f > li > a:hover { background:var(--accent-soft); color:var(--accent); }
.widget .log-classify-f small,.widget .log-classify-c small { min-width:22px; padding:2px 6px; border-radius:99px; background:var(--page); color:var(--muted); font-size:10px; line-height:1.4; text-align:center; }
.widget .log-classify-c { display:grid; gap:2px; margin:2px 0 5px 12px; padding:0 0 0 10px; border-left:1px solid var(--line); list-style:none; }
.widget .log-classify-c li { padding:0; border:0; font-size:12px; }
.widget .log-classify-c li a { display:flex; min-height:32px; align-items:center; justify-content:space-between; gap:8px; padding:6px 9px; border-radius:7px; color:var(--muted); }
.widget .log-classify-c li a::before { width:5px; height:5px; flex:0 0 5px; border-radius:50%; background:var(--line); content:""; }
.widget .log-classify-c li a:hover { background:var(--accent-soft); color:var(--accent); }
.widget #calendar { min-width:0; }
.widget #calendar table { width:100%; border-collapse:separate; border-spacing:3px; table-layout:fixed; color:var(--ink); font-size:12px; }
.widget #calendar .calendartop { margin:0 0 8px; border-spacing:0; }
.widget #calendar .calendartop td { padding:4px 3px 8px; color:var(--muted); font-size:12px; text-align:center; }
.widget #calendar .calendartop td:first-child { border-right:1px solid var(--line); }
.widget #calendar .calendartop a { display:inline-flex; min-width:23px; height:23px; align-items:center; justify-content:center; border-radius:7px; color:var(--accent); }
.widget #calendar .calendartop a:hover { background:var(--accent-soft); }
.widget #calendar .calendar td { height:31px; padding:2px; border-radius:7px; color:var(--muted); text-align:center; }
.widget #calendar .calendar td.week,.widget #calendar .calendar td.sun { color:var(--ink); font-size:11px; font-weight:650; }
.widget #calendar .calendar td.day,.widget #calendar .calendar td.day2 { background:var(--accent-soft); color:var(--accent); font-weight:650; }
.widget #calendar .calendar td a { display:grid; width:100%; height:27px; place-items:center; border-radius:6px; color:var(--accent); }
.widget #calendar .calendar td a:hover { background:var(--accent); color:#fff; }
.side-comment-list .comment-info { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 2px 8px; }
.comment-info_img { width: 32px; height: 32px; grid-row: 1 / span 2; border-radius: 50%; object-fit: cover; }
.side-comment-list .comm-lates-name { grid-column: 2; grid-row: 1; overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.side-comment-list .logcom-latest-time { grid-column: 2; grid-row: 2; color: var(--muted); font-size: 10px; }
.side-comment-list .comment-info > a { grid-column: 1 / -1; display: -webkit-box; overflow: hidden; font-size: 11px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.side-comment-list .comment-info > hr { grid-column: 1 / -1; width: 100%; margin: 5px 0 0; border: 0; border-top: 1px solid var(--line); }
.side-twitter-list { display:grid; gap:0; }
.side-twitter-list .side-twitter-item { display:grid; grid-template-columns:38px minmax(0,1fr); align-items:center; gap:2px 10px; padding:12px 0; border:0; }
.side-twitter-list .side-twitter-item:last-child hr { display:none; }
.side-twitter-item .comment-info_img { grid-column:1; grid-row:1 / span 2; width:38px; height:38px; border:1px solid var(--line); background:var(--page); }
.side-twitter-item .comm-lates-name { grid-column:2; grid-row:1; overflow:hidden; color:var(--ink); font-size:12px; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }
.side-twitter-item .logcom-latest-time { grid-column:2; grid-row:2; color:var(--muted); font-size:11px; }
.side-twitter-content { grid-column:1 / -1; margin-top:7px; color:var(--ink); font-size:13px; line-height:1.75; overflow-wrap:anywhere; }
.side-twitter-item hr { grid-column:1 / -1; width:100%; margin:10px 0 0; border:0; border-top:1px solid var(--line); }
.bloggerinfo { margin: 0; text-align: center; }
.bloggerinfo-img { width: 112px; height: 112px; margin: 0 auto 8px; border-radius: 50%; object-fit: cover; }
.bloginfo-name { font-size: 15px; }
.bloginfo-descript { margin-top: 7px; color: var(--muted); font-size: 12px; text-align: left; }
.widget input[type="search"], .widget input[type="text"] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: var(--page); color: var(--ink); }
.widget input[type="submit"], .widget button { margin-top: 8px; padding: 8px 14px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; cursor: pointer; }
.tag-container { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-container.tag-sphere { position:relative; display:block; height:224px; overflow:hidden; border-radius:14px; perspective:680px; contain:layout paint; }
.tag-sphere::before { position:absolute; inset:12% 14%; border-radius:50%; background:radial-gradient(ellipse, var(--accent-soft) 0, transparent 72%); opacity:.7; content:""; pointer-events:none; }
.tags-side { display: inline-flex; min-height:27px; align-items:center; justify-content:center; padding:4px 9px; border:1px solid transparent; border-radius:99px; background:var(--accent-soft); color:var(--accent); font-size:11px; line-height:1.25; white-space:nowrap; }
.tag-sphere .tags-side { position:absolute; top:0; left:0; z-index:1; max-width:170px; overflow:hidden; text-overflow:ellipsis; box-shadow:0 3px 9px rgba(36,61,120,.08); will-change:transform,opacity; transition:background .18s,color .18s,box-shadow .18s; }
.tag-sphere .tags-side:hover,.tag-sphere .tags-side:focus-visible { z-index:1000!important; background:var(--accent); color:#fff; box-shadow:0 5px 15px rgba(50,79,160,.25); outline:none; }
@media(prefers-reduced-motion:reduce) { .tag-container.tag-sphere { perspective:none; } }
.pagination { display: flex; width:100%; flex-wrap: wrap; justify-content:center; gap: 7px; margin: 22px 0 8px; }
.pagination a, .pagination span { display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); font-size: 12px; }
.pagination .current, .pagination .active { border-color: var(--accent); background: var(--accent); color: white; }
.empty-state { padding: 35px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }

/* 首页：横幅、分类入口、作者条与推荐栏 */
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.home-main, .home-aside { min-width: 0; }
.showcase-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, .7fr); grid-template-rows: repeat(2, minmax(150px, 1fr)); gap: 14px; margin-bottom: 14px; }
.showcase-card { position: relative; display: flex; min-width: 0; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background-color: #25334a; background-image: linear-gradient(0deg, rgba(5, 8, 15, .76), rgba(5, 8, 15, .02) 76%), var(--banner-image, radial-gradient(ellipse at 70% 20%, #6685a8, #29364b 62%, #192331)); background-position: center; background-size: cover; transition: transform .2s, border-color .2s; }
.showcase-card:hover { transform: translateY(-2px); border-color: var(--accent); color: #fff; }
.showcase-primary { grid-row: 1 / span 2; min-height: 358px; padding: 26px; }
.showcase-mini { min-height: 172px; }
.showcase-label { display:none; }
.showcase-card strong, .showcase-primary strong { position:relative; z-index:1; display:block; width:100%; max-width:100%; overflow:hidden; color:#fff; font-size:clamp(15px,1.5vw,21px); line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.showcase-intro { position: relative; z-index: 1; max-width: 78%; margin-top: 7px; color: rgba(255,255,255,.8); font-size: 12px; line-height: 1.6; }
.showcase-shade { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(91, 124, 255, .12), transparent 55%); }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.category-card { display: flex; min-height: 76px; align-items: center; gap: 12px; padding: 11px 13px; border: 1px dashed #37373e; border-radius: 13px; background: var(--paper); }
.category-card:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.category-icon { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border-radius: 50%; background: #222226; color: #aeb0b9; font-size: 17px; }
[data-theme="light"] .category-icon { background: #edf0f7; color: #65708a; }
.category-card strong, .category-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-card strong { font-size: 14px; line-height: 1.5; }
.category-card small { color: var(--muted); font-size: 11px; }
.author-strip { display: flex; flex-wrap: nowrap; gap: 22px; overflow-x: auto; margin-bottom: 14px; padding: 14px 17px 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); scrollbar-width: thin; }
.author-item { display: flex; min-width: 70px; flex: 0 0 auto; flex-direction: column; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.author-item img { width: 57px; height: 57px; border: 2px solid #45454e; border-radius: 50%; object-fit: cover; }
.author-item:hover { color: var(--ink); }
.author-item:hover img { border-color: var(--accent); }
.feed-tabs { display: flex; gap: 8px; margin: 0 0 17px; padding: 15px 20px; border: 1px solid var(--line); border-radius: 13px 13px 0 0; background: var(--paper); }
.feed-tabs a { min-width: 72px; padding: 6px 15px; border: 1px solid #393943; border-radius: 99px; color: var(--muted); font-size: 12px; text-align: center; }
.feed-tabs a:hover, .feed-tabs a.is-active { border-color: #334a9b; background: #121a34; color: #7190ff; }
[data-theme="light"] .feed-tabs a:hover, [data-theme="light"] .feed-tabs a.is-active { border-color: #cbd6ff; background: #edf1ff; color: #4565d7; }
.home-main .section-heading { padding: 0 3px; }
.home-aside { display: flex; flex-direction: column; gap: 14px; }
.recommend-widget { padding: 18px; }
.recommend-widget .widget-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.recommend-widget .widget-title h3 { font-size: 17px; }
.recommend-widget .widget-title span { color: var(--muted); font-size: 9px; letter-spacing: .13em; }
.recommend-item { position: relative; display: block; min-height: 70px; overflow: hidden; margin-top: 10px; border-radius: 10px; background: #252a36; }
.recommend-item img, .recommend-placeholder { width: 100%; height: 100%; min-height: 70px; object-fit: cover; }
.recommend-featured { min-height: 155px; }
.recommend-featured img, .recommend-featured .recommend-placeholder { min-height: 155px; }
.recommend-item::after { position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); content: ""; }
.recommend-item strong { position: absolute; right: 12px; bottom: 11px; left: 12px; z-index: 1; display: -webkit-box; overflow: hidden; color: white; font-size: 12px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.recommend-placeholder { display: grid; place-items: center; background: radial-gradient(circle at 70% 20%, #485575, #232936 66%); color: #9cafef; font-size: 40px; }
.home-aside .side-bar { gap: 14px; }
.home-aside .column-small { width: auto; max-width: none; }
.home-aside .side-comment-list .comment-info { grid-template-columns: 40px minmax(0, 1fr); }
.home-aside .comment-info_img { width: 40px; height: 40px; }
.side-comment-list { display: grid; gap: 0; }
.side-comment-list .side-comment-item { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 3px 9px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.side-comment-list .side-comment-item:first-child { padding-top: 2px; }
.side-comment-list .side-comment-item:last-child { padding-bottom: 0; border-bottom: 0; }
.side-comment-avatar { width: 32px; height: 32px; grid-row: 1 / span 2; border-radius: 50%; object-fit: cover; background: var(--accent-soft); }
.side-comment-head { display: flex; min-width: 0; align-items: baseline; gap: 8px; }
.side-comment-head span { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.side-comment-head time { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.side-comment-excerpt { grid-column: 2; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.6; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.side-comment-excerpt:hover { color: var(--accent); }
.side-comment-barrage { display: grid; gap: 9px; overflow: hidden; margin: 2px -19px -3px; padding: 4px 0 8px; }
.side-comment-lane { overflow: hidden; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.side-comment-track { display: flex; width: max-content; gap: 9px; animation: side-comment-scroll 38s linear infinite; }
.side-comment-lane.is-reverse .side-comment-track { animation-name: side-comment-scroll-reverse; animation-duration: 46s; }
.side-comment-lane.is-slow .side-comment-track { animation-duration: 54s; }
.side-comment-bubble { display: flex; width: 218px; min-height: 40px; align-items: center; gap: 7px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--page); color: var(--muted); transition: border-color .18s, background .18s, transform .18s; }
.side-comment-bubble:hover { transform: translateY(-1px); border-color: var(--accent); background: var(--accent-soft); }
.side-comment-bubble img { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; object-fit: cover; background: var(--paper); }
.side-comment-bubble-copy { display: flex; min-width: 0; align-items: baseline; gap: 5px; white-space: nowrap; }
.side-comment-bubble-copy strong { max-width: 58px; overflow: hidden; flex: 0 0 auto; color: var(--ink); font-size: 10px; font-weight: 650; text-overflow: ellipsis; }
.side-comment-bubble-copy > span { overflow: hidden; min-width: 0; font-size: 10px; text-overflow: ellipsis; }
.side-comment-lane.is-static .side-comment-track { animation: none; }
.side-comment-barrage:hover .side-comment-track, .side-comment-barrage:focus-within .side-comment-track { animation-play-state: paused; }
.side-comment-empty { margin: 0; color: var(--muted); font-size: 12px; }
@keyframes side-comment-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes side-comment-scroll-reverse { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .side-comment-track { animation: none; } .side-comment-lane { overflow-x: auto; mask-image: none; scrollbar-width: none; } .side-comment-lane::-webkit-scrollbar { display: none; } }
.latest-widget { padding: 18px; }
.latest-widget-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.latest-widget-heading > div > span { display: block; margin-bottom: 3px; color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.latest-widget-heading h3 { font-size: 17px; }
.latest-widget-heading > i { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--page); color: var(--accent); font-size: 16px; font-style: normal; }
.widget .latest-article-list { display: grid; gap: 8px; }
.widget .latest-article-list > .latest-article-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 54px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--page); font-size: 12px; transition: border-color .18s, background .18s, transform .18s; }
.widget .latest-article-list > .latest-article-item:last-child { border: 1px solid var(--line); }
.widget .latest-article-list > .latest-article-item.is-latest { border-color: var(--accent); background: var(--accent-soft); }
.widget .latest-article-list > .latest-article-item:hover { transform: translateY(-1px); border-color: var(--accent); }
.latest-article-date { display: grid; justify-items: start; gap: 2px; color: var(--muted); font-variant-numeric: tabular-nums; }
.latest-article-date > span { color: var(--accent); font-size: 11px; font-weight: 750; white-space: nowrap; }
.latest-article-date > i { color: var(--muted); font-size: 9px; font-style: normal; }
.latest-article-item > a { display: -webkit-box; position: relative; overflow: hidden; padding-right: 14px; color: var(--ink); font-size: 12px; font-weight: 550; line-height: 1.55; text-overflow: ellipsis; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.latest-article-item > a:hover { color: var(--accent); }
.latest-article-arrow { position: absolute; right: 0; bottom: 0; color: var(--muted); opacity: 0; transition: opacity .18s, transform .18s; }
.latest-article-item:hover .latest-article-arrow { transform: translate(2px, -2px); color: var(--accent); opacity: 1; }
.checkin-rank-widget { padding:17px; }
.checkin-rank-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:13px; }
.checkin-rank-heading > div > span { display:block; margin-bottom:3px; color:var(--accent); font-size:9px; font-weight:700; letter-spacing:.1em; }
.checkin-rank-heading h3 { margin:0; font-size:16px; }
.checkin-rank-mark { display:grid; width:30px; height:30px; place-items:center; border-radius:10px; background:var(--accent-soft); color:var(--accent); font-weight:800; }
.checkin-rank-mark svg { width:17px; height:17px; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.checkin-rank-form { margin:0; }
.checkin-rank-action { display:flex; width:100%; min-height:40px; align-items:center; justify-content:center; gap:8px; padding:9px 12px; border:0; border-radius:11px; background:linear-gradient(110deg,var(--accent),#438bea); box-shadow:0 6px 16px rgba(70,112,232,.2); color:#fff; font-size:12px; font-weight:700; cursor:pointer; transition:transform .18s,box-shadow .18s,opacity .18s; }
.checkin-rank-action:hover:not(:disabled) { transform:translateY(-1px); box-shadow:0 9px 20px rgba(70,112,232,.27); }
.checkin-rank-action:disabled { cursor:default; opacity:.72; }
.checkin-rank-action.is-done { background:var(--accent-soft); box-shadow:none; color:var(--accent); }
.checkin-rank-action.is-disabled { background:var(--page); box-shadow:none; color:var(--muted); }
.checkin-rank-action span { font-size:17px; line-height:10px; }
.checkin-rank-feedback:not(:empty) { margin:8px 1px 0; color:var(--accent); font-size:10px; }
.widget .checkin-rank-list { display:grid; gap:4px; margin:11px 0 0; padding:0; list-style:none; }
.widget .checkin-rank-list > .checkin-rank-item { display:grid; grid-template-columns:24px 34px minmax(0,1fr) auto; align-items:center; gap:8px; min-height:49px; padding:5px 6px; border:1px solid transparent; border-radius:11px; font-size:inherit; transition:background .18s,border-color .18s; }
.widget .checkin-rank-list > .checkin-rank-item:hover { border-color:var(--line); background:var(--page); }
.checkin-rank-number { display:grid; width:22px; height:22px; place-items:center; border-radius:7px; background:var(--page); color:var(--muted); font-size:9px; font-weight:750; }
.checkin-rank-number.rank-1 { background:#fff2d7; color:#b77718; }
.checkin-rank-number.rank-2 { background:#edf0f5; color:#697789; }
.checkin-rank-number.rank-3 { background:#fbe9df; color:#b76b43; }
.checkin-rank-item > img { width:34px; height:34px; border-radius:50%; object-fit:cover; background:var(--accent-soft); }
.checkin-rank-copy { display:grid; min-width:0; gap:3px; }
.checkin-rank-copy strong { overflow:hidden; color:var(--ink); font-size:11px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.checkin-rank-copy small { overflow:hidden; color:var(--muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.checkin-rank-count { display:inline-flex; min-width:42px; align-items:center; justify-content:center; gap:4px; padding:5px 6px; border-radius:8px; background:var(--page); color:var(--muted); font-size:10px; font-variant-numeric:tabular-nums; }
.checkin-rank-count svg { width:13px; height:13px; flex:0 0 13px; stroke:var(--muted); stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.checkin-rank-count b { font-weight:700; }
.checkin-rank-empty { padding:16px 8px 8px; color:var(--muted); font-size:11px; text-align:center; }
.hotlog-widget { padding: 15px; }
.hotlog-widget .widget-title { margin-bottom: 10px; }
.hotlog-widget .widget-title h3 { font-size: 15px; }
.hot-article-list { display: grid; gap: 10px; }
.hot-article { position: relative; display: grid; min-width: 0; grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 10px; color: var(--ink); }
.hot-article-image, .hot-article-placeholder { display: grid; width: 78px; height: 78px; place-items: center; overflow: hidden; border-radius: 11px; background: var(--accent-soft); object-fit: cover; }
.hot-article-placeholder { color: var(--muted); }
.hot-article-placeholder svg { width: 28px; height: 28px; fill: currentColor; opacity: .55; }
.hot-article-content { display: grid !important; min-width: 0; gap: 6px; }
.hot-article-content strong { display: -webkit-box; overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 650; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hot-article-meta { display: flex !important; width: 100%; min-width: 0; flex-direction: row !important; flex-wrap: nowrap; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.hot-article-author { display: inline-flex !important; width: auto; min-width: 0; flex: 0 1 auto; overflow: hidden; color: #d77a22; text-overflow: ellipsis; white-space: nowrap; }
.hot-article-author a { color: inherit; }
.hot-article-meta time { display: inline-block !important; width: auto; flex: 0 0 auto; white-space: nowrap; }
.hot-article-featured { display: block; height: 168px; overflow: hidden; border-radius: 11px; background: var(--accent-soft); }
.hot-article-featured .hot-article-image, .hot-article-featured .hot-article-placeholder { width: 100%; height: 100%; border-radius: 0; }
.hot-article-featured::after { position: absolute; inset: 25% 0 0; background: linear-gradient(transparent, rgba(7,10,17,.88)); content: ""; }
.hot-article-featured .hot-article-content { position: absolute; right: 11px; bottom: 9px; left: 11px; z-index: 1; width: auto; gap: 5px; }
.hot-article-featured .hot-article-content strong { color: #fff; font-size: 12px; -webkit-line-clamp: 2; }
.hot-article-featured .hot-article-meta { color: rgba(255,255,255,.78); font-size: 10px; }
.hot-article-featured .hot-article-author { color: #ff9a31; }
.hot-article:hover .hot-article-content strong { color: var(--accent); }
.hot-article-featured:hover .hot-article-content strong { color: #fff; }
.article-page { display: grid; max-width: 1240px; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; margin: auto; padding: 24px 28px 70px; }
.article-aside { min-width: 0; }
.article-aside .side-bar { min-width: 0; }

/* 文章详情、评论及页脚 */
.log-con { max-width: 900px; margin: 34px auto 60px; padding: 42px; border: 1px solid var(--line); border-radius: 21px; background: var(--paper); box-shadow: var(--shadow); }
.article-page .log-con { max-width: none; min-width: 0; margin: 0; }
.back-to-list { display: inline-block; margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.article-hero-cover { overflow: hidden; margin: 0 0 28px; border-radius: 14px; background: var(--accent-soft); }
.article-hero-cover img { width: 100%; max-height: 470px; object-fit: cover; }
.article-content { min-height: 120px; }
.article-tags { margin: 22px 0; }
.post-votes { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 25px 0 28px; padding: 8px 0; }
.post-vote-button { display: inline-flex; min-width: 54px; min-height: 38px; align-items: center; justify-content: center; gap: 6px; padding: 5px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; transition: color .18s, background .18s; }
.post-vote-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.post-vote-button:hover, .post-vote-button.is-active { background: var(--accent-soft); color: var(--accent); }
.article-collect-button { display:inline-flex; min-width:76px; min-height:38px; align-items:center; justify-content:center; gap:6px; padding:5px 9px; border:0; border-radius:8px; background:transparent; color:var(--muted); cursor:pointer; transition:color .18s,background .18s; }
.article-collect-button svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.article-collect-button:hover,.article-collect-button.is-active { background:var(--accent-soft); color:var(--accent); }
.article-collect-button:disabled { cursor:wait; opacity:.65; }
.article-collect-button .collect-label { font-size:12px; }
.post-vote-button:disabled, .comment-like-button:disabled { cursor: wait; opacity: .65; }
.vote-count { min-width: 1em; font-weight: 650; }
.vote-feedback { flex-basis: 100%; color: var(--muted); font-size: 11px; text-align: center; opacity: 0; transition: opacity .18s; }
.vote-feedback.is-visible { opacity: 1; }
.vote-feedback.is-success { color: var(--accent); }
.log-header { margin-bottom: 24px; }
.log-title { margin: 0 0 13px; font-size: clamp(27px, 4vw, 38px); line-height: 1.35; letter-spacing: -.035em; }
.log-meta { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 12px; }
.log-meta-left { display: flex; flex-wrap: wrap; gap: 7px 17px; }
.markdown { color: var(--ink); line-height: 1.9; }
.markdown img { height: auto; margin: 20px auto; border-radius: 11px; }
.markdown a, .tags { color: var(--accent); }
.markdown blockquote { margin: 20px 0; padding: 8px 17px; border-left: 3px solid var(--accent); background: var(--accent-soft); color: var(--muted); }
.markdown pre { overflow: auto; padding: 17px; border-radius: 11px; background: #17221b; color: #e7eee8; }
.markdown table { width: 100%; border-collapse: collapse; }
.markdown td, .markdown th { padding: 9px; border: 1px solid var(--line); }
.tags { display: inline-block; margin: 4px 6px 4px 0; padding: 3px 10px; border-radius: 99px; background: var(--accent-soft); font-size: 11px; }
.neighbor-log { display: flex; justify-content: space-between; gap: 18px; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#comments { margin-top: 28px; }
.comment-post textarea { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--page); color: var(--ink); }
.comment-post #comment-info { display: flex; gap: 9px; margin: 10px 0; }
.comment-post #comment-info input { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--page); color: var(--ink); }
.com_submit_p .btn { padding: 9px 15px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; cursor: pointer; }
.comment { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 11px; min-width: 0; margin: 18px 0; }
.comment .avatar img { width: 38px; height: 38px; border-radius: 50%; }
.comment-infos { grid-column: 2; min-width: 0; padding: 12px 14px; border-radius: 11px; background: var(--page); }
.comment-children-list { grid-column: 2; width: 100%; min-width: 0; margin-top: 12px; padding-left: 12px; border-left: 1px solid var(--line); }
.comment-children-list > .comment { margin: 0 0 12px; }
.comment-children-list > .comment:last-child { margin-bottom: 0; }
.comment-time { margin-left: 8px; color: var(--muted); font-size: 11px; }
.comment-content { margin-top: 5px; font-size: 13px; }
.comment-actions { display: flex; align-items: center; gap: 13px; margin-top: 9px; }
.comment-actions button { padding: 2px 0; border: 0; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.comment-actions .comment-like-button:hover, .comment-actions .comment-like-button.is-active { color: var(--accent); }
.comment-actions .comment-like-button.is-active { font-weight: 700; }
.comment-actions .com-reply:hover { color: var(--accent); }
.comment-vote-feedback { color: var(--muted); font-size: 10px; opacity: 0; transition: opacity .18s; }
.comment-vote-feedback.is-visible { opacity: 1; }
.comment-reward-hint { margin: 0 0 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--accent-soft); color: var(--muted); font-size: 12px; }
.blog-footer { margin: 0 !important; padding: 26px 20px 34px !important; border-top: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 12px; text-align: center; }
.blog-footer .container { max-width: 1240px; margin: auto; }
.side-toolbar { position: fixed; right: 19px; bottom: 23px; z-index: 22; display: grid; gap: 8px; }
.side-btn { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); color: var(--muted); cursor: pointer; box-shadow: var(--shadow); }
.auth-modal-mask { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); }
.auth-modal { position: fixed; inset: 0; z-index: 41; display: grid; place-items: center; padding: 20px; }
.auth-modal-card { position: relative; width: min(480px, 100%); max-height: min(90vh, 760px); overflow-y: auto; padding: 27px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); box-shadow: var(--shadow); }
.auth-modal-head { margin: 0 28px 18px 0; }
.auth-modal-head h3 { margin: 0; color: var(--ink); font-size: 21px; font-weight: 750; line-height: 1.4; }
.auth-modal-close { position: absolute; top: 10px; right: 14px; border: 0; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
.auth-form-row { margin: 11px 0; }
.auth-form-row input { width: 100%; min-width: 0; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--page); color: var(--ink); transition: border-color .18s, box-shadow .18s, background .18s; }
.auth-form-row input:focus { border-color: var(--accent); background: var(--paper); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.auth-inline-row { display: grid; grid-template-columns: minmax(0, 1fr) 128px; align-items: stretch; gap: 9px; }
.auth-inline-btn { min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--accent); font-size: 13px; font-weight: 650; cursor: pointer; transition: background .18s, border-color .18s, color .18s; }
.auth-inline-btn:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.auth-inline-btn:disabled { color: var(--muted); cursor: wait; opacity: .75; }
.auth-captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px; align-items: center; gap: 10px; }
.auth-captcha-row img { width: 112px; height: 46px; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); object-fit: contain; cursor: pointer; }
.auth-captcha-row img:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.auth-modal-alert { margin: 0 0 12px; color: #d34b4b; font-size: 12px; line-height: 1.55; }
.auth-modal-alert:empty { display: none; }
.auth-checkbox { display: inline-flex; align-items: center; gap: 7px; margin: 1px 0 13px; color: var(--muted); font-size: 12px; cursor: pointer; }
.auth-checkbox input { accent-color: var(--accent); }
.auth-submit { width: 100%; min-height: 46px; padding: 10px 14px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; transition: filter .18s, opacity .18s, transform .18s; }
.auth-submit:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.auth-submit:disabled { cursor: wait; opacity: .68; }
.auth-modal-switch { display: flex; justify-content: space-between; margin-top: 15px; color: var(--accent); font-size: 12px; }
.auth-modal-switch button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.auth-modal-switch button:hover { text-decoration: underline; }
.auth-paid-note { margin: 1px 0 13px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--accent-soft); color: var(--muted); font-size: 12px; line-height: 1.6; }
.payment-choice-mask { position:fixed; inset:0; z-index:48; background:rgba(12,17,28,.52); backdrop-filter:blur(3px); }
.payment-choice-modal { position:fixed; inset:0; z-index:49; display:grid; place-items:center; padding:18px; }
.payment-choice-card { position:relative; width:min(430px,100%); padding:25px; border:1px solid var(--line); border-radius:18px; background:var(--paper); box-shadow:var(--shadow); }
.payment-choice-close { position:absolute; top:10px; right:13px; width:34px; height:34px; border:0; border-radius:50%; background:transparent; color:var(--muted); font-size:24px; cursor:pointer; }
.payment-choice-card h3 { margin:5px 30px 6px 0; font-size:21px; }
.payment-choice-card > p { margin:0 0 18px; color:var(--muted); font-size:13px; }
.payment-channel-field,.product-supply-channel { display:grid; gap:7px; margin:0 0 14px; color:var(--ink); font-size:12px; font-weight:650; }
.payment-channel-field select,.product-supply-channel select { width:100%; min-height:42px; padding:0 12px; border:1px solid var(--line); border-radius:9px; background:var(--page); color:var(--ink); font:inherit; font-weight:400; }
.payment-channel-field select:focus,.product-supply-channel select:focus { outline:2px solid var(--accent-soft); border-color:var(--accent); }
.product-supply-channel[hidden],.auth-signup-easypay-channel[hidden] { display:none!important; }
.payment-channel-field select.is-invalid,.product-supply-channel select.is-invalid { border-color:#d45454; }
.payment-option-buttons { display:flex; flex-wrap:wrap; gap:8px; }
.payment-option-buttons button { min-height:39px; padding:8px 14px; border:1px solid var(--line); border-radius:10px; background:var(--page); color:var(--ink); font:inherit; font-size:13px; cursor:pointer; transition:background .16s,border-color .16s,color .16s,transform .16s; }
.payment-option-buttons button:hover { transform:translateY(-1px); border-color:var(--accent); color:var(--accent); }
.payment-option-buttons button.is-selected { border-color:var(--accent); background:var(--accent-soft); color:var(--accent); }
.payment-option-buttons button.is-invalid { border-color:#d45454; color:#d45454; }
.auth-payment-label,.product-supply-channel > span { display:block; margin-bottom:7px; color:var(--ink); font-size:12px; font-weight:650; }
.payment-success-toast { position:fixed; right:22px; bottom:22px; z-index:1000; display:flex; align-items:center; gap:11px; width:min(360px,calc(100vw - 32px)); padding:14px 16px; border:1px solid rgba(57,161,111,.24); border-radius:14px; background:var(--paper); color:var(--ink); box-shadow:0 14px 40px rgba(25,48,88,.18); }
.payment-success-toast > span { display:grid; width:34px; height:34px; flex:none; place-items:center; border-radius:50%; background:rgba(57,161,111,.12); color:#279664; font-size:19px; font-weight:800; }
.payment-success-toast div { display:grid; gap:3px; }
.payment-success-toast strong { font-size:14px; }
.payment-success-toast small { color:var(--muted); font-size:12px; }
.payment-success-toast button { align-self:flex-start; margin-left:auto; border:0; background:transparent; color:var(--muted); font-size:20px; line-height:1; cursor:pointer; }
.payment-choice-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.payment-choice-actions button { display:flex; min-height:82px; flex-direction:column; justify-content:center; gap:3px; padding:13px; border:1px solid var(--line); border-radius:12px; background:var(--page); color:var(--ink); text-align:left; cursor:pointer; transition:border-color .18s,background .18s,transform .18s; }
.payment-choice-actions button:hover { transform:translateY(-1px); border-color:var(--accent); background:var(--accent-soft); }
.payment-choice-actions strong { font-size:14px; }
.payment-choice-actions small { color:var(--muted); font-size:11px; }
.payment-choice-actions .payment-choice-balance strong { color:var(--accent); }
.payment-choice-actions button.is-disabled,.payment-choice-actions button:disabled { opacity:.58; cursor:not-allowed; transform:none; }
.payment-choice-actions button.is-disabled:hover,.payment-choice-actions button:disabled:hover { border-color:var(--line); background:var(--page); }
.payment-coupon { margin:0 0 15px; padding:12px; border:1px solid var(--line); border-radius:11px; background:var(--page); }
.payment-coupon label { display:block; margin-bottom:7px; color:var(--ink); font-size:12px; font-weight:650; }
.payment-coupon > div { display:flex; gap:8px; }
.payment-coupon input { min-width:0; flex:1; height:38px; padding:0 10px; border:1px solid var(--line); border-radius:8px; background:var(--paper); color:var(--ink); font:inherit; }
.payment-coupon button { padding:0 13px; border:0; border-radius:8px; background:var(--accent); color:#fff; font:inherit; cursor:pointer; }
.payment-coupon button:disabled { opacity:.65; cursor:wait; }
.payment-coupon small { display:block; min-height:16px; margin-top:5px; color:var(--muted); font-size:11px; }
.payment-coupon small.is-error { color:#d45454; }
.payment-coupon small.is-success { color:#27885c; }
.payment-choice-cancel { display:block; margin:14px auto 0; padding:5px 12px; border:0; background:transparent; color:var(--muted); font:inherit; font-size:12px; cursor:pointer; }
.payment-choice-cancel:hover { color:var(--ink); }
.uc-reward-card { margin-top:13px; padding:0; overflow:hidden; }
.uc-wallet-balance strong { display:block; margin:4px 0; color:var(--accent); font-size:25px; }
.uc-wallet-balance p { margin:0; color:var(--muted); font-size:12px; }
.uc-checkin-calendar { margin:0; padding:20px 24px 22px; transition:opacity .18s; }
.uc-checkin-calendar[aria-busy="true"] { opacity:.62; pointer-events:none; }
.uc-checkin-load-error { margin:12px 0 0; color:#c54c4c; font-size:12px; }
.uc-checkin-heading { display:flex; align-items:center; justify-content:space-between; gap:22px; padding:0 0 17px; border-bottom:1px solid var(--line); }
.uc-checkin-balance { min-width:0; }
.uc-checkin-balance strong { display:block; margin:3px 0 2px; color:var(--accent); font-size:25px; }
.uc-checkin-balance p { margin:0; color:var(--muted); font-size:12px; }
.uc-checkin-heading-side { display:flex; flex:0 0 auto; align-items:center; gap:18px; }
.uc-checkin-feedback { min-height:0; margin:0; color:var(--accent); font-size:11px; }
.uc-checkin-feedback:not(:empty) { margin-top:10px; }
.uc-checkin-summary { display:grid; min-width:106px; justify-items:end; gap:2px; }
.uc-checkin-summary strong { color:var(--accent); font-size:24px; line-height:1.1; }
.uc-checkin-summary strong small { margin-left:3px; font-size:12px; }
.uc-checkin-summary > span { color:var(--muted); font-size:10px; }
.uc-checkin-summary b { color:var(--ink); font-size:11px; }
.uc-checkin-month-nav { display:flex; align-items:center; justify-content:space-between; margin:14px 0 8px; }
.uc-checkin-month-nav strong { color:var(--ink); font-size:13px; }
.uc-checkin-month-nav a,.uc-checkin-month-nav > span { display:grid; width:29px; height:29px; place-items:center; border:1px solid var(--line); border-radius:9px; background:var(--page); color:var(--accent); font-size:20px; line-height:1; }
.uc-checkin-month-nav a:hover { border-color:var(--accent); background:var(--accent-soft); }
.uc-checkin-month-nav > .is-disabled { color:var(--muted); opacity:.4; }
.uc-checkin-weekdays,.uc-checkin-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; }
.uc-checkin-weekdays { margin-bottom:6px; }
.uc-checkin-weekdays span { padding:5px 0; color:var(--muted); font-size:10px; font-weight:650; text-align:center; }
.uc-checkin-day,.uc-checkin-days > .is-blank { position:relative; display:grid; min-height:46px; place-items:center; border:1px solid var(--line); border-radius:10px; background:var(--page); color:var(--ink); }
.uc-checkin-day.is-action { width:100%; padding:0; font:inherit; cursor:pointer; appearance:none; transition:transform .16s,border-color .16s,background .16s,box-shadow .16s; }
.uc-checkin-day.is-action:hover { transform:translateY(-2px); border-color:var(--accent); background:var(--accent-soft); box-shadow:0 5px 14px rgba(58,86,170,.13); }
.uc-checkin-day.is-action:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.uc-checkin-day.is-action.is-loading { cursor:wait; }
.uc-checkin-day.is-action.is-loading::after { position:absolute; width:13px; height:13px; border:2px solid var(--accent); border-right-color:transparent; border-radius:50%; content:""; animation:uc-checkin-spin .7s linear infinite; }
@keyframes uc-checkin-spin { to { transform:rotate(360deg); } }
.uc-checkin-day b { font-size:12px; font-weight:600; }
.uc-checkin-day.is-checked { border-color:var(--accent); background:var(--accent-soft); color:var(--accent); }
.uc-checkin-day.is-checked i { position:absolute; right:5px; bottom:3px; color:var(--accent); font-size:10px; font-style:normal; font-weight:800; }
.uc-checkin-day.is-today:not(.is-checked) { border:1.5px solid var(--accent); }
.uc-checkin-day .today-dot { position:absolute; right:6px; bottom:6px; width:5px; height:5px; border-radius:50%; background:var(--accent); }
.uc-checkin-day.is-future { color:var(--muted); opacity:.55; }
.uc-checkin-legend { display:flex; flex-wrap:wrap; gap:15px; margin-top:13px; color:var(--muted); font-size:10px; }
.uc-checkin-legend span { display:inline-flex; align-items:center; gap:5px; }
.uc-checkin-legend i { display:grid; width:15px; height:15px; place-items:center; border:1px solid var(--line); border-radius:5px; background:var(--page); font-size:9px; font-style:normal; }
.uc-checkin-legend i.is-checked { border-color:var(--accent); background:var(--accent-soft); color:var(--accent); }
.uc-checkin-legend i.is-today { border:1.5px solid var(--accent); }
.uc-checkin-legend i.is-empty { background:var(--paper); }
.uc-wallet-balance { margin-bottom:14px; padding:20px; }
.wallet-credit { color:#13a16b; font-weight:700; }
.wallet-debit { color:var(--muted); }
.yifan-wallet-hint { display:block; margin:0 0 8px; color:var(--muted); font-size:12px; }

@media (max-width: 520px) {
    .auth-modal { padding: 12px; }
    .auth-modal-card { max-height: 94vh; padding: 23px 18px; border-radius: 15px; }
    .auth-inline-row { grid-template-columns: minmax(0, 1fr) 112px; gap: 7px; }
    .auth-inline-btn { padding: 0 7px; font-size: 12px; }
    .auth-captcha-row { grid-template-columns: minmax(0, 1fr) 100px; gap: 8px; }
    .auth-captcha-row img { width: 100px; }
    .payment-choice-card { padding:22px 18px; }
}
@media (max-width: 600px) { .uc-checkin-calendar { padding:16px; } .uc-checkin-heading { align-items:flex-start; flex-direction:column; gap:12px; } .uc-checkin-heading-side { width:100%; justify-content:space-between; } .uc-checkin-balance p { line-height:1.5; } .uc-checkin-summary { min-width:70px; } .uc-checkin-weekdays,.uc-checkin-days { gap:4px; } .uc-checkin-day,.uc-checkin-days > .is-blank { min-height:39px; border-radius:8px; } .uc-checkin-legend { gap:10px; } }

@media (max-width: 900px) {
    .content-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 21px; }
    .home-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 15px; }
    .article-page { grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .heading-note { display: none; }
}
@media (max-width: 700px) {
    .header-inner { display:grid; grid-template-columns:minmax(0,1fr) 38px 38px 38px; grid-template-areas:"brand account theme toggle" "search search search search"; align-items:center; gap:12px 8px; min-height:0; padding:12px 16px 14px; }
    .brand { grid-area:brand; min-width:0; gap:9px; }
    .brand-mark { width:38px; height:38px; flex-basis:38px; border-radius:12px; font-size:21px; }
    .brand-logo { max-width:190px; height:42px; }
    .brand-copy { min-width:0; }
    .brand-copy strong { font-size:15px; }
    .brand-copy small { max-width:180px; font-size:10px; }
    .nav-toggle { display:grid; grid-area:toggle; width:38px; height:38px; place-items:center; margin:0; padding:0; border-radius:11px; font-size:16px; }
    .header-search { grid-area:search; width:100%; height:40px; min-width:0; margin:0; padding:0 13px; background:var(--page); }
    .header-account { grid-area:account; margin:0; }
    .header-account-trigger { width:38px; height:38px; }
    .account-popover { position:fixed; top:62px; right:14px; width:min(350px,calc(100vw - 28px)); }
    .theme-switch { grid-area:theme; width:38px; height:38px; margin:0; }
    .blog-header-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; margin: 0; padding: 9px 17px 15px; border-bottom: 1px solid var(--line); background: var(--paper); }
    .blog-header-nav.is-open { display: block; }
    .nav-list { align-items: stretch; flex-direction: column; gap: 2px; white-space: normal; }
    .nav-list .nav-link { display: flex; justify-content: flex-start; }
    .nav-list .list-menu.has-submenu > .nav-link::after { width:20px; flex:0 0 20px; margin-left:auto; color:var(--muted); content:"＋"; font-size:15px; line-height:1; text-align:center; }
    .nav-list .list-menu.has-submenu.is-submenu-open > .nav-link::after { color:var(--accent); content:"−"; }
    .dropdown-menus { position:static; display:none; grid-column:1 / -1; min-width:0; margin:0; padding:3px 0 4px 12px; border:0; border-left:1px solid var(--line); border-radius:0; background:transparent; box-shadow:none; opacity:1; visibility:visible; pointer-events:auto; transform:none; }
    .list-menu.is-submenu-open > .dropdown-menus { display:block; }
    .nav-list .list-menu.has-submenu > .nav-link { width:100%; touch-action:manipulation; }
    .page-wrap { padding: 23px 16px 48px; }
    .welcome-panel { min-height: 220px; padding: 30px 24px; }
    .welcome-art { right: -27px; width: 132px; height: 132px; font-size: 78px; opacity: .32; }
    .welcome-panel p { max-width: 87%; font-size: 13px; }
    .topic-nav { margin-bottom: 20px; }
    .content-grid, .home-layout, .article-page { grid-template-columns: 1fr; }
    .home-aside, .article-aside, .content-grid > .side-bar { display: none !important; }
    .showcase-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 230px 135px; gap: 9px; }
    .showcase-primary { grid-row: auto; grid-column: 1 / -1; min-height: 230px; }
    .showcase-mini { min-height: 135px; padding: 13px; }
    .showcase-mini strong { font-size: 13px; }
    .category-grid { gap: 8px; }
    .category-card { min-height: 68px; gap: 8px; padding: 8px; }
    .category-icon { width: 33px; height: 33px; flex-basis: 33px; }
    .author-strip { flex-wrap: nowrap !important; gap: 10px; overflow-x: auto; padding: 10px; scrollbar-width: none; }
    .author-strip::-webkit-scrollbar { display: none; }
    .author-item { min-width: 52px; flex: 0 0 52px; gap: 4px; font-size: 10px; }
    .author-item img { width: 36px; height: 36px; border-width: 1px; }
    .author-item span { display: block; width: 100%; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
    .author-item:nth-child(n+7) { display: none; }
    .feed-tabs { padding: 12px; }
    .home-aside .side-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-card, .article-card-featured { min-height: 0; padding: 15px; gap: 13px; }
    .article-body h3, .article-card-featured h3 { font-size: 16px; }
    .article-excerpt { margin-bottom: 9px; font-size: 12px; }
    .article-meta { gap: 6px 10px; font-size: 10px; }
    .side-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .log-con { margin: 18px 12px 35px; padding: 24px 19px; }
    .article-page { padding: 23px 16px 48px; }
    .article-page .log-con { margin: 0; padding: 24px 19px; }
    .article-aside { padding-top: 0; }
    .comment-post #comment-info { flex-direction: column; }
}
@media (max-width: 600px) {
    .showcase-grid { grid-template-rows:180px 108px; gap:8px; margin-bottom:10px; }
    .showcase-primary { min-height:180px; padding:16px; }
    .showcase-mini { min-height:108px; padding:11px; }
    .showcase-label { display:none; }
    .showcase-card strong, .showcase-primary strong { display:block; width:100%; max-width:100%; overflow:hidden; font-size:14px; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
    .showcase-mini strong { font-size:12px; }
    .category-grid { gap:7px; }
    .category-card { min-height:60px; gap:8px; padding:7px 9px; }
    .category-icon { width:30px; height:30px; flex-basis:30px; font-size:14px; }
    .category-card strong { font-size:12px; }
    .category-card small { font-size:10px; }
    .article-card, .article-card-featured { display:grid; grid-template-columns:88px minmax(0,1fr); align-items:center; min-height:0; gap:11px; padding:12px; }
    .article-cover { grid-column:1; grid-row:1; width:88px; height:88px; min-height:88px; flex:0 0 88px; align-self:center; margin:0; border-radius:9px; }
    .article-kicker, .article-excerpt { display:none; }
    .article-body { grid-column:2; grid-row:1; width:100%; min-width:0; align-self:stretch; justify-content:center; }
    .article-body h3, .article-card-featured h3 { display:-webkit-box; width:100%; min-width:0; max-width:100%; overflow:hidden; margin:0 0 5px; font-size:15px; line-height:1.4; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
    .article-body h3 a { display:block; width:100%; min-width:0; overflow:hidden; }
    .article-commerce-slot { position:relative; display:flex; min-height:20px; align-items:center; margin:0 0 5px; }
    .article-commerce-slot .article-commerce-badge { position:static; max-width:100%; min-height:19px; gap:4px; padding:3px 8px; font-size:9px; line-height:1.2; border-radius:999px; white-space:nowrap; }
    .article-body h3.article-title-has-badge { display:block; height:auto; padding:0; -webkit-line-clamp:unset; }
    .article-title-line { display:block; width:100%; overflow:hidden; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
    .article-title-line-last { display:flex; width:100%; min-width:0; align-items:center; gap:5px; overflow:hidden; white-space:nowrap; }
    .article-title-line-text { min-width:0; flex:0 1 auto; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .article-title-line-last .article-commerce-badge { position:static; flex:0 0 auto; max-width:100%; min-height:19px; gap:4px; padding:3px 8px; font-size:9px; line-height:1.2; border-radius:999px; white-space:nowrap; }
    .article-card.has-title-badge .article-commerce-slot { min-height:0; margin:0 0 5px; }
    .article-meta { width:100%; min-width:0; justify-content:flex-start; gap:4px 8px; margin-top:0; font-size:10px; line-height:1.5; }
}
@media (max-width: 430px) {
    .showcase-grid { grid-template-rows:160px 94px; }
    .showcase-primary { min-height:160px; padding:13px; }
    .showcase-mini { min-height:94px; padding:9px; }
    .showcase-card strong, .showcase-primary strong { font-size:13px; }
    .showcase-mini strong { font-size:11px; }
    .brand-copy small { max-width: 150px; }
    .article-card, .article-card-featured { grid-template-columns:76px minmax(0,1fr); gap:10px; padding:11px; }
    .article-cover { width:76px; height:76px; min-height:76px; flex-basis:76px; }
    .article-body h3, .article-card-featured h3 { font-size:14px; line-height:1.4; }
    .article-meta { gap:3px 7px; font-size:10px; }
    .article-thumb-art { transform: scale(.76); }
    .article-body h3, .article-card-featured h3 { margin-top:0; font-size:14px; line-height:1.4; }
    .side-bar, .home-aside .side-bar { grid-template-columns: 1fr; }
}

.yifan-resource-panel { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:24px; margin:26px 0 30px; padding:22px 24px; border:1px solid var(--line); border-radius:18px; background:var(--paper-soft, var(--paper)); box-shadow:0 8px 24px rgba(25,45,70,.05); }
.yifan-resource-eyebrow { color:var(--accent); font-size:10px; font-weight:800; letter-spacing:.14em; }
.yifan-resource-copy h2 { margin:5px 0 3px; font-size:20px; }
.yifan-resource-copy p { margin:0; color:var(--muted); font-size:13px; }
.yifan-resource-price { display:inline-block; margin-top:8px; color:var(--accent); font-size:21px; }
.yifan-resource-actions { display:flex; align-items:center; gap:10px; min-width:0; }
.yifan-resource-actions form { margin:0; }
.yifan-guest-email { width:220px; min-width:0; margin-right:8px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:var(--paper); color:var(--ink); font:inherit; }
.yifan-supply-fields { display:grid; grid-template-columns:repeat(2,minmax(140px,1fr)); gap:12px; width:100%; margin:0 0 16px; }
.yifan-supply-fields>strong { grid-column:1/-1; color:var(--ink); font-size:14px; line-height:1.3; }
.yifan-supply-fields label { display:grid; gap:6px; color:var(--muted); font-size:12px; line-height:1.4; }
.yifan-supply-fields label i { color:#e56b72; font-style:normal; }
.yifan-supply-fields input, .yifan-supply-fields select { box-sizing:border-box; width:100%; min-width:0; min-height:44px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:var(--paper); color:var(--ink); font:inherit; transition:border-color .18s ease,box-shadow .18s ease; }
.yifan-supply-fields input:focus, .yifan-supply-fields select:focus { outline:0; border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 14%,transparent); }
.yifan-supply-fields small { color:var(--muted); font-size:11px; }
.yifan-resource-button { display:inline-flex; align-items:center; justify-content:center; min-width:132px; padding:11px 18px; border:0; border-radius:11px; background:var(--accent); color:#fff; font:inherit; font-weight:700; text-decoration:none; cursor:pointer; }
.yifan-resource-button:hover { filter:brightness(.94); color:#fff; }
.yifan-resource-unavailable { color:var(--muted); font-size:13px; }
.yifan-resource-notice { flex-basis:100%; margin:0; padding-top:14px; border-top:1px solid var(--line); color:var(--muted); font-size:12px; line-height:1.7; }

/* 权益商品会有多项下单参数，使用独立的文章内购买布局，避免与普通下载按钮挤在一起。 */
.yifan-resource-panel:has(.yifan-supply-fields) { display:grid; grid-template-columns:minmax(210px,.72fr) minmax(0,1.45fr); align-items:start; gap:28px 36px; padding:28px 30px; }
.yifan-resource-panel:has(.yifan-supply-fields) .yifan-resource-copy { padding:5px 0; }
.yifan-resource-panel:has(.yifan-supply-fields) .yifan-resource-copy h2 { margin-top:7px; font-size:22px; }
.yifan-resource-panel:has(.yifan-supply-fields) .yifan-resource-copy p { max-width:300px; line-height:1.75; }
.yifan-resource-panel:has(.yifan-supply-fields) .yifan-resource-actions { display:block; width:100%; }
.yifan-resource-actions form:has(.yifan-supply-fields) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; width:100%; }
.yifan-resource-actions form:has(.yifan-supply-fields) .yifan-supply-fields { grid-column:1/-1; }
.yifan-resource-actions form:has(.yifan-supply-fields) .yifan-guest-email { grid-column:1/-1; box-sizing:border-box; width:100%; min-height:44px; margin:0; }
.yifan-resource-actions form:has(.yifan-supply-fields) .yifan-resource-button { grid-column:1/-1; justify-self:start; min-width:166px; min-height:46px; }
.yifan-resource-panel:has(.yifan-supply-fields) .yifan-resource-notice { grid-column:1/-1; }
@media (max-width:760px) { .yifan-resource-panel:has(.yifan-supply-fields) { grid-template-columns:1fr; gap:18px; padding:22px; } .yifan-resource-panel:has(.yifan-supply-fields) .yifan-resource-copy { padding:0; } }
@media (max-width:600px) { .yifan-resource-panel { align-items:flex-start; flex-direction:column; gap:16px; padding:18px; } .yifan-resource-actions, .yifan-resource-actions form, .yifan-resource-button { width:100%; } .yifan-resource-actions form { display:grid; gap:8px; } .yifan-guest-email { width:100%; margin:0; } .yifan-supply-fields { grid-template-columns:1fr; width:100%; } .yifan-resource-actions form:has(.yifan-supply-fields) .yifan-resource-button { justify-self:stretch; } }
.commerce-center { max-width:1120px; min-height:65vh; margin:0 auto; padding:42px 20px 70px; }
.commerce-heading { margin-bottom:24px; }
.commerce-heading h1 { margin:7px 0; font-size:30px; }
.commerce-heading p, .commerce-member-card p { color:var(--muted); }
.commerce-card, .commerce-plan { border:1px solid var(--line); border-radius:16px; background:var(--paper); box-shadow:0 8px 28px rgba(24,44,70,.045); }
.commerce-member-card { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:24px; }
.commerce-member-card h2 { margin:6px 0; font-size:22px; }
.commerce-member-card p { margin:0; }
.commerce-label { color:var(--accent); font-size:10px; font-weight:800; letter-spacing:.12em; }
.commerce-section { margin-top:30px; }
.commerce-section-heading { display:flex; align-items:baseline; justify-content:space-between; margin-bottom:12px; }
.commerce-section-heading h2 { margin:0; font-size:20px; }
.commerce-section-heading span { color:var(--muted); font-size:12px; }
.commerce-plan-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.commerce-plan { padding:22px; }
.commerce-plan h3 { margin:10px 0 5px; }
.commerce-plan p { color:var(--muted); font-size:13px; }
.commerce-plan strong { display:block; margin:14px 0; color:var(--accent); font-size:24px; }
.commerce-plan form { margin:0; }
.commerce-table-wrap { overflow:auto; }
.commerce-table { width:100%; border-collapse:collapse; font-size:13px; }
.commerce-table th, .commerce-table td { padding:13px 15px; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; }
.commerce-table th { color:var(--muted); font-weight:600; }
.commerce-table tr:last-child td { border-bottom:0; }
.commerce-table a { color:var(--accent); }
.account-workspace { display:grid; max-width:1240px; min-height:65vh; grid-template-columns:238px minmax(0,1fr); gap:22px; margin:0 auto; padding:34px 28px 70px; align-items:start; }
.account-sidebar { position:sticky; top:18px; overflow:hidden; border:1px solid var(--line); border-radius:var(--radius); background:var(--paper); box-shadow:var(--shadow); }
.account-side-user { display:flex; align-items:center; gap:11px; padding:17px; border-bottom:1px solid var(--line); }
.account-side-user img { width:44px; height:44px; flex:0 0 44px; border-radius:50%; object-fit:cover; background:var(--accent-soft); }
.account-side-user strong,.account-side-user span { display:block; overflow:hidden; max-width:145px; text-overflow:ellipsis; white-space:nowrap; }
.account-side-user strong { font-size:14px; }
.account-side-user span { margin-top:3px; color:var(--muted); font-size:11px; }
.account-sidebar nav { display:grid; gap:3px; padding:10px; }
.account-sidebar nav a { display:flex; min-height:39px; align-items:center; justify-content:space-between; padding:8px 10px; border-radius:9px; color:var(--muted); font-size:13px; }
.account-sidebar nav a:hover,.account-sidebar nav a.is-active { background:var(--accent-soft); color:var(--accent); }
.account-sidebar nav em { min-width:22px; padding:1px 6px; border-radius:99px; background:var(--page); color:var(--muted); font-size:10px; font-style:normal; text-align:center; }
.account-nav-label { margin:11px 10px 3px; color:var(--muted); font-size:10px; font-weight:700; letter-spacing:.05em; }
.account-content { min-width:0; }
.account-page-heading { display:flex; align-items:end; justify-content:space-between; margin:0 0 19px; }
.account-page-heading h1 { margin:5px 0 3px; font-size:27px; line-height:1.3; }
.account-page-heading p { margin:0; color:var(--muted); font-size:13px; }
.account-welcome { display:flex; min-height:145px; align-items:center; justify-content:space-between; gap:20px; padding:22px 24px; background:linear-gradient(115deg,var(--paper),var(--accent-soft)); }
.account-welcome h2,.uc-member-summary h2 { margin:5px 0; font-size:21px; }
.account-welcome p,.uc-member-summary p { margin:0; color:var(--muted); font-size:13px; }
.account-welcome img { width:72px; height:72px; flex:0 0 72px; border:3px solid var(--paper); border-radius:50%; object-fit:cover; }
.uc-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; margin-top:13px; }
.uc-stat-card { display:grid; min-width:0; gap:4px; padding:15px; border:1px solid var(--line); border-radius:14px; background:var(--paper); }
.uc-stat-card span,.uc-stat-card small { overflow:hidden; color:var(--muted); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.uc-stat-card strong { color:var(--ink); font-size:22px; }
.uc-stat-card:hover { border-color:var(--accent); transform:translateY(-1px); }
.uc-member-summary { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:13px; padding:18px 20px; }
.uc-member-summary small { display:block; margin-top:5px; color:var(--muted); }
.uc-dashboard-lists { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; margin-top:13px; }
.uc-dashboard-lists .commerce-section-heading { padding:10px 0 0; }
.uc-form-card { padding:22px; }
.uc-form-card form { margin:0; }
.uc-field { display:grid; gap:6px; margin:15px 0; color:var(--ink); font-size:13px; font-weight:600; }
.uc-field input,.uc-field textarea { width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:10px; outline:0; background:var(--page); color:var(--ink); font:inherit; font-weight:400; }
.uc-field input:focus,.uc-field textarea:focus { border-color:var(--accent); }
.uc-field input:disabled { opacity:.7; }
.uc-field small { color:var(--muted); font-size:11px; font-weight:400; }
.uc-avatar-editor { display:flex; align-items:center; gap:14px; margin-bottom:20px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.uc-avatar-editor>img { width:68px; height:68px; flex:0 0 68px; border-radius:50%; object-fit:cover; }
.uc-avatar-editor strong { font-size:14px; }
.uc-avatar-editor p { margin:3px 0 9px; color:var(--muted); font-size:11px; }
.uc-avatar-editor button:disabled { opacity:.5; cursor:not-allowed; }
.uc-secondary-button { display:inline-flex; min-height:36px; align-items:center; padding:6px 11px; border:1px solid var(--line); border-radius:9px; color:var(--muted); font-size:12px; cursor:pointer; }
.uc-notice { margin-bottom:13px; padding:11px 14px; border:1px solid var(--line); border-radius:10px; background:var(--accent-soft); color:var(--accent); font-size:13px; }
.uc-list-card { padding:9px 18px; }
.uc-log-list { display:grid; }
.uc-log-item { display:grid; grid-template-columns:74px minmax(0,1fr) auto; align-items:center; gap:13px; padding:13px 0; border-bottom:1px solid var(--line); }
.uc-log-item:last-child { border-bottom:0; }
.uc-log-cover { display:grid; width:74px; height:58px; place-items:center; overflow:hidden; border-radius:9px; background:var(--accent-soft); color:var(--accent); }
.uc-log-cover img { width:100%; height:100%; object-fit:cover; }
.uc-log-cover.is-empty { font-size:18px; font-weight:700; }
.uc-log-copy { min-width:0; }
.uc-log-copy h3 { display:-webkit-box; overflow:hidden; margin:0 0 5px; font-size:14px; line-height:1.5; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.uc-log-copy p { margin:0; color:var(--muted); font-size:11px; }
.uc-row-link { color:var(--accent); font-size:12px; white-space:nowrap; }
.uc-empty { padding:36px 15px; color:var(--muted); text-align:center; }
.uc-pagination { display:flex; align-items:center; justify-content:center; gap:12px; margin-top:15px; color:var(--muted); font-size:12px; }
.uc-pagination a { padding:6px 10px; border:1px solid var(--line); border-radius:8px; background:var(--paper); color:var(--accent); }
.uc-order-status { display:inline-flex; padding:3px 8px; border-radius:99px; background:var(--accent-soft); color:var(--muted); font-size:11px; }
.uc-order-status.status-1 { background:#e7f7ed; color:#198251; }
.uc-order-status.status-0 { background:#fff4da; color:#a47216; }
.uc-order-status.status-2 { background:var(--page); }
.uc-order-detail-link { display:inline-flex; padding:5px 10px; border:1px solid var(--line); border-radius:8px; color:var(--accent); text-decoration:none; white-space:nowrap; }
.uc-order-detail-link:hover { background:var(--accent-soft); }
.uc-order-detail { margin-top:15px; }
.uc-order-detail .commerce-section-heading { align-items:flex-start; }
.uc-order-detail .commerce-section-heading h2 { margin:0; }
.uc-order-detail-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; margin:14px 0; }
.uc-order-detail-grid>div,.uc-supply-params>div { min-width:0; padding:11px 13px; border:1px solid var(--line); border-radius:10px; background:var(--page); }
.uc-order-detail-grid dt,.uc-supply-params dt { color:var(--muted); font-size:12px; }
.uc-order-detail-grid dd,.uc-supply-params dd { margin:4px 0 0; overflow-wrap:anywhere; }
.uc-delivery-section { margin-top:16px; padding-top:15px; border-top:1px solid var(--line); }
.uc-delivery-section h3 { display:flex; align-items:center; gap:10px; margin:0 0 12px; font-size:16px; }
.uc-delivery-section h4 { margin:16px 0 9px; font-size:14px; }
.uc-delivery-note { margin-top:12px; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:var(--accent-soft); color:var(--ink); }
.uc-delivery-note a { color:var(--accent); }
.uc-card-code { max-height:320px; overflow:auto; margin:10px 0 0; padding:14px; border:1px solid var(--line); border-radius:10px; background:var(--page); color:var(--ink); white-space:pre-wrap; overflow-wrap:anywhere; font:13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace; }
.uc-supply-params { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:8px; margin:0; }
.uc-muted { color:var(--muted); }
.uc-field select { width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:10px; outline:0; background:var(--page); color:var(--ink); font:inherit; }
.uc-field select:focus { border-color:var(--accent); }
.uc-ticket-submit { margin-bottom:14px; }
.uc-ticket-list { padding:20px; }
.uc-ticket-item { padding:17px 0; border-top:1px solid var(--line); }
.uc-ticket-item>header { display:flex; justify-content:space-between; gap:12px; }
.uc-ticket-item>header strong,.uc-ticket-item>header small { display:block; }
.uc-ticket-item>header strong { margin:8px 0 4px; font-size:14px; }
.uc-ticket-item>header small,.uc-ticket-item>header>span { color:var(--muted); font-size:11px; }
.uc-ticket-status { display:inline-flex; padding:3px 8px; border-radius:99px; background:#fff4da; color:#a47216; font-size:11px; }
.uc-ticket-status.status-1 { background:#e8efff; color:#4e70e8; }
.uc-ticket-status.status-2 { background:#e7f7ed; color:#198251; }
.uc-ticket-status.status-3 { background:var(--page); color:var(--muted); }
.uc-ticket-message { margin-top:12px; padding:12px 14px; border-radius:10px; background:var(--page); color:var(--ink); font-size:13px; line-height:1.75; overflow-wrap:anywhere; }
.uc-ticket-reply { margin:10px 0 0 18px; padding:11px 13px; border-left:2px solid var(--line); background:var(--page); }
.uc-ticket-reply.is-staff { border-left-color:var(--accent); background:var(--accent-soft); }
.uc-ticket-reply b { font-size:12px; }
.uc-ticket-reply small { margin-left:8px; color:var(--muted); font-size:10px; }
.uc-ticket-reply p { margin:7px 0 0; font-size:13px; line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; }
.uc-ticket-reply-form { display:flex; align-items:flex-end; gap:9px; margin:11px 0 0 18px!important; }
.uc-ticket-reply-form textarea { flex:1; min-width:0; padding:9px 11px; border:1px solid var(--line); border-radius:9px; background:var(--page); color:var(--ink); font:inherit; resize:vertical; }
.friend-links-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.friend-links-heading h3 { margin:0; }
.friend-link-apply { flex:0 0 auto; padding:6px 10px; border:1px solid var(--line); border-radius:999px; background:var(--accent-soft); color:var(--accent); font-size:11px; cursor:pointer; }
.friend-link-apply:hover { border-color:var(--accent); }
.friend-links-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(72px,1fr)); gap:8px; margin-top:12px!important; }
.widget .friend-links-list > li { display:flex; min-width:0; min-height:38px; align-items:center; gap:6px; padding:7px 8px; overflow:hidden; border:1px solid var(--line); border-radius:9px; background:var(--page); font-size:11px; transition:border-color .16s,background .16s,transform .16s; }
.widget .friend-links-list > li:hover { transform:translateY(-1px); border-color:var(--accent); background:var(--accent-soft); }
.friend-links-list img { width:18px; height:18px; flex:0 0 18px; object-fit:cover; }
.friend-links-list a { display:block; min-width:0; overflow:hidden; color:var(--ink); text-overflow:ellipsis; white-space:nowrap; }
.friend-links-list a:hover { color:var(--accent); }
.friend-links-empty { margin:8px 0 0; color:var(--muted); font-size:12px; }
.sidebar-search { display:flex; align-items:center; gap:9px; margin-top:13px; }
.widget .sidebar-search input[type="search"] { width:100%; min-width:0; height:43px; padding:0 13px; border:1px solid var(--line); border-radius:11px; background:var(--page); color:var(--ink); font:inherit; font-size:13px; transition:border-color .18s,box-shadow .18s,background .18s; }
.widget .sidebar-search input[type="search"]:focus { border-color:var(--accent); outline:0; background:var(--paper); box-shadow:0 0 0 3px var(--accent-soft); }
.widget .sidebar-search input[type="search"]::placeholder { color:var(--muted); opacity:.8; }
.widget .sidebar-search button { display:inline-flex; min-width:68px; height:43px; align-items:center; justify-content:center; margin:0; padding:0 14px; border:1px solid var(--accent); border-radius:11px; background:var(--accent); color:#fff; font:inherit; font-size:13px; font-weight:650; cursor:pointer; transition:filter .16s,transform .16s; }
.widget .sidebar-search button:hover { transform:translateY(-1px); filter:brightness(1.06); }
.footer-links { padding:24px 0; border-top:1px solid var(--line); background:var(--paper); }
.footer-links .container { width:100%; max-width:1240px; margin:0 auto; padding:0 28px; }
.footer-links-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:0 0 12px; }
.footer-links h2 { margin:0; font-size:15px; }
.footer-links nav { display:flex; flex-wrap:wrap; gap:8px 18px; color:var(--muted); font-size:12px; }
.footer-links nav a:hover { color:var(--accent); }
.home-footer-links { grid-column:1 / -1; width:100%; min-width:0; margin-top:2px; padding:18px 20px; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.home-footer-links .footer-links-inner { width:100%; }
.home-footer-links .footer-links-heading { margin-bottom:8px; }
.home-footer-links .friend-links-empty { margin:0; }
.friend-apply-mask[hidden],.friend-apply-modal[hidden] { display:none!important; }
.friend-apply-mask { position:fixed; inset:0; z-index:80; background:rgba(14,18,28,.58); backdrop-filter:blur(4px); }
.friend-apply-modal { position:fixed; inset:0; z-index:81; display:grid; place-items:center; overflow:auto; padding:20px; }
.friend-apply-card { position:relative; width:min(500px,100%); max-height:min(92vh,800px); overflow:auto; padding:28px; border:1px solid var(--line); border-radius:20px; background:var(--paper); color:var(--ink); box-shadow:0 25px 80px rgba(0,0,0,.22); }
.friend-apply-close { position:absolute; top:12px; right:16px; border:0; background:transparent; color:var(--muted); font-size:26px; cursor:pointer; }
.friend-apply-card h2 { margin:4px 0 4px; font-size:22px; }
.friend-apply-card>.eyebrow { color:var(--accent); font-size:10px; font-weight:700; letter-spacing:.12em; }
.friend-apply-intro { margin:0 0 14px; color:var(--muted); font-size:12px; }
.friend-apply-message { display:none; margin:0 0 13px; padding:10px 12px; border-radius:10px; background:var(--accent-soft); color:var(--accent); font-size:12px; }
.friend-apply-message:not(:empty) { display:block; }
.friend-apply-message.is-success { background:#e8f7ef; color:#188451; }
.friend-apply-message.is-error { background:#fff0ee; color:#c34b42; }
.friend-apply-card form { display:grid; gap:12px; }
.friend-apply-card form>label { display:grid; gap:5px; color:var(--ink); font-size:12px; font-weight:650; }
.friend-apply-card form>label small { color:var(--muted); font-weight:400; }
.friend-apply-card input { width:100%; min-width:0; height:43px; padding:0 12px; border:1px solid var(--line); border-radius:10px; outline:0; background:var(--page); color:var(--ink); font:inherit; font-weight:400; }
.friend-apply-card input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(91,124,255,.15); }
.friend-captcha-row { display:flex; align-items:center; gap:10px; }
.friend-captcha-row input { flex:1; }
.friend-captcha-row img { width:112px; height:43px; object-fit:contain; border:1px solid var(--line); border-radius:9px; background:#fff; cursor:pointer; }
.friend-apply-honeypot { position:absolute!important; left:-10000px!important; width:1px!important; height:1px!important; overflow:hidden!important; }
.friend-apply-submit { min-height:44px; margin-top:3px; border:0; border-radius:11px; background:var(--accent); color:#fff; font-weight:700; cursor:pointer; }
body.friend-apply-open { overflow:hidden; }
.product-page-heading { margin:0 0 22px; padding:25px 28px; border:1px solid var(--line); border-radius:var(--radius); background:var(--paper); box-shadow:var(--shadow); }
.product-page-heading .eyebrow { color:var(--accent); font-size:11px; font-weight:750; letter-spacing:.08em; }
.product-page-heading h1 { margin:4px 0; font-size:25px; }
.product-page-heading p { margin:0; color:var(--muted); font-size:13px; }
.product-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.product-card { display:flex; min-width:0; flex-direction:column; overflow:hidden; padding:10px; border:1px solid var(--line); border-radius:var(--radius); background:var(--paper); box-shadow:var(--shadow); color:var(--ink); text-decoration:none; transition:transform .2s,border-color .2s,box-shadow .2s; }
.product-card:hover { transform:translateY(-3px); border-color:var(--accent); box-shadow:0 15px 34px rgba(32,45,75,.12); }
.product-card-cover { display:block; position:relative; overflow:hidden; width:100%; aspect-ratio:1/1; border-radius:calc(var(--radius) - 5px); background:var(--accent-soft); }
.product-card-cover img { width:100%; height:100%; object-fit:cover; }
.product-card-kind { position:absolute; top:9px; left:9px; z-index:1; display:inline-flex; min-height:23px; align-items:center; padding:4px 9px; border:1px solid rgba(255,255,255,.68); border-radius:999px; backdrop-filter:blur(8px); font-size:10px; font-weight:750; line-height:1; box-shadow:0 4px 12px rgba(25,35,60,.13); }
.product-card-kind.is-card { background:rgba(255,239,211,.94); color:#a76124; }
.product-card-kind.is-supply { background:rgba(224,233,255,.95); color:#465fbd; }
.product-supply-modal[hidden] { display:none!important; }
.product-supply-modal { position:fixed; inset:0; z-index:45; display:grid; place-items:center; overflow:auto; padding:18px; background:rgba(13,18,30,.58); backdrop-filter:blur(4px); }
.product-supply-modal-card { position:relative; width:min(560px,100%); max-height:min(90vh,820px); overflow:auto; padding:26px; border:1px solid var(--line); border-radius:19px; background:var(--paper); color:var(--ink); box-shadow:0 24px 80px rgba(0,0,0,.25); }
.product-supply-modal-card h2 { margin:7px 36px 5px 0; font-size:20px; line-height:1.45; }
.product-supply-modal-price { margin:0 0 17px; color:var(--muted); font-size:13px; }
.product-supply-modal-price strong { margin-left:5px; color:var(--accent); font-size:17px; }
.product-supply-modal-close { position:absolute; top:12px; right:13px; display:grid; width:34px; height:34px; place-items:center; border:0; border-radius:50%; background:var(--page); color:var(--muted); font-size:23px; cursor:pointer; }
.product-supply-modal-card form { display:grid; gap:12px; }
.product-supply-modal-card .yifan-supply-fields { margin:0; }
.product-supply-coupon { display:grid; gap:6px; color:var(--ink); font-size:12px; font-weight:650; }
.product-supply-coupon>div { display:flex; gap:8px; }
.product-supply-coupon input { flex:1; min-width:0; height:40px; padding:0 11px; border:1px solid var(--line); border-radius:9px; background:var(--page); color:var(--ink); font:inherit; font-weight:400; }
.product-supply-coupon button { min-width:70px; border:0; border-radius:9px; background:var(--accent); color:#fff; font-weight:700; cursor:pointer; }
.product-supply-coupon button:disabled { opacity:.65; cursor:wait; }
.product-supply-coupon small { min-height:15px; color:var(--muted); font-size:11px; font-weight:400; }
.product-supply-coupon small.is-error { color:#c34b42; }
.product-supply-coupon small.is-success { color:#188451; }
.product-supply-balance { margin:0; color:var(--muted); font-size:12px; }
.product-supply-payment-choices { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.product-supply-payment-choices button { display:flex; min-height:62px; flex-direction:column; justify-content:center; gap:3px; padding:11px 13px; border:1px solid var(--line); border-radius:11px; background:var(--page); color:var(--ink); text-align:left; cursor:pointer; }
.product-supply-payment-choices button:hover:not(:disabled) { border-color:var(--accent); background:var(--accent-soft); }
.product-supply-payment-choices button:disabled { opacity:.5; cursor:not-allowed; }
.product-supply-payment-choices small { color:var(--muted); font-size:11px; }
.product-supply-email { display:grid; gap:6px; color:var(--muted); font-size:12px; }
.product-supply-email input { box-sizing:border-box; width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:var(--page); color:var(--ink); font:inherit; }
.product-supply-modal-card form > .yifan-resource-button { justify-self:start; min-width:160px; min-height:44px; }
body.product-supply-open { overflow:hidden; }
.product-card-title { display:-webkit-box; min-height:2.9em; overflow:hidden; margin:11px 3px 4px; font-size:14px; font-weight:700; line-height:1.45; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.product-card-buy { display:flex; min-height:40px; flex-direction:column; align-items:stretch; gap:10px; margin:7px 3px 2px; }
.product-card-price-row { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.product-card-price { color:var(--accent); font-size:16px; font-weight:800; white-space:nowrap; }
.product-card-actions { display:flex; width:100%; flex-wrap:wrap; align-items:center; justify-content:center; gap:7px; }
.product-detail-link { display:inline-flex; min-height:25px; align-items:center; justify-content:center; padding:0 8px; border:1px solid var(--line); border-radius:8px; color:var(--muted); font-size:10px; text-decoration:none; white-space:nowrap; }
.product-card-buy .yifan-resource-button { display:inline-flex; min-height:36px; align-items:center; justify-content:center; padding:0 15px; border:0; border-radius:10px; background:var(--accent); color:#fff; font-size:12px; font-weight:700; text-decoration:none; cursor:pointer; transition:filter .2s,transform .2s; }
.product-card-buy .yifan-resource-button:hover { filter:brightness(1.07); transform:translateY(-1px); }
.product-card-buy form { display:flex; width:100%; flex-wrap:wrap; align-items:center; justify-content:center; gap:7px; }
.product-card-buy form:not([data-payment-choice]) { flex-basis:100%; }
.product-card-buy .yifan-guest-email { width:100%; min-height:35px; padding:6px 9px; border:1px solid var(--line); border-radius:9px; background:var(--page); color:var(--ink); font-size:11px; }
.product-card-buy .yifan-resource-unavailable { color:var(--muted); font-size:12px; }
.product-card-actions .yifan-resource-button { width:min(100%,220px); min-width:0; }
/* 首页商品卡片沿用商品页的上下结构，列数略减，让卡片稍宽一些。 */
.is-home #article-feed .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
@media(max-width:700px) { .is-home #article-feed .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } }
@media(max-width:900px) { .footer-links .container { padding-right:18px; padding-left:18px; } }
@media(max-width:1000px) { .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:700px) { .footer-links .container { padding-right:16px; padding-left:16px; } .home-footer-links { padding:15px; } .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } .product-card { padding:8px; } .product-card-title { margin-top:9px; font-size:13px; } .product-card-buy { margin-top:5px; } .product-card-buy form .yifan-resource-button { width:min(100%,220px); } .product-supply-modal-card { padding:20px 17px; } .product-supply-modal-card form > .yifan-resource-button { justify-self:stretch; width:100%; } }
@media(max-width:600px) { .uc-ticket-item>header { flex-direction:column; } .uc-ticket-reply-form { align-items:stretch; flex-direction:column; } }
.commerce-section-heading>a { color:var(--accent); font-size:12px; }
.commerce-empty { padding:34px; text-align:center; }
.commerce-empty-row { padding:24px !important; color:var(--muted); text-align:center !important; }
@media (max-width:900px) { .account-workspace { grid-template-columns:205px minmax(0,1fr); gap:15px; padding:26px 18px 55px; } .uc-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .uc-dashboard-lists { grid-template-columns:1fr; } }
@media (max-width:700px) { .commerce-center { padding:28px 14px 50px; } .commerce-plan-grid { grid-template-columns:1fr; } .commerce-member-card { align-items:flex-start; flex-direction:column; } .account-workspace { grid-template-columns:1fr; padding:24px 14px 50px; } .account-sidebar { position:static; } .account-sidebar nav { display:flex; gap:5px; overflow-x:auto; padding:9px; } .account-sidebar nav a { flex:0 0 auto; min-height:35px; padding:7px 10px; } .account-sidebar nav .account-nav-label { display:none; } .account-sidebar nav em { margin-left:5px; } .account-content { min-width:0; } .account-page-heading h1 { font-size:23px; } .account-welcome { min-height:120px; padding:17px; } .account-welcome img { width:58px; height:58px; flex-basis:58px; } .uc-member-summary { align-items:flex-start; flex-direction:column; } .uc-form-card { padding:17px; } }
@media (max-width:430px) { .uc-stat-grid { gap:8px; } .uc-stat-card { padding:12px; } .uc-stat-card strong { font-size:19px; } .uc-log-item { grid-template-columns:60px minmax(0,1fr); gap:10px; } .uc-log-cover { width:60px; height:52px; } .uc-row-link { display:none; } .commerce-table th,.commerce-table td { padding:10px; } }
