/* ==========================================================================
   会员管理系统 · 样式表
   设计风格：简洁、专业、面向数据管理场景
   ========================================================================== */

:root {
    --ink: #1f2a37;
    --ink-soft: #4b5563;
    --ink-faint: #8a94a6;
    --brand: #1d4ed8;
    --brand-2: #2563eb;
    --brand-deep: #1e3a8a;
    --brand-tint: #eef4ff;
    --coral: #ea580c;
    --bg: #f4f6fa;
    --card: #ffffff;
    --line: #e2e8f0;
    --ok: #0f766e;
    --ok-tint: #e6f4f1;
    --warn: #b45309;
    --warn-tint: #fdf4e3;
    --danger: #b42318;
    --danger-tint: #fdecea;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
    --font: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.65;
}

img {
    max-width: 100%;
}

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

a:hover {
    text-decoration: underline;
}

.icon {
    display: block;
    width: 20px;
    height: 20px;
}

h1, h2, h3, h4 {
    margin: 0 0 .4em;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .2px;
}

p {
    margin: 0 0 .8em;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 22px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    padding: 10px 16px;
    background: var(--card);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    z-index: 100;
}

.skip-link:focus {
    left: 16px;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(220, 235, 241, 0.9);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--brand-2), var(--brand-deep));
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .5px;
    box-shadow: 0 6px 14px rgba(29, 78, 216, 0.22);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 17px;
    letter-spacing: .5px;
}

.brand-text small {
    font-size: 10px;
    letter-spacing: 2.4px;
    color: var(--ink-faint);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
}

.nav-link {
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--ink-soft);
    font-size: 14.5px;
    transition: background .16s ease, color .16s ease;
}

.nav-link:hover {
    background: var(--brand-tint);
    color: var(--brand-deep);
    text-decoration: none;
}

.nav-link.is-active {
    background: var(--brand);
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 12px 5px 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.user-chip:hover {
    text-decoration: none;
    border-color: var(--brand-2);
    box-shadow: var(--shadow-sm);
}

.user-chip-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.user-chip-text strong {
    font-size: 13px;
}

.user-chip-text small {
    font-size: 11px;
    color: var(--ink-faint);
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

/* ---------- 页面主体 ---------- */

.page {
    flex: 1 0 auto;
    padding-top: 30px;
    padding-bottom: 56px;
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.alert {
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 14.5px;
}

.alert-success {
    background: var(--ok-tint);
    border-color: #b6e5d2;
    color: #12634a;
}

.alert-error {
    background: var(--danger-tint);
    border-color: #f3c9c9;
    color: #9c3535;
}

.alert-warning {
    background: var(--warn-tint);
    border-color: #f0dcb4;
    color: #8a5a12;
}

.alert-info {
    background: var(--brand-tint);
    border-color: #bfe6f0;
    color: var(--brand-deep);
}

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

.hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: 32px;
    align-items: center;
    padding: 44px 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 58%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 18px 36px rgba(30, 58, 138, .2);
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 2.4px;
    color: rgba(255, 255, 255, .7);
}

.hero-title {
    font-size: clamp(26px, 3.2vw, 36px);
    margin-bottom: 14px;
    letter-spacing: .5px;
    line-height: 1.3;
}

.hero-sub {
    max-width: 48ch;
    color: rgba(255, 255, 255, .86);
    font-size: 15px;
    margin-bottom: 26px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background: #fff;
    color: var(--brand-deep);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.hero .btn-primary:hover {
    background: #eef2ff;
}

.hero .btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
}

.hero .btn-ghost:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .7);
    color: #fff;
}

.hero-art {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-art svg {
    width: 100%;
    max-width: 360px;
    height: auto;
}

/* ---------- 统计卡片 ---------- */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-top: 26px;
    position: relative;
    z-index: 2;
    padding: 0;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--brand-tint);
    color: var(--brand);
    flex: 0 0 auto;
}

.stat-icon svg {
    width: 21px;
    height: 21px;
}

.stat-icon.coral { background: #fef0e7; color: #c2410c; }
.stat-icon.mint  { background: #e6f4f1; color: #0f766e; }
.stat-icon.danger { background: var(--danger-tint); color: var(--danger); }

.stat-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 12.5px;
    color: var(--ink-faint);
}

/* ---------- 区块 ---------- */

.section {
    margin-top: 44px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.section-title {
    font-size: 21px;
    margin: 0;
}

.section-sub {
    margin: 0;
    color: var(--ink-faint);
    font-size: 13.5px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    padding: 24px 22px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: var(--brand-tint);
    color: var(--brand);
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

.feature-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.feature-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
}

/* ---------- 头像 ---------- */

.avatar {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(145deg, var(--brand-2), var(--brand-deep));
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    overflow: hidden;
    user-select: none;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.avatar-lg {
    width: 106px;
    height: 106px;
    font-size: 40px;
    border-radius: 26px;
    box-shadow: var(--shadow-sm);
}

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

.auth-wrap {
    max-width: 470px;
    margin: 18px auto 0;
}

.auth-card {
    padding: 34px 32px 30px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.auth-head {
    text-align: center;
    margin-bottom: 24px;
}

.auth-head .brand-mark {
    margin: 0 auto 14px;
}

.auth-title {
    font-size: 22px;
    margin-bottom: 4px;
}

.auth-sub {
    margin: 0;
    color: var(--ink-faint);
    font-size: 13.5px;
}

.auth-foot {
    margin: 20px 0 0;
    text-align: center;
    font-size: 13.5px;
    color: var(--ink-soft);
}

/* ---------- 表单 ---------- */

.form {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 6px;
}

.field > label,
.field-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-soft);
}

.field-label .req {
    color: var(--coral);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="search"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fbfdfe;
    color: var(--ink);
    font: inherit;
    font-size: 14.5px;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input[type="file"] {
    padding: 8px 10px;
    background: #fff;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand-2);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(20, 163, 191, .15);
}

textarea {
    resize: vertical;
    min-height: 92px;
}

.hint {
    font-size: 12px;
    color: var(--ink-faint);
}

.field-error {
    font-size: 12.5px;
    color: var(--danger);
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    color: var(--ink-soft);
}

.checkbox input {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--brand);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

/* ---------- 图形验证码 ---------- */

.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-row input {
    flex: 1 1 auto;
    max-width: 150px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.captcha-image {
    flex: 0 0 auto;
    height: 42px;
    width: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.captcha-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--brand);
    font: inherit;
    font-size: 12.5px;
    cursor: pointer;
}

.link-btn:hover {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* ---------- 按钮 ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #eef4f6;
    color: var(--ink);
    font: inherit;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
    white-space: nowrap;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-2), var(--brand-deep));
    color: #fff;
    box-shadow: 0 9px 20px rgba(14, 127, 154, .26);
}

.btn-primary:hover {
    box-shadow: 0 12px 24px rgba(14, 127, 154, .32);
}

.btn-ghost {
    background: #fff;
    border-color: var(--line);
    color: var(--ink-soft);
}

.btn-ghost:hover {
    border-color: var(--brand-2);
    color: var(--brand-deep);
}

.btn-danger {
    background: #fff;
    border-color: #f0c8c8;
    color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger-tint);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

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

.profile-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card-pad {
    padding: 24px 26px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.card-head h2 {
    font-size: 17px;
    margin: 0;
}

.profile-side {
    text-align: center;
    padding: 28px 24px;
}

.profile-side .avatar-lg {
    margin: 0 auto 14px;
}

.profile-side h2 {
    font-size: 18px;
    margin-bottom: 2px;
}

.profile-side .profile-username {
    color: var(--ink-faint);
    font-size: 13px;
    margin-bottom: 16px;
}

.profile-facts {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 16px 0 0;
    border-top: 1px dashed var(--line);
    text-align: left;
    font-size: 13.5px;
}

.profile-facts div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.profile-facts dt {
    color: var(--ink-faint);
}

.profile-facts dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}

.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge-active {
    background: var(--ok-tint);
    color: var(--ok);
}

.badge-disabled {
    background: var(--danger-tint);
    color: var(--danger);
}

.badge-admin {
    background: #fff1e6;
    color: #a45a1c;
}

.badge-member {
    background: var(--brand-tint);
    color: var(--brand-deep);
}

.badge-plain::before {
    display: none;
}

/* ---------- 后台 ---------- */

.admin-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.admin-head h1 {
    font-size: 24px;
    margin: 0 0 4px;
}

.tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 5px;
    margin-bottom: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    width: fit-content;
    max-width: 100%;
}

.tab {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--ink-soft);
}

.tab:hover {
    background: var(--brand-tint);
    text-decoration: none;
}

.tab.is-active {
    background: var(--brand);
    color: #fff;
}

.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 18px;
}

.filter-bar input[type="search"] {
    max-width: 260px;
}

.filter-bar select {
    width: auto;
    min-width: 120px;
}

.filter-bar .spacer {
    flex: 1 1 auto;
}

/* ---------- 表格 ---------- */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-sm);
}

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 720px;
}

table.data th {
    text-align: left;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .4px;
    color: var(--ink-faint);
    background: #f7fbfc;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

table.data td {
    padding: 12px 16px;
    border-bottom: 1px solid #edf4f7;
    vertical-align: middle;
}

table.data tbody tr:last-child td {
    border-bottom: none;
}

table.data tbody tr:hover {
    background: #fafdfe;
}

.cell-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 170px;
}

.cell-user strong {
    display: block;
    font-size: 14px;
}

.cell-user small {
    color: var(--ink-faint);
    font-size: 12px;
}

.row-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.row-actions form {
    margin: 0;
}

.mono {
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 13px;
    color: var(--ink-soft);
}

/* ---------- 分页 ---------- */

.pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 18px;
}

.page-btn {
    min-width: 36px;
    padding: 7px 11px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink-soft);
    font-size: 13.5px;
}

.page-btn:hover {
    border-color: var(--brand-2);
    color: var(--brand-deep);
    text-decoration: none;
}

.page-btn.is-current {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 600;
}

.page-btn.is-disabled {
    color: #b6c6ce;
    background: #fafcfd;
    cursor: not-allowed;
}

.page-gap {
    padding: 0 2px;
    color: var(--ink-faint);
}

/* ---------- 空状态 / 杂项 ---------- */

.empty {
    padding: 44px 20px;
    text-align: center;
    color: var(--ink-faint);
    font-size: 14px;
}

.empty .empty-icon {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--ink-faint);
    opacity: .75;
}

.empty .empty-icon svg {
    width: 34px;
    height: 34px;
}

.muted {
    color: var(--ink-faint);
}

.small {
    font-size: 13px;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }

.divider {
    height: 1px;
    background: var(--line);
    border: 0;
    margin: 22px 0;
}

/* ---------- 页脚 ---------- */

.site-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .6);
    padding: 22px 0;
    margin-top: 20px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--ink-faint);
}

.footer-inner p {
    margin: 0;
}

.footer-links a {
    color: var(--ink-soft);
}

.footer-brand span {
    margin-right: 4px;
}

.footer-brand p {
    margin: 0;
}

.footer-note {
    margin-top: 4px !important;
    font-size: 12px;
    color: var(--ink-faint);
}

/* ---------- 个人兴趣 ---------- */

.interest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 8px;
}

.interest-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fbfcfe;
    font-size: 13.5px;
    color: var(--ink-soft);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.interest-option:hover {
    border-color: var(--brand-2);
    color: var(--brand-deep);
}

.interest-option input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--brand);
    cursor: pointer;
}

.interest-option:has(input:checked) {
    border-color: var(--brand-2);
    background: var(--brand-tint);
    color: var(--brand-deep);
    font-weight: 600;
}

.interest-option.interest-shake {
    animation: interest-shake 0.4s ease;
    border-color: var(--danger);
    background: var(--danger-tint);
}

@keyframes interest-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-2px); }
}

.interest-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    margin: 0 4px 4px 0;
    border-radius: 999px;
    background: var(--brand-tint);
    color: var(--brand-deep);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
}

.interest-empty {
    font-size: 12.5px;
    color: var(--ink-faint);
}

.interest-more {
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--ink-faint);
    font-size: 11.5px;
    font-weight: 600;
}

.cell-interests {
    display: block;
    margin-top: 4px;
}

.cell-interests .interest-tag {
    font-size: 11px;
    padding: 1px 7px;
    margin: 0 3px 0 0;
}

.profile-interests {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    text-align: left;
}

.profile-interests h3 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-faint);
}

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

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 34px 28px;
    }

    .hero-art {
        order: -1;
        max-width: 260px;
        margin: 0 auto;
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-side {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 18px;
        flex-wrap: wrap;
    }

    .profile-side .avatar-lg {
        margin: 0;
    }

    .profile-facts {
        flex: 1 1 100%;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14.5px;
    }

    .header-inner {
        gap: 10px 14px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .site-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .nav-link {
        white-space: nowrap;
    }

    .header-actions {
        gap: 8px;
    }

    .user-chip-text small {
        display: none;
    }

    .page {
        padding-top: 22px;
    }

    .grid-3,
    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        margin-top: 18px;
        padding: 0;
    }

    .auth-card {
        padding: 26px 20px;
    }

    .card-pad {
        padding: 20px 18px;
    }

    .hero {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .hero-title {
        font-size: 25px;
    }

    .footer-inner {
        justify-content: center;
        text-align: center;
    }
}/* ---------- 班级代码库（codehub） ---------- */
.ch-search { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }

.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 18px 0 26px; }

.ch-card { display: block; padding: 18px 20px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; transition: transform .15s ease, box-shadow .15s ease; }
.ch-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(15,23,42,.08); }
.ch-card-link { display: block; color: inherit; text-decoration: none; }
.ch-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }

.ch-lang { display: inline-block; padding: 2px 9px; font-size: 12px; border-radius: 999px; background: #eef2ff; color: #4338ca; }
.ch-vis { font-size: 12px; padding: 2px 9px; border-radius: 999px; }
.ch-vis-public { background: #dcfce7; color: #15803d; }
.ch-vis-private { background: #f1f5f9; color: #475569; }

.ch-title { margin: 0 0 6px; font-size: 17px; color: #0f172a; }
.ch-desc { margin: 0 0 12px; font-size: 13px; color: #64748b; line-height: 1.6; min-height: 38px; }

.ch-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #94a3b8; }
.ch-meta-line { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 13px; color: #64748b; margin-top: 6px; }

.ch-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ch-crumb { font-size: 13px; color: #94a3b8; margin-bottom: 10px; }
.ch-crumb a { color: #475569; }

.ch-view { display: grid; grid-template-columns: 220px 1fr; gap: 18px; margin: 20px 0; align-items: start; }
.ch-filelist { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px; align-self: start; max-height: min(72vh, 640px); overflow-y: auto; }
.ch-aside-title { margin: 0 0 10px; font-size: 13px; color: #94a3b8; }
.ch-filelist ul { list-style: none; margin: 0; padding: 0; }
.ch-file { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px; font-size: 13px; color: #1f2328; text-decoration: none; word-break: break-all; }
.ch-file:hover { background: #f6f8fa; }
.ch-file.is-active { background: #ddf4ff; color: #0969da; font-weight: 600; }
.ch-file-row { display: flex; align-items: center; gap: 4px; }
.ch-file-row .ch-file { flex: 1; min-width: 0; }
.ch-file-del { margin: 0; }
.ch-file-del-btn { width: 22px; height: 22px; line-height: 1; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #94a3b8; font-size: 16px; cursor: pointer; }
.ch-file-del-btn:hover { background: #fee2e2; color: #b91c1c; }

/* 代码库文件树（GitHub 风格：图标 + 缩进线 + 折叠） */
.ch-tree { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.ch-tree ul { list-style: none; margin: 0 0 0 14px; padding: 0 0 0 11px; border-left: 1px solid #eaeef2; }
.ch-tree li { margin: 0; }
.ch-tree summary { display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 6px 8px; border-radius: 6px; color: #1f2328; font-weight: 600; list-style: none; word-break: break-all; }
.ch-tree summary::-webkit-details-marker { display: none; }
.ch-tree summary::before { content: ''; width: 0; height: 0; border-left: 4px solid #656d76; border-top: 3px solid transparent; border-bottom: 3px solid transparent; flex-shrink: 0; transition: transform .12s ease; }
.ch-tree details[open] > summary::before { transform: rotate(90deg); }
.ch-tree summary:hover { background: #f6f8fa; }
.ch-tree .ch-ico { flex-shrink: 0; color: #656d76; }
.ch-tree summary .ch-ico { color: #54aeff; }
.ch-tree .ch-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 详情页图片预览 */
.ch-image-preview { padding: 20px; text-align: center; background: #fff; border: 1px solid #d0d7de; border-top: 0; }
.ch-image-preview img { max-width: 100%; max-height: 70vh; border-radius: 8px; background: #fff; }
.ch-image-preview .ch-muted { color: #6e7781; margin-top: 10px; }

/* 代码高亮（GitHub 浅色配色） */
.ch-code .com { color: #6e7781; font-style: italic; }
.ch-code .str { color: #0a3069; }
.ch-code .num { color: #0550ae; }
.ch-code .kw { color: #cf222e; }
.ch-code .fn { color: #8250df; }
.ch-code .tag { color: #116329; }
.ch-code .attr { color: #0550ae; }

/* 在线编辑 */
.ch-form textarea.ch-editor { width: 100%; min-height: 60vh; padding: 14px 16px; background: #fff; color: #1f2328; border: 1px solid #d0d7de; border-radius: 10px; font-family: Consolas, 'Courier New', monospace; font-size: 13px; line-height: 1.7; tab-size: 2; white-space: pre; overflow: auto; resize: vertical; }
.ch-form textarea.ch-editor:focus { outline: 2px solid #0969da; outline-offset: 1px; }

/* 新建页创建方式二选一 */
.ch-mode-tabs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.ch-mode-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid #d0d7de; border-radius: 8px; background: #f6f8fa; color: #1f2328; font-size: 14px; cursor: pointer; }
.ch-mode-tab input { accent-color: #0969da; margin: 0; }
.ch-mode-tab.is-active { border-color: #0969da; background: #ddf4ff; color: #0969da; font-weight: 600; }
.ch-mode-panel { margin-top: 16px; padding: 16px 18px; border: 1px dashed #d0d7de; border-radius: 12px; background: #f8fafc; }

.ch-code-wrap { background: #fff; border: 1px solid #d0d7de; border-radius: 12px; overflow: hidden; min-width: 0; }
.ch-code-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 16px; font-size: 13px; color: #1f2328; background: #f6f8fa; border-bottom: 1px solid #d0d7de; }
.ch-code-path { font-weight: 600; word-break: break-all; }
.ch-code-tools { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.ch-copy-btn { border: 1px solid #d0d7de; background: #f6f8fa; color: #1f2328; font-size: 12px; padding: 3px 10px; border-radius: 6px; cursor: pointer; }
.ch-copy-btn:hover { background: #eaeef2; }
.ch-code { margin: 0; padding: 14px 0; overflow: auto; max-height: min(72vh, 640px); font-family: Consolas, 'Courier New', monospace; font-size: 13px; line-height: 20px; color: #1f2328; white-space: pre; background: #fff; scrollbar-width: thin; scrollbar-color: #b6bcc4 transparent; tab-size: 2; }
.ch-code code { counter-reset: ln; display: block; }
.ch-code .cl { padding-right: 16px; }
.ch-code .cl::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 46px; margin-right: 14px; text-align: right; color: #6e7781; user-select: none; -webkit-user-select: none; }
.ch-code .cl:hover { background: #f6f8fa; }
.ch-code::-webkit-scrollbar { width: 10px; height: 10px; }
.ch-code::-webkit-scrollbar-thumb { background: #b6bcc4; border-radius: 6px; }
.ch-code::-webkit-scrollbar-thumb:hover { background: #9aa1a9; }
.ch-code::-webkit-scrollbar-track { background: transparent; }

.ch-history { list-style: none; margin: 16px 0 0; padding: 0; }
.ch-snap { display: flex; gap: 16px; align-items: center; padding: 12px 4px; border-bottom: 1px dashed #e2e8f0; font-size: 14px; }
.ch-snap-v { font-weight: 700; color: #1d4ed8; min-width: 44px; }
.ch-snap-msg { flex: 1; color: #334155; }

.ch-form { padding: 24px; max-width: 860px; }
.ch-radio { display: block; margin: 8px 0; font-size: 14px; color: #334155; }
.ch-form textarea { min-height: 320px; font-family: Consolas, 'Courier New', monospace; font-size: 13px; }

.ch-muted { color: #94a3b8; font-size: 12px; }

.empty-state { text-align: center; padding: 48px 20px; color: #64748b; }
.empty-state p { margin: 0 0 16px; }

@media (max-width: 760px) { .ch-view { grid-template-columns: 1fr; } }
/* ---------- 上传 / 历史操作 ---------- */
.ch-upload-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 6px; }
.ch-snap-op { margin: 0; }
.ch-snap-op .btn { padding: 3px 10px; font-size: 12px; }
/* ---------- 新建页上传区 ---------- */
.ch-upload-box { border: 1px dashed #cbd5e1; border-radius: 12px; padding: 16px 18px; margin: 18px 0; background: #f8fafc; }
.ch-sub-title { margin: 0 0 8px; font-size: 15px; color: #0f172a; }
/* 隐藏但可被 <label for> 激活的 file input（不用 display:none，避免部分浏览器忽略触发） */
.ch-pick-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================================================
   学生成长平台 · 品牌 / 首页 / 页脚 视觉升级（2026-11-26）
   ============================================================ */

/* 品牌 */
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; background: none; box-shadow: 0 10px 24px rgba(99,102,241,.30); border-radius: 13px; }
.brand-mark svg { display: block; border-radius: 13px; }
.brand-text strong { font-size: 18px; letter-spacing: .4px; }
.brand-text small { letter-spacing: 1.4px; color: #94a3b8; }

/* 导航条 */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid #e8edf5; }

/* 首页 hero */
.landing-hero { display: grid; grid-template-columns: 1.06fr .94fr; gap: 52px; align-items: center; padding: 72px 0 30px; }
.landing-eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px; background: #eef2ff; color: #4f46e5; font-size: 11.5px; font-weight: 700; letter-spacing: 1.1px; }
.landing-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #6366f1; box-shadow: 0 0 0 4px rgba(99,102,241,.16); }
.landing-title { margin: 24px 0 18px; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.16; letter-spacing: -.8px; color: #0f172a; font-weight: 800; }
.landing-title .grad { background: linear-gradient(92deg, #4f46e5, #9333ea 55%, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing-sub { max-width: 560px; font-size: 16px; line-height: 1.95; color: #475569; margin: 0 0 30px; }
.landing-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.landing-actions .btn { padding: 13px 28px; border-radius: 12px; font-size: 15px; }
.landing-actions .btn-primary { background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 14px 28px rgba(79,70,229,.30); }
.landing-trust { display: flex; gap: 24px; margin-top: 32px; font-size: 13px; color: #64748b; flex-wrap: wrap; }
.landing-trust span { display: inline-flex; align-items: center; gap: 8px; }
.landing-trust span::before { content: '✓'; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 11px; font-weight: 700; }

/* 右侧视觉 */
.landing-visual { position: relative; min-height: 400px; }
.glass-card { position: absolute; border-radius: 18px; background: rgba(255,255,255,.92); border: 1px solid rgba(226,232,240,.9); box-shadow: 0 24px 60px rgba(15,23,42,.10); }
.gc-main { inset: 34px 20px 44px 18px; padding: 18px 20px; background: #0f172a; border: 1px solid #1e293b; }
.gc-head { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.gc-head .dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.red { background: #f87171; }
.dot.yellow { background: #fbbf24; }
.dot.green { background: #34d399; }
.gc-title { margin-left: 8px; font-size: 12px; color: #94a3b8; font-family: Consolas, monospace; }
.gc-code { margin: 0; font-family: Consolas, 'Courier New', monospace; font-size: 12.5px; line-height: 1.9; color: #cbd5e1; white-space: pre; }
.gc-code .k { color: #c084fc; }
.gc-code .s { color: #7dd3fc; }
.gc-code .c { color: #64748b; }
.gc-code .n { color: #fbbf24; }
.gc-float { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 13px; font-weight: 600; color: #1e293b; animation: floatY 5s ease-in-out infinite; }
.gc-1 { right: 0; top: 4px; }
.gc-2 { left: 0; bottom: 8px; animation-delay: 1.6s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.glow { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .55; }
.glow-a { width: 220px; height: 220px; background: #c7d2fe; right: -18px; top: -8px; }
.glow-b { width: 180px; height: 180px; background: #fbcfe8; left: 6px; bottom: 18px; }

/* 数据条 */
.landing-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 30px 0 12px; }
.ls-item { padding: 22px 24px; background: #fff; border: 1px solid #e8edf5; border-radius: 16px; box-shadow: 0 8px 24px rgba(15,23,42,.04); }
.ls-item strong { display: block; font-size: 30px; font-weight: 800; color: #0f172a; letter-spacing: -.5px; }
.ls-item span { font-size: 13px; color: #64748b; }

/* 小标题 */
.section-kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2px; color: #6366f1; margin-bottom: 8px; }

/* 平台能力卡片 */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 22px; }
.module-card { position: relative; display: block; padding: 26px; background: #fff; border: 1px solid #e8edf5; border-radius: 18px; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.module-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(15,23,42,.10); border-color: #c7d2fe; }
.module-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, #eef2ff, #f5f3ff); color: #4f46e5; margin-bottom: 16px; }
.module-icon svg { width: 22px; height: 22px; }
.module-card h3 { margin: 0 0 8px; font-size: 17px; color: #0f172a; }
.module-card p { margin: 0; font-size: 13.5px; line-height: 1.8; color: #64748b; }
.module-arrow { position: absolute; right: 22px; top: 24px; color: #cbd5e1; font-size: 18px; transition: transform .18s ease, color .18s ease; }
.module-card:hover .module-arrow { transform: translateX(4px); color: #4f46e5; }

/* 为什么选择 */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.why-item { padding: 22px 24px; border-radius: 16px; background: #f8fafc; border: 1px solid #eef2f7; }
.why-item h4 { margin: 0 0 8px; font-size: 15px; color: #0f172a; }
.why-item p { margin: 0; font-size: 13px; color: #64748b; line-height: 1.85; }

/* 底部 CTA */
.landing-cta { margin: 56px 0 8px; padding: 54px 40px; border-radius: 26px; text-align: center; color: #fff; background: radial-gradient(120% 160% at 50% 0%, #6366f1 0%, #4f46e5 42%, #7c3aed 100%); box-shadow: 0 30px 70px rgba(79,70,229,.28); position: relative; overflow: hidden; }
.landing-cta::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 90% at 20% 100%, rgba(255,255,255,.18), transparent 60%), radial-gradient(50% 70% at 90% 0%, rgba(255,255,255,.16), transparent 60%); }
.landing-cta h2 { position: relative; margin: 0 0 12px; font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.landing-cta p { position: relative; margin: 0 0 26px; color: rgba(255,255,255,.82); }
.landing-cta .btn { position: relative; background: #fff; color: #4f46e5; padding: 12px 30px; border-radius: 12px; font-weight: 700; }

/* 页脚多列 */
.site-footer { margin-top: 70px; background: #0f172a; color: #cbd5e1; padding: 54px 0 26px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 36px; align-items: start; }
.footer-logo { margin: 0 0 12px; font-size: 20px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.footer-note { margin: 0; font-size: 13px; line-height: 1.9; color: #94a3b8; }
.footer-col h4 { margin: 0 0 14px; font-size: 13px; color: #e2e8f0; letter-spacing: 1px; }
.footer-col a, .footer-col p { display: block; margin: 0 0 10px; font-size: 13px; color: #94a3b8; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid #1e293b; font-size: 12px; color: #64748b; }
.footer-bottom p { margin: 0; }

@media (max-width: 980px) {
    .landing-hero { grid-template-columns: 1fr; gap: 30px; padding-top: 48px; }
    .landing-visual { display: none; }
    .landing-stats { grid-template-columns: repeat(2, 1fr); }
    .module-grid, .why-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .landing-stats { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .landing-cta { padding: 40px 22px; }
    .landing-actions .btn { width: 100%; text-align: center; }
}

/* ============================================================
   高级感升级（2026-11-26）：深色渐变首屏 · 光斑 · 数字滚动 · 渐入
   ============================================================ */

/* 深色首屏 */
.landing-hero { position: relative; overflow: hidden; margin: 20px 0 30px; padding: 84px 64px; border-radius: 30px; background: #050b1a; color: #fff; isolation: isolate; display: block; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 85%); mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 85%); }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.orb-1 { width: 420px; height: 420px; background: #4f46e5; left: -120px; top: -160px; }
.orb-2 { width: 360px; height: 360px; background: #a855f7; right: -80px; top: 40px; }
.orb-3 { width: 300px; height: 300px; background: #06b6d4; left: 40%; bottom: -180px; opacity: .35; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.04fr .96fr; gap: 52px; align-items: center; }
.landing-eyebrow { background: rgba(255,255,255,.08); color: #c7d2fe; border: 1px solid rgba(255,255,255,.10); }
.landing-title { color: #fff; text-shadow: 0 20px 60px rgba(79,70,229,.35); }
.landing-sub { color: #a5b4d4; }
.landing-trust { color: #94a3b8; }
.landing-trust span::before { background: rgba(52,211,153,.18); color: #6ee7b7; }
.landing-actions .btn-primary { background: #fff; color: #1e1b4b; box-shadow: 0 16px 34px rgba(255,255,255,.18); }
.landing-actions .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(255,255,255,.24); }
.landing-actions .btn-ghost { border-color: rgba(255,255,255,.24); color: #e2e8f0; background: rgba(255,255,255,.04); }
.landing-actions .btn-ghost:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.4); }

/* 深色首屏里的代码卡 */
.landing-visual { min-height: 380px; }
.gc-main { inset: 26px 26px 40px 16px; background: rgba(10,15,35,.82); border: 1px solid rgba(129,140,248,.22); box-shadow: 0 40px 90px rgba(2,6,23,.6); backdrop-filter: blur(10px); }
.gc-main::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(99,102,241,.55), transparent 40%, rgba(168,85,247,.4)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.gc-float { background: rgba(15,23,42,.9); border: 1px solid rgba(148,163,184,.20); color: #e2e8f0; backdrop-filter: blur(8px); }

/* 数据条：上浮叠在首屏上 + 渐变数字 */
.landing-stats { position: relative; z-index: 2; }
.ls-item { background: #fff; border: 1px solid #e8edf5; box-shadow: 0 24px 60px rgba(15,23,42,.08); }
.ls-item strong { background: linear-gradient(120deg, #4f46e5, #7c3aed 60%, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 模块卡：渐变描边 */
.module-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899); opacity: 0; transition: opacity .2s ease; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.module-card:hover::before { opacity: 1; }

/* CTA 光泽扫过 */
.landing-cta { overflow: hidden; }
.landing-cta::before { content: ''; position: absolute; top: -60%; left: -20%; width: 60%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent); transform: rotate(18deg); animation: ctaSheen 6s ease-in-out infinite; }
@keyframes ctaSheen { 0%, 60% { transform: translateX(-120%) rotate(18deg); } 100% { transform: translateX(320%) rotate(18deg); } }

/* 滚动渐入 */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* 导航滚动阴影 */
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(15,23,42,.08); }

@media (max-width: 980px) {
    .landing-hero { padding: 56px 26px; border-radius: 22px; }
    .hero-inner { grid-template-columns: 1fr; }
    .landing-visual { display: none; }
    .landing-stats { margin-top: 0; }
}

/* ============================================================
   学院风浅色首屏（对标学院官网，2026-11-26）
   去掉炫光深色块，改成蓝白渐变 + 深色代码卡做对比焦点
   ============================================================ */
.landing-hero { background: linear-gradient(135deg, #eef4ff 0%, #e6eeff 45%, #dbe9ff 100%); color: #0f172a; padding: 76px 64px; border-radius: 26px; margin: 18px 0 0; }
.hero-grid { background-image: linear-gradient(rgba(37,99,235,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,.07) 1px, transparent 1px); -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 85%); mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 85%); }
.orb-1 { background: #bfdbfe; opacity: .55; }
.orb-2 { background: #c7d2fe; opacity: .42; }
.orb-3 { background: #a5f3fc; opacity: .28; }
.landing-eyebrow { background: #fff; color: #1d4ed8; border: 1px solid #dbe7ff; box-shadow: 0 8px 22px rgba(37,99,235,.10); }
.landing-title { color: #0b1e4d; text-shadow: none; }
.landing-title .grad { background: linear-gradient(92deg, #1d4ed8, #2563eb 52%, #0891b2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing-sub { color: #475569; }
.landing-trust { color: #64748b; }
.landing-trust span::before { background: #dcfce7; color: #16a34a; }
.landing-actions .btn-primary { background: linear-gradient(135deg, #2563eb, #4f46e5); color: #fff; box-shadow: 0 14px 30px rgba(37,99,235,.28); }
.landing-actions .btn-ghost { border-color: #cbd5e1; color: #1e293b; background: #fff; }
.landing-actions .btn-ghost:hover { background: #f8fafc; border-color: #94a3b8; }
.landing-visual .gc-main { background: #0b1e4d; border-color: rgba(148,163,184,.18); box-shadow: 0 30px 70px rgba(15,23,42,.22); }
.gc-float { background: #fff; border: 1px solid #e2e8f0; color: #1e293b; box-shadow: 0 16px 36px rgba(15,23,42,.12); }

/* 数据卡恢复正常间距，不再压进首屏（修红框处裁切 bug） */
.landing-stats { margin: 30px 0 12px; }
.ls-item strong { background: linear-gradient(120deg, #1d4ed8, #4f46e5 60%, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 兴趣：预设 + 自填 */
.interest-custom-field { margin-top: 14px; }

/* ============================================================
   平台公告（2026-11-26）
   ============================================================ */
.announce-bar { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 10px 18px; border-radius: 12px; background: #eef2ff; border: 1px solid #dbe7ff; overflow: hidden; }
.announce-badge { flex-shrink: 0; font-size: 13px; font-weight: 700; color: #4f46e5; white-space: nowrap; }
.announce-viewport { flex: 1; overflow: hidden; }
.announce-track { display: flex; gap: 56px; white-space: nowrap; animation: announceScroll 40s linear infinite; will-change: transform; }
.announce-item { font-size: 13px; color: #334155; }
.announce-item strong { color: #1e293b; }
@keyframes announceScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.notice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.notice-card { padding: 22px 24px; background: #fff; border: 1px solid #e8edf5; border-radius: 16px; box-shadow: 0 8px 24px rgba(15,23,42,.04); }
.notice-date { display: inline-block; font-size: 12px; color: #6366f1; font-weight: 700; margin-bottom: 10px; }
.notice-card h3 { margin: 0 0 8px; font-size: 16px; color: #0f172a; }
.notice-card p { margin: 0; font-size: 13px; line-height: 1.8; color: #64748b; }

/* 后台公告列表 */
.notice-admin-list { list-style: none; margin: 0; padding: 0; }
.notice-admin-item { display: flex; justify-content: space-between; gap: 20px; padding: 18px 4px; border-bottom: 1px dashed #e2e8f0; }
.notice-admin-main { flex: 1; min-width: 0; }
.notice-admin-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.notice-admin-main strong { display: block; font-size: 15px; color: #0f172a; margin-bottom: 6px; }
.notice-admin-main p { margin: 0; font-size: 13px; color: #64748b; line-height: 1.7; }
.notice-admin-ops { display: flex; gap: 8px; align-items: flex-start; flex-shrink: 0; }
.admin-head-ops { display: flex; gap: 8px; }

@media (max-width: 980px) {
    .notice-grid { grid-template-columns: 1fr; }
    .notice-admin-item { flex-direction: column; }
}

/* 批量注册结果（2026-11-26） */
.batch-result, .batch-skipped { margin: 18px 0; padding: 20px 24px; }
.batch-title { margin: 0 0 12px; font-size: 15px; color: #0f172a; }
.batch-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 10px; }
.batch-table th, .batch-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eef2f7; }
.batch-table th { color: #64748b; font-weight: 600; background: #f8fafc; }
.batch-table code { background: #eef2ff; color: #4338ca; padding: 2px 6px; border-radius: 4px; }
.batch-skipped ul { margin: 0; padding-left: 18px; color: #b91c1c; font-size: 13px; line-height: 1.9; }
.batch-textarea { min-height: 150px; font-family: Consolas, 'Courier New', monospace; }

/* ============================================================
   成熟化改造（2026-11-26 · 学院 / 工程文档风）
   覆盖前面多轮视觉升级：去掉渐变光球、玻璃拟态、emoji 与浮动动效，
   改为细边框 + 小圆角 + 单色强调，信息密度优先。
   ============================================================ */

/* 品牌标识 */
.brand-mark { width: 40px; height: 40px; display: block; box-shadow: none; border-radius: 0; }
.brand-mark svg { display: block; border-radius: 0; }
.brand-text strong { font-size: 16.5px; font-weight: 700; letter-spacing: 0; color: var(--ink); }
.brand-text small { display: block; margin-top: 1px; font-size: 10.5px; font-weight: 500; letter-spacing: .2px; color: var(--ink-faint); }

/* 顶部导航 */
.site-header { background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header.is-scrolled { box-shadow: 0 6px 18px rgba(16, 24, 40, .07); }

/* 首屏 */
.landing-hero {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
    margin: 0; padding: 54px 0 46px; border-radius: 0; background: none;
    border-bottom: 1px solid var(--line); color: var(--ink); overflow: visible;
}
.landing-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; border-radius: 0;
    background: none; box-shadow: none; color: var(--ink-faint);
    font-size: 12px; font-weight: 600; letter-spacing: .3px;
}
.landing-eyebrow::before { content: ''; width: 16px; height: 1px; border-radius: 0; background: var(--brand); box-shadow: none; }
.landing-title { margin: 14px 0 16px; font-size: clamp(29px, 3.3vw, 40px); line-height: 1.3; letter-spacing: -.2px; font-weight: 700; color: var(--ink); text-shadow: none; }
.landing-title .grad { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--brand); }
.landing-sub { max-width: 520px; margin: 0 0 26px; font-size: 14.5px; line-height: 1.95; color: var(--ink-soft); }
.landing-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.landing-actions .btn { padding: 10px 20px; border-radius: var(--radius-sm); font-size: 14px; box-shadow: none; }
.landing-actions .btn-primary { background: var(--brand); background-image: none; color: #fff; box-shadow: none; }
.landing-actions .btn-primary:hover { background: var(--brand-deep); transform: none; box-shadow: none; }
.landing-actions .btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink-soft); }
.landing-actions .btn-ghost:hover { background: #f8fafc; border-color: #cbd5e1; }

.landing-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--ink-faint); }
.landing-trust li { display: inline-flex; align-items: center; gap: 7px; }
.landing-trust li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--brand); opacity: .5; }

/* 首屏右侧：项目面板 */
.landing-visual { position: relative; min-height: 0; display: block; }
.code-panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); overflow: hidden; }
.code-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.code-panel-title { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.code-panel-meta { font-size: 11.5px; color: var(--ink-faint); white-space: nowrap; }
.code-panel-tree { margin: 0; padding: 12px 16px; list-style: none; font-family: Consolas, 'Courier New', monospace; font-size: 12.5px; line-height: 2; color: var(--ink-soft); }
.code-panel-tree li { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code-panel-tree .tree-mark { color: var(--ink-faint); flex-shrink: 0; }
.code-panel-tree .tree-more { color: var(--ink-faint); font-style: italic; padding-left: 12px; }
.code-panel-foot { padding: 11px 16px; border-top: 1px solid var(--line); background: #f8fafc; font-size: 11.5px; color: var(--ink-faint); }

/* 关键数据 */
.landing-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; border-bottom: 1px solid var(--line); }
.ls-item { padding: 22px 26px; border-left: 1px solid var(--line); background: none; border-radius: 0; box-shadow: none; }
.ls-item:first-child { padding-left: 0; border-left: 0; }
.ls-item strong { display: block; font-size: 27px; font-weight: 700; letter-spacing: -.6px; color: var(--ink); background: none; -webkit-background-clip: border-box; background-clip: border-box; font-variant-numeric: tabular-nums; }
.ls-item span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-faint); }

/* 区块小标 */
.section-kicker { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .4px; color: var(--ink-faint); margin-bottom: 6px; }
.section-kicker::after { content: ''; display: inline-block; width: 18px; height: 1px; margin-left: 8px; vertical-align: middle; background: var(--line); }

/* 平台能力 */
.module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 10px; border-top: 1px solid var(--line); }
.module-card {
    position: static; display: grid; grid-template-columns: 40px 1fr; gap: 16px;
    padding: 24px 22px; border-bottom: 1px solid var(--line); border-radius: 0; background: none;
    text-decoration: none; color: inherit; transition: background .15s ease;
}
.module-card:nth-child(odd) { border-right: 1px solid var(--line); }
.module-card:hover { transform: none; box-shadow: none; border-color: var(--line); background: #f8fafc; }
.module-card::before { display: none; }
.module-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--brand-tint); color: var(--brand); margin: 0; }
.module-icon svg { width: 20px; height: 20px; }
.module-card h3 { margin: 0 0 6px; font-size: 15px; color: var(--ink); }
.module-card p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--ink-soft); }
.module-body { min-width: 0; }

/* 使用理由 */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 10px; border-top: 1px solid var(--line); }
.why-item { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.why-item + .why-item { padding-left: 24px; border-left: 1px solid var(--line); }
.why-num { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 1px; color: var(--brand); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.why-item h4 { margin: 0 0 8px; font-size: 14.5px; color: var(--ink); }
.why-item p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--ink-soft); }

/* 转化区 */
.landing-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    margin: 56px 0 8px; padding: 30px 32px; border: 1px solid var(--line); border-radius: var(--radius);
    background: #f8fafc; box-shadow: none; text-align: left; color: var(--ink); overflow: visible;
}
.landing-cta::before, .landing-cta::after { display: none; }
.landing-cta h2 { margin: 0 0 6px; font-size: 19px; font-weight: 700; color: var(--ink); }
.landing-cta p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.landing-cta .btn { background: var(--brand); color: #fff; padding: 10px 22px; border-radius: var(--radius-sm); font-weight: 600; box-shadow: none; }
.landing-cta .btn:hover { background: var(--brand-deep); box-shadow: none; }

/* 导航选中态：改成下划线，不再用实心色块 */
.nav-link { padding: 9px 14px 8px; border-radius: 4px; }
.nav-link:hover { background: var(--brand-tint); }
.nav-link.is-active { position: relative; background: none; color: var(--brand); font-weight: 600; box-shadow: none; }
.nav-link.is-active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--brand); }

/* 公告条 */
.announce-bar { margin: 14px 0 0; padding: 9px 14px; border-radius: var(--radius-sm); background: var(--brand-tint); border: 1px solid #dbe7ff; }
.announce-badge { font-size: 11.5px; font-weight: 700; letter-spacing: .5px; color: var(--brand); padding-right: 12px; border-right: 1px solid #dbe7ff; }
.announce-item { font-size: 12.5px; color: var(--ink-soft); }
.announce-item strong { color: var(--ink); font-weight: 600; }

/* 公告卡 */
.notice-card { padding: 20px 22px; border-radius: var(--radius); box-shadow: none; border: 1px solid var(--line); }
.notice-date { color: var(--ink-faint); font-size: 11.5px; }
.notice-card h3 { font-size: 15px; }
.notice-card p { font-size: 12.8px; color: var(--ink-soft); }

/* 页脚 */
.site-footer { margin-top: 64px; background: #0f172a; color: #a9b4c6; padding: 44px 0 20px; }
.footer-inner { gap: 32px; }
.footer-logo { font-size: 16.5px; font-weight: 700; letter-spacing: 0; }
.footer-note { font-size: 12.5px; color: #8d99ad; }
.footer-col h4 { font-size: 12px; letter-spacing: .8px; color: #dfe5ee; }
.footer-col a, .footer-col p { font-size: 12.5px; color: #96a2b6; }
.footer-bottom { margin-top: 32px; padding-top: 18px; font-size: 11.5px; }

/* 滚动渐入：无 JS 时保持可见，只在 html.js 下隐藏等待进入视口 */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html.js .reveal { opacity: 1; transform: none; transition: none; }
    .announce-track { animation: none; }
    .gc-float { animation: none; }
}

@media (max-width: 980px) {
    .landing-hero { grid-template-columns: 1fr; gap: 34px; padding: 36px 0 34px; }
    .landing-visual { display: block; }
    .landing-stats { grid-template-columns: repeat(2, 1fr); }
    .ls-item { padding: 20px 22px; border-left: 1px solid var(--line); }
    .ls-item:first-child { border-left: 0; padding-left: 0; }
    .ls-item:nth-child(odd) { border-left: 0; padding-left: 0; }
    .module-grid { grid-template-columns: 1fr; }
    .module-card:nth-child(odd) { border-right: 0; }
    .why-grid { grid-template-columns: 1fr; }
    .why-item { padding: 20px 0; }
    .why-item + .why-item { padding-left: 0; border-left: 0; }
}

@media (max-width: 560px) {
    .landing-stats { grid-template-columns: 1fr; }
    .ls-item { border-left: 0; padding-left: 0; }
    .landing-cta { padding: 22px 20px; }
    .landing-actions .btn { flex: 1 1 auto; text-align: center; }
}
