/* =========================================================
   校园帮 · 校内互助跑腿平台
   ========================================================= */
:root {
    --brand: #0f766e;
    --brand-2: #14b8a6;
    --brand-dark: #0b3f3a;
    --accent: #f59e0b;
    --ink: #102a27;
    --ink-2: #1f3d38;
    --muted: #64748b;
    --muted-2: #94a3b8;
    --bg: #f4f8f7;
    --surface: #ffffff;
    --line: #e2ece9;
    --soft: #edf7f4;
    --danger: #dc2626;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 12px 32px rgba(15, 118, 110, .08);
    --shadow-lg: 0 24px 60px rgba(11, 63, 58, .14);
    --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(900px 500px at 8% -10%, rgba(20, 184, 166, .10), transparent 70%),
        radial-gradient(760px 460px at 98% 4%, rgba(245, 158, 11, .07), transparent 70%);
    background-repeat: no-repeat;
}

::selection { background: rgba(20, 184, 166, .22); }

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.3; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 38px; }
h2 { font-size: 28px; }
h3 { font-size: 19px; }
p { margin: 0 0 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.icon { flex: none; vertical-align: -3px; }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.star-filled { color: var(--accent); }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.4;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 118, 110, .22);
}
.btn-primary:hover { color: #fff; box-shadow: 0 14px 30px rgba(15, 118, 110, .3); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #cfe0db; color: var(--brand); box-shadow: 0 8px 18px rgba(15, 118, 110, .08); }
.btn-outline { border-color: #c9ded8; color: var(--brand); background: rgba(255, 255, 255, .65); }
.btn-outline:hover { background: var(--soft); }
.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn-danger:hover { background: #fecaca; color: #991b1b; }
.btn-sm { padding: 8px 15px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { box-shadow: none; }
.link-subtle {
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 0;
    padding: 4px 0;
    font-family: inherit;
    cursor: pointer;
}
.link-subtle:hover { color: var(--brand); }

/* ---------- 头部 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(226, 236, 233, .8);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: linear-gradient(140deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff; font-size: 19px; font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 118, 110, .3);
    letter-spacing: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 18px; letter-spacing: .02em; }
.brand-text em { font-style: normal; font-size: 11px; color: var(--muted-2); letter-spacing: .08em; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
    padding: 8px 13px;
    border-radius: 9px;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 500;
    transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: var(--brand); background: var(--soft); }
.nav-link.is-active { color: var(--brand); background: var(--soft); font-weight: 700; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.logout-form { margin: 0; display: inline-flex; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 600; }
.user-chip-name { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip:hover { color: var(--brand); }
.nav-toggle {
    display: none;
    margin-left: auto;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    width: 42px; height: 42px;
    border-radius: 11px;
    align-items: center; justify-content: center;
    cursor: pointer;
}
.mobile-menu {
    border-bottom: 1px solid var(--line);
    background: #fff;
    padding: 10px 0 18px;
    box-shadow: 0 18px 30px rgba(11, 63, 58, .08);
}
.mobile-menu[hidden] { display: none; }
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a { padding: 11px 10px; border-radius: 10px; color: var(--ink-2); font-weight: 500; }
.mobile-nav a.is-active { background: var(--soft); color: var(--brand); font-weight: 700; }
.mobile-auth { display: flex; gap: 10px; align-items: center; padding: 12px 10px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.mobile-auth form { margin: 0; }

/* ---------- 提示 ---------- */
.flash-stack {
    position: fixed;
    top: 82px;
    right: 24px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(360px, calc(100vw - 48px));
}
.flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 13px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    font-size: 13.5px;
    color: var(--ink-2);
    animation: flashIn .3s ease both;
}
.flash .icon { margin-top: 2px; }
.flash span { flex: 1; }
.flash-success { border-color: #b7e4d5; background: #f2fbf7; color: #0f6b57; }
.flash-error { border-color: #fecaca; background: #fff5f5; color: #b91c1c; }
.flash-info { border-color: #bfdbfe; background: #f5f9ff; color: #1d4ed8; }
.flash-close {
    border: 0; background: none; color: currentColor; opacity: .55;
    cursor: pointer; padding: 2px; display: grid; place-items: center;
}
.flash-close:hover { opacity: 1; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 68px 0 54px; overflow: hidden; }
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(520px 360px at 82% 18%, rgba(20, 184, 166, .14), transparent 68%),
        radial-gradient(460px 320px at 12% 78%, rgba(245, 158, 11, .10), transparent 68%);
    pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; gap: 52px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 13px; border-radius: 100px;
    background: rgba(15, 118, 110, .09);
    color: var(--brand-dark);
    font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
    margin-bottom: 18px;
}
.eyebrow .dot-live { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .16); }
.hero h1 { font-size: 48px; line-height: 1.18; letter-spacing: -.03em; margin-bottom: 18px; }
.hero h1 .highlight {
    background: linear-gradient(120deg, var(--brand) 0%, #0d9488 45%, #f59e0b 110%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 16px; color: var(--muted); max-width: 520px; margin-bottom: 26px; }
.hero-search {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--line);
    border-radius: 16px; padding: 7px 7px 7px 16px;
    box-shadow: 0 16px 40px rgba(15, 118, 110, .10);
    max-width: 540px;
}
.hero-search .icon { color: var(--muted-2); }
.hero-search input {
    flex: 1; border: 0; outline: 0; font-family: inherit; font-size: 14.5px;
    background: transparent; color: var(--ink); min-width: 0; padding: 8px 0;
}
.hero-search input::placeholder { color: var(--muted-2); }
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 12.5px; color: var(--muted-2); }
.hero-tags a {
    padding: 5px 11px; border-radius: 100px; background: rgba(255, 255, 255, .8);
    border: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px; font-weight: 500;
}
.hero-tags a:hover { border-color: #bfe3da; color: var(--brand); background: #fff; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 34px; }
.hero-stat strong { display: block; font-size: 26px; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; }
.hero-stat span { font-size: 12.5px; color: var(--muted); }
.hero-stat + .hero-stat { padding-left: 26px; border-left: 1px solid rgba(15, 118, 110, .13); }

.hero-panel {
    position: relative;
    background: linear-gradient(165deg, #ffffff 0%, #f7fcfb 100%);
    border: 1px solid rgba(226, 236, 233, .9);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 22px;
}
.hero-panel::after {
    content: "";
    position: absolute; inset: auto -1px -1px auto;
    width: 120px; height: 120px;
    background: radial-gradient(circle at bottom right, rgba(20, 184, 166, .18), transparent 70%);
    border-radius: 24px;
    pointer-events: none;
}
.hero-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hero-panel-head h3 { font-size: 15px; margin: 0; display: flex; align-items: center; gap: 8px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; position: relative; }
.pulse-dot::after {
    content: ""; position: absolute; inset: -5px; border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, .35); animation: pulse 1.8s ease infinite;
}
@keyframes pulse { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.hero-panel-head span { font-size: 12px; color: var(--muted-2); }
.mini-task {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; border-radius: 14px;
    background: #fff; border: 1px solid var(--line);
    margin-bottom: 10px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mini-task:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 118, 110, .1); border-color: #cfe8e1; color: inherit; }
.mini-task .cat-tile { width: 38px; height: 38px; border-radius: 11px; }
.mini-task-body { flex: 1; min-width: 0; }
.mini-task-body strong { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-task-body span { font-size: 11.5px; color: var(--muted-2); }
.mini-reward { font-size: 14px; font-weight: 700; color: var(--brand); flex: none; }
.hero-panel-foot {
    margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line);
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12.5px; color: var(--muted);
}
.hero-panel-foot a { font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- 区块 ---------- */
.section { padding: 54px 0; }
.section-tint { background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(237, 247, 244, .55)); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head-center { flex-direction: column; align-items: center; text-align: center; }
.section-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; color: var(--brand); text-transform: uppercase; margin-bottom: 8px; }
.section-title { font-size: 30px; margin-bottom: 6px; }
.section-sub { color: var(--muted); font-size: 14px; margin: 0; }
.link-more { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; flex: none; }

/* ---------- 分类 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card {
    display: flex; flex-direction: column; gap: 10px;
    padding: 20px 18px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--ink);
    position: relative; overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe8e1; color: var(--ink); }
.cat-card .cat-tile { width: 48px; height: 48px; border-radius: 14px; }
.cat-card strong { font-size: 16px; }
.cat-card p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.cat-card .cat-arrow {
    position: absolute; right: 16px; bottom: 18px; color: var(--muted-2);
    transition: transform .2s ease, color .2s ease;
}
.cat-card:hover .cat-arrow { transform: translateX(4px); color: var(--brand); }
.cat-tile {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border-radius: 13px; flex: none;
}
.cat-teal { background: #e5f6f1; color: #0f766e; }
.cat-amber { background: #fff3dd; color: #b45309; }
.cat-violet { background: #f0edff; color: #6d28d9; }
.cat-rose { background: #ffe9ee; color: #be123c; }
.cat-slate { background: #edf2f7; color: #475569; }

/* ---------- 任务卡片 ---------- */
.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.task-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 20px 16px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.task-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cde6df; }
.task-link { color: inherit; display: block; flex: 1; }
.task-link:hover { color: inherit; }
.task-top { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; flex-wrap: wrap; }
.task-top .cat-tile { width: 36px; height: 36px; border-radius: 10px; }
.cat-name { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.task-reward { margin-left: auto; font-size: 16px; font-weight: 800; color: var(--brand); letter-spacing: -.01em; }
.task-title {
    font-size: 17px; line-height: 1.45; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.task-desc {
    color: var(--muted); font-size: 13.5px; margin-bottom: 16px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.task-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--muted); margin-bottom: 15px; }
.task-meta span { display: inline-flex; align-items: center; gap: 5px; }
.task-meta .is-expired { color: #b91c1c; }
.task-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 13px; border-top: 1px dashed var(--line);
    font-size: 12.5px; color: var(--muted);
}
.task-user { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.task-user .dot { color: var(--muted-2); }
.task-more { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; flex: none; }

.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: 100px;
    font-size: 11.5px; font-weight: 600; line-height: 1.5;
    white-space: nowrap;
}
.st-open { background: #e5f7ef; color: #047857; }
.st-accepted { background: #e8f0fe; color: #1d4ed8; }
.st-submitted { background: #fff4dd; color: #b45309; }
.st-completed { background: #eef2f7; color: #475569; }
.st-reviewed { background: #f3e8ff; color: #7e22ce; }
.st-review { background: #fff4dd; color: #b45309; }
.st-cancelled { background: #f1f5f9; color: #94a3b8; }
.st-blocked { background: #fee2e2; color: #b91c1c; }

/* ---------- 空状态 ---------- */
.empty-state {
    text-align: center; padding: 54px 24px;
    background: #fff; border: 1px dashed #d4e5e0; border-radius: var(--radius);
}
.empty-state .empty-icon { color: #9ecdc3; margin-bottom: 14px; }
.empty-state h2, .empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 460px; margin: 0 auto 18px; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; position: relative; overflow: hidden;
}
.step-num {
    font-size: 42px; font-weight: 800; line-height: 1; letter-spacing: -.04em;
    color: rgba(15, 118, 110, .12); position: absolute; top: 18px; right: 22px;
}
.step-card .cat-tile { width: 44px; height: 44px; margin-bottom: 16px; }
.step-card h3 { font-size: 17px; margin-bottom: 6px; }
.step-card p { color: var(--muted); font-size: 13.5px; margin: 0; }
.step-arrow { color: var(--muted-2); align-self: center; justify-self: center; display: none; }

/* ---------- 信任 ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust-card {
    background: linear-gradient(160deg, #fff, #fbfefd);
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px;
}
.trust-card .cat-tile { width: 42px; height: 42px; margin-bottom: 14px; }
.trust-card h3 { font-size: 16px; margin-bottom: 6px; }
.trust-card p { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- CTA ---------- */
.cta-band {
    position: relative; overflow: hidden;
    background: linear-gradient(130deg, #0b3f3a 0%, #0f766e 55%, #0d9488 100%);
    border-radius: 24px;
    padding: 40px 44px;
    color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    box-shadow: 0 24px 60px rgba(11, 63, 58, .24);
}
.cta-band::before {
    content: "";
    position: absolute; width: 340px; height: 340px; right: -80px; top: -140px;
    border-radius: 50%; background: rgba(255, 255, 255, .08);
}
.cta-band::after {
    content: "";
    position: absolute; width: 200px; height: 200px; right: 120px; bottom: -120px;
    border-radius: 50%; background: rgba(245, 158, 11, .18);
}
.cta-band h2 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.cta-band p { color: rgba(255, 255, 255, .76); margin: 0; font-size: 14px; }
.cta-band .btn { position: relative; z-index: 1; }
.cta-band .btn-light { background: #fff; color: var(--brand-dark); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.cta-band .btn-light:hover { color: var(--brand-dark); }

/* ---------- 页脚 ---------- */
.site-footer {
    margin-top: 56px;
    background: #0b2925;
    color: rgba(255, 255, 255, .7);
    padding: 48px 0 24px;
    font-size: 13px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 30px; }
.footer-brand p { color: rgba(255, 255, 255, .58); max-width: 320px; margin-top: 14px; }
.footer-domain { font-size: 12px; color: rgba(255, 255, 255, .35) !important; letter-spacing: .06em; }
.brand-light { color: #fff; }
.brand-light:hover { color: #fff; }
.brand-light .brand-text em { color: rgba(255, 255, 255, .45); }
.footer-col { display: flex; flex-direction: column; gap: 7px; }
.footer-col h3 { font-size: 13px; color: #fff; margin-bottom: 8px; letter-spacing: .05em; }
.footer-col a { color: rgba(255, 255, 255, .62); font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-note p { color: rgba(255, 255, 255, .5); font-size: 12.5px; line-height: 1.7; margin: 0; }
.footer-bottom {
    margin-top: 34px; padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    color: rgba(255, 255, 255, .34); font-size: 11.5px;
}

/* ---------- 页面标题 ---------- */
.page-hero { padding: 48px 0 8px; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted-2); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb .sep { color: #cbd5e1; }
.page-hero h1 { font-size: 34px; margin-bottom: 8px; }
.page-hero .page-sub { color: var(--muted); max-width: 640px; margin: 0; }

/* ---------- 筛选 ---------- */
.filter-bar {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px; margin-bottom: 24px;
    display: flex; flex-direction: column; gap: 14px;
}
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 15px; border-radius: 100px;
    border: 1px solid var(--line); background: #fff; color: var(--ink-2);
    font-size: 13px; font-weight: 500; white-space: nowrap;
    transition: all .15s ease;
}
.chip:hover { border-color: #bfe3da; color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(15, 118, 110, .22); }
.chip.is-active:hover { color: #fff; }
.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-box {
    display: flex; align-items: center; gap: 8px;
    flex: 1; min-width: 220px;
    background: #f7faf9; border: 1px solid var(--line); border-radius: 12px;
    padding: 4px 5px 4px 13px;
}
.search-box .icon { color: var(--muted-2); }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 14px; padding: 8px 0; min-width: 0; }
.search-box .btn { padding: 7px 15px; font-size: 13px; }
.select, .input, .textarea {
    width: 100%; font-family: inherit; font-size: 14px; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 12px 14px; outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.select { width: auto; min-width: 140px; padding-right: 34px; }
.input:focus, .textarea:focus, .select:focus { border-color: #5fc2b0; box-shadow: 0 0 0 4px rgba(20, 184, 166, .12); }
.textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
.result-count { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.result-count strong { color: var(--ink); }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; gap: 7px; margin-top: 34px; flex-wrap: wrap; }
.page-btn {
    min-width: 38px; height: 38px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 10px; background: #fff;
    color: var(--ink-2); font-size: 13px; font-weight: 500;
}
.page-btn:hover { border-color: #bfe3da; color: var(--brand); }
.page-btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-btn.is-active:hover { color: #fff; }
.page-gap { color: var(--muted-2); padding: 0 4px; align-self: center; }

/* ---------- 任务详情 ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 22px; align-items: start; }
.detail-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.detail-head { display: flex; align-items: flex-start; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 22px; }
.detail-head .cat-tile { width: 52px; height: 52px; border-radius: 15px; }
.detail-title-wrap { flex: 1; min-width: 0; }
.detail-head h1 { font-size: 25px; margin-bottom: 8px; line-height: 1.4; overflow-wrap: anywhere; }
.detail-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--muted); }
.detail-reward { flex: none; text-align: right; }
.detail-reward strong { display: block; font-size: 25px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; line-height: 1.2; }
.detail-reward span { font-size: 11.5px; color: var(--muted-2); }
.detail-desc { font-size: 14.5px; line-height: 1.9; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; margin-bottom: 24px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.info-item { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; background: #f8fbfa; border-radius: 12px; border: 1px solid #edf4f2; }
.info-item .icon { color: var(--brand); margin-top: 2px; }
.info-item small { display: block; font-size: 11.5px; color: var(--muted-2); margin-bottom: 1px; }
.info-item span { font-size: 13.5px; color: var(--ink-2); font-weight: 500; overflow-wrap: anywhere; }
.info-item-wide { grid-column: 1 / -1; }
.publisher-box { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); margin-top: 18px; }
.publisher-box .publisher-meta { flex: 1; min-width: 0; }
.publisher-box strong { display: block; font-size: 14px; }
.publisher-box small { color: var(--muted-2); font-size: 12px; }
.contact-box {
    margin-top: 18px; padding: 15px 18px; border-radius: 13px;
    background: #f0faf6; border: 1px dashed #b9e2d5;
    font-size: 13.5px; color: #0f6b57;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.contact-box .contact-value { font-size: 16px; font-weight: 700; letter-spacing: .02em; overflow-wrap: anywhere; }
.contact-box .copy-btn { margin-left: auto; border: 1px solid #b9e2d5; background: #fff; color: var(--brand); padding: 5px 10px; border-radius: 8px; font-size: 12px; cursor: pointer; font-family: inherit; }
.contact-restricted { margin-top: 18px; padding: 13px 16px; border-radius: 12px; background: #f7faf9; border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }

.detail-side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 16px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-card h3 { font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.side-actions { display: flex; flex-direction: column; gap: 10px; }
.side-note { font-size: 12px; color: var(--muted-2); text-align: center; margin: 4px 0 0; }
.side-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.side-list { display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; color: var(--muted); }
.side-list div { display: flex; gap: 8px; align-items: flex-start; }
.side-list .icon { color: var(--brand); margin-top: 2px; }
.rule-mini { font-size: 12.5px; color: var(--muted); line-height: 1.75; margin: 0; }

.report-box { margin-top: 18px; }
.report-box summary { cursor: pointer; font-size: 12.5px; color: var(--muted); list-style: none; display: inline-flex; align-items: center; gap: 5px; }
.report-box summary::-webkit-details-marker { display: none; }
.report-box[open] summary { color: var(--brand); }
.report-form { margin-top: 12px; padding: 14px; background: #fff7f7; border: 1px solid #fde2e2; border-radius: 12px; }
.report-form .select, .report-form .textarea { background: #fff; }
.report-form .textarea { min-height: 80px; margin-top: 8px; }
.report-form .btn { margin-top: 10px; }

.review-box { margin-top: 18px; padding: 16px 18px; border-radius: 13px; background: #fffbeb; border: 1px solid #fde8b5; }
.review-box h4 { margin: 0 0 8px; font-size: 13px; color: #92400e; display: flex; align-items: center; gap: 6px; }
.review-box p { margin: 6px 0 0; font-size: 13px; color: #78350f; }

/* ---------- 表单 ---------- */
.form-page { padding: 28px 0 20px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.form-head { margin-bottom: 26px; }
.form-head h1 { font-size: 28px; margin-bottom: 6px; }
.form-head p { color: var(--muted); font-size: 13.5px; margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.form-field label .req { color: var(--danger); }
.form-field .hint { font-size: 11.5px; color: var(--muted-2); line-height: 1.5; }
.form-field .error { font-size: 12px; color: var(--danger); }

.code-row { display: flex; gap: 10px; align-items: stretch; }
.code-row .input { flex: 1 1 auto; min-width: 0; }
.code-btn { flex: none; white-space: nowrap; }
.code-message.ok { color: var(--brand); }
.code-message.bad { color: var(--danger); }
.field-counter { font-size: 11px; color: var(--muted-2); text-align: right; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.checkbox-row input[type="checkbox"] { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.form-actions .btn-primary { min-width: 150px; }
.form-error-box {
    background: #fff5f5; border: 1px solid #fecaca; color: #b91c1c;
    padding: 12px 15px; border-radius: 11px; font-size: 13px; margin-bottom: 20px;
    display: flex; align-items: flex-start; gap: 8px;
}
.form-error-box ul { margin: 0; padding-left: 18px; }
.form-error-box li { margin: 2px 0; }

.category-picker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.category-option { position: relative; }
.category-option input { position: absolute; opacity: 0; pointer-events: none; }
.category-option span {
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    padding: 14px 8px; border: 1px solid var(--line); border-radius: 13px;
    background: #fff; cursor: pointer; font-size: 12.5px; font-weight: 500; color: var(--ink-2);
    transition: all .16s ease; text-align: center;
}
.category-option span .cat-tile { width: 36px; height: 36px; border-radius: 10px; }
.category-option input:checked + span { border-color: var(--brand); background: #f0faf6; box-shadow: 0 0 0 3px rgba(20, 184, 166, .12); color: var(--brand); font-weight: 700; }
.category-option input:focus-visible + span { outline: 2px solid #5fc2b0; outline-offset: 2px; }

/* ---------- 登录注册 ---------- */
.auth-page { padding: 48px 0 24px; }
.auth-card {
    display: grid; grid-template-columns: .9fr 1.1fr;
    background: #fff; border: 1px solid var(--line); border-radius: 26px;
    overflow: hidden; box-shadow: var(--shadow-lg); max-width: 940px; margin: 0 auto;
}
.auth-aside {
    position: relative; overflow: hidden;
    background: linear-gradient(145deg, #0b3f3a 0%, #0f766e 58%, #0d9488 100%);
    color: #fff; padding: 44px 38px;
    display: flex; flex-direction: column; justify-content: center;
}
.auth-aside::before {
    content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%;
    background: rgba(255, 255, 255, .07); right: -80px; top: -60px;
}
.auth-aside::after {
    content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%;
    background: rgba(245, 158, 11, .16); left: -60px; bottom: -70px;
}
.auth-aside .brand-mark { background: rgba(255, 255, 255, .16); box-shadow: none; backdrop-filter: blur(6px); }
.auth-aside .brand-text strong { color: #fff; }
.auth-aside .brand-text em { color: rgba(255, 255, 255, .5); }
.auth-aside h2 { color: #fff; font-size: 26px; margin: 30px 0 12px; line-height: 1.35; }
.auth-aside p { color: rgba(255, 255, 255, .7); font-size: 13.5px; }
.auth-points { display: flex; flex-direction: column; gap: 13px; margin-top: 26px; font-size: 13px; color: rgba(255, 255, 255, .82); }
.auth-points div { display: flex; align-items: flex-start; gap: 9px; }
.auth-points .icon { color: #7ee0cf; margin-top: 2px; }
.auth-form-wrap { padding: 44px 46px; }
.auth-form-wrap h1 { font-size: 26px; margin-bottom: 6px; }
.auth-form-wrap .auth-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-form .form-field label { font-size: 13px; }
.auth-switch { margin-top: 22px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-switch a { font-weight: 600; }
.auth-legal { margin-top: 14px; font-size: 11.5px; color: var(--muted-2); text-align: center; line-height: 1.7; }

/* ---------- 我的任务 ---------- */
.tab-row { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab-link {
    padding: 11px 18px; border-radius: 11px 11px 0 0;
    color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.tab-link:hover { color: var(--brand); }
.tab-link.is-active { color: var(--brand); font-weight: 700; border-bottom-color: var(--brand); background: linear-gradient(180deg, transparent, rgba(20, 184, 166, .07)); }
.my-list { display: flex; flex-direction: column; gap: 12px; }
.my-item {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 15px;
    padding: 16px 18px; transition: border-color .15s ease, box-shadow .15s ease;
}
.my-item:hover { border-color: #cde6df; box-shadow: 0 10px 24px rgba(15, 118, 110, .07); }
.my-item .cat-tile { width: 42px; height: 42px; border-radius: 12px; }
.my-item-main { flex: 1; min-width: 0; }
.my-item-main a.title { display: block; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-item-main a.title:hover { color: var(--brand); }
.my-item-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted-2); margin-top: 5px; }
.my-item-meta span { display: inline-flex; align-items: center; gap: 4px; }
.my-item-side { display: flex; align-items: center; gap: 10px; flex: none; }
.my-item-reward { font-size: 15px; font-weight: 700; color: var(--brand); }
.my-actions { display: flex; gap: 6px; }
.my-actions .btn { padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.my-actions form { margin: 0; }

/* ---------- 个人资料 ---------- */
.profile-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 22px; align-items: start; }
.profile-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.profile-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.avatar {
    display: inline-grid; place-items: center; flex: none;
    width: 46px; height: 46px; border-radius: 50%;
    font-weight: 700; font-size: 18px; color: #fff; letter-spacing: .02em;
    background: #0f766e;
}
.avatar-xl { width: 84px; height: 84px; font-size: 34px; border-radius: 26px; }
.avatar-sm { width: 30px; height: 30px; font-size: 12px; }
.avatar-xs { width: 22px; height: 22px; font-size: 10px; }
.av-0 { background: linear-gradient(140deg, #0f766e, #14b8a6); }
.av-1 { background: linear-gradient(140deg, #4338ca, #818cf8); }
.av-2 { background: linear-gradient(140deg, #b45309, #f59e0b); }
.av-3 { background: linear-gradient(140deg, #be123c, #fb7185); }
.av-4 { background: linear-gradient(140deg, #475569, #94a3b8); }
.av-5 { background: linear-gradient(140deg, #6d28d9, #c084fc); }
.profile-head h1 { font-size: 21px; margin: 0; }
.profile-head .profile-username { color: var(--muted-2); font-size: 12px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-top: 18px; }
.profile-stat { text-align: center; background: #f8fbfa; border-radius: 11px; padding: 10px 6px; }
.profile-stat strong { display: block; font-size: 18px; color: var(--brand); line-height: 1.3; }
.profile-stat span { font-size: 11px; color: var(--muted-2); }
.profile-rating { margin-top: 16px; width: 100%; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; color: var(--muted); }

/* ---------- 规则页 ---------- */
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px; }
.prose h2 { font-size: 22px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 15.5px; margin-top: 20px; }
.prose p, .prose li { font-size: 14px; color: #334155; line-height: 1.9; }
.prose ul { padding-left: 20px; margin: 8px 0 16px; }
.prose li { margin: 5px 0; }
.callout { border-radius: 13px; padding: 16px 18px; margin: 16px 0; font-size: 13.5px; line-height: 1.8; }
.callout-danger { background: #fff5f5; border: 1px solid #fecaca; color: #991b1b; }
.callout-info { background: #f0f9ff; border: 1px solid #bae6fd; color: #075985; }
.callout-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.forbidden-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 18px; }
.forbidden-item { background: #fff7f7; border: 1px solid #fee2e2; border-radius: 10px; padding: 10px 13px; font-size: 13px; color: #7f1d1d; display: flex; align-items: flex-start; gap: 7px; }
.forbidden-item .icon { margin-top: 2px; color: #dc2626; }
.rule-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

/* ---------- 管理后台 ---------- */
body.admin-body { background: #f3f6f8; }
.admin-shell { min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar {
    background: #0b3f3a; color: #fff; padding: 0;
    position: sticky; top: 0; z-index: 40;
    box-shadow: 0 4px 20px rgba(11, 63, 58, .18);
}
.admin-topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 62px; }
.admin-brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 700; flex: none; }
.admin-brand:hover { color: #fff; }
.admin-brand .brand-mark { width: 32px; height: 32px; font-size: 16px; border-radius: 9px; background: rgba(255, 255, 255, .13); box-shadow: none; }
.admin-nav { display: flex; align-items: center; gap: 2px; flex: 1; overflow-x: auto; }
.admin-nav a {
    padding: 7px 12px; border-radius: 8px; font-size: 13px; color: rgba(255, 255, 255, .7); white-space: nowrap;
    display: inline-flex; align-items: center; gap: 6px;
}
.admin-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-nav a.is-active { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; }
.admin-topbar .link-subtle { color: rgba(255, 255, 255, .65); }
.admin-topbar .link-subtle:hover { color: #fff; }
.admin-topbar .logout-form button.link-subtle { color: rgba(255, 255, 255, .65); }
.admin-main { padding: 30px 0 50px; flex: 1; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-head h1 { font-size: 24px; margin: 0; }
.admin-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.stat-card .cat-tile { width: 44px; height: 44px; border-radius: 12px; }
.stat-card strong { display: block; font-size: 24px; line-height: 1.25; color: var(--ink); }
.stat-card span { font-size: 12px; color: var(--muted); }
.stat-card a { font-size: 11.5px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 20px; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-card-head h2 { font-size: 16px; margin: 0; display: flex; align-items: center; gap: 7px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.admin-table th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--muted-2); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fbfdfc; white-space: nowrap; }
.admin-table td { padding: 12px; border-bottom: 1px solid #eef4f2; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: #fbfdfc; }
.admin-table .cell-title { font-weight: 600; color: var(--ink); max-width: 280px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-table .cell-title:hover { color: var(--brand); }
.admin-table .cell-sub { font-size: 11.5px; color: var(--muted-2); }
.admin-table .cell-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.admin-table .cell-actions .btn { padding: 5px 9px; font-size: 11.5px; border-radius: 7px; }
.admin-table form { margin: 0; }
.admin-filter { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.admin-filter .input { width: 220px; padding: 9px 13px; }
.admin-filter .select { padding: 9px 13px; }
.admin-filter .btn { padding: 9px 16px; }
.admin-empty { text-align: center; color: var(--muted); padding: 26px; font-size: 13px; }
.pill { display: inline-flex; padding: 2px 8px; border-radius: 100px; font-size: 11px; font-weight: 600; }
.pill-green { background: #e5f7ef; color: #047857; }
.pill-red { background: #fee2e2; color: #b91c1c; }
.pill-amber { background: #fff4dd; color: #b45309; }
.pill-gray { background: #f1f5f9; color: #64748b; }
.admin-tip { font-size: 12.5px; color: var(--muted); background: #f7faf9; border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; margin-bottom: 18px; display: flex; gap: 8px; align-items: flex-start; }
.admin-tip .icon { color: var(--brand); margin-top: 2px; }
.admin-note { font-size: 11.5px; color: var(--muted-2); max-width: 160px; overflow-wrap: anywhere; }
.admin-note-input { width: 110px; padding: 6px 8px !important; font-size: 11.5px; border-radius: 7px; }

/* ---------- 通用 ---------- */
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.small { font-size: 12.5px; }
.inline-form { display: inline; margin: 0; }
.divider { height: 1px; background: var(--line); margin: 22px 0; border: 0; }
.notice-bar {
    display: flex; align-items: flex-start; gap: 10px;
    background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
    padding: 12px 16px; border-radius: 12px; font-size: 12.5px; margin-bottom: 20px;
}
.notice-bar .icon { margin-top: 2px; }
.notice-bar a { color: #92400e; font-weight: 600; text-decoration: underline; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .hero h1 { font-size: 42px; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .cat-grid .cat-card:nth-child(4), .cat-grid .cat-card:nth-child(5) { grid-column: span 1; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-note { grid-column: 1 / -1; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
    .nav { display: none; }
    .header-actions { display: none; }
    .nav-toggle { display: inline-flex; }
    .hero-grid { grid-template-columns: 1fr; gap: 34px; }
    .hero-panel { max-width: 560px; }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-side { position: static; }
    .profile-grid { grid-template-columns: 1fr; gap: 16px; }
    .auth-card { grid-template-columns: 1fr; max-width: 560px; }
    .auth-aside { padding: 32px 30px; }
    .auth-aside h2 { margin-top: 22px; }
}

@media (max-width: 760px) {
    body { font-size: 14.5px; }
    .container { padding: 0 16px; }
    .hero { padding: 46px 0 40px; }
    .hero h1 { font-size: 34px; }
    .hero-sub { font-size: 14.5px; }
    .hero-stats { gap: 22px; }
    .hero-stat strong { font-size: 22px; }
    .hero-stat + .hero-stat { padding-left: 22px; }
    .section { padding: 40px 0; }
    .section-title { font-size: 24px; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cat-card { padding: 15px; }
    .cat-card .cat-tile { width: 38px; height: 38px; border-radius: 11px; }
    .cat-card strong { font-size: 14.5px; }
    .cat-card p { font-size: 11.5px; }
    .cat-card .cat-arrow { display: none; }
    .task-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .cta-band { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
    .cta-band h2 { font-size: 22px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; }
    .form-card { padding: 22px 18px; border-radius: 18px; }
    .form-grid { grid-template-columns: 1fr; gap: 15px; }
    .category-picker { grid-template-columns: repeat(3, 1fr); }
    .info-grid { grid-template-columns: 1fr; }
    .detail-card { padding: 20px 18px; }
    .detail-head { flex-wrap: wrap; }
    .detail-reward { text-align: left; margin-left: 66px; }
    .detail-head h1 { font-size: 21px; }
    .detail-reward strong { font-size: 22px; }
    .filter-row { flex-direction: column; align-items: stretch; }
    .select { width: 100%; }
    .my-item { flex-wrap: wrap; gap: 12px; align-items: flex-start; }
    .my-item-side { width: 100%; justify-content: space-between; }
    .auth-form-wrap { padding: 28px 22px; }
    .prose { padding: 22px 18px; }
    .forbidden-grid { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .admin-main { padding: 20px 0 40px; }
    .admin-topbar-inner { flex-wrap: wrap; gap: 10px; padding: 8px 0; }
    .admin-brand { width: 100%; }
    .admin-nav { order: 3; width: 100%; padding-bottom: 4px; }
    .admin-topbar .header-actions { display: flex; margin-left: auto; }
    .admin-table .cell-title { max-width: 180px; }
}

@media (max-width: 420px) {
    .hero h1 { font-size: 29px; }
    .hero-search { flex-wrap: wrap; border-radius: 14px; }
    .hero-search input { flex: 1 1 100%; padding-left: 4px; }
    .hero-search .btn { width: 100%; }
    .category-picker { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { flex-wrap: wrap; gap: 14px 22px; }
    .hero-stat + .hero-stat { padding-left: 0; border-left: 0; }
}
