/* ========== 基础 ========== */
:root {
    --bg: #f4f5f7;
    --panel: #ffffff;
    --sidebar: #111111;
    --text: #111827;
    --text-soft: #4b5563;
    --muted: #9ca3af;
    --line: #e5e7eb;
    --mint: #2dd4a7;
    --mint-soft: #d8f8ed;
    --pink: #ff7eb0;
    --pink-soft: #ffe0ed;
    --blue: #7ec8ff;
    --blue-soft: #d8eeff;
    --yellow: #ffe066;
    --shadow: 0 8px 30px rgba(17, 24, 39, 0.05);
    --shadow-lg: 0 16px 50px rgba(17, 24, 39, 0.08);
    --radius: 22px;
    --radius-sm: 14px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--mint); }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ========== 整体布局 ========== */
.app {
    display: flex;
    min-height: 100vh;
    padding: 18px;
    gap: 18px;
}

/* ========== 侧边栏 ========== */
.sidebar {
    width: 76px;
    flex-shrink: 0;
    background: var(--sidebar);
    border-radius: var(--radius);
    padding: 22px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    position: sticky;
    top: 18px;
    height: calc(100vh - 36px);
}

.logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--mint), #1aa884);
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    box-shadow: 0 8px 18px rgba(45, 212, 167, 0.35);
}

.logo-mark {
    color: #0a0a0a;
    font-weight: 800;
    font-size: 22px;
    font-family: serif;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    align-items: center;
}

.nav-item {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.18s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #f9fafb;
}

.nav-item.active {
    background: linear-gradient(135deg, var(--mint), #1aa884);
    color: #0a0a0a;
    box-shadow: 0 8px 18px rgba(45, 212, 167, 0.35);
}

.nav-item svg {
    width: 22px;
    height: 22px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ========== 主区域 ========== */
.main {
    flex: 1;
    background: var(--panel);
    border-radius: var(--radius);
    padding: 28px 36px 40px;
    box-shadow: var(--shadow);
    min-width: 0;
}

/* ========== 顶部 ========== */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
    flex-wrap: wrap;
}

.tabs {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.tab {
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
}

.tab:hover { color: var(--text-soft); }

.tab.active {
    color: var(--text);
    border-bottom-color: var(--text);
    font-weight: 600;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.status-pill {
    background: var(--mint-soft);
    color: #0c8762;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 4px rgba(45, 212, 167, 0.18);
}

.avatar-sm {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--line);
}

/* ========== 区块切换 ========== */
.section { display: none; animation: fadeIn 0.25s ease; }
.section.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-head {
    margin-bottom: 22px;
}

.section-head h2 {
    font-size: 28px;
    margin-bottom: 6px;
}

.muted { color: var(--muted); }
.small { font-size: 13px; }

.sub-h {
    font-size: 18px;
    margin: 32px 0 16px;
    font-weight: 700;
}

/* ========== Hero（个人信息）========== */
.hero {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #fafbfb 0%, #f3f7f5 100%);
    border-radius: var(--radius);
    padding: 36px 32px;
    margin-bottom: 22px;
    border: 1px solid var(--line);
}

.hero h1 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.hero .accent { color: var(--mint); }

.hero-sub {
    color: var(--text-soft);
    font-size: 16px;
    margin-bottom: 16px;
}

.hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-avatar img {
    width: 130px;
    height: 130px;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    border: 4px solid #fff;
}

/* ========== 标签 ========== */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.tag-mint { background: var(--mint-soft); color: #0c8762; }
.tag-pink { background: var(--pink-soft); color: #b04679; }
.tag-blue { background: var(--blue-soft); color: #2a73b0; }

/* ========== 网格与卡片 ========== */
.grid {
    display: grid;
    gap: 18px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero-avatar { margin: 0 auto; }
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 22px;
    transition: transform 0.18s, box-shadow 0.18s;
}

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

.card-wide { grid-column: 1 / -1; }

.card-title {
    font-size: 15px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title.big { font-size: 22px; margin-bottom: 6px; }

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

.dot-mint, .dot-pink, .dot-blue {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.dot-mint { background: var(--mint); }
.dot-pink { background: var(--pink); }
.dot-blue { background: var(--blue); }

/* ========== 列表 ========== */
.list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 14px;
}
.list li:last-child { border-bottom: none; }
.li-label { color: var(--muted); flex-shrink: 0; }

.list.bullet { margin-top: 8px; }
.list.bullet li {
    display: list-item;
    list-style: none;
    padding: 6px 0 6px 18px;
    border-bottom: none;
    position: relative;
    color: var(--text-soft);
}
.list.bullet li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mint);
}
.list.bullet li b { color: var(--text); }

/* ========== Chips ========== */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chips-stack { margin-top: 18px; }

.chip {
    padding: 6px 12px;
    background: #f3f4f6;
    color: var(--text-soft);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
}
.chip:hover {
    background: var(--mint-soft);
    color: #0c8762;
}

/* ========== 时间线 ========== */
.timeline {
    position: relative;
    padding-left: 30px;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--mint) 0%, var(--pink) 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 22px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -29px;
    top: 24px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px var(--line);
}
.timeline-dot.mint { background: var(--mint); }
.timeline-dot.pink { background: var(--pink); }

.company {
    color: var(--text-soft);
    font-size: 13px;
    margin: 4px 0 12px;
}

/* ========== 项目 ========== */
.project-hero {
    background: linear-gradient(135deg, #0f1216 0%, #1f2937 100%);
    color: #f3f4f6;
    border: none;
    margin-bottom: 18px;
    padding: 32px;
}
.project-hero .card-title { color: #fff; }
.project-hero .muted { color: #9ca3af; }
.project-hero .chip {
    background: rgba(255, 255, 255, 0.08);
    color: #d1d5db;
}
.project-hero:hover { transform: none; box-shadow: none; }

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

.project-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-desc {
    color: #d1d5db;
    line-height: 1.7;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
}

.btn svg { width: 14px; height: 14px; stroke-linecap: round; stroke-linejoin: round; }

.btn-mint {
    background: var(--mint);
    color: #0a0a0a;
}
.btn-mint:hover {
    background: #25c19a;
    color: #0a0a0a;
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #f3f4f6;
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.cta .btn-ghost {
    background: #f3f4f6;
    color: var(--text);
}
.cta .btn-ghost:hover { background: #e5e7eb; color: var(--text); }

/* ========== 特性卡 ========== */
.feat { padding: 22px; }
.feat h4 { font-size: 15px; margin-bottom: 6px; }
.feat p { color: var(--text-soft); font-size: 13.5px; }

.feat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 12px;
    margin-bottom: 12px;
}
.feat-icon.mint { background: var(--mint-soft); color: #0c8762; }
.feat-icon.pink { background: var(--pink-soft); color: #b04679; }
.feat-icon.blue { background: var(--blue-soft); color: #2a73b0; }

.feat code {
    background: #f3f4f6;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* ========== 数字卡 ========== */
.stat {
    text-align: center;
    padding: 26px 18px;
}
.stat-num {
    font-size: 40px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-num span {
    font-size: 22px;
    color: var(--mint);
    margin-left: 2px;
}
.stat-label {
    color: var(--muted);
    font-size: 13px;
}

/* ========== 个人特质 ========== */
.trait .trait-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--mint);
    margin-bottom: 6px;
}
.trait h4 { font-size: 15px; margin-bottom: 8px; }
.trait p { color: var(--text-soft); font-size: 13.5px; }

/* ========== CTA ========== */
.cta {
    margin-top: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--mint-soft) 0%, #fff 100%);
    border: 1px solid var(--mint-soft);
}
.cta h3 { font-size: 20px; margin-bottom: 4px; }
.cta-actions { display: flex; gap: 10px; }

/* ========== 响应式补充 ========== */
@media (max-width: 720px) {
    .app { padding: 10px; gap: 10px; }
    .sidebar { width: 64px; padding: 14px 8px; }
    .main { padding: 18px 18px 30px; border-radius: 18px; }
    .hero { padding: 24px 18px; }
    .hero h1 { font-size: 28px; }
    .hero-avatar img { width: 92px; height: 92px; border-radius: 22px; }
    .section-head h2 { font-size: 22px; }
    .tabs { gap: 12px; }
    .tab { font-size: 13px; }
}
