/* Base */
:root {
    --red: #e7373f;
    --red-dark: #c9232d;
    --red-soft: #fff0f1;
    --ink: #20232b;
    --ink-2: #2a2e38;
    --text: #30343d;
    --muted: #818693;
    --line: #e9ebef;
    --surface: #ffffff;
    --background: #f6f7f9;
    --green: #1e9e6a;
    --shadow: 0 12px 35px rgba(28, 32, 43, .07);
    --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--background); font: 14px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.inline-form { display: inline; margin: 0; }
.muted { color: var(--muted); }
.desktop-only { display: block; }
.section-kicker { display: block; color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.btn { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; padding: 10px 21px; border: 1px solid transparent; border-radius: 7px; font-weight: 650; line-height: 1.4; transition: .2s ease; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { color: #fff; background: var(--red); box-shadow: 0 8px 18px rgba(231, 55, 63, .2); }
.btn-primary:hover { color: #fff; background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(231, 55, 63, .28); }
.btn-dark { color: #fff; background: var(--ink); }
.btn-dark:hover { color: #fff; background: var(--red); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.04); }
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.btn-light { color: var(--ink); background: #fff; }
.btn-light:hover { color: var(--red); background: #fff; }
.btn-outline { color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline:hover { color: var(--ink); background: #fff; border-color: #fff; }
.btn-outline-dark { color: var(--ink); border-color: #d8dbe2; background: #fff; }
.btn-outline-dark:hover { color: var(--red); border-color: var(--red); }
.btn-block { width: 100%; }
.btn-disabled, .btn:disabled { color: #999fab; background: #e9ebef; box-shadow: none; cursor: not-allowed; }
.btn-small { min-height: 34px; padding: 6px 13px; font-size: 12px; }
.link-button { padding: 0; border: 0; color: inherit; background: none; }
.link-button:hover { color: var(--red); }

/* Header */
.topbar { height: 36px; color: #777d89; background: #f1f2f4; border-bottom: 1px solid #eceef1; font-size: 12px; }
.topbar-inner { display: flex; height: 100%; align-items: center; justify-content: space-between; }
.topbar-links { display: flex; align-items: center; gap: 20px; }
.topbar-links a { display: inline-flex; align-items: center; gap: 5px; }
.topbar-links svg { width: 14px; height: 14px; }
.topbar-links .accent { color: var(--red); }
.member-greeting { color: #404550; }
.vip-badge { display: inline-flex; align-items: center; justify-content: center; padding: 1px 7px; border-radius: 4px; color: #656b77; background: #eceef2; font-size: 10px; font-style: normal; font-weight: 750; line-height: 1.6; white-space: nowrap; }
.vip-vip { color: #9b6715; background: #fff0ca; }
.vip-banned { color: #b42318; background: #fee4e2; }
.table-actions { display: flex; align-items: center; gap: 6px; }
.site-header { position: relative; z-index: 50; min-height: 88px; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 88px; align-items: center; flex-wrap: wrap; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.brand:hover { color: inherit; }
.brand-mark { position: relative; display: flex; width: 47px; height: 47px; align-items: center; justify-content: center; overflow: hidden; border-radius: 10px; color: #fff; background: var(--red); box-shadow: 0 6px 14px rgba(231,55,63,.18); font-family: Arial Black, Arial, sans-serif; font-size: 27px; font-style: italic; letter-spacing: -5px; transform: skew(-4deg); }
.brand-mark::after { position: absolute; right: -10px; bottom: -17px; width: 45px; height: 45px; border: 8px solid rgba(255,255,255,.15); border-radius: 50%; content: ""; }
.brand-mark b, .brand-mark i { position: relative; z-index: 1; }
.brand-mark b { font-weight: 900; }
.brand-mark i { margin-top: 10px; font-weight: 900; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { color: var(--ink); font-size: 21px; font-weight: 800; letter-spacing: 1px; }
.brand-text small { margin-top: 6px; color: #8b8f98; font-size: 10px; letter-spacing: 2.5px; }
.main-nav { display: grid; width: 100%; height: auto; order: 3; grid-template-columns: repeat(10, minmax(0, 1fr)); margin-left: 0; border-top: 1px solid #f0f1f3; }
.main-nav .nav-item { position: relative; }
.main-nav .nav-link { position: relative; display: flex; height: 52px; align-items: center; justify-content: center; gap: 4px; color: #3b404a; font-size: 14px; white-space: nowrap; }
.main-nav .nav-link::after { position: absolute; right: 50%; bottom: 0; left: 50%; height: 3px; border-radius: 3px 3px 0 0; background: var(--red); content: ""; transition: .2s; }
.main-nav .nav-link:hover, .main-nav .nav-link.active, .nav-item:hover > .nav-link, .nav-item:focus-within > .nav-link { color: var(--red); }
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after, .nav-item:hover > .nav-link::after, .nav-item:focus-within > .nav-link::after { right: 0; left: 0; }
.nav-caret { width: 13px; height: 13px; transform: rotate(90deg); transition: transform .2s; }
.nav-item:hover .nav-caret, .nav-item:focus-within .nav-caret { transform: rotate(-90deg); }
.nav-dropdown { position: absolute; z-index: 80; top: 100%; left: 50%; min-width: 160px; max-height: calc(100vh - 150px); padding: 8px; overflow-y: auto; border: 1px solid var(--line); border-radius: 0 0 9px 9px; background: #fff; box-shadow: 0 12px 30px rgba(30,35,45,.12); opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav-item:hover > .nav-dropdown, .main-nav .nav-link:hover + .nav-dropdown, .nav-item:focus-within > .nav-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.nav-dropdown a { display: flex; min-height: 38px; align-items: center; gap: 9px; padding: 6px 12px; border-radius: 6px; color: #5f6671; font-size: 13px; white-space: nowrap; }
.nav-dropdown a:hover, .nav-dropdown a.active { color: var(--red); background: var(--red-soft); }
.nav-dropdown-icon { display: flex; width: 26px; height: 26px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 6px; }
.nav-dropdown-icon svg { width: 14px; height: 14px; stroke-width: 2; }
.header-search { display: flex; width: 210px; height: 38px; align-items: center; margin-left: auto; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 7px; background: #f8f9fa; }
.header-search:focus-within { border-color: rgba(231,55,63,.55); background: #fff; box-shadow: 0 0 0 3px rgba(231,55,63,.06); }
.header-search input { width: 100%; min-width: 0; padding: 8px 4px 8px 13px; border: 0; outline: 0; background: transparent; font-size: 12px; }
.header-search button { display: flex; width: 40px; height: 100%; flex: 0 0 auto; align-items: center; justify-content: center; border: 0; color: #7a808b; background: transparent; }
.header-search button:hover { color: var(--red); }
.header-search svg { width: 17px; height: 17px; }
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; margin-left: auto; border: 0; border-radius: 6px; color: var(--ink); background: #f4f5f7; }

/* Flash */
.flash { position: fixed; z-index: 1000; top: 18px; left: 50%; display: flex; min-width: 320px; max-width: calc(100% - 32px); align-items: center; gap: 10px; padding: 13px 16px; border: 1px solid; border-radius: 9px; background: #fff; box-shadow: 0 12px 45px rgba(20,25,35,.16); transform: translateX(-50%); animation: flash-in .3s ease; }
.flash-success { color: #18764f; border-color: #bce4d1; }
.flash-error { color: #b12b33; border-color: #f0c2c5; }
.flash svg { flex: 0 0 auto; }
.flash button { margin-left: auto; border: 0; color: inherit; background: none; font-size: 20px; opacity: .65; }
@keyframes flash-in { from { opacity: 0; transform: translate(-50%, -12px); } }

/* Hero */
.home-ads { padding-top: 24px; }
.home-ads-list { display: grid; gap: 12px; }
.home-ad { display: block; overflow: hidden; border-radius: 8px; line-height: 0; }
.home-ad img { display: block; width: 100%; height: auto; }
a.home-ad { transition: opacity .2s; }
a.home-ad:hover { opacity: .9; }
.hero { position: relative; overflow: hidden; color: #fff; background: #20232b; }
.hero::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px); background-size: 42px 42px; content: ""; mask-image: linear-gradient(90deg, #000, transparent 85%); }
.hero::after { position: absolute; top: -180px; left: -100px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(231,55,63,.12), transparent 65%); content: ""; }
.hero-inner { position: relative; z-index: 1; display: grid; min-height: 455px; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 45px; padding-block: 54px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #c8cbd3; font-size: 11px; font-weight: 650; letter-spacing: 2px; }
.eyebrow i { width: 20px; height: 2px; background: var(--red); }
.hero h1 { margin: 16px 0 17px; font-size: clamp(34px, 3.5vw, 48px); font-weight: 750; line-height: 1.35; letter-spacing: 1px; }
.hero h1 span, .auth-intro h1 span, .install-aside h1 span { color: #fa4b53; }
.hero-copy > p { margin: 0; color: #aeb2bc; font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.hero-actions .btn { min-height: 46px; }
.hero-stats { display: flex; gap: 0; margin-top: 36px; }
.hero-stats > div { display: flex; min-width: 115px; flex-direction: column; padding-right: 28px; }
.hero-stats > div + div { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.12); }
.hero-stats strong { font-family: Arial, sans-serif; font-size: 24px; font-weight: 650; line-height: 1.2; }
.hero-stats span { margin-top: 6px; color: #8e949f; font-size: 11px; }
.hero-visual { position: relative; padding: 20px 0 30px 25px; }
.visual-glow { position: absolute; top: -80px; right: -70px; width: 430px; height: 430px; border-radius: 50%; background: radial-gradient(circle, rgba(231,55,63,.16), transparent 65%); }
.code-window { position: relative; z-index: 1; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(19,21,27,.9); box-shadow: 0 35px 70px rgba(0,0,0,.3); transform: perspective(1000px) rotateY(-3deg) rotateX(1deg); }
.window-bar { display: flex; height: 44px; align-items: center; gap: 7px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.025); }
.window-bar i { width: 8px; height: 8px; border-radius: 50%; background: #f05a61; }
.window-bar i:nth-child(2) { background: #dcaa4d; }
.window-bar i:nth-child(3) { background: #52aa77; }
.window-bar span { margin-left: 9px; color: #747b88; font: 10px Consolas, monospace; }
.code-content { padding: 28px 24px; font: 13px/2.2 "SFMono-Regular", Consolas, monospace; }
.code-content > div { white-space: nowrap; }
.code-muted { display: inline-block; width: 34px; color: #424854; user-select: none; }
.code-red { color: #ed6b72; }
.code-green { color: #a9c789; }
.code-blue { color: #76a6d8; }
.window-status { display: flex; align-items: center; justify-content: space-between; padding: 9px 16px; border-top: 1px solid rgba(255,255,255,.07); color: #707784; background: rgba(255,255,255,.02); font: 9px Consolas, monospace; letter-spacing: 1px; }
.window-status span { display: flex; align-items: center; gap: 6px; }
.window-status i { width: 5px; height: 5px; border-radius: 50%; background: #56ba7e; box-shadow: 0 0 7px #56ba7e; }
.window-status b { font-weight: 400; }
.float-card { position: absolute; z-index: 2; display: flex; align-items: center; border: 1px solid rgba(255,255,255,.14); background: rgba(46,49,59,.88); box-shadow: 0 15px 35px rgba(0,0,0,.25); backdrop-filter: blur(10px); }
.float-card-a { right: -22px; bottom: 4px; gap: 10px; padding: 12px 17px; border-radius: 8px; }
.float-card-a > svg { width: 28px; height: 28px; padding: 6px; border-radius: 50%; color: #fff; background: var(--green); stroke-width: 2.5; }
.float-card-a span { display: flex; flex-direction: column; }
.float-card-a b { font-size: 11px; }
.float-card-a small { color: #9298a5; font-size: 9px; }
.float-card-b { top: 3px; left: 2px; gap: 8px; padding: 8px 12px; border-radius: 7px; font-size: 10px; }
.float-card-b b { color: #f45b62; font: 16px Consolas, monospace; }

/* Categories and home */
.forum-stats { border-bottom: 1px solid var(--line); background: var(--background); }
.forum-stats-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 34px; padding: 14px 0; color: #69707c; font-size: 12px; }
.forum-stat { display: inline-flex; align-items: center; gap: 6px; }
.forum-stat svg { width: 16px; height: 16px; }
.forum-stat b { color: #3d434c; font-weight: 650; }
.forum-stat--today svg { color: #3b9cf6; }
.forum-stat--yesterday svg { color: #f5a623; }
.forum-stat--resources svg { color: #f36b64; }
.forum-stat--members svg { color: #8a6cf2; }
.forum-stat--newest svg { color: #5abf7c; }
.category-section { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: var(--background); }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.category-card { position: relative; display: flex; min-width: 0; align-items: center; gap: 12px; padding: 24px 20px; }
.category-card + .category-card::before { position: absolute; top: 25%; bottom: 25%; left: 0; width: 1px; background: var(--line); content: ""; }
.category-card:hover { color: inherit; background: #fbfbfc; }
.category-card:hover .category-icon { transform: translateY(-2px); }
.category-icon { display: flex; width: 44px; height: 44px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 10px; transition: .2s; }
.category-icon svg { width: 22px; height: 22px; stroke-width: 2; }
.category-color-1 { color: #f56c6c; background: #fef0f0; }
.category-color-2 { color: #409eff; background: #ecf5ff; }
.category-color-3 { color: #67c23a; background: #f0f9eb; }
.category-color-4 { color: #9b59b6; background: #f3e8ff; }
.category-color-5 { color: #e6a23c; background: #fdf6ec; }
.category-card > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.category-card strong { color: var(--ink); font-size: 14px; }
.category-card small { overflow: hidden; margin-top: 2px; color: #9a9fa9; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.category-card em { position: absolute; right: 13px; bottom: 7px; color: #c0c3ca; font-size: 8px; font-style: normal; opacity: 0; transition: .2s; }
.category-card:hover em { opacity: 1; }
.home-layout { display: block; padding-block: 40px 50px; }
.home-category-section + .home-category-section { margin-top: 28px; }
.home-category-section > .section-heading { position: relative; display: flex; height: 38px; align-items: center; justify-content: center; margin-bottom: 30px; padding: 0; }
.home-category-section > .section-heading::before { position: absolute; top: 50%; right: 0; left: 0; height: 1px; background: #c6e7ef; content: ""; }
.home-category-section > .section-heading::after { position: absolute; top: 50px; left: 50%; width: 18px; height: 3px; border-radius: 2px; background: #36abc9; transform: translateX(-50%); content: ""; }
.home-category-section .section-heading h2 { position: relative; z-index: 1; margin: 0; font-size: 15px; line-height: 1.2; }
.home-category-section .section-heading h2::before, .home-category-section .section-heading h2::after { position: absolute; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: #3cb1d0; transform: translateY(-50%); content: ""; }
.home-category-section .section-heading h2::before { left: -17px; }
.home-category-section .section-heading h2::after { right: -17px; }
.home-category-section .section-heading h2 a { display: block; max-width: calc(100vw - 100px); overflow: hidden; padding: 10px 24px; border-radius: 999px; color: #fff; background: linear-gradient(180deg, #50c2dc, #269dc2); box-shadow: 0 3px 8px rgba(38,157,194,.2); text-overflow: ellipsis; white-space: nowrap; }
.home-category-section .section-heading h2 a:hover { color: #fff; filter: brightness(1.05); }
.home-category-empty { min-height: 180px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.section-heading h2 { margin: 3px 0 0; color: var(--ink); font-size: 25px; line-height: 1.3; }
.section-heading > a { display: flex; align-items: center; gap: 5px; color: #858b96; font-size: 12px; }
.section-heading > a svg { width: 15px; height: 15px; }
.resource-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 19px; }
.resource-card { min-width: 0; overflow: hidden; border: 1px solid #e8eaee; border-radius: 10px; background: #fff; transition: .25s ease; }
.resource-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-4px); }
.resource-cover { position: relative; display: flex; aspect-ratio: 1.62; align-items: center; justify-content: center; overflow: hidden; color: #fff; background: radial-gradient(circle at 18% 0%, rgba(255,255,255,.16), transparent 48%), radial-gradient(circle at 84% 100%, rgba(255,255,255,.07), transparent 42%), linear-gradient(135deg, var(--cover-a, #3a4150), var(--cover-b, #1f232b)); }
.resource-cover::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.25)); content: ""; pointer-events: none; }
.resource-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.resource-card:hover .resource-cover img { transform: scale(1.035); }
.cover-theme-versions { --cover-a: #5b4b8a; --cover-b: #271f3d; }
.cover-theme-videos { --cover-a: #2f6fed; --cover-b: #14284f; }
.cover-theme-tuwen { --cover-a: #1f9d7a; --cover-b: #0c3b30; }
.cover-theme-weapons { --cover-a: #c94f4f; --cover-b: #4f1a1a; }
.cover-theme-titles { --cover-a: #c08a1e; --cover-b: #513a0d; }
.cover-theme-clothes { --cover-a: #a8529f; --cover-b: #45213f; }
.cover-theme-jewelry { --cover-a: #2f9bb5; --cover-b: #0f3b46; }
.cover-theme-monsters { --cover-a: #5f8f3f; --cover-b: #263c16; }
.cover-theme-mounts { --cover-a: #9a6f3c; --cover-b: #3b2a15; }
.cover-theme-maps { --cover-a: #d9772f; --cover-b: #50290f; }
.cover-theme-npc { --cover-a: #4a7fbf; --cover-b: #1b3048; }
.cover-theme-fashion { --cover-a: #d2688a; --cover-b: #511f30; }
.cover-theme-suits { --cover-a: #6a5acd; --cover-b: #262052; }
.cover-theme-skill-effects { --cover-a: #d1a02a; --cover-b: #4d3608; }
.cover-theme-effects { --cover-a: #45a3c9; --cover-b: #163a49; }
.cover-theme-editor { --cover-a: #6b7280; --cover-b: #252a31; }
.cover-art { position: absolute; inset: 0; }
.cover-grid { position: absolute; inset: -22%; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 26px 26px; opacity: .55; transform: perspective(320px) rotateX(32deg) rotate(-4deg) scale(1.25); }
.cover-ring { position: absolute; top: -78px; right: -58px; width: 196px; height: 196px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 18px rgba(255,255,255,.05), 0 0 0 38px rgba(255,255,255,.03); }
.cover-mark { position: absolute; right: -10px; bottom: -16px; color: rgba(255,255,255,.14); }
.cover-mark svg { width: 118px; height: 118px; transform: rotate(-8deg); }
.cover-brand { position: absolute; z-index: 2; top: 13px; left: 14px; color: rgba(255,255,255,.52); font: 8px/1 Arial, sans-serif; letter-spacing: 2px; }
.cover-stack { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.cover-badge { display: flex; width: 52px; height: 52px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.3); border-radius: 14px; background: linear-gradient(160deg, rgba(255,255,255,.26), rgba(255,255,255,.06)); box-shadow: 0 12px 26px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.cover-badge svg { width: 25px; height: 25px; }
.cover-title { color: #fff; font-size: 15px; font-weight: 650; letter-spacing: .14em; padding-left: .14em; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.cover-caption { color: rgba(255,255,255,.6); font: 7px/1 Arial, sans-serif; letter-spacing: 2.2px; }
.resource-body { padding: 15px 16px 12px; }
.resource-body h3 { height: 43px; margin: 0 0 7px; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 650; line-height: 1.55; }
.resource-body h3 a:hover { color: var(--red); }
.resource-body > p { height: 34px; margin: 0 0 12px; overflow: hidden; color: #959aa4; font-size: 10px; line-height: 1.7; }
.resource-meta { display: flex; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid #f0f1f3; color: #a0a5ae; font-size: 9px; }
.resource-meta span { display: flex; min-width: 0; align-items: center; gap: 4px; }
.resource-meta span:first-child { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-meta svg { width: 12px; height: 12px; }
.resource-meta time { margin-left: auto; }
.home-sidebar { position: fixed; z-index: 60; top: 50%; right: 0; display: flex; width: min(280px, calc(100vw - 58px)); flex-direction: column; transform: translateY(-50%); transition: transform .25s ease; }
.home-sidebar.is-collapsed { transform: translate(100%, -50%); }
.home-sidebar .popular-card { max-height: calc(100vh - 40px); flex: 0 0 auto; margin: 0; overflow-y: auto; box-shadow: 0 14px 40px rgba(28,32,43,.14); opacity: 1; visibility: visible; transition: opacity .2s; }
.home-sidebar.is-collapsed .popular-card { opacity: 0; visibility: hidden; pointer-events: none; }
.popular-float-toggle { position: absolute; top: 50%; left: -42px; display: flex; width: 42px; min-height: 132px; align-items: center; justify-content: center; flex-direction: column; gap: 8px; padding: 10px 0; border: 1px solid var(--line); border-right: 0; border-radius: 9px 0 0 9px; color: var(--red); background: #fff; box-shadow: -8px 10px 26px rgba(28,32,43,.1); transform: translateY(-50%); }
.popular-float-toggle:hover { background: var(--red-soft); }
.popular-float-toggle > span { color: #555c68; font-size: 12px; letter-spacing: 2px; writing-mode: vertical-rl; }
.popular-toggle-icon { width: 17px; height: 17px; transition: transform .25s; }
.home-sidebar.is-collapsed .popular-toggle-icon { transform: rotate(180deg); }
.sidebar-card { padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.member-card { position: relative; overflow: hidden; color: #fff; background: linear-gradient(145deg, #2d3039, #20232b); border: 0; }
.member-card::after { position: absolute; top: -55px; right: -55px; width: 180px; height: 180px; border: 30px solid rgba(255,255,255,.025); border-radius: 50%; content: ""; }
.member-crown { position: absolute; z-index: 1; top: 21px; right: 21px; color: #e6b75f; }
.member-crown svg { width: 27px; height: 27px; }
.member-card .section-kicker { color: #d8a953; }
.member-card h3 { position: relative; z-index: 1; margin: 9px 0; font-size: 19px; }
.member-card > p { position: relative; z-index: 1; margin: 0 0 17px; color: #a8adb7; font-size: 11px; }
.member-levels { position: relative; z-index: 1; display: flex; gap: 6px; margin-bottom: 18px; }
.member-levels span { padding: 3px 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 4px; color: #9da2ad; font-size: 9px; }
.member-levels .active { color: #efc477; border-color: rgba(239,196,119,.3); background: rgba(239,196,119,.06); }
.member-card .btn { position: relative; z-index: 1; width: 100%; min-height: 38px; font-size: 11px; }
.sidebar-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.sidebar-title h3 { margin: 0; color: var(--ink); font-size: 16px; }
.sidebar-title > span { color: #b0b4bc; font: 9px Arial, sans-serif; letter-spacing: 1px; }
.rank-list { margin: 0; padding: 0; list-style: none; }
.rank-list li { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #f0f1f3; }
.rank-list li:last-child { border: 0; padding-bottom: 0; }
.rank-list li > span { display: flex; width: 18px; height: 18px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 4px; color: #999faa; background: #f0f1f3; font: 9px Arial, sans-serif; }
.rank-list li > span[class="rank-1"], .rank-list li > span[class="rank-2"], .rank-list li > span[class="rank-3"] { color: #fff; background: var(--red); }
.rank-list li > span[class="rank-2"] { background: #ec757b; }
.rank-list li > span[class="rank-3"] { background: #ef9b9f; }
.rank-list a { min-width: 0; flex: 1; overflow: hidden; color: #535965; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.rank-list small { color: #b0b4bd; font-size: 9px; }
.share-card { display: flex; align-items: center; gap: 12px; padding: 18px; border: 1px dashed #e0b3b5; border-radius: 10px; background: var(--red-soft); }
.share-card > span { display: flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 8px; color: var(--red); background: #fff; }
.share-card h3 { margin: 0; color: #a82a31; font-size: 13px; }
.share-card p { margin: 2px 0 0; color: #bf7b7f; font-size: 9px; }
.share-card > a { display: flex; width: 27px; height: 27px; align-items: center; justify-content: center; margin-left: auto; border-radius: 50%; color: #fff; background: var(--red); }
.share-card > a:hover { color: #fff; background: var(--red-dark); }
.share-card > a svg { width: 14px; height: 14px; }
.community-banner { color: #fff; background: var(--red); }
.community-inner { display: flex; min-height: 155px; align-items: center; justify-content: space-between; gap: 30px; }
.community-inner .section-kicker { color: rgba(255,255,255,.65); }
.community-inner h2 { margin: 4px 0; font-size: 24px; }
.community-inner p { margin: 0; color: rgba(255,255,255,.75); font-size: 12px; }

/* Footer */
.friend-links-bar { border-top: 1px solid #e8eaee; background: #f5f6f8; }
.friend-links-list { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 30px; padding-block: 20px; }
.friend-links-list a { font-size: 12px; line-height: 1.6; transition: opacity .2s; }
.friend-links-list a:hover { opacity: .65; }
.site-footer { padding-top: 45px; color: #8f95a0; background: #1e2128; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 45px; padding-bottom: 36px; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: #777e8b; }
.footer-grid > div:first-child > p { margin: 18px 0 0; font-size: 11px; line-height: 2; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 11px; }
.footer-links strong, .footer-note strong { margin-bottom: 6px; color: #e7e9ed; font-size: 13px; }
.footer-note p { margin: 15px 0 0; font-size: 11px; line-height: 1.9; }
.footer-bottom { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 20px; padding-block: 18px; border-top: 1px solid rgba(255,255,255,.07); color: #8f95a0; font-size: 11px; text-align: center; }
.footer-icp { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 20px; }
.footer-icp p { margin: 0; }
.footer-icp a { display: inline-flex; align-items: center; gap: 5px; color: inherit; white-space: nowrap; }
.footer-icp a:hover { color: #d7dbe2; }
.footer-icp a img { width: 14px; height: 14px; flex: 0 0 auto; object-fit: contain; }
.qq-float { position: fixed; z-index: 40; right: 20px; bottom: 80px; display: flex; width: 52px; flex-direction: column; align-items: center; gap: 4px; padding: 10px 5px; border-radius: 9px; color: #fff; background: var(--red); box-shadow: 0 8px 25px rgba(231,55,63,.28); font-size: 10px; line-height: 1.3; text-align: center; }
.qq-float:hover { color: #fff; background: var(--red-dark); transform: translateY(-2px); }

/* Forms */
input, select, textarea { color: var(--text); }
.stack-form { display: flex; flex-direction: column; gap: 18px; }
.stack-form label, .admin-form-grid label, .watermark-upload label { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.stack-form label > span, .admin-form-grid label > span, .watermark-upload label > span { color: #4a505b; font-size: 12px; font-weight: 600; }
label em { color: var(--red); font-style: normal; }
.stack-form input:not([type="file"]):not([type="range"]), .stack-form select, .stack-form textarea, .admin-form-grid input, .admin-form-grid textarea, .admin-table select, .number-unit input { width: 100%; border: 1px solid #dfe2e8; border-radius: 7px; outline: 0; background: #fff; transition: .2s; }
.stack-form input:not([type="file"]):not([type="range"]), .stack-form select, .admin-form-grid input, .admin-table select, .number-unit input { height: 44px; padding: 0 13px; }
.stack-form textarea, .admin-form-grid textarea { padding: 12px 13px; resize: vertical; line-height: 1.75; }
.stack-form .editor-field { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.editor-label { color: #4a505b; font-size: 12px; font-weight: 600; }
.editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 8px; border: 1px solid #dfe2e8; border-bottom: 0; border-radius: 7px 7px 0 0; background: #f8f9fb; }
.editor-toolbar button, .stack-form .editor-toolbar select { height: 30px; padding: 0 9px; border: 1px solid #dfe2e8; border-radius: 4px; color: #4a505b; background: #fff; font-size: 11px; cursor: pointer; }
.editor-toolbar button:hover, .editor-toolbar button.is-active { border-color: rgba(231,55,63,.45); color: var(--red); background: #fff5f5; }
.editor-toolbar button:disabled { opacity: .6; cursor: wait; }
.stack-form .editor-toolbar select { width: auto; }
.stack-form .editor-toolbar input[type="color"] { width: 34px; height: 30px; padding: 3px; border: 1px solid #dfe2e8; border-radius: 4px; background: #fff; cursor: pointer; }
.editor-separator { width: 1px; height: 20px; margin: 0 2px; background: #dde0e5; }
.stack-form .rich-editor { min-height: 320px; max-height: 680px; padding: 16px 18px; overflow-y: auto; border: 1px solid #dfe2e8; border-radius: 0 0 7px 7px; outline: 0; background: #fff; cursor: text; }
.stack-form .rich-editor:focus { border-color: rgba(231,55,63,.65); box-shadow: 0 0 0 3px rgba(231,55,63,.06); }
.stack-form .rich-editor:empty::before { color: #b0b5bf; content: attr(data-placeholder); pointer-events: none; }
.stack-form .rich-editor img { display: inline-block; max-width: 100%; height: auto; margin: 12px 0; border-radius: 6px; cursor: pointer; vertical-align: middle; }
.stack-form .rich-editor img.is-selected { outline: 3px solid rgba(231,55,63,.55); outline-offset: 2px; }
.editor-image-resize-handle { position: fixed; z-index: 1000; width: 14px; height: 14px; border: 2px solid #fff; border-radius: 3px; background: var(--red); box-shadow: 0 1px 5px rgba(20,25,35,.35); cursor: nwse-resize; touch-action: none; user-select: none; }
.editor-image-resize-handle:hover, .editor-image-resize-handle.is-active { background: var(--red-dark); transform: scale(1.12); }
.editor-image-resize-handle[hidden] { display: none; }
.editor-error { color: var(--red); font-size: 11px; }
.editor-help { color: #9ba1ab; font-size: 10px; line-height: 1.7; }
.editor-link-dialog { width: min(440px, calc(100% - 32px)); padding: 22px; border: 0; border-radius: 12px; box-shadow: 0 20px 60px rgba(20,25,35,.22); }
.editor-link-dialog::backdrop { background: rgba(20,25,35,.42); }
.editor-link-dialog h3 { margin: 0; color: #272c35; font-size: 17px; }
.editor-link-dialog label { display: block; margin-top: 15px; color: #4a505b; font-size: 12px; }
.editor-link-dialog label span { display: block; margin-bottom: 6px; }
.editor-link-error { display: block; margin-top: 10px; color: var(--red); font-size: 12px; }
.editor-link-error[hidden] { display: none; }
.editor-link-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus, .admin-form-grid input:focus, .admin-form-grid textarea:focus, .admin-table select:focus, .number-unit input:focus { border-color: rgba(231,55,63,.65); box-shadow: 0 0 0 3px rgba(231,55,63,.06); }
input::placeholder, textarea::placeholder { color: #b0b5bf; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-alert { padding: 12px 15px; border: 1px solid #f2c9cc; border-radius: 7px; color: #b52d35; background: #fff3f4; font-size: 12px; }
.form-alert ul { margin: 0; padding-left: 18px; }
.form-agreement { margin: -5px 0 0; color: #9ba0aa; font-size: 10px; text-align: center; }
.input-with-icon { position: relative; }
.input-with-icon > svg { position: absolute; z-index: 1; top: 12px; left: 13px; width: 18px; height: 18px; color: #9ba1ac; }
.input-with-icon input { padding-left: 41px !important; }

/* 注册码字段 */
.invite-code-field { display: block; }
.invite-code-row { display: flex; gap: 10px; }
.invite-code-row input { flex: 1; min-width: 0; }
.invite-code-row .btn { flex-shrink: 0; white-space: nowrap; padding: 0 18px; }

/* 通用模态框 */
.modal-mask { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); padding: 20px; }
.modal-mask[hidden] { display: none; }
.modal-dialog { position: relative; width: 100%; max-width: 360px; background: #fff; border-radius: 14px; padding: 28px 24px 22px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-close { position: absolute; top: 10px; right: 14px; border: 0; background: transparent; font-size: 24px; line-height: 1; color: #b0b5bf; cursor: pointer; padding: 4px 8px; }
.modal-close:hover { color: #60656e; }
.modal-dialog h3 { margin: 0 0 16px; font-size: 18px; color: var(--ink); }
.register-qr { display: block; margin: 0 auto; width: 220px; height: 220px; border-radius: 10px; background: #fff; padding: 8px; border: 1px solid #eee; object-fit: contain; }
.register-qr-placeholder { width: 220px; height: 220px; margin: 0 auto; border: 1px dashed #d0d4dc; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #b0b5bf; font-size: 14px; background: #fafafa; }
.register-qr-tip { margin: 14px 0 0; color: #60656e; font-size: 13px; }

/* QQ 邮箱输入：右侧固定 @qq.com 后缀 */
.qq-email-wrap { position: relative; display: flex; align-items: center; }
.qq-email-wrap input { flex: 1; min-width: 0; padding-right: 78px !important; font-family: inherit; }
.qq-email-suffix { position: absolute; right: 14px; color: #8a8f99; font-size: 15px; pointer-events: none; user-select: none; }

/* Auth */
.auth-page { display: grid; min-height: 650px; grid-template-columns: 1fr 460px; align-items: center; gap: 100px; padding-block: 55px; }
.auth-intro { padding-left: 25px; }
.auth-intro .eyebrow { color: #8d939e; }
.auth-intro h1 { margin: 18px 0; color: var(--ink); font-size: 39px; line-height: 1.45; }
.auth-intro > p { max-width: 460px; color: #8b919c; font-size: 14px; line-height: 1.9; }
.auth-intro ul { display: flex; flex-direction: column; gap: 13px; margin: 27px 0 0; padding: 0; list-style: none; color: #606672; }
.auth-intro li { display: flex; align-items: center; gap: 10px; }
.auth-intro li svg { width: 20px; height: 20px; padding: 4px; border-radius: 50%; color: var(--red); background: var(--red-soft); stroke-width: 2.5; }
.auth-card { padding: 34px 36px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 15px 45px rgba(30,35,45,.05); }
.auth-heading { margin-bottom: 25px; }
.auth-heading > span { color: var(--red); font-size: 11px; font-weight: 650; }
.auth-heading h2 { margin: 4px 0; color: var(--ink); font-size: 26px; }
.auth-heading p { margin: 0; color: #999fa9; font-size: 11px; }
.auth-heading a { color: var(--red); }
.auth-card .form-alert { margin-bottom: 18px; }
.auth-safe { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #eff0f2; color: #a3a8b1; font-size: 9px; }
.auth-safe svg { width: 13px; height: 13px; color: var(--green); }
.register-quote { display: flex; align-items: flex-start; gap: 13px; margin-top: 30px; }
.register-quote b { color: #e5a1a5; font: 50px/1 Georgia, serif; }
.register-quote p { margin: 5px 0 0; color: #6e7480; font-size: 13px; line-height: 2; }

/* Listing and detail */
.page-hero { padding: 33px 0 37px; border-bottom: 1px solid var(--line); background: #fff; }
.breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #a0a5af; font-size: 11px; }
.breadcrumb a { color: #7b818c; }
.page-hero h1 { margin: 0 0 5px; color: var(--ink); font-size: 29px; }
.page-hero p { margin: 0; color: #9298a2; font-size: 12px; }
.compact-hero { padding-block: 29px; }
.listing-page { padding-block: 30px 50px; }
.listing-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; margin-bottom: 22px; }
.listing-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.listing-summary > span { color: #8a909b; font-size: 12px; }
.listing-summary > span b { color: var(--red); }
.listing-sort { display: flex; align-items: center; gap: 9px; }
.listing-sort-group { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid #e0e3e8; border-radius: 6px; background: #fff; }
.listing-sort-group > span { padding-inline: 6px; color: #737a85; font-size: 11px; }
.listing-sort-group a { display: flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 4px; color: #9298a2; font-size: 13px; line-height: 1; }
.listing-sort-group a:hover { color: var(--red); background: var(--red-soft); }
.listing-sort-group a.active { color: #fff; background: var(--red); }
.listing-toolbar form { display: flex; gap: 8px; }
.listing-toolbar input { width: 240px; height: 38px; padding: 0 12px; border: 1px solid #dfe2e7; border-radius: 6px; outline: 0; background: #fff; font-size: 11px; }
.listing-toolbar input:focus { border-color: var(--red); }
.listing-toolbar .btn { min-height: 38px; padding: 7px 16px; font-size: 11px; }
.listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.listing-sentinel { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; color: #949aa5; font-size: 10px; }
.listing-sentinel::before { content: ""; display: none; width: 13px; height: 13px; border: 2px solid #e4e7ec; border-top-color: var(--red); border-radius: 50%; animation: listing-spin .8s linear infinite; }
.listing-sentinel.is-loading::before { display: block; }
.listing-sentinel.is-done::before { display: none; }
@keyframes listing-spin { to { transform: rotate(360deg); } }
.empty-state { display: flex; min-height: 320px; flex-direction: column; align-items: center; justify-content: center; padding: 35px; border: 1px dashed #d9dde3; border-radius: 12px; background: #fff; text-align: center; }
.empty-state > svg { width: 45px; height: 45px; color: #c6cad1; }
.empty-state h3 { margin: 15px 0 4px; color: var(--ink); }
.empty-state p { margin: 0 0 20px; color: #979da7; font-size: 12px; }
.detail-page { padding-block: 25px 50px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 26px; }
.detail-main { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.detail-header { padding: 29px 32px 24px; border-bottom: 1px solid var(--line); }
.detail-category { display: inline-block; padding: 3px 9px; border-radius: 4px; color: var(--red); background: var(--red-soft); font-size: 10px; }
.detail-header h1 { margin: 13px 0 16px; color: var(--ink); font-size: 26px; line-height: 1.5; }
.detail-header-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.resource-neighbors { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.resource-neighbors .btn { min-width: 88px; }
.resource-neighbors .neighbor-prev-icon { transform: rotate(180deg); }
.resource-neighbors .btn:disabled { border-color: #e0e3e8; transform: none; }
.resource-neighbors .resource-edit-link { border-color: var(--red); color: var(--red); }
.resource-neighbors .resource-edit-link:hover { background: var(--red-soft); }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; color: #9298a3; font-size: 10px; }
.detail-meta > span { display: flex; align-items: center; gap: 5px; }
.detail-meta svg { width: 14px; height: 14px; }
.detail-meta .vip-badge { margin-left: 3px; }
.detail-cover { margin: 0; padding: 30px 30px 0; }
.detail-cover img { width: 100%; max-height: 520px; border-radius: 8px; object-fit: contain; background: #f2f3f5; }
.detail-content { padding: 30px 32px; color: #555c68; font-size: 14px; line-height: 2; }
.detail-content h2 { margin: 0 0 16px; padding-bottom: 13px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 19px; }
.detail-content h2:not(:first-child) { margin-top: 26px; }
.detail-content h3 { margin: 24px 0 12px; color: var(--ink); font-size: 17px; }
.detail-content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.detail-content img { display: block; max-width: 100%; height: auto; margin: 20px auto; border-radius: 8px; }
.detail-content blockquote { margin: 20px 0; padding: 14px 18px; border-left: 3px solid #d7dbe2; border-radius: 0 7px 7px 0; color: #737a86; background: #f7f8fa; }
.detail-content pre { margin: 20px 0; padding: 18px; overflow: auto; border-radius: 8px; color: #e8ebf0; background: #20232b; font: 12px/1.75 Consolas, Monaco, monospace; white-space: pre-wrap; word-break: break-word; }
.detail-content ul, .detail-content ol { margin: 15px 0; padding-left: 26px; }
.detail-content li { margin: 5px 0; padding-left: 3px; }
.detail-content hr { height: 1px; margin: 26px 0; border: 0; background: var(--line); }
.detail-content .rich-table { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: 13px; }
.detail-content .rich-table td { padding: 8px 10px; border: 1px solid var(--line); vertical-align: top; word-break: break-word; }
.detail-main img { display: inline-block; max-width: 100%; height: auto; margin: 20px 0; border-radius: 8px; vertical-align: middle; }
.detail-content .text-left, .detail-main .text-left { text-align: left; }
.detail-content .text-center, .detail-main .text-center { text-align: center; }
.detail-content .text-right, .detail-main .text-right { text-align: right; }
.detail-notice { margin: 0 32px 30px; padding: 16px 19px; border: 1px solid #eee2c9; border-radius: 7px; color: #938065; background: #fdfaf4; font-size: 10px; }
.detail-notice strong { color: #826b48; }
.detail-notice p { margin: 5px 0 0; line-height: 1.8; }
.detail-sidebar { display: flex; flex-direction: column; gap: 20px; }
.preview-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; padding: 13px 16px; border: 1px solid #f0dca8; border-radius: 8px; color: #8a681d; background: #fff9e9; font-size: 12px; }
.preview-banner strong { flex: 0 0 auto; }
.preview-return-form { margin-left: auto; }
.download-card { padding: 26px 23px; border: 1px solid var(--line); border-radius: 11px; background: #fff; text-align: center; }
.download-icon { display: flex; width: 53px; height: 53px; align-items: center; justify-content: center; margin: 0 auto 12px; border-radius: 13px; color: var(--red); background: var(--red-soft); }
.download-icon svg { width: 25px; height: 25px; }
.download-card h3 { margin: 0; color: var(--ink); font-size: 18px; }
.download-card > p { overflow: hidden; margin: 8px 0 20px; color: #969ca6; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid #f0f1f3; color: #8e949f; font-size: 11px; }
.file-meta b { color: #525965; font-weight: 550; }
.download-card .btn { margin-top: 16px; }
.download-card > small { display: block; margin-top: 12px; color: #b0b4bc; font-size: 8px; }
.related-list { display: flex; flex-direction: column; }
.related-list a { padding: 12px 0; border-bottom: 1px solid #f0f1f3; }
.related-list a:last-child { border: 0; }
.related-list span { display: -webkit-box; overflow: hidden; color: #555c67; font-size: 11px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.related-list small { color: #adb2bb; font-size: 9px; }
.state-page { display: flex; min-height: 560px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.state-code { color: #e5e7eb; font: 800 120px/1 Arial, sans-serif; }
.state-page h1 { margin: 8px 0; color: var(--ink); font-size: 28px; }
.state-page p { margin: 0 0 25px; color: #8d939e; }
.state-page > div:last-child { display: flex; gap: 10px; }
.maintenance-icon { display: flex; width: 75px; height: 75px; align-items: center; justify-content: center; margin-bottom: 20px; border-radius: 20px; color: var(--red); background: var(--red-soft); }
.maintenance-icon svg { width: 35px; height: 35px; }

/* Upload */
.upload-page { padding-block: 30px 50px; }
.form-panel { padding: 28px 31px 31px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; color: var(--ink); font-size: 20px; }
.panel-heading > span { display: flex; align-items: center; gap: 5px; color: #9a9fa9; font-size: 10px; }
.panel-heading > span i { width: 6px; height: 6px; border-radius: 50%; background: #e6a349; }
.form-panel .form-alert { margin-bottom: 20px; }
.file-field { padding: 15px; border: 1px dashed #d9dde3; border-radius: 8px; background: #fafbfc; }
.file-field input { width: 100%; color: #7e8590; font-size: 11px; }
.file-field input::file-selector-button { margin-right: 10px; padding: 7px 11px; border: 0; border-radius: 5px; color: #fff; background: var(--ink); cursor: pointer; }
.file-field small, .watermark-upload label small { color: #a1a6af; font-size: 9px; line-height: 1.7; }
.upload-tips { display: flex; flex-direction: column; gap: 18px; }
.tips-list { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.tips-list li { display: flex; gap: 12px; }
.tips-list li > b { color: #d5d8de; font: 20px Arial, sans-serif; }
.tips-list strong { color: #535965; font-size: 12px; }
.tips-list p { margin: 4px 0 0; color: #989ea8; font-size: 10px; line-height: 1.7; }
.watermark-tip { display: flex; gap: 12px; padding: 19px; border-radius: 10px; color: #fff; background: var(--ink); }
.watermark-tip > svg { flex: 0 0 auto; color: #ee7b81; }
.watermark-tip strong { font-size: 12px; }
.watermark-tip p { margin: 4px 0 0; color: #9ca2ad; font-size: 10px; }

/* Recharge */
.recharge-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 26px; }
.recharge-balance { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; padding: 18px 20px; border-radius: 9px; color: #8b919c; background: #f7f8fa; }
.recharge-balance strong { color: var(--red); font: 750 28px Arial, sans-serif; }
.recharge-help .vip-payment-grid, .recharge-help .vip-payment-empty { margin-bottom: 18px; }
.recharge-help p { color: #858c97; font-size: 12px; line-height: 1.9; }
.recharge-help .btn { margin-top: 12px; }

/* VIP */
.vip-join-link { display: inline-flex; align-items: center; gap: 4px; color: #a87318; font-weight: 650; white-space: nowrap; }
.vip-join-link svg { width: 14px; height: 14px; }
.vip-join-link:hover { color: var(--red); }
.vip-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding: 28px 32px; border-radius: 12px; color: #fff; background: linear-gradient(120deg, #28232b, #4b3827); box-shadow: 0 12px 30px rgba(50,37,28,.12); }
.vip-hero-heading { display: flex; align-items: center; gap: 20px; }
.vip-hero-icon { display: flex; width: 60px; height: 60px; flex: 0 0 auto; align-items: center; justify-content: center; border: 1px solid rgba(255,220,145,.25); border-radius: 16px; color: #f3c86a; background: rgba(255,255,255,.06); }
.vip-hero-icon svg { width: 31px; height: 31px; }
.vip-hero .section-kicker { color: #e7bb64; }
.vip-hero h1 { margin: 5px 0; color: #fff; font-size: 28px; }
.vip-hero p { margin: 0; color: #cfc5b9; font-size: 12px; }
.vip-current-status { flex: 0 0 auto; padding: 8px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 7px; color: #d5cbc0; background: rgba(255,255,255,.05); font-size: 12px; }
.vip-current-status strong { margin-left: 5px; color: #f3ca75; }
.vip-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 26px; }
.vip-plan-panel { margin-bottom: 0; }
.vip-plan-scroll { overflow-x: auto; }
.vip-plan-table { width: 100%; min-width: 520px; border-collapse: collapse; table-layout: fixed; text-align: center; }
.vip-plan-table th:first-child, .vip-plan-table td:first-child { width: 28%; }
.vip-plan-table th { padding: 13px 16px; border: 1px solid #dfe3e8; color: #3f4650; background: #fff; font-size: 16px; font-weight: 600; }
.vip-plan-table td { padding: 13px 16px; border: 1px solid #e1e4e8; color: #3e454e; background: #fff; font-size: 14px; }
.vip-plan-table td:first-child { text-align: center; }
.vip-plan-table td strong { font-size: 17px; font-weight: 550; }
.vip-plan-table .vip-plan-normal { background: #f7f7f7; }
.vip-plan-table .vip-plan-vip { background: #eaf1fb; }
.vip-plan-table .vip-plan-apprentice { background: #eaf5e2; }
.vip-plan-yes, .vip-plan-no { width: 24px; height: 24px; stroke-width: 3; }
.vip-plan-yes { color: #75b72e; }
.vip-plan-no { color: #f06a52; }
.admin-vip-matrix .vip-plan-table { min-width: 700px; }
.admin-vip-matrix .vip-plan-table th { font-size: 14px; }
.admin-vip-matrix .vip-plan-table td { font-size: 13px; }
.admin-vip-price { display: flex; max-width: 160px; align-items: center; margin: auto; overflow: hidden; border: 1px solid #d8dde5; border-radius: 6px; background: #fff; }
.admin-vip-price input { width: 100%; min-width: 0; height: 34px; padding: 0 5px 0 10px; border: 0; outline: 0; background: transparent; text-align: right; }
.admin-vip-price span { padding-right: 10px; color: #777f8a; }
.admin-vip-benefit { width: 19px; height: 19px; margin: 0; accent-color: #75b72e; cursor: pointer; }
.admin-vip-matrix-note { margin: 12px 0 0; color: #9298a2; font-size: 11px; }
.vip-payment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vip-payment-grid figure { min-width: 0; margin: 0; }
.vip-payment-grid figure > div { overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; background: #f7f8fa; }
.vip-payment-grid img { width: 100%; height: 100%; object-fit: contain; }
.vip-payment-grid figcaption { margin-top: 8px; color: #656d78; font-size: 12px; text-align: center; }
.vip-payment-grid figure:only-child { width: 190px; max-width: 100%; grid-column: 1 / -1; justify-self: center; }
.vip-payment-empty { display: flex; min-height: 170px; align-items: center; justify-content: center; flex-direction: column; gap: 12px; padding: 25px; border: 1px dashed #dfe2e8; border-radius: 9px; color: #9aa1ab; background: #fafbfc; text-align: center; }
.vip-payment-empty svg { width: 30px; height: 30px; }
.vip-payment-empty p { margin: 0; font-size: 12px; }
.vip-payment-note { margin: 20px 0; padding: 14px 16px; border-radius: 8px; background: #f7f8fa; }
.vip-payment-note strong { color: #555d68; font-size: 12px; }
.vip-payment-note p { margin: 5px 0 0; color: #8a919b; font-size: 11px; line-height: 1.9; }
.admin-vip-qr-preview { width: 180px; height: 180px; margin-bottom: 5px; padding: 6px; border: 1px solid #e1e4e9; border-radius: 8px; object-fit: contain; background: #fff; }
.admin-recharge-qr-item > span { display: block; margin-bottom: 8px; color: #4a505b; font-size: 12px; font-weight: 600; }
.admin-recharge-qr-empty { display: flex; width: 180px; height: 180px; align-items: center; justify-content: center; padding: 20px; border: 1px dashed #d8dce3; border-radius: 8px; color: #9da3ad; background: #fafbfc; font-size: 12px; text-align: center; }
.admin-recharge-qr-actions { margin-top: 20px; }
.recharge-orders { margin-top: 26px; }
.recharge-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.recharge-table th { padding: 12px 14px; color: #8f95a0; background: #fafbfc; font-size: 11px; font-weight: 600; text-align: left; }
.recharge-table td { padding: 13px 14px; border-top: 1px solid #eceef1; color: #69707c; font-size: 12px; }
.status-completed { color: #20815a; background: #eaf7f1; }
.status-cancelled { color: #a84a50; background: #fff0f1; }

/* Admin */
.admin-body { background: #f4f5f7; }
.admin-sidebar { position: fixed; z-index: 100; inset: 0 auto 0 0; display: flex; width: 238px; flex-direction: column; color: #a4aab5; background: #20232b; }
.admin-brand { height: 86px; padding: 0 24px; border-bottom: 1px solid rgba(255,255,255,.07); }
.admin-brand .brand-mark { width: 39px; height: 39px; border-radius: 8px; font-size: 23px; }
.admin-brand .brand-text strong { color: #fff; font-size: 17px; }
.admin-brand .brand-text small { color: #6e7582; font-size: 8px; letter-spacing: 1.5px; }
.admin-nav-label { padding: 27px 25px 10px; color: #626976; font-size: 9px; letter-spacing: 1.5px; }
.admin-nav { display: flex; flex-direction: column; gap: 5px; padding: 0 13px; }
.admin-nav a { position: relative; display: flex; height: 46px; align-items: center; gap: 12px; padding: 0 13px; border-radius: 7px; font-size: 13px; }
.admin-nav a svg { width: 18px; height: 18px; color: #7f8693; }
.admin-nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.admin-nav a.active { color: #fff; background: var(--red); box-shadow: 0 6px 16px rgba(231,55,63,.18); }
.admin-nav a.active svg { color: #fff; }
.admin-sidebar-bottom { display: flex; flex-direction: column; gap: 5px; margin-top: auto; padding: 17px 20px; border-top: 1px solid rgba(255,255,255,.07); }
.admin-sidebar-bottom a, .admin-sidebar-bottom button { display: flex; align-items: center; gap: 9px; padding: 8px 5px; border: 0; color: #8f96a2; background: none; font-size: 11px; }
.admin-sidebar-bottom a:hover, .admin-sidebar-bottom button:hover { color: #fff; }
.admin-sidebar-bottom svg { width: 16px; height: 16px; }
.admin-wrap { min-height: 100vh; margin-left: 238px; }
.admin-header { display: flex; height: 86px; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid #e7e9ed; background: #fff; }
.admin-header > div:nth-child(2) { margin-right: auto; }
.admin-header > div > span { color: #a0a5af; font: 8px Arial, sans-serif; letter-spacing: 1.5px; }
.admin-header h1 { margin: 2px 0 0; color: var(--ink); font-size: 20px; }
.admin-account { display: flex; align-items: center; gap: 10px; }
.admin-avatar { display: flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 9px; color: #fff; background: var(--red); font-size: 15px; }
.admin-account > div { display: flex; flex-direction: column; }
.admin-account strong { color: #484e59; font-size: 12px; }
.admin-account small { color: #a0a5af; font-size: 9px; }
.admin-main { width: min(1400px, calc(100% - 56px)); min-height: calc(100vh - 145px); margin: 0 auto; padding-block: 27px 40px; }
.admin-footer { padding: 0 28px 20px; color: #a6abb4; font-size: 9px; text-align: center; }
.admin-welcome { display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; }
.admin-welcome h2 { margin: 3px 0; color: var(--ink); font-size: 23px; }
.admin-welcome p { margin: 0; color: #949aa5; font-size: 11px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.admin-stat { display: flex; min-width: 0; align-items: center; gap: 15px; padding: 22px; border: 1px solid #e8eaee; border-radius: 10px; background: #fff; transition: .2s; }
a.admin-stat:hover { color: inherit; box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-icon { display: flex; width: 45px; height: 45px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 10px; }
.stat-icon.red { color: var(--red); background: var(--red-soft); }
.stat-icon.blue { color: #4a79c6; background: #edf3ff; }
.stat-icon.orange { color: #ce8639; background: #fff3e7; }
.stat-icon.green { color: #31936e; background: #eaf7f1; }
.admin-stat > div { display: flex; min-width: 0; flex-direction: column; }
.admin-stat small { color: #969ca6; font-size: 10px; }
.admin-stat strong { margin: 1px 0; color: var(--ink); font: 700 27px Arial, sans-serif; }
.admin-stat em { color: #b0b5bd; font-size: 8px; font-style: normal; }
.admin-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.admin-panel { border: 1px solid #e7e9ed; border-radius: 10px; background: #fff; }
.admin-panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 18px 21px; border-bottom: 1px solid #eceef1; }
.admin-panel-heading h3 { margin: 0; color: var(--ink); font-size: 14px; }
.admin-panel-heading a { display: flex; align-items: center; gap: 4px; color: #9298a2; font-size: 9px; }
.admin-panel-heading a svg { width: 13px; height: 13px; }
.admin-list { padding: 5px 21px; }
.admin-list-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid #f0f1f3; }
.admin-list-row:last-child { border: 0; }
.admin-list-row > div { display: flex; min-width: 0; flex-direction: column; }
.admin-list-row a, .admin-list-row strong { overflow: hidden; color: #555c68; font-size: 11px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.admin-list-row small { color: #acb1ba; font-size: 8px; }
.status { display: inline-flex; flex: 0 0 auto; align-items: center; padding: 3px 8px; border-radius: 4px; font-size: 9px; white-space: nowrap; }
.status-published { color: #20815a; background: #eaf7f1; }
.status-pending { color: #aa712b; background: #fff4e5; }
.status-rejected { color: #a84a50; background: #fff0f1; }
.admin-quick { margin-top: 22px; }
.admin-quick > h3 { margin: 0 0 12px; color: var(--ink); font-size: 14px; }
.admin-quick > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.admin-quick a { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid #e7e9ed; border-radius: 9px; background: #fff; }
.admin-quick a:hover { color: inherit; border-color: #e1a3a6; }
.admin-quick a > svg:first-child { width: 23px; height: 23px; color: var(--red); }
.admin-quick a > svg:last-child { width: 14px; height: 14px; margin-left: auto; color: #b3b8c0; }
.admin-quick a span { display: flex; flex-direction: column; }
.admin-quick a strong { color: #555c67; font-size: 11px; }
.admin-quick a small { color: #a6abb4; font-size: 8px; }
.admin-page-intro { display: flex; align-items: center; justify-content: space-between; margin-bottom: 21px; }
.admin-page-intro h2 { margin: 0; color: var(--ink); font-size: 21px; }
.admin-page-intro p { margin: 4px 0 0; color: #9298a2; font-size: 11px; }
.record-count { padding: 5px 10px; border: 1px solid #e0e3e8; border-radius: 5px; color: #8d939e; background: #fff; font-size: 9px; }
.table-panel { overflow: hidden; }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.admin-table th { padding: 13px 16px; color: #8f95a0; background: #fafbfc; font-size: 9px; font-weight: 600; text-align: left; }
.admin-table td { padding: 13px 16px; border-top: 1px solid #eceef1; color: #69707c; font-size: 10px; }
.admin-table tbody tr:hover { background: #fdfdfd; }
.table-user { display: flex; align-items: center; gap: 10px; }
.table-user > div { display: flex; flex-direction: column; }
.table-user strong { color: #444b57; font-size: 11px; }
.table-user small { color: #a0a5af; font-size: 8px; }
.role-badge { color: #737a86; }
.admin-table select { width: auto; min-width: 95px; height: 34px; padding: 0 9px; font-size: 10px; }
.group-select.group-vip { color: #9b6715; background: #fffbf1; }
.group-select.group-banned { color: #b42318; background: #fff5f5; }
.admin-hint { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 17px 20px; border: 1px solid #e4e7ec; border-radius: 9px; color: #8a919c; background: #fafbfc; }
.admin-hint > svg { flex: 0 0 auto; color: #9da3ad; }
.admin-hint strong { color: #626976; font-size: 11px; }
.admin-hint p { margin: 3px 0 0; font-size: 9px; }
.admin-resource-title { display: flex; max-width: 290px; flex-direction: column; }
.admin-resource-title strong { overflow: hidden; color: #484f5a; font-size: 10px; text-overflow: ellipsis; }
.admin-resource-title a { display: flex; align-items: center; gap: 3px; color: #9da3ad; font-size: 8px; }
.admin-resource-title a svg { width: 10px; height: 10px; }
.resource-status-form { display: flex; align-items: center; gap: 6px; }
.resource-status-form select { min-width: 105px; }
.resource-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid #eceef1; background: #fafbfc; }
.resource-filter-bar label { color: #69707c; font-size: 10px; }
.resource-filter-bar select { min-width: 200px; }
.resource-filter-bar input[type="search"] { width: 220px; height: 34px; padding: 0 10px; border: 1px solid #dfe2e8; border-radius: 7px; outline: 0; background: #fff; font-size: 10px; }
.resource-filter-bar input[type="search"]:focus { border-color: rgba(231,55,63,.65); box-shadow: 0 0 0 3px rgba(231,55,63,.06); }
.filter-hint { margin-left: auto; color: #a6abb4; font-size: 9px; }
.sort-arrows { display: inline-flex; flex-direction: column; gap: 1px; margin-left: 3px; vertical-align: middle; }
.sort-arrow { display: flex; width: 10px; height: 7px; align-items: center; justify-content: center; color: #c3c8d1; }
.sort-arrow svg { width: 9px; height: 9px; }
.sort-arrow path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sort-arrow:hover, .sort-arrow.is-active { color: var(--red); }
.resource-admin-table .check-col, .user-admin-table .check-col { width: 34px; text-align: center; }
.resource-admin-table .check-col input, .user-admin-table .check-col input { width: 14px; height: 14px; cursor: pointer; }
.user-admin-table .check-col input:disabled { cursor: not-allowed; opacity: .45; }
.bulk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid #eceef1; background: #fafbfc; }
.bulk-actions select { width: auto; min-width: 110px; height: 34px; padding: 0 9px; font-size: 10px; }
.bulk-hint { color: #8d939e; font-size: 9px; }
.bulk-hint b { color: #484f5a; }
.admin-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 16px; border-top: 1px solid #eceef1; }
.admin-pager a:not(.btn), .admin-pager > span { min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border: 1px solid #e0e3e8; border-radius: 6px; color: #69707c; background: #fff; font-size: 10px; }
.admin-pager a:not(.btn):hover { color: var(--red); border-color: #e1a3a6; }
.admin-pager .is-current { color: #fff; border-color: var(--red); background: var(--red); }
.admin-pager .is-disabled { color: #b3b8c0; cursor: not-allowed; }
.empty-table { padding: 50px; color: #9ba1ab; text-align: center; }

/* Admin settings and watermark */
.admin-settings-form { display: flex; max-width: 950px; flex-direction: column; gap: 18px; }
.form-section { padding: 23px 25px; }
.form-section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid #eceef1; }
.form-section-heading > span { display: flex; width: 39px; height: 39px; align-items: center; justify-content: center; border-radius: 9px; color: var(--red); background: var(--red-soft); }
.form-section-heading > span svg { width: 19px; height: 19px; }
.form-section-heading h3 { margin: 0; color: var(--ink); font-size: 14px; }
.form-section-heading p { margin: 2px 0 0; color: #9da3ad; font-size: 9px; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-form-grid .full-field { grid-column: 1 / -1; }
.admin-form-grid label small { color: #a1a7b0; font-size: 9px; }
.admin-form-grid .code-input { font: 11px/1.7 Consolas, monospace; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.switch-row > span:first-child { display: flex; flex-direction: column; }
.switch-row strong { color: #555c67; font-size: 12px; }
.switch-row small { color: #9da3ad; font-size: 9px; }
.switch { position: relative; display: block; width: 43px; height: 24px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; }
.switch i { position: absolute; inset: 0; border-radius: 20px; background: #cdd1d8; transition: .2s; cursor: pointer; }
.switch i::after { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); content: ""; transition: .2s; }
.switch input:checked + i { background: var(--red); }
.switch input:checked + i::after { transform: translateX(19px); }
.current-file { color: #7d838e; line-height: 1.6; }
.current-file a { color: var(--red); text-decoration: underline; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; }
.form-action-group { display: flex; flex-wrap: wrap; gap: 12px; }
.resource-row-actions { display: flex; align-items: center; gap: 8px; }
.admin-form-actions { display: flex; justify-content: flex-end; }
.admin-form-grid select { width: 100%; height: 44px; padding: 0 13px; border: 1px solid #dfe2e8; border-radius: 7px; outline: 0; background: #fff; transition: .2s; }
.admin-form-grid select:focus { border-color: rgba(231,55,63,.65); box-shadow: 0 0 0 3px rgba(231,55,63,.06); }
.category-add-top { margin-left: auto; flex: 0 0 auto; }
.admin-category-compact { overflow-x: auto; border: 1px solid #e5e8ed; border-radius: 9px; }
.admin-category-group + .admin-category-group { border-top: 8px solid #f0f2f5; }
.admin-category-row { display: grid; grid-template-columns: minmax(220px, 1fr) 64px 118px 48px 100px 40px; align-items: center; gap: 10px; min-width: 720px; min-height: 50px; padding: 7px 12px; }
.admin-category-row + .admin-category-row { border-top: 1px solid #edf0f3; }
.admin-category-row.is-parent { background: #f8f9fb; }
.admin-category-header { min-height: 38px; color: #9298a2; background: #f4f5f7; font-size: 11px; }
.admin-category-quick-form, .admin-category-delete-form { display: contents; }
.admin-category-name-cell { display: flex; min-width: 0; align-items: center; gap: 8px; }
.admin-category-row.is-child .admin-category-name-cell { padding-left: 24px; }
.admin-category-row.is-child .admin-category-name-cell::before { color: #b4bac3; content: "└"; }
.admin-category-level { flex: 0 0 auto; padding: 2px 5px; border-radius: 4px; color: #8d949f; background: #eceff3; font-size: 10px; }
.admin-category-name, .admin-category-sort { width: 100%; height: 32px; padding: 0 9px; border: 1px solid #dfe2e8; border-radius: 5px; outline: 0; background: #fff; font-size: 12px; }
.admin-category-name:focus, .admin-category-sort:focus { border-color: rgba(231,55,63,.65); box-shadow: 0 0 0 3px rgba(231,55,63,.06); }
.admin-category-meta { color: #8d949f; font-size: 11px; white-space: nowrap; }
.admin-category-status { color: #9aa1ab; font-size: 11px; }
.admin-category-status.is-active { color: #2c9b67; }
.admin-category-actions { display: flex; align-items: center; gap: 9px; }
.admin-category-action, .admin-category-delete { padding: 3px 0; border: 0; color: var(--primary); background: transparent; font-size: 12px; white-space: nowrap; cursor: pointer; }
.admin-category-delete { color: #a0a6af; }
.admin-category-delete:hover { color: var(--red); }
.admin-category-add-child { min-width: 720px; padding: 8px 12px 10px 54px; border-top: 1px solid #edf0f3; background: #fcfcfd; }
.admin-category-add-child a { color: #9298a2; font-size: 11px; }
.admin-category-add-child a:hover { color: var(--primary); }
.admin-ad-list { display: grid; gap: 20px; }
.admin-ad-item { padding: 20px; border: 1px solid #e5e8ed; border-radius: 10px; background: #f8f9fb; }
.admin-ad-preview { display: block; width: 100%; height: auto; border-radius: 8px; background: #fff; }
.admin-ad-check { display: flex; align-items: center; gap: 8px; color: #4a505b; font-size: 12px; }
.admin-form-grid .admin-ad-check input { width: auto; height: auto; margin: 0; }
.admin-ad-delete { display: flex; justify-content: flex-end; margin-top: 10px; }
.admin-form-grid .admin-color-input { min-height: 44px; padding: 4px; cursor: pointer; }
.admin-links-compact { overflow-x: auto; border: 1px solid #e5e8ed; border-radius: 9px; }
.admin-links-row { display: grid; grid-template-columns: 72px minmax(180px, .8fr) minmax(300px, 1.6fr) 58px 64px 48px 48px; align-items: center; gap: 10px; min-width: 860px; min-height: 52px; padding: 8px 12px; }
.admin-links-row + .admin-links-row { border-top: 1px solid #edf0f3; }
.admin-links-row:not(.admin-links-header):hover { background: #fafbfc; }
.admin-links-header { min-height: 38px; color: #9298a2; background: #f4f5f7; font-size: 11px; }
.admin-links-header span:last-child { grid-column: 6 / 8; }
.admin-links-quick-form, .admin-links-delete-form { display: contents; }
.admin-links-sort, .admin-links-input { width: 100%; height: 32px; padding: 0 9px; border: 1px solid #dfe2e8; border-radius: 5px; outline: 0; background: #fff; font-size: 12px; }
.admin-links-sort:focus, .admin-links-input:focus, .admin-links-color:focus { border-color: rgba(231,55,63,.65); box-shadow: 0 0 0 3px rgba(231,55,63,.06); }
.admin-links-color { width: 44px; height: 32px; padding: 3px; border: 1px solid #dfe2e8; border-radius: 5px; outline: 0; background: #fff; cursor: pointer; }
.admin-links-status { display: flex; align-items: center; gap: 5px; color: #69707c; font-size: 11px; white-space: nowrap; }
.admin-links-status input { margin: 0; accent-color: var(--red); }
.admin-links-action, .admin-links-delete { padding: 3px 0; border: 0; background: transparent; font-size: 12px; white-space: nowrap; cursor: pointer; }
.admin-links-action { color: var(--primary); }
.admin-links-delete { color: #a0a6af; }
.admin-links-delete:hover { color: var(--red); }
.watermark-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; align-items: start; gap: 20px; }
.watermark-layout > div { display: flex; flex-direction: column; gap: 18px; }
.watermark-layout > aside { display: flex; flex-direction: column; gap: 18px; }
.watermark-upload { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 22px; }
.current-watermark { display: flex; height: 120px; align-items: center; justify-content: center; overflow: hidden; border: 1px dashed #d9dde4; border-radius: 8px; color: #a6acb5; background-color: #f7f8fa; background-image: linear-gradient(45deg, #eff1f4 25%, transparent 25%), linear-gradient(-45deg, #eff1f4 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eff1f4 75%), linear-gradient(-45deg, transparent 75%, #eff1f4 75%); background-position: 0 0, 0 8px, 8px -8px, -8px 0; background-size: 16px 16px; font-size: 10px; text-align: center; }
.current-watermark img { max-width: 90%; max-height: 90%; object-fit: contain; }
.current-watermark svg { width: 28px; height: 28px; margin-right: 7px; }
.position-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.position-picker button { display: flex; height: 52px; align-items: center; justify-content: center; gap: 7px; border: 1px solid #e0e3e8; border-radius: 7px; color: #858c97; background: #fafbfc; font-size: 10px; }
.position-picker button i { width: 7px; height: 7px; border-radius: 50%; background: #c6cbd3; }
.position-picker button.active { color: var(--red); border-color: #e9a1a5; background: var(--red-soft); }
.position-picker button.active i { background: var(--red); box-shadow: 0 0 0 3px rgba(231,55,63,.12); }
.range-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.range-fields > label { display: flex; flex-direction: column; gap: 8px; }
.range-fields > label > span { display: flex; justify-content: space-between; color: #555c67; font-size: 11px; }
.range-fields output { color: var(--red); font-weight: 650; }
.range-fields input[type="range"] { width: 100%; accent-color: var(--red); }
.range-fields small { color: #a2a8b1; font-size: 8px; }
.number-unit { position: relative; }
.number-unit input { padding-right: 35px; }
.number-unit i { position: absolute; top: 12px; right: 13px; color: #a1a6af; font-size: 10px; font-style: normal; }
.watermark-control { padding: 22px; }
.watermark-control h3 { margin: 0 0 18px; color: var(--ink); font-size: 15px; }
.watermark-notes { margin: 22px 0; padding-block: 14px; border-block: 1px solid #eceef1; }
.watermark-notes p { display: flex; align-items: center; gap: 7px; margin: 8px 0; color: #888f9a; font-size: 9px; }
.watermark-notes svg { width: 13px; height: 13px; color: var(--green); }
.watermark-text-input { width: 100%; min-height: 76px; padding: 10px 13px; border: 1px solid #dfe2e8; border-radius: 7px; outline: 0; background: #fff; line-height: 1.6; resize: vertical; }
.watermark-text-input:focus { border-color: rgba(231,55,63,.65); box-shadow: 0 0 0 3px rgba(231,55,63,.06); }
.watermark-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.watermark-preview-heading h3 { margin: 0; color: var(--ink); font-size: 14px; }
.watermark-preview-heading p { margin: 5px 0 0; color: #9299a4; font-size: 9px; }
.watermark-preview-heading .btn { flex: 0 0 auto; }
.watermark-preview-stage { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid #e0e3e8; border-radius: 9px; background: #f4f5f7; }
.watermark-preview-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.watermark-preview-stage img[hidden], .watermark-preview-empty[hidden] { display: none; }
.watermark-preview-empty { display: flex; height: 100%; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: #9aa1ac; font-size: 11px; }
.watermark-preview-empty svg { width: 28px; height: 28px; color: #b7bdc6; }
.watermark-preview-message { min-height: 15px; margin: 10px 0 0; color: #858d98; font-size: 9px; }
.watermark-preview-message.is-error { color: var(--red); }
.admin-hint.vertical { margin-top: 0; }

/* Installer */
.install-body { min-height: 100vh; background: #f4f5f7; }
.install-shell { display: grid; width: min(980px, calc(100% - 36px)); min-height: 640px; grid-template-columns: 38% 62%; margin: 5vh auto; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; box-shadow: 0 25px 70px rgba(28,32,43,.1); }
.install-aside { display: flex; flex-direction: column; justify-content: space-between; padding: 35px; color: #fff; background: #22252d; }
.install-aside .brand-text strong { color: #fff; }
.install-aside h1 { margin: 16px 0; font-size: 33px; line-height: 1.4; }
.install-aside p { color: #a5abb6; font-size: 12px; }
.install-aside ul { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; color: #9ca3af; font-size: 11px; }
.install-aside li { display: flex; align-items: center; gap: 10px; }
.install-aside li b { color: #e56c72; font: 11px Arial, sans-serif; }
.install-content { display: flex; flex-direction: column; justify-content: center; padding: 42px 50px; }
.install-heading { margin-bottom: 22px; }
.install-heading > small, .install-success > small { color: var(--red); font: 9px Arial, sans-serif; letter-spacing: 2px; }
.install-heading h2, .install-success h2 { margin: 5px 0; color: var(--ink); font-size: 26px; }
.install-heading p, .install-success > p { margin: 0; color: #969ca7; font-size: 11px; }
.install-heading code { color: #656c78; }
.environment-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 23px; }
.environment-list span { display: flex; flex-direction: column; padding: 10px; border-radius: 6px; color: #6d7480; background: #f5f6f8; font-size: 10px; }
.environment-list b { font-size: 8px; font-weight: 500; }
.environment-list .ok b { color: var(--green); }
.environment-list .bad b { color: var(--red); }
.install-content .form-alert { margin-bottom: 18px; }
.install-success { text-align: center; }
.install-success > span { display: flex; width: 64px; height: 64px; align-items: center; justify-content: center; margin: 0 auto 20px; border-radius: 50%; color: #fff; background: var(--green); }
.install-success > span svg { width: 30px; height: 30px; stroke-width: 2.5; }
.install-account { display: flex; align-items: center; justify-content: space-between; margin: 25px 0 18px; padding: 14px 17px; border-radius: 7px; background: #f5f6f8; font-size: 12px; }
.install-account strong { color: var(--red); }
.install-home { display: inline-block; margin-top: 16px; color: #777e89; font-size: 11px; }
.install-warning { margin-top: 25px; padding: 13px; border-radius: 6px; color: #9a835f; background: #fdf8ee; font-size: 9px; text-align: left; }

/* Responsive */
@media (max-width: 1180px) {
    .main-nav { margin-left: 0; }
    .header-search { width: 180px; }
    .category-card { padding-inline: 12px; }
    .category-card small { max-width: 120px; }
    .resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
    .header-search { display: none; }
    .main-nav { margin-left: 0; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-copy { max-width: 650px; }
    .hero-visual { display: none; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .category-card:nth-child(4)::before { display: none; }
    .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth-page { grid-template-columns: 1fr 420px; gap: 45px; }
    .auth-intro { padding-left: 0; }
    .admin-sidebar { transform: translateX(-100%); transition: transform .25s; }
    .admin-sidebar.is-open { transform: translateX(0); box-shadow: 15px 0 45px rgba(0,0,0,.2); }
    .admin-wrap { margin-left: 0; }
    .admin-header .nav-toggle { display: flex; margin-right: 16px; }
    .admin-header > div:nth-child(2) { margin-right: auto; }
}
@media (max-width: 820px) {
    .topbar-inner > span { display: none; }
    .topbar-inner { justify-content: flex-end; }
    .site-header { height: auto; min-height: 76px; }
    .header-inner { position: relative; min-height: 76px; flex-wrap: wrap; }
    .nav-toggle { display: flex; }
    .main-nav { display: none; width: 100%; height: auto; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 6px 0 15px; }
    .main-nav.is-open { display: flex; }
    .main-nav .nav-link { height: 42px; padding: 0 12px; }
    .main-nav .nav-link::after { display: none; }
    .main-nav .nav-link.active { border-radius: 5px; background: var(--red-soft); }
    .main-nav.is-open .nav-dropdown { position: static; min-width: 0; max-height: none; padding: 0 0 0 14px; overflow: visible; border: 0; background: transparent; box-shadow: none; opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
    .main-nav.is-open .nav-item:hover > .nav-dropdown, .main-nav.is-open .nav-item:focus-within > .nav-dropdown { transform: none; }
    .detail-layout, .upload-page, .recharge-grid, .vip-layout { grid-template-columns: 1fr; }
    .share-card { grid-column: 1 / -1; }
    .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth-page { grid-template-columns: 1fr; gap: 30px; padding-block: 40px; }
    .auth-intro { text-align: center; }
    .auth-intro > p { margin-inline: auto; }
    .auth-intro ul { display: none; }
    .auth-card { width: min(480px, 100%); margin: auto; }
    .register-quote { justify-content: center; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
    .footer-note { display: none; }
    .detail-sidebar { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
    .admin-two-columns { grid-template-columns: 1fr; }
    .admin-quick > div { grid-template-columns: 1fr; }
    .watermark-layout { grid-template-columns: 1fr; }
    .watermark-layout > aside { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
    .admin-hint.vertical { margin-top: 0; }
    .install-shell { grid-template-columns: 1fr; margin-block: 20px; }
    .install-aside { min-height: 240px; }
    .install-aside > div { margin-block: 35px; }
    .install-aside ul { display: none; }
}
@media (max-width: 600px) {
    .container { width: min(100% - 28px, 1200px); }
    .topbar { height: auto; min-height: 36px; }
    .topbar-inner { min-height: 36px; }
    .topbar-links { width: 100%; justify-content: flex-end; flex-wrap: wrap; gap: 3px 13px; padding-block: 5px; }
    .member-greeting { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .topbar-links .vip-badge { display: none; }
    .brand-text strong { font-size: 18px; }
    .brand-text small { font-size: 8px; }
    .brand-mark { width: 42px; height: 42px; }
    .hero-inner { min-height: 490px; padding-block: 45px; }
    .hero h1 { font-size: 34px; }
    .hero-copy > p { font-size: 13px; }
    .desktop-only { display: none; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-stats > div { min-width: 0; flex: 1; padding-right: 15px; }
    .hero-stats > div + div { padding-left: 15px; }
    .hero-stats strong { font-size: 21px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .category-card { padding: 17px 10px; }
    .category-card:nth-child(4)::before { display: block; }
    .category-card:nth-child(odd)::before { display: none; }
    .category-card small { display: none; }
    .category-icon { width: 36px; height: 36px; }
    .home-layout { padding-block: 30px; }
    .resource-grid, .listing-grid { grid-template-columns: 1fr; }
    .resource-body h3 { height: auto; min-height: 24px; }
    .resource-body > p { height: auto; }
    .home-sidebar, .detail-sidebar { display: flex; }
    .section-heading h2 { font-size: 22px; }
    .community-inner { flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 28px; }
    .community-inner h2 { font-size: 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .footer-bottom { gap: 6px 14px; }
    .qq-float { right: 12px; bottom: 25px; }
    .auth-intro h1 { font-size: 30px; }
    .auth-card { padding: 27px 22px; }
    .form-row { grid-template-columns: 1fr; }
    .listing-toolbar { align-items: flex-start; flex-direction: column; gap: 13px; }
    .listing-toolbar form, .listing-toolbar input { width: 100%; }
    .listing-toolbar form .btn { flex: 0 0 auto; }
    .detail-header { padding: 23px 20px; }
    .detail-header h1 { font-size: 22px; }
    .detail-meta { gap: 11px; }
    .resource-neighbors { width: 100%; margin-left: 0; }
    .resource-neighbors .btn { flex: 1; }
    .detail-content { padding: 25px 20px; font-size: 13px; }
    .detail-cover { padding: 20px 20px 0; }
    .detail-notice { margin: 0 20px 22px; }
    .form-panel { padding: 23px 20px; }
    .panel-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
    .vip-hero { align-items: flex-start; flex-direction: column; padding: 24px 20px; }
    .vip-hero-heading { align-items: flex-start; gap: 14px; }
    .vip-hero-icon { width: 46px; height: 46px; border-radius: 12px; }
    .vip-hero-icon svg { width: 25px; height: 25px; }
    .vip-hero h1 { font-size: 23px; }
    .vip-current-status { margin-left: 60px; }
    .upload-fields { grid-template-columns: 1fr; }
    .state-code { font-size: 90px; }
    .admin-header { height: 76px; padding: 0 15px; }
    .admin-header .nav-toggle { margin-right: 10px; }
    .admin-header h1 { font-size: 17px; }
    .admin-account > div { display: none; }
    .admin-main { width: calc(100% - 28px); padding-top: 20px; }
    .admin-welcome { align-items: flex-start; flex-direction: column; gap: 15px; }
    .admin-stat-grid { grid-template-columns: 1fr; gap: 12px; }
    .admin-stat { padding: 17px; }
    .admin-page-intro { align-items: flex-start; flex-direction: column; gap: 12px; }
    .admin-form-grid, .range-fields { grid-template-columns: 1fr; }
    .form-section { padding: 19px; }
    .watermark-upload { grid-template-columns: 1fr; }
    .current-watermark { height: 145px; }
    .watermark-layout > aside { display: flex; }
    .admin-form-actions .btn { width: 100%; }
    .install-content { padding: 32px 23px; }
    .install-aside { padding: 28px; }
    .install-aside h1 { font-size: 28px; }
    .environment-list { grid-template-columns: 1fr; }
    .install-shell { width: calc(100% - 24px); }
}

.vip-modal[hidden] { display: none; }
.vip-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 24px; }
.vip-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 18, 25, .56); }
.vip-modal-panel { position: relative; width: min(420px, 100%); padding: 32px 28px 26px; border-radius: 14px; background: #fff; box-shadow: 0 24px 64px rgba(15, 18, 25, .28); text-align: center; }
.vip-modal-icon { display: flex; width: 58px; height: 58px; align-items: center; justify-content: center; margin: 0 auto 14px; border-radius: 50%; background: #fff4e8; color: #e8833a; }
.vip-modal-icon svg { width: 28px; height: 28px; }
.vip-modal-panel h2 { margin: 0 0 10px; font-size: 20px; color: #1f2329; }
.vip-modal-panel p { margin: 0 0 20px; color: #666d78; font-size: 12px; line-height: 1.9; }
.vip-modal-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.vip-modal-actions .btn { min-width: 118px; }
body.has-modal { overflow: hidden; }
.vip-lock-panel { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 62px 28px; border: 1px solid #eef0f4; border-radius: 12px; background: #fff; text-align: center; }
.vip-lock-icon { display: flex; width: 62px; height: 62px; align-items: center; justify-content: center; border-radius: 50%; background: #fff4e8; color: #e8833a; }
.vip-lock-icon svg { width: 30px; height: 30px; }
.vip-lock-panel h2 { margin: 0; font-size: 20px; color: #1f2329; }
.vip-lock-panel p { max-width: 460px; margin: 0; color: #666d78; font-size: 12px; line-height: 1.9; }
.vip-lock-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
