/*
 * theme-c.css — 「双面」皮肤：机器外壳终端 + 人内核纸面
 * 全部规则作用域化到 .sjy-theme-c，不污染全局。
 * @keyframes 全局定义（无作用域）。
 * 不重复 theme-base.css 的 reset / 切换器 / 弹层。
 */

/* ============================================================
   CSS CUSTOM PROPERTIES (scoped)
   ============================================================ */
.sjy-theme-c {
  /* Machine palette */
  --m-bg:         #0d1117;
  --m-card:       #161b22;
  --m-border:     #30363d;
  --m-green:      #39d353;
  --m-text:       #e6edf3;
  --m-muted:      #8b949e;
  --m-red:        #f85149;
  --m-dim-green:  #1e4029;

  /* Human palette */
  --h-bg:         #faf9f7;
  --h-surface:    #f3f1ec;
  --h-ink:        #1a1a1a;
  --h-ink2:       #4a4742;
  --h-red:        #c41e3a;
  --h-warm:       #e8d4c0;
  --h-border:     #ddd8d0;

  /* Transition zone */
  --t-mid: #1a2030;

  /* Theme accent (required by base contract) */
  --theme-accent: #39d353;

  --radius: 4px;

  /* Body defaults */
  background: var(--m-bg);
  color: var(--m-text);
  font-family: 'Noto Sans SC', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

.sjy-theme-c html {
  scroll-behavior: smooth;
}

/* ============================================================
   HEADER
   ============================================================ */
.sjy-theme-c #site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 56px;
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--m-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  transition: background 0.5s ease, border-color 0.5s ease;
}

.sjy-theme-c #site-header.human-mode {
  background: rgba(250,249,247,0.95);
  border-bottom-color: var(--h-border);
}

.sjy-theme-c .header-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--m-green);
  text-decoration: none;
  transition: color 0.5s ease, font-family 0.5s ease;
  display: flex;
  align-items: center;
  gap: 2px;
}

.sjy-theme-c #site-header.human-mode .header-logo {
  color: var(--h-red);
  font-family: 'Noto Serif SC', serif;
  letter-spacing: 0.05em;
}

.sjy-theme-c .header-logo .cursor-blink {
  display: inline-block;
  width: 9px;
  height: 16px;
  background: var(--m-green);
  vertical-align: middle;
  animation: sjy-c-blink 1s step-end infinite;
  transition: background 0.5s ease;
}

.sjy-theme-c #site-header.human-mode .header-logo .cursor-blink {
  background: var(--h-red);
}

.sjy-theme-c .header-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.sjy-theme-c .header-nav a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--m-muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.sjy-theme-c .header-nav a:hover {
  color: var(--m-green);
}

.sjy-theme-c #site-header.human-mode .header-nav a {
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--h-ink2);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.sjy-theme-c #site-header.human-mode .header-nav a:hover {
  color: var(--h-red);
}

/* ============================================================
   HERO — MACHINE ZONE
   ============================================================ */
.sjy-theme-c #hero {
  min-height: 100vh;
  background: var(--m-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 32px 64px;
  position: relative;
  overflow: hidden;
}

.sjy-theme-c #hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(57,211,83,0.015) 2px,
    rgba(57,211,83,0.015) 4px
  );
  pointer-events: none;
}

.sjy-theme-c .hero-inner {
  width: 100%;
  max-width: 880px;
  position: relative;
  z-index: 1;
}

.sjy-theme-c .terminal-window {
  border: 1px solid var(--m-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(57,211,83,0.08), 0 20px 60px rgba(0,0,0,0.6);
}

.sjy-theme-c .terminal-titlebar {
  background: #1c2128;
  border-bottom: 1px solid var(--m-border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sjy-theme-c .terminal-dots {
  display: flex;
  gap: 6px;
}

.sjy-theme-c .terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.sjy-theme-c .terminal-dots .dot-close  { background: #ff5f57; }
.sjy-theme-c .terminal-dots .dot-min    { background: #febc2e; }
.sjy-theme-c .terminal-dots .dot-max    { background: #28c840; }

.sjy-theme-c .terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--m-muted);
  flex: 1;
  text-align: center;
  letter-spacing: 0.04em;
}

.sjy-theme-c .terminal-body {
  background: var(--m-bg);
  padding: 28px 32px 36px;
}

.sjy-theme-c .terminal-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--m-muted);
  margin-bottom: 4px;
  line-height: 1.6;
}

.sjy-theme-c .terminal-line .prompt { color: var(--m-green); }
.sjy-theme-c .terminal-line .ok     { color: var(--m-green); font-weight: 700; }
.sjy-theme-c .terminal-line .path   { color: #58a6ff; }

.sjy-theme-c .hero-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700;
  color: var(--m-text);
  line-height: 1.15;
  margin: 24px 0 8px;
  letter-spacing: -0.01em;
}

.sjy-theme-c .hero-title-en {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(13px, 2vw, 18px);
  color: var(--m-green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sjy-theme-c .typing-cursor {
  display: inline-block;
  width: 10px;
  height: 1.1em;
  background: var(--m-green);
  vertical-align: text-bottom;
  animation: sjy-c-blink 1s step-end infinite;
}

.sjy-theme-c .hero-tagline-wrap {
  min-height: 28px;
  margin-bottom: 32px;
}

.sjy-theme-c .hero-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--m-muted);
  letter-spacing: 0.02em;
}

.sjy-theme-c .hero-tagline::before {
  content: '> ';
  color: var(--m-green);
}

/* stats */
.sjy-theme-c .hero-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--m-border);
  margin-top: 32px;
  padding-top: 28px;
}

.sjy-theme-c .stat-item {
  flex: 1;
  padding: 0 24px 0 0;
  border-right: 1px solid var(--m-border);
}

.sjy-theme-c .stat-item:first-child { padding-left: 0; }
.sjy-theme-c .stat-item:last-child  { border-right: none; padding-right: 0; }

.sjy-theme-c .stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--m-green);
  line-height: 1;
  letter-spacing: -0.02em;
}

.sjy-theme-c .stat-number span { font-size: 0.45em; vertical-align: super; }

.sjy-theme-c .stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--m-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

.sjy-theme-c .stat-label-cn {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--m-muted);
  opacity: 0.7;
  margin-top: 2px;
}

/* ============================================================
   TRANSITION ZONE
   ============================================================ */
.sjy-theme-c #transition {
  background: linear-gradient(
    to bottom,
    var(--m-bg) 0%,
    #0f1520 15%,
    #141e2e 30%,
    #1a2540 50%,
    #1e2a3a 65%,
    #e8e4dc 85%,
    var(--h-bg) 100%
  );
  padding: 80px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.sjy-theme-c .transition-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(12px, 2vw, 15px);
  color: var(--m-green);
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  text-align: center;
}

.sjy-theme-c .transition-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.sjy-theme-c .transition-line .t-prompt { color: rgba(57,211,83,0.6); }

.sjy-theme-c .transition-arrow {
  margin-top: 28px;
  color: rgba(57,211,83,0.5);
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  animation: sjy-c-bounce-down 2s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.8s ease 0.4s;
}

.sjy-theme-c .transition-arrow.visible { opacity: 1; }

/* ============================================================
   SHARED HUMAN ZONE BASE
   ============================================================ */
.sjy-theme-c .human-zone {
  background: var(--h-bg);
  color: var(--h-ink);
}

.sjy-theme-c .human-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px;
}

.sjy-theme-c .section-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--h-red);
  margin-bottom: 10px;
}

.sjy-theme-c .section-heading {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--h-ink);
  line-height: 1.2;
  margin-bottom: 8px;
}

.sjy-theme-c .section-heading-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(13px, 1.5vw, 16px);
  font-style: italic;
  color: var(--h-ink2);
  opacity: 0.6;
  margin-bottom: 40px;
  letter-spacing: 0.04em;
}

.sjy-theme-c .section-divider {
  width: 48px;
  height: 2px;
  background: var(--h-red);
  margin: 16px 0 40px;
}

/* ============================================================
   ARTICLES — RECENT LOGS
   ============================================================ */
.sjy-theme-c #articles {
  background: var(--h-bg);
  border-top: 1px solid var(--h-border);
}

.sjy-theme-c .articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--h-border);
}

.sjy-theme-c .article-featured {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  border-right: 1px solid var(--h-border);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  background: var(--h-surface);
  position: relative;
  transition: background 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.sjy-theme-c .article-featured:hover { background: #edeae3; }

.sjy-theme-c .article-featured .big-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 120px;
  font-weight: 600;
  line-height: 1;
  color: var(--h-warm);
  position: absolute;
  top: 16px;
  right: 20px;
  user-select: none;
  letter-spacing: -0.04em;
}

.sjy-theme-c .article-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--h-red);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sjy-theme-c .article-kicker::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--h-red);
}

.sjy-theme-c .article-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--h-ink);
  line-height: 1.45;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}

.sjy-theme-c .article-title:hover { color: var(--h-red); }

.sjy-theme-c .article-meta {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--h-ink2);
  opacity: 0.7;
  margin-top: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.sjy-theme-c .article-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border: 1px solid var(--h-border);
  color: var(--h-ink2);
  opacity: 0.8;
}

.sjy-theme-c .article-list-item {
  border-bottom: 1px solid var(--h-border);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.sjy-theme-c .article-list-item:hover { background: var(--h-surface); }
.sjy-theme-c .article-list-item:last-child { border-bottom: none; }

.sjy-theme-c .article-list-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--h-ink);
  line-height: 1.5;
  transition: color 0.2s ease;
}

.sjy-theme-c .article-list-item:hover .article-list-title { color: var(--h-red); }

.sjy-theme-c .articles-footer {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
}

.sjy-theme-c .btn-text-link {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 14px;
  color: var(--h-red);
  text-decoration: none;
  border-bottom: 1px solid var(--h-red);
  padding-bottom: 2px;
  letter-spacing: 0.04em;
  transition: opacity 0.2s ease;
}

.sjy-theme-c .btn-text-link:hover { opacity: 0.7; }

/* ============================================================
   WEIBO / NEURAL FEED
   ============================================================ */
.sjy-theme-c #weibo {
  background: var(--h-surface);
  border-top: 1px solid var(--h-border);
  border-bottom: 1px solid var(--h-border);
}

.sjy-theme-c .weibo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.sjy-theme-c .weibo-card {
  background: var(--h-bg);
  border: 1px solid var(--h-border);
  padding: 28px 24px 24px;
  position: relative;
  border-left: 3px solid var(--h-red);
}

.sjy-theme-c .weibo-deco-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  color: var(--h-warm);
  line-height: 1;
  position: absolute;
  top: 8px;
  right: 16px;
  user-select: none;
}

.sjy-theme-c .weibo-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  color: var(--h-ink);
  line-height: 1.85;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.sjy-theme-c .weibo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.sjy-theme-c .weibo-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--h-ink2);
  opacity: 0.6;
  letter-spacing: 0.04em;
}

.sjy-theme-c .weibo-loc {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: var(--h-red);
  opacity: 0.8;
}

.sjy-theme-c .weibo-mood {
  font-size: 13px;
}

.sjy-theme-c .weibo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sjy-theme-c .weibo-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--h-ink2);
  opacity: 0.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================================
   TIMELINE — VERSION HISTORY (machine zone return)
   ============================================================ */
.sjy-theme-c #timeline {
  background: var(--m-bg);
  padding: 0;
}

.sjy-theme-c .timeline-transition-in {
  background: linear-gradient(to bottom, var(--h-bg), #101820);
  padding: 60px 32px 40px;
  text-align: center;
}

.sjy-theme-c .timeline-transition-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(57,211,83,0.5);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sjy-theme-c .timeline-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 32px 80px;
  position: relative;
}

.sjy-theme-c .timeline-section-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--m-green);
  margin-bottom: 10px;
  opacity: 0.7;
}

.sjy-theme-c .timeline-section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 700;
  color: var(--m-text);
  margin-bottom: 48px;
}

.sjy-theme-c .timeline-track {
  position: relative;
  padding-left: 48px;
}

.sjy-theme-c .timeline-track::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--m-green), transparent);
  opacity: 0.3;
}

.sjy-theme-c .timeline-node {
  position: relative;
  margin-bottom: 44px;
}

.sjy-theme-c .timeline-node:last-child { margin-bottom: 0; }

.sjy-theme-c .timeline-dot {
  position: absolute;
  left: -40px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--m-dim-green);
  border: 1px solid var(--m-green);
}

.sjy-theme-c .timeline-node.critical .timeline-dot {
  background: rgba(248,81,73,0.25);
  border-color: var(--m-red);
  box-shadow: 0 0 8px rgba(248,81,73,0.4);
  width: 14px;
  height: 14px;
  left: -42px;
  top: 3px;
}

.sjy-theme-c .timeline-version {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--m-green);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.sjy-theme-c .timeline-node.critical .timeline-version {
  color: var(--m-red);
}

.sjy-theme-c .timeline-event-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: var(--m-text);
  font-weight: 500;
  margin-bottom: 5px;
}

.sjy-theme-c .timeline-node.critical .timeline-event-title {
  color: var(--m-red);
  font-weight: 700;
}

.sjy-theme-c .timeline-desc {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 13px;
  color: var(--m-muted);
  line-height: 1.7;
}

.sjy-theme-c .timeline-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--m-muted);
  opacity: 0.6;
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.sjy-theme-c .timeline-node.critical {
  background: rgba(248,81,73,0.04);
  border: 1px solid rgba(248,81,73,0.2);
  padding: 16px 20px;
  margin-left: -20px;
}

.sjy-theme-c .timeline-node.critical .timeline-status {
  color: var(--m-red);
  opacity: 0.7;
}

.sjy-theme-c .timeline-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--m-green);
  text-decoration: none;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(57,211,83,0.3);
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
  display: inline-block;
  margin-top: 6px;
}

.sjy-theme-c .timeline-link:hover { opacity: 0.7; }

.sjy-theme-c .timeline-node.critical .timeline-link {
  color: var(--m-red);
  border-bottom-color: rgba(248,81,73,0.3);
}

.sjy-theme-c .timeline-transition-out {
  background: linear-gradient(to bottom, #101820, var(--h-bg));
  padding: 40px 32px 60px;
  text-align: center;
}

.sjy-theme-c .timeline-transition-out .timeline-transition-label {
  color: rgba(26,26,26,0.3);
}

/* ============================================================
   ABOUT — USER PROFILE
   ============================================================ */
.sjy-theme-c #about {
  background: var(--h-bg);
  border-top: 1px solid var(--h-border);
}

.sjy-theme-c .about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

.sjy-theme-c .about-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.sjy-theme-c .about-avatar {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 2px;
  filter: sepia(0.08) contrast(1.02);
  box-shadow: 4px 4px 0 var(--h-warm);
}

.sjy-theme-c .about-id {
  text-align: center;
}

.sjy-theme-c .about-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--h-ink);
  letter-spacing: 0.05em;
}

.sjy-theme-c .about-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--h-red);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 6px;
}

.sjy-theme-c .about-role-cn {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 13px;
  color: var(--h-ink2);
  opacity: 0.6;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.sjy-theme-c .about-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-style: italic;
  color: var(--h-ink2);
  text-align: center;
  line-height: 1.6;
  margin-top: 4px;
  padding: 0 8px;
  border-left: 2px solid var(--h-warm);
  border-right: 2px solid var(--h-warm);
}

.sjy-theme-c .about-bio {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  color: var(--h-ink);
  line-height: 1.9;
  margin-bottom: 40px;
}

.sjy-theme-c .skills-heading {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--h-ink2);
  opacity: 0.6;
  margin-bottom: 20px;
}

.sjy-theme-c .skill-row {
  display: grid;
  grid-template-columns: 200px 1fr 40px;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.sjy-theme-c .skill-label {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 13px;
  color: var(--h-ink2);
}

.sjy-theme-c .skill-track {
  height: 2px;
  background: var(--h-border);
  position: relative;
  overflow: visible;
}

.sjy-theme-c .skill-fill {
  height: 100%;
  background: var(--h-red);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s cubic-bezier(0.25,1,0.5,1);
}

.sjy-theme-c .skill-fill.animated { transform: scaleX(1); }

.sjy-theme-c .skill-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--h-ink2);
  opacity: 0.6;
  text-align: right;
}

.sjy-theme-c .about-connect {
  margin-top: 40px;
}

.sjy-theme-c .about-connect a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 14px;
  color: var(--h-red);
  text-decoration: none;
  border: 1px solid var(--h-red);
  padding: 10px 24px;
  letter-spacing: 0.06em;
  transition: background 0.2s ease, color 0.2s ease;
}

.sjy-theme-c .about-connect a:hover {
  background: var(--h-red);
  color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.sjy-theme-c #footer {
  background: var(--h-surface);
  border-top: 1px solid var(--h-border);
  padding: 40px 32px;
}

.sjy-theme-c .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.sjy-theme-c .footer-sig {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--h-ink2);
}

.sjy-theme-c .footer-sig strong {
  color: var(--h-ink);
}

.sjy-theme-c .footer-meta {
  text-align: right;
}

.sjy-theme-c .footer-copyright {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--h-ink2);
  opacity: 0.5;
  letter-spacing: 0.04em;
}

.sjy-theme-c .footer-icp {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  margin-top: 4px;
}

.sjy-theme-c .footer-icp a {
  color: var(--h-ink2);
  opacity: 0.5;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.sjy-theme-c .footer-icp a:hover { opacity: 0.9; }

.sjy-theme-c .footer-session {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--h-ink2);
  opacity: 0.35;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.sjy-theme-c .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.sjy-theme-c .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .sjy-theme-c .articles-grid {
    grid-template-columns: 1fr;
  }
  .sjy-theme-c .article-featured {
    grid-column: 1;
    grid-row: auto;
    min-height: 260px;
    border-right: none;
    border-bottom: 1px solid var(--h-border);
  }
  .sjy-theme-c .weibo-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sjy-theme-c .about-grid {
    grid-template-columns: 1fr;
  }
  .sjy-theme-c .about-avatar-col {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }
  .sjy-theme-c .about-id { text-align: left; }
  .sjy-theme-c .about-quote {
    text-align: left;
    border-right: none;
    border-left: 2px solid var(--h-warm);
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .sjy-theme-c #site-header { padding: 0 20px; }
  .sjy-theme-c .header-nav a:nth-child(n+3) { display: none; }
  .sjy-theme-c .terminal-body { padding: 20px 20px 28px; }
  .sjy-theme-c .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  .sjy-theme-c .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--m-border);
    padding: 0 0 20px;
  }
  .sjy-theme-c .stat-item:last-child { border-bottom: none; padding-bottom: 0; }
  .sjy-theme-c .human-section { padding: 56px 20px; }
  .sjy-theme-c .articles-grid { grid-template-columns: 1fr; }
  .sjy-theme-c .weibo-grid { grid-template-columns: 1fr; }
  .sjy-theme-c .about-avatar-col {
    flex-direction: column;
    align-items: center;
  }
  .sjy-theme-c .about-id { text-align: center; }
  .sjy-theme-c .about-quote {
    text-align: center;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--h-warm);
    border-bottom: 1px solid var(--h-warm);
    padding: 8px;
  }
  .sjy-theme-c .skill-row { grid-template-columns: 140px 1fr 36px; }
  .sjy-theme-c .footer-inner { flex-direction: column; text-align: center; }
  .sjy-theme-c .footer-meta { text-align: center; }
}

@media (max-width: 480px) {
  .sjy-theme-c .header-nav { gap: 16px; }
  .sjy-theme-c .header-nav a { font-size: 11px; }
  .sjy-theme-c .hero-title { font-size: 36px; }
  .sjy-theme-c .about-avatar { width: 140px; height: 140px; }
}

/* ============================================================
   GLOBAL @KEYFRAMES (not scoped — animation names are global)
   ============================================================ */
@keyframes sjy-c-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes sjy-c-bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* reduced motion — override transitions/animations inside scope */
@media (prefers-reduced-motion: reduce) {
  .sjy-theme-c *,
  .sjy-theme-c *::before,
  .sjy-theme-c *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
