/* ============================================================
   theme.css — 数据节点 · 全站主题（深空玻璃拟态）
   统一提供：变量 / 背景 / 导航 / 页脚 / 通用组件 / 首页·关于·404·作品
   服务页与后台的专属样式分别在 services.css / admin.css
   ============================================================ */

/* ---------- 变量与基础 ---------- */
:root {
    --bg-0: #070a16;
    --bg-1: #0b1024;
    --bg-2: #101735;
    --ink-1: #e8ecff;
    --ink-2: #9aa3c7;
    --ink-3: #5d6689;
    --line: rgba(148, 163, 255, 0.14);
    --glass: rgba(255, 255, 255, 0.045);
    --glass-2: rgba(255, 255, 255, 0.08);
    --acc-1: #6366f1;
    --acc-2: #a855f7;
    --acc-3: #22d3ee;
    --grad: linear-gradient(135deg, var(--acc-1), var(--acc-2) 55%, var(--acc-3));
    --grad-soft: linear-gradient(135deg, rgba(99, 102, 241, .16), rgba(168, 85, 247, .16) 55%, rgba(34, 211, 238, .16));
    --radius: 16px;
    --nav-h: 60px;
    --shadow: 0 18px 46px rgba(2, 6, 23, 0.55);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', system-ui, sans-serif;
    background: var(--bg-0);
    color: var(--ink-1);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 星云底色：固定渐变 + 网格 + 两团光晕（不抢戏） */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: -2;
    background:
        radial-gradient(1000px 520px at 85% -10%, rgba(99, 102, 241, 0.16), transparent 60%),
        radial-gradient(820px 480px at -10% 30%, rgba(34, 211, 238, 0.10), transparent 60%),
        radial-gradient(760px 520px at 55% 115%, rgba(168, 85, 247, 0.12), transparent 60%),
        linear-gradient(180deg, var(--bg-0), var(--bg-1) 55%, var(--bg-0));
}
body::after {
    content: '';
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 35%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 35%, transparent 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(99, 102, 241, 0.45); }

/* ---------- 导航（玻璃悬浮） ---------- */
.full-width-nav {
    position: sticky;
    top: 12px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    gap: 6px;
    width: min(680px, calc(100% - 28px));
    margin: 12px auto 0;
    padding: 6px;
    border-radius: 999px;
    background: rgba(13, 18, 40, 0.72);
    border: 1px solid var(--line);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 34px rgba(2, 6, 23, 0.5);
}

.full-width-nav .nav-item {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 96px;
    padding: 11px 16px;
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 15px;
    font-weight: 500;
    transition: color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}

.full-width-nav .nav-item i { font-size: 14px; transition: transform .3s var(--ease); }
.full-width-nav .nav-item:hover { color: var(--ink-1); background: var(--glass-2); }
.full-width-nav .nav-item:hover i { transform: translateY(-2px); }

.full-width-nav .nav-item.active {
    color: #fff;
    background: var(--grad);
    box-shadow: 0 6px 22px rgba(99, 102, 241, 0.45);
}

@media (max-width: 640px) {
    .full-width-nav { width: calc(100% - 16px); gap: 3px; padding: 5px; }
    .full-width-nav .nav-item { min-width: 0; padding: 10px 6px; font-size: 13px; gap: 5px; }
    .full-width-nav .nav-item i { display: none; }
}

/* ---------- 页面容器 / 段落标题 ---------- */
.page { max-width: 1120px; margin: 0 auto; padding: 46px 22px 30px; }

.page-hero { text-align: center; margin-bottom: 40px; }

.page-hero .kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    letter-spacing: 3px;
    color: var(--ink-3);
    text-transform: uppercase;
    padding: 7px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--glass);
    margin-bottom: 18px;
}
.page-hero .kicker i { font-size: 11px; color: var(--acc-3); }

.page-hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 2.9rem);
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(120deg, #fff 20%, #b9c2ff 55%, #7fe7ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero .sub { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }
.page-hero .sub .emoji { font-size: 1.1em; }

/* ---------- 通用按钮 / 徽章 / 卡片 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 8px 26px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(139, 92, 246, 0.5); }
.btn-ghost {
    background: var(--glass);
    border-color: var(--line);
    color: var(--ink-1);
}
.btn-ghost:hover { background: var(--glass-2); transform: translateY(-3px); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--ink-2);
    background: var(--glass);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: all .25s var(--ease);
    user-select: none;
}
.chip:hover { color: var(--ink-1); border-color: rgba(99, 102, 241, 0.55); }
.chip.on {
    color: #fff;
    background: var(--grad-soft);
    border-color: rgba(99, 102, 241, 0.65);
    box-shadow: inset 0 0 14px rgba(99, 102, 241, 0.18);
}

/* ---------- 滚动浮现动效 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   首页 index
   ============================================================ */
.hero {
    min-height: calc(100vh - var(--nav-h) - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 18px;
}

.hero .orbit {
    width: 92px; height: 92px;
    margin-bottom: 30px;
    border-radius: 26px;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; color: #fff;
    background: var(--grad);
    box-shadow: 0 0 0 10px rgba(99, 102, 241, 0.12), 0 0 0 20px rgba(99, 102, 241, 0.06), 0 18px 50px rgba(99, 102, 241, 0.5);
    animation: float 5.5s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}

.hero h1.welcome-title {
    font-size: clamp(2.3rem, 6vw, 3.8rem);
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(120deg, #fff 15%, #b9c2ff 50%, #7fe7ff 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 6px 30px rgba(99, 102, 241, 0.35));
}

.hero .type-line {
    margin-top: 16px;
    font-size: clamp(1rem, 2.4vw, 1.3rem);
    color: var(--ink-2);
    min-height: 1.9em;
    letter-spacing: 1px;
}
.hero .type-line .caret {
    display: inline-block;
    width: 2px; height: 1.15em;
    margin-left: 3px;
    vertical-align: -0.25em;
    background: var(--acc-3);
    animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero .hero-actions { display: flex; gap: 16px; margin-top: 42px; flex-wrap: wrap; justify-content: center; }

/* 快捷数据条 */
.hero .hero-stats {
    display: flex;
    gap: 34px;
    margin-top: 54px;
    flex-wrap: wrap;
    justify-content: center;
}
.hero .stat { text-align: center; }
.hero .stat b {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero .stat span { font-size: 12.5px; color: var(--ink-3); letter-spacing: 2px; }

/* ============================================================
   关于页 about
   ============================================================ */
.profile-container {
    max-width: 980px;
    margin: 0 auto;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.profile-header {
    padding: 46px 34px 38px;
    text-align: center;
    background: linear-gradient(160deg, rgba(99, 102, 241, 0.22), rgba(168, 85, 247, 0.12) 50%, transparent),
                var(--glass);
    border-bottom: 1px solid var(--line);
    position: relative;
}
.profile-header h1 { font-size: 2.2rem; letter-spacing: 1px; }
.profile-header .subtitle { margin-top: 10px; color: var(--ink-2); }

.member-nav { display: flex; justify-content: center; gap: 10px; margin-top: 26px; flex-wrap: wrap; }

.member-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--ink-2);
    background: var(--glass);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: all .3s var(--ease);
}
.member-tab:hover { color: var(--ink-1); transform: translateY(-2px); }
.member-tab.active {
    color: #fff;
    background: var(--grad);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.avatar-section { margin-top: 30px; }
.avatar-container {
    width: 190px; height: 190px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid rgba(148, 163, 255, 0.4);
    overflow: hidden;
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.1), 0 16px 40px rgba(2, 6, 23, 0.6);
    transition: transform .4s var(--ease);
}
.avatar-container:hover { transform: scale(1.04); }
.avatar-container img { width: 100%; height: 100%; object-fit: cover; }
.member-avatar { display: none; }
.member-avatar.active { display: block; }

.avatar-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px;
    color: var(--ink-3); font-size: 12px;
    background: var(--glass-2);
}
.avatar-placeholder i { font-size: 42px; }

.profile-content { display: flex; gap: 26px; padding: 34px; }
.info-section { flex: 2; }
.sidebar { flex: 1; }

.info-card, .stats-card, .contact-card {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 18px;
    transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.info-card:hover, .contact-card:hover { transform: translateY(-4px); border-color: rgba(99, 102, 241, 0.45); }

.info-card h3, .contact-card h3 {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.1rem;
    margin-bottom: 14px;
    color: var(--ink-1);
}
.info-card h3 i, .contact-card h3 i { color: var(--acc-3); font-size: 14px; }
.info-card p { color: var(--ink-2); line-height: 1.8; font-size: 14.5px; }
.info-card p strong { color: var(--ink-1); }

.info-list { list-style: none; }
.info-list li {
    display: flex; align-items: center;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(148, 163, 255, 0.12);
    color: var(--ink-2);
    font-size: 14px;
}
.info-list li:last-child { border-bottom: none; }
.info-list i { color: #34d399; margin-right: 12px; width: 18px; text-align: center; font-size: 13px; }
.info-list i.fa-times { color: #f87171; }

.member-info, .member-stats { display: none; }
.member-info.active, .member-stats.active { display: block; }

.stats-card { text-align: center; background: var(--grad-soft); border-color: rgba(99, 102, 241, 0.35); }
.stat-number {
    font-size: 2.1rem; font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label { margin-top: 4px; font-size: 12.5px; color: var(--ink-2); letter-spacing: 1px; }

.contact-card h3 { justify-content: center; }
.contact-list { list-style: none; }
.contact-list li {
    display: flex; align-items: center; gap: 4px;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(148, 163, 255, 0.12);
    font-size: 14px; color: var(--ink-2);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list i { color: var(--acc-3); width: 22px; text-align: center; }
.contact-list a:hover { color: var(--ink-1); }

.emoji { font-size: 1.15em; }

/* ============================================================
   作品页 portfolio
   ============================================================ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 22px;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 24px 20px;
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.project-card::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    opacity: 0;
    background: radial-gradient(420px 160px at 50% -20%, var(--pc-glow, rgba(99, 102, 241, 0.25)), transparent 70%);
    transition: opacity .35s var(--ease);
    pointer-events: none;
}
.project-card:hover { transform: translateY(-7px); border-color: rgba(99, 102, 241, 0.55); box-shadow: var(--shadow); }
.project-card:hover::after { opacity: 1; }

.card-badge {
    width: 58px; height: 58px;
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff;
    margin-bottom: 18px;
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.45);
    transition: transform .35s var(--ease);
}
.project-card:hover .card-badge { transform: scale(1.08) rotate(-4deg); }

.card-tag {
    display: inline-block;
    font-size: 11px; font-weight: 700;
    letter-spacing: 2px;
    color: var(--acc-3);
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.25);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.card-name { font-size: 1.22rem; margin-bottom: 10px; }
.card-desc { color: var(--ink-2); font-size: 14px; line-height: 1.75; flex: 1; }

.card-enter {
    display: flex; align-items: center; gap: 8px;
    margin-top: 18px; padding-top: 15px;
    border-top: 1px solid var(--line);
    color: var(--acc-3);
    font-size: 13.5px; font-weight: 600;
    transition: gap .3s var(--ease);
}
.project-card:hover .card-enter { gap: 14px; }

.empty-notice { text-align: center; padding: 80px 20px; color: var(--ink-3); }
.empty-notice i { font-size: 52px; margin-bottom: 18px; opacity: .6; }
.empty-notice p { font-size: 15px; color: var(--ink-2); }

/* ============================================================
   404
   ============================================================ */
.error-container { text-align: center; padding: 60px 20px 30px; }

.error-code {
    font-size: clamp(6rem, 20vw, 11rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 8px;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 44px rgba(99, 102, 241, 0.45));
    animation: float 5s ease-in-out infinite;
}

.error-message { margin-top: 16px; font-size: 1.6rem; }
.error-subtitle { margin-top: 12px; color: var(--ink-2); line-height: 1.8; }

.meme-container { margin: 34px auto 0; max-width: 380px; }
.meme-image {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.action-buttons { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

.funny-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    max-width: 820px;
    margin: 44px auto 0;
    text-align: left;
}
.tip-item {
    display: flex; align-items: center; gap: 12px;
    padding: 15px 18px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 13.5px;
}
.tip-item i { color: var(--acc-3); }

/* ---------- 页脚 ---------- */
.footer-section {
    width: min(1120px, calc(100% - 44px));
    margin: 60px auto 26px;
    padding: 26px 24px;
    border-radius: 18px;
    background: var(--glass);
    border: 1px solid var(--line);
    color: var(--ink-2);
    text-align: center;
}
.footer-info { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.footer-info a { color: var(--ink-2); transition: color .3s; }
.footer-info a:hover { color: var(--ink-1); }
.footer-divider { height: 1px; background: var(--line); margin: 15px 0; }
.copyright { font-size: 12.5px; color: var(--ink-3); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
    .profile-content { flex-direction: column; padding: 22px; }
    .project-grid { grid-template-columns: 1fr; }
    .page { padding: 32px 16px 20px; }
}
