/* ── Extracted from index.html ── */
:root {
      --bg: oklch(98% 0.004 250);
      --panel: oklch(95% 0.006 250);
      --text: oklch(14% 0.01 250);
      --muted: oklch(46% 0.012 250);
      --border: oklch(90% 0.008 250);
      --accent: oklch(32% 0.015 250);
      --accent-hover: oklch(22% 0.01 250);
      --serif: "Songti SC", "Noto Serif SC", "STSong", Georgia, serif;
      --sans: "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
      --space-xs: 0.25rem;
      --space-sm: 0.5rem;
      --space-md: 1rem;
      --space-lg: 1.5rem;
      --space-xl: 2.5rem;
      --space-2xl: 4rem;
      --space-3xl: 6rem;
    }

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

    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--sans);
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
      line-height: 1.6;
    }

    /* ── 纸张纹理：淡噪点 + 纤维感 ── */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      opacity: 0.28;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
      background-size: 200px 200px;
    }

    /* ── 顶栏 ── */
    .topbar {
      position: sticky;
      top: 0;
      z-index: 10;
      padding: var(--space-md) var(--space-lg);
      border-bottom: 1px solid var(--border);
      background: var(--bg);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: var(--space-md);
      isolation: isolate;
    }

    .brand {
      font-size: 0.875rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text);
    }

    .nav {
      display: flex;
      flex-wrap: wrap;
      gap: var(--space-sm);
    }

    .nav a {
      color: var(--muted);
      text-decoration: none;
      font-size: 0.8125rem;
      padding: 0.375rem 0.75rem;
      border-radius: 6px;
      transition: color 0.2s ease, background 0.2s ease;
    }

    .nav a:hover {
      color: var(--text);
      background: var(--panel);
    }

    /* ── 主内容区 ── */
    main {
      position: relative;
      z-index: 1;
      width: min(1120px, 92vw);
      margin: 0 auto;
      padding: var(--space-2xl) 0 var(--space-3xl);
    }

    /* ── Hero ── */
    .hero {
      min-height: 60vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: var(--space-lg);
      border-bottom: 1px solid var(--border);
      padding-bottom: var(--space-2xl);
    }

    .micro {
      color: var(--muted);
      font-size: 0.75rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
    }

    h1 {
      font-family: var(--serif);
      font-weight: 400;
      line-height: 1.1;
      letter-spacing: 0.02em;
      font-size: clamp(2.75rem, 8vw, 7rem);
    }

    .hero .muted {
      color: var(--muted);
      font-style: italic;
    }

    .hero p {
      max-width: 56ch;
      color: var(--muted);
      line-height: 1.9;
      font-size: 1rem;
    }

    .hero-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

    .btn {
      text-decoration: none;
      border: 1px solid var(--border);
      color: var(--muted);
      border-radius: 6px;
      padding: 0.5rem 1rem;
      font-size: 0.8125rem;
      transition: all 0.15s ease;
    }

    .btn:hover {
      color: var(--text);
      border-color: oklch(72% 0.01 250);
    }

    .btn.primary, .hero-actions .btn:first-child {
      background: var(--accent);
      color: oklch(98% 0.004 250);
      border-color: var(--accent);
      font-weight: 600;
    }

    .btn.primary:hover, .hero-actions .btn:first-child:hover {
      background: var(--accent-hover);
      border-color: var(--accent-hover);
    }

    /* ── Section 通用 ── */
    section {
      border-top: 1px solid var(--border);
      padding: var(--space-2xl) 0;
    }

    .title {
      margin: 0 0 var(--space-md);
      font-size: 0.75rem;
      color: var(--muted);
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }

    /* ── 统计数据 ── */
    .stats {
      margin-top: var(--space-xl);
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: var(--space-lg);
    }

    .stats.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .stat {
      padding: var(--space-lg) 0;
      border-top: 2px solid var(--border);
    }

    .stat .v {
      font-family: var(--serif);
      font-size: clamp(2rem, 3.5vw, 2.75rem);
      line-height: 1;
      margin-bottom: var(--space-sm);
    }

    .stat .l {
      font-size: 0.875rem;
      margin-bottom: var(--space-xs);
    }

    .stat .s {
      color: var(--muted);
      font-size: 0.6875rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    /* ── 关于（融入 Hero 下方）── */
    .about-head {
      font-family: var(--serif);
      line-height: 1.35;
      font-size: clamp(1.75rem, 4vw, 3.25rem);
      max-width: 980px;
    }

    .about-head em {
      color: var(--muted);
      font-style: italic;
    }

    .about-text {
      margin-top: var(--space-lg);
      color: var(--muted);
      font-size: 1rem;
      line-height: 1.9;
      max-width: 56ch;
    }

    /* ── 项目矩阵 ── */
    .track {
      padding: var(--space-xl) 0;
      border-bottom: 1px solid var(--border);
    }

    .track:last-child { border-bottom: 0; }

    .track-head {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      margin-bottom: var(--space-lg);
    }

    .track-name {
      font-family: var(--serif);
      font-size: clamp(1.25rem, 2vw, 1.625rem);
    }

    .track-count {
      color: var(--muted);
      font-size: 0.75rem;
      letter-spacing: 0.06em;
    }

    .project {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: var(--space-md);
      padding: var(--space-sm) 0;
      cursor: pointer;
      user-select: none;
      -webkit-user-select: none;
    }

    .project + .project {
      border-top: 1px solid oklch(93% 0.006 250);
    }

    .project-left {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
      flex: 1;
    }

    .project-name {
      font-size: 0.9375rem;
      font-weight: 500;
    }

    .project-name a {
      color: var(--text);
      text-decoration: none;
      transition: color 0.15s;
    }

    .project-name a:hover { color: var(--accent); }

    .project-desc {
      color: var(--muted);
      font-size: 0.8125rem;
      line-height: 1.5;
    }

    .project-metric {
      color: var(--muted);
      font-size: 0.75rem;
      white-space: nowrap;
      text-align: right;
      flex-shrink: 0;
    }

    .project-metric strong {
      color: var(--text);
      font-weight: 600;
    }

    /* ── 经历 ── */
    .exp {
      padding: var(--space-xl) 0;
      border-bottom: 1px solid var(--border);
    }

    .exp:last-child { border-bottom: 0; }

    .exp .period {
      color: var(--muted);
      font-size: 0.75rem;
      letter-spacing: 0.06em;
    }

    .exp .company {
      margin-top: var(--space-sm);
      font-family: var(--serif);
      font-size: clamp(1.5rem, 2.5vw, 2rem);
    }

    .exp .role {
      color: var(--muted);
      font-size: 0.875rem;
      margin-top: var(--space-xs);
    }

    .exp .narrative {
      margin-top: var(--space-md);
      color: var(--muted);
      font-size: 0.9375rem;
      line-height: 1.85;
      max-width: 64ch;
    }

    .exp ul {
      margin: var(--space-md) 0 0;
      padding-left: 1.125rem;
      color: var(--muted);
      line-height: 1.85;
      font-size: 0.9375rem;
    }

    /* ── 文章列表 ── */
    .article {
      display: flex;
      justify-content: space-between;
      gap: var(--space-md);
      align-items: center;
      border-top: 1px solid var(--border);
      padding: var(--space-md) 0;
    }

    .article .name {
      font-family: var(--serif);
      font-size: 1.125rem;
    }

    .article .meta {
      color: var(--muted);
      font-size: 0.75rem;
      white-space: nowrap;
    }

    /* ── 联系与底部 (Redesigned) ── */
    .contact-section {
      padding: var(--space-2xl) 0 var(--space-xl);
      border-top: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      gap: var(--space-xl);
    }

    .section-label {
      margin: 0;
      font-size: 0.75rem;
      color: var(--muted);
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }

    .contact-body {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: var(--space-2xl);
      align-items: end;
      padding-bottom: var(--space-xl);
    }

    .contact-headline {
      font-family: var(--serif);
      font-size: clamp(4rem, 10vw, 8.5rem);
      font-weight: 400;
      line-height: 1.05;
      letter-spacing: -0.02em;
      margin: 0;
    }

    .contact-headline .muted {
      color: var(--muted);
      font-style: italic;
    }

    .contact-content {
      display: flex;
      flex-direction: column;
      gap: var(--space-lg);
      margin-bottom: 1.5rem;
    }

    .contact-content p {
      color: var(--muted);
      font-size: 1rem;
      line-height: 1.8;
      max-width: 24ch;
      margin: 0;
    }

    .contact-links {
      display: flex;
      flex-direction: column;
      gap: var(--space-sm);
    }

    .link-primary, .link-secondary {
      font-size: 0.875rem;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding-bottom: 0.25rem;
      border-bottom: 1px solid transparent;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      width: fit-content;
    }

    .link-primary {
      font-size: 1.25rem;
      font-family: var(--serif);
      color: var(--text);
      border-bottom-color: var(--border);
    }

    .link-secondary {
      color: var(--muted);
    }

    .link-primary:hover, .link-secondary:hover {
      color: var(--accent);
      border-bottom-color: var(--accent);
      transform: translateX(4px);
    }

    .link-icon {
      font-size: 0.8em;
      transition: transform 0.3s ease;
    }

    .link-primary:hover .link-icon, .link-secondary:hover .link-icon {
      transform: translate(2px, -2px);
    }

    /* ── 页脚 ── */
    .site-footer {
      padding-top: var(--space-xl);
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: var(--muted);
      font-size: 0.75rem;
      letter-spacing: 0.04em;
      border-top: 1px solid var(--border);
    }

    .footer-right {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .status-dot {
      width: 6px;
      height: 6px;
      background-color: oklch(70% 0.12 150);
      border-radius: 50%;
      position: relative;
      display: inline-block;
    }

    .status-dot::after {
      content: '';
      position: absolute;
      inset: -4px;
      border-radius: 50%;
      border: 1px solid oklch(70% 0.12 150);
      animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }

    @keyframes pulse {
      0% { transform: scale(0.5); opacity: 1; }
      100% { transform: scale(1.5); opacity: 0; }
    }

    /* ── 响应式 ── */
    @media (max-width: 980px) {
      .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .stats.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 700px) {
      .topbar { padding: var(--space-md); }
      main { width: 94vw; padding-top: var(--space-xl); }
      .stats.six { grid-template-columns: 1fr; }
      .project { flex-direction: column; align-items: flex-start; }
      .project-metric { text-align: left; }
      .article { flex-direction: column; align-items: flex-start; }
      .contact-body { grid-template-columns: 1fr; gap: var(--space-xl); }
      .contact-content { margin-bottom: 0; }
      .site-footer { flex-direction: column; align-items: flex-start; gap: var(--space-xs); }
    }
