  :root {
    --bg: #0d1117;
    --bg2: #161b22;
    --bg3: #1c2333;
    --card: #1e2433;
    --border: rgba(255,255,255,0.08);
    --blue: #4f9cf5;
    --blue2: #6eb5ff;
    --purple: #a78bfa;
    --green: #34d399;
    --amber: #f59e0b;
    --pink: #f472b6;
    --teal: #22d3ee;
    --text: #e6edf3;
    --text2: #8b949e;
    --text3: #b0b8c4;
    --nav-w: 220px;
    --accent-glow: 0 0 20px rgba(79,156,245,0.25);
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    min-height: 100vh;
  }

  /* ── SCROLLBAR ── */
  ::-webkit-scrollbar { width: 5px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 3px; }

  /* ── SIDEBAR ── */
  .sidebar {
    width: var(--nav-w);
    min-height: 100vh;
    background: var(--bg2);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0; left: 0;
    display: flex;
    flex-direction: column;
    padding: 32px 0 24px;
    z-index: 100;
  }
  .sidebar-logo {
    padding: 0 24px 28px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
  }
  .sidebar-logo .name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text);
  }
  .sidebar-logo .sub {
    font-size: 11px;
    color: var(--text2);
    margin-top: 4px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
  }
  .nav-group { padding: 0 12px; margin-bottom: 8px; }
  .nav-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text2);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0 12px;
    margin-bottom: 6px;
  }
  .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--text2);
    transition: all 0.18s;
    text-decoration: none;
  }
  .nav-item:hover { background: var(--bg3); color: var(--text); }
  .nav-item.active { background: rgba(79,156,245,0.12); color: var(--blue); }
  .nav-item .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
    flex-shrink: 0;
  }
  .sidebar-footer {
    margin-top: auto;
    padding: 16px 24px 0;
    border-top: 1px solid var(--border);
  }
  .sidebar-footer a {
    display: block;
    font-size: 12px;
    color: var(--text2);
    text-decoration: none;
    margin-bottom: 6px;
    transition: color 0.15s;
  }
  .sidebar-footer a:hover { color: var(--blue); }

  /* ── MAIN ── */
  .main {
    margin-left: var(--nav-w);
    flex: 1;
    padding: 56px 60px 80px;
    max-width: 960px;
  }
  @media (max-width: 768px) {
    .sidebar { display: none; }
    .main { margin-left: 0; padding: 24px 18px 60px; }
  }

  /* ── HERO ── */
  .hero {
    padding: 60px 0 52px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 56px;
  }
  .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(79,156,245,0.1);
    border: 1px solid rgba(79,156,245,0.25);
    color: var(--blue);
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
  }
  .hero-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: blink 1.4s infinite; }
  @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
  .hero h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 4px;
    line-height: 1.15;
    background: linear-gradient(135deg, #e6edf3 0%, #8b949e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
  }
  .hero-sub {
    font-size: 15px;
    color: var(--text2);
    letter-spacing: 1.5px;
    margin-bottom: 28px;
  }
  .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
  }
  .meta-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg3);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text3);
  }
  .meta-chip svg { width: 14px; height: 14px; opacity: 0.7; }
  .hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
  }
  .stat-item { }
  .stat-num {
    font-size: 30px;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
  }
  .stat-label {
    font-size: 12px;
    color: var(--text2);
    margin-top: 4px;
  }

  /* ── SECTION ── */
  .section { margin-bottom: 72px; }
  .section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
  }
  .section-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
  }
  .section-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
  }
  .section-en {
    font-size: 11px;
    color: var(--text2);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
  }

  /* ── RESUME BLOCK ── */
  .resume-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
  }
  @media (max-width: 600px) { .resume-grid { grid-template-columns: 1fr; } }

  .info-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 24px;
    transition: border-color 0.2s;
  }
  .info-card:hover { border-color: rgba(79,156,245,0.3); }
  .info-card-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--blue);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
  }
  .info-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 9px;
    font-size: 13.5px;
    color: var(--text3);
    line-height: 1.5;
  }
  .info-row .lbl {
    color: var(--text2);
    min-width: 52px;
    flex-shrink: 0;
    font-size: 12.5px;
  }
  .info-row .val {
    color: var(--text);
  }

  /* ── ADVANTAGE ── */
  .advantage-block {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 20px;
  }
  .advantage-block .block-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--purple);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
  }
  .advantage-list {
    list-style: none;
  }
  .advantage-list li {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: var(--text3);
    line-height: 1.75;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }
  .advantage-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  .advantage-list li::before { content: '▸'; color: var(--blue); flex-shrink: 0; margin-top: 1px; }

  /* ── TIMELINE ── */
  .timeline { position: relative; padding-left: 24px; }
  .timeline::before {
    content: '';
    position: absolute;
    left: 5px; top: 8px; bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, var(--blue), transparent);
  }
  .tl-item { position: relative; margin-bottom: 36px; }
  .tl-dot {
    position: absolute;
    left: -19px; top: 6px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 3px rgba(79,156,245,0.15);
  }
  .tl-period {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--blue);
    background: rgba(79,156,245,0.1);
    border: 1px solid rgba(79,156,245,0.2);
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
  }
  .tl-company {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
  }
  .tl-role {
    font-size: 13px;
    color: var(--blue);
    margin-bottom: 12px;
    font-weight: 500;
  }
  .tl-body {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
  }
  .tl-sub {
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
    letter-spacing: 0.5px;
    margin-top: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
  }
  .tl-sub:first-child { margin-top: 0; }
  .tl-points { list-style: none; }
  .tl-points li {
    font-size: 13.5px;
    color: var(--text3);
    line-height: 1.75;
    margin-bottom: 6px;
    padding-left: 14px;
    position: relative;
  }
  .tl-points li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--text2);
  }

  /* ── EDU ── */
  .edu-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 24px;
    margin-top: 8px;
    transition: border-color 0.2s;
  }
  .edu-card:hover { border-color: rgba(167,139,250,0.3); }
  .edu-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(167,139,250,0.12);
    border: 1px solid rgba(167,139,250,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
  }
  .edu-school { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
  .edu-major { font-size: 13px; color: var(--text2); margin-bottom: 6px; }
  .edu-period { font-size: 12px; color: var(--purple); }

  /* ── PORTFOLIO CARDS ── */
  .portfolio-section { margin-bottom: 56px; }
  .portfolio-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
  }
  .portfolio-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
  }
  .portfolio-section-count {
    font-size: 12px;
    color: var(--text2);
    background: var(--bg3);
    padding: 2px 10px;
    border-radius: 10px;
  }

  /* Masonry-ish card grid */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  @media (max-width: 700px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  }

  .work-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    position: relative;
  }
  .work-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79,156,245,0.4);
    box-shadow: 0 12px 36px rgba(0,0,0,0.4), var(--accent-glow);
  }
  .card-cover {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: var(--bg3);
  }
  .card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s;
  }
  .work-card:hover .card-cover img { transform: scale(1.05); }
  .card-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,17,23,0.85) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 12px;
  }
  .work-card:hover .card-cover-overlay { opacity: 1; }
  .card-cover-overlay .open-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--blue);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
  }
  .card-body {
    padding: 12px 14px 14px;
  }
  .card-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 7px;
  }
  .tag {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 8px;
    letter-spacing: 0.3px;
  }
  .tag-blue   { background: rgba(79,156,245,0.12); color: var(--blue); }
  .tag-purple { background: rgba(167,139,250,0.12); color: var(--purple); }
  .tag-green  { background: rgba(52,211,153,0.12); color: var(--green); }
  .tag-amber  { background: rgba(245,158,11,0.12); color: var(--amber); }
  .tag-pink   { background: rgba(244,114,182,0.12); color: var(--pink); }
  .tag-teal   { background: rgba(34,211,238,0.12); color: var(--teal); }

  .card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* ── IP CARDS ── */
  .ip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }
  @media (max-width: 600px) { .ip-grid { grid-template-columns: 1fr; } }
  .ip-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 24px;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .ip-card:hover { border-color: rgba(244,114,182,0.3); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
  .ip-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
  }
  .ip-desc {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 14px;
  }
  .ip-links { display: flex; gap: 8px; flex-wrap: wrap; }
  .ip-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text);
    background: var(--bg3);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.15s;
  }
  .ip-link:hover { background: rgba(79,156,245,0.1); border-color: var(--blue); color: var(--blue); }

  /* ── ARTICLE LINK LIST (for columns) ── */
  .article-list { list-style: none; }
  .article-list li {
    border-bottom: 1px solid var(--border);
  }
  .article-list li:last-child { border-bottom: none; }
  .article-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    text-decoration: none;
    transition: background 0.15s;
  }
  .article-link:hover .al-title { color: var(--blue); }
  .al-icon { font-size: 14px; flex-shrink: 0; }
  .al-title {
    font-size: 13.5px;
    color: var(--text3);
    line-height: 1.5;
    transition: color 0.15s;
  }
  .al-arrow {
    margin-left: auto;
    font-size: 12px;
    color: var(--text2);
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
  }
  .article-link:hover .al-arrow { opacity: 1; transform: translateX(3px); }

  /* ── PLANNING CARDS ── */
  .planning-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  @media (max-width: 700px) { .planning-grid { grid-template-columns: repeat(2, 1fr); } }
  .plan-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
  }
  .plan-card:hover { transform: translateY(-3px); border-color: rgba(167,139,250,0.35); }
  .plan-cover {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg3);
  }
  .plan-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s;
  }
  .plan-card:hover .plan-cover img { transform: scale(1.04); }
  .plan-body {
    padding: 12px 14px 14px;
  }
  .plan-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.55;
  }
  .plan-sub {
    font-size: 11px;
    color: var(--text2);
    margin-top: 5px;
  }

  /* ── LIGHTBOX ── */
  .lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 999;
    align-items: center;
    justify-content: center;
  }
  .lightbox.open { display: flex; }
  .lb-img {
    max-height: 90vh;
    max-width: 88vw;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  }
  .lb-close {
    position: absolute;
    top: 20px; right: 24px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s;
    background: none; border: none;
    line-height: 1;
  }
  .lb-close:hover { opacity: 1; }
  .lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    background: none; border: none;
    opacity: 0.5;
    transition: opacity 0.15s, transform 0.15s;
    padding: 12px;
  }
  .lb-nav:hover { opacity: 1; }
  .lb-nav.prev { left: 16px; }
  .lb-nav.next { right: 16px; }
  .lb-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.4);
    padding: 4px 14px;
    border-radius: 20px;
  }
