/* ==========================================================================
   社趣圈 · 二次元邻里社区主题
   移动端优先的 H5 社区 / 圈子 / 个人中心
   ========================================================================== */

:root {
    --bg: #08080d;
    --bg-2: #0e0e16;
    --surface: rgba(23, 23, 34, .92);
    --surface-2: #1b1b28;
    --surface-3: #242436;
    --surface-4: #2c2c40;
    --text: #f7f4ff;
    --text-2: #c9c4d8;
    --muted: #8d879f;
    --muted-2: #625d75;
    --pink: #ff4d7d;
    --pink-2: #ff7aa8;
    --purple: #a855f7;
    --cyan: #38e8d8;
    --gold: #ffcf5c;
    --orange: #ff8a4c;
    --green: #4ade80;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --grad: linear-gradient(135deg, #ff4d7d 0%, #a855f7 55%, #38e8d8 130%);
    --grad-soft: linear-gradient(135deg, rgba(255, 77, 125, .18), rgba(168, 85, 247, .12) 55%, rgba(56, 232, 216, .08));
    --radius: 20px;
    --radius-lg: 26px;
    --radius-sm: 12px;
    --shadow: 0 20px 60px rgba(0, 0, 0, .45);
    --shadow-pink: 0 12px 30px rgba(255, 77, 125, .25);
    --max: 1080px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --jp: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", var(--font);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(900px 520px at 8% -8%, rgba(255, 77, 125, .14), transparent 60%),
        radial-gradient(800px 500px at 98% 0%, rgba(168, 85, 247, .13), transparent 62%),
        radial-gradient(700px 500px at 50% 110%, rgba(56, 232, 216, .08), transparent 65%),
        var(--bg);
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .28;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, #000, transparent 70%);
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

img { max-width: 100%; display: block; }
a { color: var(--pink-2); text-decoration: none; }
a:hover { color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: rgba(255, 77, 125, .35); color: #fff; }
:focus-visible { outline: 3px solid rgba(255, 77, 125, .45); outline-offset: 3px; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2c2c40; border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

body.has-tabbar { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
body.no-tabbar { padding-bottom: 0; }
body.is-locked { overflow: hidden; }

.skip-link {
    position: fixed; left: 12px; top: -80px; z-index: 200;
    padding: 10px 16px; background: #fff; color: #111; border-radius: 10px;
    transition: top .2s;
}
.skip-link:focus { top: 12px; color: #111; }

.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; display: inline-block; vertical-align: -.16em; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(780px, calc(100% - 32px)); margin: 0 auto; }

/* ---------------- 通用组件 ---------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    border: 1px solid transparent; border-radius: 12px;
    padding: 11px 18px; font-size: 14px; font-weight: 700; line-height: 1.4;
    color: var(--text); background: var(--surface-3);
    transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); color: #fff; }
.btn:active { transform: translateY(0) scale(.99); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-pink); }
.btn-primary:hover { color: #fff; box-shadow: 0 16px 36px rgba(255, 77, 125, .34); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--pink); color: var(--pink-2); }
.btn-outline { background: transparent; border-color: var(--line-2); color: var(--text-2); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-danger { background: rgba(255, 77, 77, .15); border-color: rgba(255, 77, 77, .35); color: #ff8b8b; }
.btn-white { background: #fff; color: #17111f; }
.btn-white:hover { color: #17111f; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-xs { padding: 7px 12px; font-size: 12px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.icon-btn {
    width: 40px; height: 40px; border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04); color: var(--text-2);
    border-radius: 12px; display: inline-grid; place-items: center;
    transition: color .18s, border-color .18s, background .18s;
}
.icon-btn:hover { color: #fff; border-color: var(--line-2); background: rgba(255, 255, 255, .08); }
.icon-btn .icon { width: 20px; height: 20px; }

.chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
    color: var(--text-2); background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line); white-space: nowrap;
}
.chip-pink { color: var(--pink-2); background: rgba(255, 77, 125, .1); border-color: rgba(255, 77, 125, .24); }
.chip-cyan { color: var(--cyan); background: rgba(56, 232, 216, .08); border-color: rgba(56, 232, 216, .22); }
.chip-gold { color: var(--gold); background: rgba(255, 207, 92, .08); border-color: rgba(255, 207, 92, .22); }

.badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.badge-ok { background: rgba(74, 222, 128, .12); color: #7ef0a8; }
.badge-pending { background: rgba(255, 207, 92, .12); color: var(--gold); }
.badge-fail { background: rgba(255, 77, 77, .12); color: #ff8b8b; }
.badge-gray { background: rgba(255, 255, 255, .06); color: var(--muted); }

.lv-badge {
    display: inline-flex; align-items: center; padding: 1px 7px;
    border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: .02em;
    color: #1a1020; background: linear-gradient(135deg, #ffd166, #ff8a4c);
    box-shadow: 0 2px 8px rgba(255, 138, 76, .18);
}

.avatar {
    display: inline-grid; place-items: center; width: 40px; height: 40px;
    border-radius: 50%; overflow: hidden; flex: 0 0 auto;
    background: var(--surface-3); color: #fff; font-size: 13px; font-weight: 800;
    border: 1px solid var(--line-2); user-select: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: 11px; }
.avatar-lg { width: 64px; height: 64px; font-size: 20px; }
.avatar-letter { line-height: 1; }

.card {
    background: linear-gradient(160deg, rgba(29, 29, 43, .94), rgba(18, 18, 27, .96));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}
.card-pad-lg { padding: 28px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-title { font-size: 17px; display: flex; align-items: center; gap: 7px; }
.card-title .icon { color: var(--pink-2); }
.card-more { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 1px; }
.card-more:hover { color: var(--pink-2); }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 12px; }
.section-head h2 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.section-head h2::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: var(--grad); }
.section-head .jp { font-size: 10px; color: var(--muted-2); letter-spacing: .16em; font-family: var(--jp); }
.section-more { font-size: 12px; color: var(--muted); }
.section-more:hover { color: var(--pink-2); }

/* ---------------- 顶部导航 ---------------- */

.app-head {
    position: sticky; top: 0; z-index: 60;
    background: rgba(9, 9, 14, .82);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
}
.head-wrap {
    width: min(var(--max), calc(100% - 28px));
    margin: 0 auto; min-height: 62px;
    display: flex; align-items: center; gap: 12px;
}
.head-menu { display: none; flex: 0 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); flex: 0 0 auto; }
.brand:hover { color: var(--text); }
.brand-mark {
    position: relative; width: 36px; height: 36px; border-radius: 12px;
    display: grid; place-items: center; color: #fff;
    background: var(--grad); box-shadow: 0 8px 22px rgba(255, 77, 125, .3);
}
.brand-mark .icon { width: 21px; height: 21px; }
.brand-glow { position: absolute; inset: -5px; border-radius: 15px; background: var(--grad); filter: blur(10px); opacity: .45; z-index: -1; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 18px; font-weight: 900; letter-spacing: .01em; }
.brand-copy small { font-size: 9px; color: var(--muted-2); letter-spacing: .18em; margin-top: 3px; }

.desk-nav { display: flex; align-items: center; gap: 3px; margin-left: 12px; }
.desk-nav a { padding: 8px 13px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 600; }
.desk-nav a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.desk-nav a.is-active { color: var(--pink-2); background: rgba(255, 77, 125, .1); }

.head-center { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.head-title { font-size: 13px; font-weight: 700; color: var(--text-2); }
.head-jp { font-size: 8px; letter-spacing: .2em; color: var(--muted-2); font-family: var(--jp); }

.head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.head-avatar { position: relative; display: inline-flex; }
.online-dot { position: absolute; right: 0; bottom: 1px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); border: 2px solid #0b0b10; }
.head-login { box-shadow: none; }

/* ---------------- 侧边抽屉 ---------------- */

.drawer-veil, .sheet-veil {
    position: fixed; inset: 0; z-index: 80;
    background: rgba(3, 3, 7, .72); backdrop-filter: blur(4px);
}
.app-drawer {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 90;
    width: min(320px, calc(100vw - 48px));
    background: linear-gradient(170deg, #171722, #0c0c13 70%);
    border-right: 1px solid var(--line-2);
    transform: translateX(-104%);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
    display: flex; flex-direction: column;
    box-shadow: 30px 0 80px rgba(0, 0, 0, .5);
}
.app-drawer.is-open { transform: translateX(0); }
.drawer-top { padding: 20px 18px 16px; border-bottom: 1px solid var(--line); position: relative; }
.drawer-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; }
.drawer-user { display: flex; align-items: center; gap: 12px; color: var(--text); padding-right: 34px; }
.drawer-user:hover { color: var(--text); }
.drawer-user-info { display: flex; flex-direction: column; gap: 4px; }
.drawer-user-info strong { font-size: 17px; }
.drawer-user-info small { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.drawer-edit { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 12px; color: var(--pink-2); }
.drawer-guest { text-align: center; padding: 8px 0 0; }
.drawer-guest img { margin: 0 auto 8px; }
.drawer-guest strong { display: block; font-size: 16px; }
.drawer-guest p { color: var(--muted); font-size: 12px; margin: 5px 0 12px; }
.drawer-auth { display: flex; justify-content: center; gap: 8px; }
.drawer-scroll { flex: 1; overflow-y: auto; padding: 10px 12px 18px; }
.drawer-label { padding: 14px 12px 6px; font-size: 9px; letter-spacing: .18em; color: var(--muted-2); }
.drawer-nav { display: grid; gap: 2px; }
.drawer-nav a, .drawer-logout button {
    width: 100%; display: flex; align-items: center; gap: 10px;
    padding: 11px 12px; border-radius: 11px; color: var(--text-2);
    font-size: 13.5px; font-weight: 600; background: none; border: 0; text-align: left;
}
.drawer-nav a > .icon:last-child, .drawer-logout button > .icon:last-child { margin-left: auto; width: 14px; height: 14px; color: var(--muted-2); }
.drawer-nav a:hover, .drawer-logout button:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.drawer-nav a.is-active { background: rgba(255, 77, 125, .12); color: var(--pink-2); }
.drawer-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: var(--muted); }
.drawer-nav a.is-active .drawer-ico { background: var(--grad); color: #fff; }
.drawer-logout { margin-top: 4px; }
.drawer-logout button { color: #ff8b8b; }
.drawer-foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; color: var(--muted-2); font-size: 10px; }

/* ---------------- 搜索层 ---------------- */

.search-layer {
    position: fixed; inset: 0; z-index: 95;
    background: rgba(6, 6, 10, .96);
    backdrop-filter: blur(18px);
    padding: 18px 16px 30px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .22s, visibility .22s, transform .22s;
}
.search-layer.is-open { opacity: 1; visibility: visible; transform: none; }
.search-form { max-width: 760px; margin: 0 auto; }
.search-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 8px 8px 14px; border: 1px solid var(--line-2);
    border-radius: 14px; background: var(--surface-2); box-shadow: var(--shadow);
}
.search-bar > .icon { color: var(--pink-2); width: 19px; height: 19px; }
.search-bar input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 15px; padding: 8px 0; color: var(--text); }
.search-bar input::placeholder { color: var(--muted-2); }
.search-submit { border: 0; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; border-radius: 9px; padding: 8px 13px; }
.search-cancel { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 8px 4px; }
.search-hot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0 4px; }
.search-hot span { font-size: 11px; color: var(--muted-2); letter-spacing: .08em; }
.search-hot a { font-size: 12px; color: var(--text-2); padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.search-hot a:hover { color: var(--pink-2); border-color: rgba(255, 77, 125, .3); }

/* ---------------- Toast ---------------- */

.flash-stack {
    position: fixed; left: 50%; top: 74px; transform: translateX(-50%);
    z-index: 120; width: min(560px, calc(100% - 28px));
    display: grid; gap: 8px; pointer-events: none;
}
.toast {
    display: flex; align-items: center; gap: 9px;
    padding: 10px 12px; border-radius: 13px;
    background: rgba(25, 25, 38, .96); border: 1px solid var(--line-2);
    box-shadow: var(--shadow); color: var(--text-2); font-size: 13px;
    pointer-events: auto; animation: toast-in .25s ease both;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.toast > span:nth-child(2) { flex: 1; }
.toast-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--pink-2); }
.toast-ico .icon { width: 14px; height: 14px; }
.toast-success .toast-ico { color: var(--green); }
.toast-error .toast-ico { color: #ff8b8b; }
.toast button { border: 0; background: none; color: var(--muted); padding: 3px; display: grid; place-items: center; }
.toast button .icon { width: 13px; height: 13px; }

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

.site-main { min-height: 60vh; }

.hero { padding: 18px 0 0; }
.hero-inner {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 1fr) 190px;
    gap: 12px; align-items: center;
    min-height: 216px; padding: 26px 26px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, .1);
    background:
        radial-gradient(500px 260px at 90% -10%, rgba(56, 232, 216, .18), transparent 60%),
        radial-gradient(500px 300px at 0% 0%, rgba(255, 77, 125, .25), transparent 60%),
        linear-gradient(135deg, rgba(35, 22, 48, .98), rgba(16, 16, 27, .98));
    box-shadow: var(--shadow);
}
.hero-inner::before {
    content: "サークル";
    position: absolute; right: 110px; top: -26px;
    font-family: var(--jp); font-size: 96px; font-weight: 900;
    color: rgba(255, 255, 255, .035); letter-spacing: .08em; white-space: nowrap;
    transform: rotate(-6deg); pointer-events: none;
}
.hero-inner::after {
    content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
    right: -90px; bottom: -130px; background: var(--grad); filter: blur(50px); opacity: .22;
}
.hero-copy { position: relative; z-index: 2; }
.hero-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); font-size: 10.5px; letter-spacing: .1em; color: var(--text-2); }
.hero-kicker .icon { color: var(--cyan); width: 13px; height: 13px; }
.hero h1 { margin-top: 13px; font-size: clamp(28px, 5vw, 42px); line-height: 1.18; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { margin-top: 9px; max-width: 520px; color: var(--text-2); font-size: 13px; line-height: 1.75; }
.hero-actions { display: flex; gap: 9px; margin-top: 16px; flex-wrap: wrap; }
.hero-actions .btn { padding: 9px 15px; font-size: 13px; }
.hero-stats { display: flex; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 20px; line-height: 1.1; font-weight: 900; }
.hero-stat span { font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.hero-art { position: relative; z-index: 2; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: var(--grad); filter: blur(32px); opacity: .35; }
.hero-art img { position: relative; width: 180px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.hero-orbit { position: absolute; inset: 0; border: 1px dashed rgba(255, 255, 255, .16); border-radius: 50%; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-sticker { position: absolute; left: -4px; bottom: 4px; padding: 5px 9px; border-radius: 8px; background: rgba(10, 10, 16, .8); border: 1px solid var(--line-2); font-size: 9px; color: var(--text-2); letter-spacing: .08em; }

.home-wrap { padding: 16px 0 20px; }
.home-tabs { display: flex; gap: 4px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.home-tabs::-webkit-scrollbar { display: none; }
.home-tab { flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px solid transparent; }
.home-tab.is-active { color: var(--pink-2); background: rgba(255, 77, 125, .1); border-color: rgba(255, 77, 125, .24); }

.cate-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.cate-strip::-webkit-scrollbar { display: none; }
.cate-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line); color: var(--text-2); font-size: 12px; font-weight: 600; }
.cate-chip:hover { color: #fff; border-color: var(--line-2); }
.cate-chip.is-active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 8px 18px rgba(255, 77, 125, .22); }
.cate-chip .icon { width: 13px; height: 13px; }

.notice-card {
    display: flex; align-items: flex-start; gap: 12px;
    margin-top: 4px; padding: 14px 15px;
    border-radius: 16px; border: 1px solid rgba(255, 77, 125, .18);
    background: linear-gradient(135deg, rgba(255, 77, 125, .1), rgba(168, 85, 247, .06));
}
.notice-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 77, 125, .15); color: var(--pink-2); flex: 0 0 auto; }
.notice-body { flex: 1; min-width: 0; }
.notice-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--pink-2); letter-spacing: .04em; }
.notice-title { font-size: 14px; font-weight: 700; margin-top: 3px; }
.notice-text { font-size: 12px; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notice-arrow { color: var(--muted-2); padding-top: 6px; }

.quick-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 4px; }
.quick-item {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 12px 6px; border-radius: 15px;
    background: rgba(255, 255, 255, .035); border: 1px solid var(--line);
    color: var(--text-2); font-size: 11.5px; font-weight: 600;
    transition: border-color .18s, transform .18s, background .18s;
}
.quick-item:hover { transform: translateY(-2px); border-color: rgba(255, 77, 125, .3); color: #fff; background: rgba(255, 77, 125, .06); }
.quick-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: gradient; background-image: linear-gradient(135deg, rgba(255, 77, 125, .22), rgba(168, 85, 247, .18)); color: var(--pink-2); border: 1px solid rgba(255, 255, 255, .08); }
.quick-item:nth-child(2) .quick-icon { background-image: linear-gradient(135deg, rgba(255, 138, 76, .22), rgba(255, 207, 92, .12)); color: var(--orange); }
.quick-item:nth-child(3) .quick-icon { background-image: linear-gradient(135deg, rgba(56, 232, 216, .16), rgba(59, 130, 246, .14)); color: var(--cyan); }
.quick-item:nth-child(4) .quick-icon { background-image: linear-gradient(135deg, rgba(168, 85, 247, .2), rgba(236, 72, 153, .12)); color: #d8b4fe; }
.quick-icon .icon { width: 20px; height: 20px; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; margin-top: 14px; }
.home-main { min-width: 0; }
.home-side { display: grid; gap: 14px; }

/* ---------------- 动态卡片 ---------------- */

.feed-list { display: grid; gap: 12px; }
.feed-card {
    position: relative;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(28, 28, 42, .92), rgba(16, 16, 24, .96));
    box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
    transition: border-color .18s, transform .18s, box-shadow .18s;
}
.feed-card:hover { border-color: rgba(255, 77, 125, .24); transform: translateY(-1px); box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.feed-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.feed-avatar { position: relative; flex: 0 0 auto; }
.feed-avatar .avatar { border-color: rgba(255, 255, 255, .18); }
.feed-avatar::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 1px solid rgba(255, 77, 125, .35); pointer-events: none; }
.feed-meta { flex: 1; min-width: 0; line-height: 1.3; }
.feed-name { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; }
.feed-name .lv-badge { transform: translateY(-1px); }
.feed-time { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }
.feed-cate { padding: 3px 8px; border-radius: 7px; background: rgba(255, 77, 125, .09); border: 1px solid rgba(255, 77, 125, .18); color: var(--pink-2); font-size: 10px; font-weight: 700; white-space: nowrap; }
.feed-title { display: block; font-size: 16px; line-height: 1.45; font-weight: 800; color: var(--text); margin: 2px 0 6px; letter-spacing: -.01em; }
.feed-title:hover { color: var(--pink-2); }
.feed-excerpt { color: var(--muted); font-size: 12.5px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 10px; }
.feed-img { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-3); }
.feed-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.feed-card:hover .feed-img img { transform: scale(1.03); }
.feed-img-more { position: absolute; inset: 0; background: rgba(5, 5, 10, .55); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; }
.feed-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.feed-tags .chip { padding: 2px 8px; font-size: 10px; }
.feed-actions { display: flex; align-items: center; gap: 16px; margin-top: 11px; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, .05); color: var(--muted); font-size: 11px; }
.feed-action { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); background: none; border: 0; padding: 2px 0; font-size: 11px; }
.feed-action:hover { color: var(--pink-2); }
.feed-action .icon { width: 14px; height: 14px; }
.feed-action.is-liked { color: var(--pink); }
.feed-action.is-liked .icon { fill: currentColor; }
.feed-action-right { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--muted-2); }

/* 旧 post-card 兼容 */
.post-list { display: grid; gap: 12px; }
.post-card { position: relative; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(28, 28, 42, .92), rgba(16, 16, 24, .96)); }
.post-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.post-meta { flex: 1; min-width: 0; }
.post-author { display: block; font-size: 12.5px; font-weight: 700; }
.post-time { font-size: 10.5px; color: var(--muted-2); }
.post-cate { padding: 2px 8px; border-radius: 6px; background: rgba(255, 77, 125, .1); color: var(--pink-2); font-size: 10px; font-weight: 700; }
.post-title { display: block; font-size: 16px; font-weight: 800; line-height: 1.45; color: var(--text); margin-bottom: 5px; }
.post-title:hover { color: var(--pink-2); }
.post-excerpt { color: var(--muted); font-size: 12.5px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 10px; }
.post-thumb { aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: var(--surface-3); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 11px; }
.post-comments { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.post-comments .icon { width: 14px; height: 14px; }

/* ---------------- 右侧小卡 ---------------- */

.side-card { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(28, 28, 42, .9), rgba(16, 16, 24, .96)); }
.side-card .card-title { font-size: 14px; }
.mini-list { display: grid; gap: 2px; }
.mini-item { display: block; padding: 9px 7px; margin: 0 -7px; border-radius: 9px; color: var(--text); }
.mini-item:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.mini-item strong { display: block; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-item span { display: block; color: var(--muted-2); font-size: 10.5px; margin-top: 2px; }
.side-empty { padding: 16px 0; text-align: center; color: var(--muted-2); font-size: 12px; }
.side-cta { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.side-cta p { font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.notice-list { list-style: none; display: grid; gap: 9px; }
.notice-list li { display: flex; gap: 8px; color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.notice-list .icon { color: var(--pink-2); width: 14px; height: 14px; margin-top: 2px; }
.join-card { background: linear-gradient(160deg, rgba(255, 77, 125, .12), rgba(168, 85, 247, .07)); border-color: rgba(255, 77, 125, .2); }

/* ---------------- 圈子 ---------------- */

.circle-hero { padding: 10px 0 4px; }
.circle-hero h1 { font-size: clamp(26px, 5vw, 34px); }
.circle-hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.circle-hero p { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.circle-search { display: flex; align-items: center; gap: 8px; margin: 14px 0 16px; padding: 9px 12px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035); }
.circle-search .icon { color: var(--pink-2); width: 18px; height: 18px; }
.circle-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 13.5px; }
.circle-search button { border: 0; background: var(--surface-3); color: var(--text-2); border-radius: 8px; padding: 6px 11px; font-size: 12px; }
.circle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.circle-card { position: relative; display: flex; flex-direction: column; gap: 9px; padding: 15px; border-radius: 17px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(29, 29, 44, .92), rgba(16, 16, 24, .96)); transition: border-color .18s, transform .18s; }
.circle-card:hover { border-color: rgba(255, 77, 125, .26); transform: translateY(-2px); }
.circle-top { display: flex; align-items: center; gap: 10px; }
.circle-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 18px; font-weight: 900; background: linear-gradient(135deg, var(--c1, var(--pink)), var(--c2, var(--purple))); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); flex: 0 0 auto; }
.circle-name { font-size: 14px; font-weight: 800; line-height: 1.3; }
.circle-desc { color: var(--muted); font-size: 11px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; }
.circle-stats { display: flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: 10.5px; }
.circle-stats .icon { width: 12px; height: 12px; }
.circle-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.circle-link { font-size: 11px; color: var(--pink-2); }
.join-form { display: inline; }
.join-btn { border: 0; border-radius: 8px; padding: 5px 10px; font-size: 11px; font-weight: 700; background: var(--grad); color: #fff; }
.join-btn.is-joined { background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); color: var(--muted); }
.circle-section { margin-top: 20px; }
.circle-section .section-head { margin-top: 0; }
.circle-empty { padding: 24px 16px; text-align: center; color: var(--muted); font-size: 12.5px; border: 1px dashed var(--line-2); border-radius: 15px; }

/* ---------------- 发现 ---------------- */

.discover-hero { padding: 12px 0 6px; }
.discover-hero h1 { font-size: clamp(26px, 5vw, 34px); }
.discover-hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.discover-hero p { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.discover-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.discover-card { display: flex; align-items: center; gap: 11px; padding: 14px; border-radius: 15px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(29, 29, 44, .9), rgba(16, 16, 24, .96)); color: var(--text); }
.discover-card:hover { border-color: rgba(255, 77, 125, .25); color: var(--text); }
.discover-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 77, 125, .12); color: var(--pink-2); flex: 0 0 auto; }
.discover-card:nth-child(2) .discover-ico { background: rgba(255, 138, 76, .12); color: var(--orange); }
.discover-card:nth-child(3) .discover-ico { background: rgba(56, 232, 216, .1); color: var(--cyan); }
.discover-card:nth-child(4) .discover-ico { background: rgba(168, 85, 247, .12); color: #d8b4fe; }
.discover-card strong { display: block; font-size: 13px; }
.discover-card small { display: block; color: var(--muted); font-size: 10.5px; margin-top: 2px; }
.discover-card > .icon:last-child { margin-left: auto; color: var(--muted-2); width: 14px; height: 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.stat-box { padding: 13px 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); text-align: center; }
.stat-box strong { display: block; font-size: 19px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-box span { font-size: 10px; color: var(--muted); }

/* ---------------- 页面头部 / 工具条 ---------------- */

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 22px 0 14px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(23px, 4.6vw, 30px); }
.page-head p { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.page-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-head .jp { display: block; font-size: 9px; color: var(--muted-2); letter-spacing: .18em; font-family: var(--jp); margin-bottom: 4px; }

.toolbar { display: grid; gap: 10px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(23, 23, 34, .72); margin-bottom: 14px; }
.toolbar-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar-search { position: relative; flex: 1; min-width: 180px; }
.toolbar-search .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted-2); width: 16px; height: 16px; }
.toolbar-search input { width: 100%; padding: 9px 12px 9px 34px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .035); font-size: 13px; outline: none; }
.toolbar-search input:focus { border-color: rgba(255, 77, 125, .45); background: rgba(255, 77, 125, .04); }
.cate-pills { display: flex; gap: 7px; overflow-x: auto; padding: 1px 0 3px; scrollbar-width: none; }
.cate-pills::-webkit-scrollbar { display: none; }
.cate-pill { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line); color: var(--text-2); font-size: 12px; font-weight: 600; }
.cate-pill.is-active { color: #fff; background: var(--grad); border-color: transparent; }
.result-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted-2); font-size: 11px; margin: 0 2px 10px; }

.empty-state { text-align: center; padding: 42px 18px; border-radius: 18px; border: 1px dashed var(--line-2); background: rgba(255, 255, 255, .02); }
.empty-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 12px; background: rgba(255, 77, 125, .1); color: var(--pink-2); }
.empty-icon .icon { width: 27px; height: 27px; }
.empty-state h2 { font-size: 16px; margin-bottom: 4px; }
.empty-state p { color: var(--muted); font-size: 12px; }
.empty-state .btn { margin-top: 14px; }

.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 5px; margin: 20px 0 4px; }
.pagination a, .pagination span { min-width: 32px; height: 32px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text-2); font-size: 12px; }
.pagination a:hover { border-color: var(--pink); color: var(--pink-2); }
.pagination .page-current { background: var(--grad); border-color: transparent; color: #fff; }
.pagination .page-disabled { color: var(--muted-2); opacity: .5; }
.pagination .page-ellipsis { border: 0; background: none; min-width: auto; padding: 0 2px; color: var(--muted-2); }

/* ---------------- 帖子详情 ---------------- */

.breadcrumb { display: flex; align-items: center; gap: 6px; padding: 16px 0 10px; color: var(--muted-2); font-size: 11px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--pink-2); }
.breadcrumb .icon { width: 12px; height: 12px; }
.thread-card { padding: 22px; }
.thread-head { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.thread-author { font-size: 13.5px; font-weight: 800; }
.thread-sub { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--muted-2); font-size: 10.5px; margin-top: 2px; }
.thread-title { font-size: clamp(21px, 4.5vw, 27px); line-height: 1.4; margin-bottom: 12px; }
.thread-body { color: var(--text-2); font-size: 14.5px; line-height: 1.9; white-space: normal; word-break: break-word; }
.thread-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; margin-top: 16px; }
.thread-gallery a { display: block; border-radius: 12px; overflow: hidden; background: var(--surface-3); }
.thread-gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.thread-gallery.is-single { grid-template-columns: minmax(0, 1fr); }
.thread-gallery.is-single img { aspect-ratio: auto; max-height: 480px; object-fit: contain; background: #0b0b12; }
.thread-status-note { margin-bottom: 14px; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255, 207, 92, .25); background: rgba(255, 207, 92, .08); color: var(--gold); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.thread-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.thread-foot-left { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.thread-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.like-btn { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text-2); border-radius: 999px; padding: 7px 12px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.like-btn:hover { border-color: var(--pink); color: var(--pink-2); }
.like-btn.is-liked { color: var(--pink); border-color: rgba(255, 77, 125, .4); background: rgba(255, 77, 125, .1); }
.like-btn.is-liked .icon { fill: currentColor; }
.thread-meta-actions { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; }
.thread-meta-actions .icon { width: 14px; height: 14px; }

.comments-card { margin-top: 14px; padding: 20px 22px; }
.comments-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.comments-title h2 { font-size: 16px; }
.comments-title span { color: var(--muted-2); font-size: 11px; }
.comment-list { display: grid; }
.comment { display: flex; gap: 10px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.comment:last-child { border-bottom: 0; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 3px; }
.comment-name { font-size: 12px; font-weight: 700; }
.comment-time { color: var(--muted-2); font-size: 10px; }
.comment-text { color: var(--text-2); font-size: 13px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.comment-empty { text-align: center; color: var(--muted-2); font-size: 12px; padding: 24px 0; }
.comment-form { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.comment-form textarea { width: 100%; min-height: 84px; resize: vertical; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035); color: var(--text); font-size: 13px; line-height: 1.7; outline: none; }
.comment-form textarea:focus { border-color: rgba(255, 77, 125, .45); }
.comment-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.comment-tip { display: inline-flex; align-items: center; gap: 5px; color: var(--muted-2); font-size: 10.5px; }
.comment-tip .icon { width: 12px; height: 12px; }
.login-prompt { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 13px; border-radius: 12px; border: 1px dashed var(--line-2); background: rgba(255, 255, 255, .025); }
.login-prompt p { color: var(--muted); font-size: 12px; }

/* ---------------- 表单 / 编辑器 ---------------- */

.form-card { padding: 22px; }
.form-head { margin-bottom: 18px; }
.form-head h1 { font-size: 24px; }
.form-head p { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.field { margin-bottom: 16px; }
.field > label, .field-label { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.field .req { color: var(--pink); }
.input, .textarea, .select {
    width: 100%; border: 1px solid var(--line-2); border-radius: 12px;
    background: rgba(255, 255, 255, .035); color: var(--text);
    padding: 11px 13px; font-size: 14px; line-height: 1.65;
    transition: border-color .16s, background .16s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: rgba(255, 77, 125, .5); background: rgba(255, 77, 125, .035); }
.textarea { min-height: 150px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.form-actions .btn-primary { min-width: 130px; }
.form-note { display: flex; gap: 8px; padding: 11px 13px; border-radius: 11px; border: 1px solid rgba(56, 232, 216, .18); background: rgba(56, 232, 216, .05); color: var(--text-2); font-size: 11.5px; line-height: 1.7; margin-bottom: 16px; }
.form-note .icon { color: var(--cyan); margin-top: 2px; }
.form-error { background: rgba(255, 77, 77, .09); border: 1px solid rgba(255, 77, 77, .3); color: #ff9a9a; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; margin-bottom: 14px; }
.form-error ul { padding-left: 18px; margin: 4px 0 0; }
.field .hint, .hint { font-size: 10.5px; color: var(--muted-2); margin-top: 5px; }
.radio-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.radio-chip { position: relative; }
.radio-chip input { position: absolute; opacity: 0; pointer-events: none; }
.radio-chip span { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035); color: var(--text-2); font-size: 12px; cursor: pointer; }
.radio-chip input:checked + span { background: var(--grad); color: #fff; border-color: transparent; }
.radio-chip input:focus-visible + span { outline: 3px solid rgba(255, 77, 125, .4); }

.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.image-box { position: relative; aspect-ratio: 1; border-radius: 11px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-3); }
.image-box img { width: 100%; height: 100%; object-fit: cover; }
.image-del { position: absolute; top: 4px; right: 4px; width: 23px; height: 23px; border: 0; border-radius: 50%; background: rgba(5, 5, 10, .72); color: #fff; display: grid; place-items: center; padding: 0; }
.image-del .icon { width: 11px; height: 11px; }
.image-add { aspect-ratio: 1; display: grid; place-items: center; text-align: center; padding: 6px; border-radius: 11px; border: 1.5px dashed var(--line-2); background: rgba(255, 255, 255, .02); color: var(--muted); cursor: pointer; }
.image-add:hover { border-color: var(--pink); color: var(--pink-2); background: rgba(255, 77, 125, .04); }
.image-add .icon { width: 21px; height: 21px; }
.image-add span { display: block; font-size: 10px; margin-top: 3px; }
.image-add input { display: none; }
.preview-note { font-size: 10.5px; color: var(--muted-2); margin-top: 6px; }
.keep-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.keep-item { position: relative; width: 88px; }
.keep-item img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.keep-item label { position: absolute; left: 4px; bottom: 4px; display: flex; align-items: center; gap: 3px; background: rgba(8, 8, 13, .82); border-radius: 6px; padding: 2px 5px; font-size: 10px; color: var(--text-2); }

/* ---------------- 登录 / 注册 ---------------- */

.auth-wrap { min-height: calc(100vh - 62px); display: grid; place-items: center; padding: 28px 16px 50px; position: relative; overflow: hidden; }
.auth-wrap::before { content: "ようこそ"; position: absolute; top: 8%; left: 50%; transform: translateX(-50%); font-family: var(--jp); font-size: clamp(70px, 18vw, 160px); font-weight: 900; color: rgba(255, 255, 255, .025); white-space: nowrap; pointer-events: none; }
.auth-card { position: relative; width: min(420px, 100%); padding: 26px 24px; border-radius: 24px; border: 1px solid var(--line-2); background: linear-gradient(165deg, rgba(32, 27, 46, .96), rgba(14, 14, 22, .98)); box-shadow: var(--shadow); overflow: hidden; }
.auth-card::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -110px; top: -120px; background: var(--grad); filter: blur(50px); opacity: .25; }
.auth-head { position: relative; text-align: center; margin-bottom: 20px; }
.auth-mascot { width: 104px; height: 104px; margin: 0 auto 6px; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .35)); }
.auth-head h1 { font-size: 23px; }
.auth-head p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.auth-head .jp { display: block; font-family: var(--jp); font-size: 9px; letter-spacing: .2em; color: var(--pink-2); margin-bottom: 5px; }
.auth-form .field { margin-bottom: 14px; }
.auth-form .btn { margin-top: 4px; }
.auth-alt { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 12px; }
.auth-alt a { font-weight: 700; }
.auth-back { text-align: center; margin-top: 12px; font-size: 11px; }
.auth-back a { color: var(--muted-2); }
.auth-back a:hover { color: var(--pink-2); }

/* ---------------- 个人中心 ---------------- */

.profile-cover { position: relative; margin-top: 12px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: linear-gradient(135deg, #2a1637, #12121d 60%, #0b1a22); min-height: 168px; }
.profile-cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px 160px at 80% 0%, rgba(255, 77, 125, .3), transparent 70%), radial-gradient(300px 160px at 0% 100%, rgba(56, 232, 216, .16), transparent 70%); }
.profile-cover::after { content: "マイページ"; position: absolute; right: 18px; top: 12px; font-family: var(--jp); font-size: 34px; font-weight: 900; color: rgba(255, 255, 255, .06); letter-spacing: .08em; }
.profile-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.profile-cover-top { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px; }
.profile-cover-actions { display: flex; gap: 6px; }
.profile-body { position: relative; z-index: 2; padding: 0 16px 14px; display: flex; align-items: flex-end; gap: 12px; margin-top: -26px; }
.profile-avatar { position: relative; flex: 0 0 auto; }
.profile-avatar .avatar { width: 78px; height: 78px; font-size: 24px; border: 3px solid #12121d; box-shadow: 0 10px 26px rgba(0, 0, 0, .4); }
.profile-avatar .level-orb { position: absolute; right: -2px; bottom: 0; }
.profile-info { flex: 1; min-width: 0; padding-bottom: 3px; }
.profile-name { font-size: 21px; font-weight: 900; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.profile-sign { color: var(--muted); font-size: 11.5px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.profile-tags .chip { padding: 2px 7px; font-size: 9.5px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 12px 16px 15px; position: relative; z-index: 2; }
.profile-stat { text-align: center; }
.profile-stat strong { display: block; font-size: 18px; font-weight: 900; }
.profile-stat span { color: var(--muted); font-size: 10px; }
.profile-tabs { display: flex; gap: 2px; margin: 14px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tabs a { flex: 0 0 auto; padding: 9px 14px 10px; color: var(--muted); font-size: 12.5px; font-weight: 700; border-bottom: 2px solid transparent; }
.profile-tabs a.is-active { color: var(--pink-2); border-bottom-color: var(--pink); }
.profile-tabs span { color: var(--muted-2); font-weight: 400; margin-left: 3px; }
.profile-content { display: grid; gap: 10px; }
.profile-content .feed-card { border-radius: 15px; }

.my-list { display: grid; gap: 9px; }
.my-item { padding: 14px 15px; border-radius: 15px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(28, 28, 42, .9), rgba(16, 16, 24, .96)); }
.my-item-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.my-item-title { flex: 1; min-width: 150px; font-size: 14px; font-weight: 700; color: var(--text); }
.my-item-title:hover { color: var(--pink-2); }
.my-item-sub { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 5px; color: var(--muted-2); font-size: 10.5px; }
.my-item-actions { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.my-item-actions a, .my-item-actions button { border: 0; background: none; color: var(--muted); font-size: 11px; padding: 5px 7px; border-radius: 7px; }
.my-item-actions a:hover { color: var(--pink-2); background: rgba(255, 77, 125, .08); }
.my-item-actions .danger { color: #ff8b8b; }
.status-row { display: inline-flex; gap: 5px; align-items: center; }
.my-empty { padding: 30px 16px; text-align: center; color: var(--muted); font-size: 12.5px; border: 1px dashed var(--line-2); border-radius: 15px; }
.profile-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.profile-side { text-align: center; }
.profile-side .avatar { width: 92px; height: 92px; font-size: 26px; margin: 0 auto 12px; }
.profile-side h2 { font-size: 18px; }
.profile-side p { color: var(--muted); font-size: 12px; }
.side-meta { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; text-align: left; font-size: 12px; }
.side-meta div { display: flex; justify-content: space-between; gap: 10px; }
.side-meta span:first-child { color: var(--muted); }
.avatar-upload { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatar-upload .avatar { width: 76px; height: 76px; font-size: 22px; }

/* ---------------- 通讯录 ---------------- */

.contact-layout { display: grid; gap: 16px; padding-bottom: 20px; }
.contact-group-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.contact-group-head h2 { font-size: 16px; display: flex; align-items: center; gap: 7px; }
.contact-group-head h2::before { content: ""; width: 4px; height: 16px; border-radius: 3px; background: var(--grad); }
.contact-group-head .count { color: var(--muted-2); font-size: 10px; background: rgba(255, 255, 255, .05); border-radius: 999px; padding: 1px 7px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.contact-item { display: flex; align-items: center; gap: 10px; padding: 13px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(28, 28, 42, .9), rgba(16, 16, 24, .96)); }
.contact-avatar { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 77, 125, .1); color: var(--pink-2); flex: 0 0 auto; }
.contact-body { flex: 1; min-width: 0; }
.contact-name { font-size: 13px; font-weight: 700; }
.contact-phone { display: block; margin-top: 1px; font-size: 12px; color: var(--cyan); font-variant-numeric: tabular-nums; }
.contact-remark { color: var(--muted-2); font-size: 10.5px; margin-top: 1px; }
.contact-copy { border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--muted); border-radius: 8px; padding: 6px; display: grid; place-items: center; }
.contact-copy:hover { color: var(--pink-2); border-color: var(--pink); }
.contact-copy .icon { width: 14px; height: 14px; }
.contact-copy.is-copied { color: var(--green); border-color: rgba(74, 222, 128, .4); }

/* ---------------- 底部 / 导航 / 弹出层 ---------------- */

.app-foot { margin-top: 34px; border-top: 1px solid var(--line); background: rgba(10, 10, 16, .6); padding: 24px 0 20px; }
.foot-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-brand { max-width: 340px; }
.foot-logo { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 900; }
.foot-logo img { border-radius: 9px; }
.foot-brand p { color: var(--muted); font-size: 11.5px; line-height: 1.7; margin-top: 7px; }
.foot-tags { display: flex; gap: 5px; margin-top: 9px; }
.foot-tags span { font-size: 9px; color: var(--muted-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; }
.foot-links { display: flex; gap: 14px; flex-wrap: wrap; align-content: flex-start; }
.foot-links a { color: var(--muted); font-size: 11.5px; }
.foot-links a:hover { color: var(--pink-2); }
.foot-bottom { margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .05); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted-2); font-size: 10px; }
.foot-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.foot-meta a { color: var(--muted-2); }

.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: none; grid-template-columns: repeat(5, 1fr);
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    background: rgba(10, 10, 16, .94);
    border-top: 1px solid rgba(255, 255, 255, .07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .35);
}
.tabbar a, .tab-plus { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 50px; color: var(--muted-2); font-size: 9.5px; font-weight: 600; border: 0; background: none; }
.tab-ico { display: grid; place-items: center; height: 24px; }
.tab-ico .icon { width: 21px; height: 21px; }
.tabbar a.is-active { color: var(--pink-2); }
.tabbar a.is-active .tab-ico { filter: drop-shadow(0 0 8px rgba(255, 77, 125, .45)); }
.tab-plus { position: relative; margin-top: -22px; color: var(--text-2); gap: 0; }
.plus-core { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(255, 77, 125, .42), 0 0 0 5px #0a0a10; }
.plus-core .icon { width: 24px; height: 24px; }
.plus-label { font-size: 9px; margin-top: 2px; }
body.no-tabbar .tabbar { display: none !important; }

.sheet-veil { z-index: 100; }
.action-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
    padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    background: linear-gradient(180deg, #1b1b28, #0d0d14);
    border-top: 1px solid var(--line-2);
    transform: translateY(104%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
    max-width: 560px; margin: 0 auto;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, .5);
}
.action-sheet.is-open { transform: translateY(0); }
.sheet-handle { width: 38px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); margin: 2px auto 12px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sheet-head strong { display: block; font-size: 18px; }
.sheet-head span { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.sheet-head .icon-btn { width: 34px; height: 34px; }
.sheet-grid { display: grid; gap: 9px; margin-top: 15px; }
.sheet-item { display: flex; align-items: center; gap: 11px; padding: 13px; border-radius: 15px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035); color: var(--text); }
.sheet-item:hover { color: var(--text); border-color: var(--line-2); }
.sheet-item > span:nth-child(2) { flex: 1; }
.sheet-item strong { display: block; font-size: 14px; }
.sheet-item small { display: block; color: var(--muted); font-size: 10.5px; margin-top: 1px; }
.sheet-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 77, 125, .12); color: var(--pink-2); }
.sheet-lost .sheet-ico { background: rgba(255, 138, 76, .12); color: var(--orange); }
.sheet-item > .icon:last-child { color: var(--muted-2); width: 15px; height: 15px; }
.sheet-tip { display: flex; align-items: center; gap: 5px; color: var(--muted-2); font-size: 10px; margin-top: 12px; }
.sheet-tip .icon { width: 12px; height: 12px; }

.lightbox { position: fixed; inset: 0; z-index: 130; background: rgba(3, 3, 7, .94); display: none; place-items: center; padding: 18px; backdrop-filter: blur(6px); }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; }
.lightbox-close .icon { width: 19px; height: 19px; }
body.lightbox-open { overflow: hidden; }

/* ---------------- 富文本 / 杂项 ---------------- */

.rich-text { color: var(--text-2); font-size: 13.5px; line-height: 1.9; }
.rich-text p + p { margin-top: 8px; }
.rich-text h2, .rich-text h3 { margin: 15px 0 6px; font-size: 16px; color: var(--text); }
.rich-text ul, .rich-text ol { padding-left: 20px; margin: 8px 0; }
.rich-text img { border-radius: 10px; margin: 8px 0; height: auto; }
.rich-text a { text-decoration: underline; text-underline-offset: 3px; }
.rich-text blockquote { margin: 10px 0; padding: 9px 13px; border-left: 3px solid var(--pink); background: rgba(255, 77, 125, .06); border-radius: 0 8px 8px 0; }
.rich-text code { background: rgba(255, 255, 255, .06); padding: 1px 5px; border-radius: 5px; font-size: .92em; }

.muted { color: var(--muted); }
.small { font-size: 11px; }
.text-danger { color: #ff8b8b; }
.text-success { color: var(--green); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-16 { margin-bottom: 16px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hide { display: none !important; }
.text-gradient { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

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

@media (min-width: 761px) {
    .tabbar { display: none; }
    .head-menu { display: none; }
    body.has-tabbar { padding-bottom: 0; }
    .search-layer { padding-top: 22px; }
}

@media (max-width: 980px) {
    .home-grid { grid-template-columns: minmax(0, 1fr); }
    .home-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-grid { grid-template-columns: minmax(0, 1fr); }
    .profile-side { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 14px; text-align: left; }
    .profile-side .avatar { margin: 0; grid-row: span 2; width: 72px; height: 72px; }
    .profile-side h2 { grid-column: 2; margin: 0; font-size: 18px; }
    .profile-side p { grid-column: 2; margin: 0; }
    .profile-side .side-meta { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 8px; }
}

@media (max-width: 760px) {
    .wrap, .narrow { width: calc(100% - 24px); }
    .head-wrap { width: calc(100% - 20px); min-height: 58px; gap: 8px; }
    .head-menu { display: grid; width: 36px; height: 36px; border-radius: 11px; }
    .head-menu .icon { width: 19px; height: 19px; }
    .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
    .brand-mark .icon { width: 18px; height: 18px; }
    .brand-copy strong { font-size: 16px; }
    .brand-copy small { font-size: 7.5px; letter-spacing: .12em; }
    .desk-nav { display: none; }
    .head-center { display: none; }
    .head-actions { gap: 6px; }
    .head-actions .icon-btn { width: 36px; height: 36px; border-radius: 11px; }
    .head-actions .icon-btn .icon { width: 18px; height: 18px; }
    .head-login { padding: 7px 12px; font-size: 12px; }
    .tabbar { display: grid; }
    body.has-tabbar { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }

    .hero { padding-top: 12px; }
    .hero-inner { grid-template-columns: minmax(0, 1fr) 116px; min-height: 186px; padding: 20px 16px; border-radius: 22px; }
    .hero h1 { font-size: 27px; }
    .hero-desc { font-size: 11.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .hero-actions { margin-top: 12px; }
    .hero-actions .btn { padding: 8px 12px; font-size: 11.5px; }
    .hero-actions .btn:last-child { display: none; }
    .hero-stats { gap: 13px; margin-top: 13px; }
    .hero-stat strong { font-size: 16px; }
    .hero-stat span { font-size: 9px; }
    .hero-art img { width: 116px; }
    .hero-sticker { display: none; }
    .hero-art::before { width: 90px; height: 90px; }
    .hero-inner::before { font-size: 54px; right: 44px; top: -8px; }

    .home-wrap { padding-top: 12px; }
    .notice-card { padding: 11px 12px; border-radius: 14px; }
    .notice-icon { width: 30px; height: 30px; border-radius: 9px; }
    .notice-title { font-size: 13px; }
    .notice-text { font-size: 11px; -webkit-line-clamp: 1; }
    .quick-row { gap: 6px; margin-top: 10px; }
    .quick-item { padding: 10px 4px; border-radius: 13px; font-size: 10.5px; gap: 5px; }
    .quick-icon { width: 34px; height: 34px; border-radius: 10px; }
    .quick-icon .icon { width: 18px; height: 18px; }
    .home-side { grid-template-columns: minmax(0, 1fr); }

    .feed-card, .post-card { padding: 13px; border-radius: 16px; }
    .feed-title, .post-title { font-size: 15px; }
    .feed-excerpt, .post-excerpt { font-size: 12px; }
    .feed-images { gap: 4px; margin-top: 8px; }
    .feed-actions { gap: 13px; margin-top: 9px; }
    .feed-head { margin-bottom: 8px; }
    .feed-cate { font-size: 9.5px; }
    .avatar { width: 36px; height: 36px; }
    .avatar-sm { width: 30px; height: 30px; }
    .avatar-lg { width: 58px; height: 58px; }

    .section-head { margin: 18px 0 9px; }
    .section-head h2 { font-size: 16px; }

    .page-head { padding: 16px 0 10px; }
    .page-head h1 { font-size: 23px; }
    .page-head p { font-size: 11.5px; }
    .page-head-actions { width: 100%; }
    .page-head-actions .btn { flex: 1; }
    .toolbar { padding: 10px; border-radius: 14px; }
    .toolbar-search input { font-size: 12.5px; padding: 8px 10px 8px 32px; }

    .thread-card, .comments-card, .form-card { padding: 16px; border-radius: 18px; }
    .thread-gallery { grid-template-columns: repeat(3, 1fr); gap: 5px; }
    .thread-body { font-size: 13.5px; }
    .thread-foot { gap: 8px; }
    .thread-foot .btn { padding: 8px 12px; font-size: 12px; }
    .comment { padding: 12px 0; }
    .comment-text { font-size: 12.5px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-actions .btn { flex: 1; }
    .form-head h1 { font-size: 21px; }

    .auth-wrap { min-height: calc(100vh - 58px); padding: 18px 14px 36px; }
    .auth-card { padding: 22px 18px; border-radius: 21px; }
    .auth-mascot { width: 88px; height: 88px; }
    .auth-head h1 { font-size: 21px; }

    .profile-cover { border-radius: 20px; min-height: 148px; }
    .profile-cover::after { font-size: 24px; }
    .profile-body { padding: 0 13px 12px; gap: 10px; margin-top: -20px; }
    .profile-avatar .avatar { width: 66px; height: 66px; font-size: 20px; border-width: 2px; }
    .profile-name { font-size: 18px; }
    .profile-sign { font-size: 10.5px; }
    .profile-stats { padding: 9px 12px 12px; }
    .profile-stat strong { font-size: 16px; }
    .profile-tabs { margin: 10px 0; }
    .profile-tabs a { padding: 8px 11px; font-size: 12px; }
    .my-item { padding: 12px 13px; border-radius: 14px; }
    .my-item-actions { width: 100%; margin-left: 0; padding-top: 2px; }
    .my-item-actions a, .my-item-actions button { background: rgba(255, 255, 255, .04); padding: 6px 10px; }

    .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .contact-item { padding: 11px 12px; }
    .discover-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .discover-card { padding: 11px; border-radius: 13px; }
    .discover-ico { width: 36px; height: 36px; border-radius: 11px; }
    .discover-card strong { font-size: 12px; }
    .discover-card small { font-size: 9.5px; }
    .stat-grid { gap: 5px; }
    .stat-box { padding: 10px 6px; }
    .stat-box strong { font-size: 16px; }
    .stat-box span { font-size: 9px; }

    .circle-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .circle-card { padding: 13px; border-radius: 15px; }
    .circle-ico { width: 40px; height: 40px; border-radius: 12px; font-size: 16px; }
    .circle-desc { min-height: 0; -webkit-line-clamp: 1; }
    .circle-section { margin-top: 16px; }

    .app-foot { margin-top: 24px; padding: 18px 0 16px; }
    .foot-grid { flex-direction: column; gap: 14px; }
    .foot-bottom { flex-direction: column; gap: 6px; }
    .foot-links { gap: 12px; }

    .search-layer { padding-top: 14px; }
    .search-bar { padding: 6px 6px 6px 11px; }
    .search-submit { padding: 7px 11px; }
    .search-cancel { padding: 7px 2px; }
    .flash-stack { top: 66px; }
    .toast { font-size: 12px; padding: 9px 10px; }

    .action-sheet { border-radius: 22px 22px 0 0; }
    .pagination a, .pagination span { min-width: 30px; height: 30px; padding: 0 7px; font-size: 11px; }
}

@media (max-width: 380px) {
    .brand-copy small { display: none; }
    .hero-inner { grid-template-columns: minmax(0, 1fr) 96px; }
    .hero-art img { width: 96px; }
    .hero h1 { font-size: 24px; }
    .quick-item { font-size: 10px; }
    .tabbar a, .tab-plus { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.fab { display: none !important; }
.no-tabbar .app-foot { display: none; }
.app-head.is-scrolled { background: rgba(9, 9, 14, .94); }

@media (max-width: 760px) {
    .app-foot { display: none; }
    body.no-tabbar .head-login { display: none; }
}

input[type="file"] { color: var(--muted); font-size: 12px; }
input[type="file"]::file-selector-button { background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text-2); border-radius: 8px; padding: 7px 10px; margin-right: 8px; cursor: pointer; font-size: 12px; }
input[type="file"]::file-selector-button:hover { border-color: var(--pink); color: var(--pink-2); }

@media (max-width: 420px) {
    .hero-inner { grid-template-columns: minmax(0, 1fr) 92px; padding: 18px 13px; }
    .hero h1 { font-size: 22px; }
    .hero-desc { font-size: 11px; }
    .hero-kicker { font-size: 9.5px; padding: 3px 8px; }
    .hero-art img { width: 92px; }
    .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
    .hero-stat strong { font-size: 16px; }
    .hero-stat span { font-size: 9px; }
}


@media (min-width: 361px) and (max-width: 430px) {
    .hero-art img { width: 106px; }
    .hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .hero-stat strong { font-size: 17px; }
    .hero-stat span { font-size: 9px; }
}

.no-tabbar .head-login { display: none; }

.form-note .mt-8 { display: flex; flex-wrap: wrap; gap: 6px; }
