/* 廖聊Ai — 纯黑硬核风：黑底，巨大无衬线白字，左对齐 */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #8a8a8a;
  --hairline: #232323;
  --accent: #ff4d1c;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
           "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
  color-scheme: dark light;
}
:root[data-theme="light"] {
  --bg: #f9f6f0;
  --fg: #1a1a1a;
  --muted: #7a756c;
  --hairline: #e3ded2;
  --accent: #e64a19;
}
/* 默认纯黑；手动切浅色用 data-theme="light" */

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
}

.wrap, .prose-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.prose-wrap { max-width: 44rem; }

h1, h2, h3 { font-family: var(--sans); font-weight: 800; line-height: 1.25; margin: 0 0 0.6em; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }

a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

/* 顶栏 */
.site-header { border-bottom: 1px solid var(--hairline); }
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: 0.02em; }
.brand-mark { display: none; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; font-size: 0.95rem; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.theme-btn {
  background: none; border: 1px solid var(--hairline); border-radius: 999px;
  width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--fg); padding: 0;
}
.theme-btn svg { width: 1rem; height: 1rem; }

/* Hero */
.hero-card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 0 4rem;
}
.hero-tag {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}
.hero-name {
  font-size: clamp(3.8rem, 11vw, 7.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
}
.hero-desc { color: var(--muted); max-width: 32rem; font-size: 1.05rem; }
.hero-desc strong { color: var(--fg); font-weight: 600; }
.hero-avatar { text-align: right; }
.hero-avatar img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--hairline);
}

/* 入口列表 */
.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--hairline);
  margin: 0 0 3rem;
}
.entry {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.8rem 1rem;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
}
.entry:nth-child(odd) { border-right: 1px solid var(--hairline); }
a.entry:hover { background: rgba(255, 255, 255, 0.03); }
a.entry:hover .entry-title { color: var(--accent); }
.entry-num { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }
.entry-body { flex: 1; }
.entry-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.15em; }
.entry-desc { color: var(--muted); font-size: 0.9rem; margin: 0; }
.entry-arrow { color: var(--muted); font-size: 1.6rem; font-weight: 300; }
a.entry:hover .entry-arrow { color: var(--accent); }

/* 文章列表 */
.section { padding: 1rem 0 2rem; }
.section-head { margin-bottom: 0.8rem; }
.section-title { font-size: 1.8rem; }
.section-more { display: none; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--hairline);
}
.post-list li:first-child { border-top: 1px solid var(--hairline); }
.post-list a { text-decoration: none; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.post-list a:hover { color: var(--accent); }
.post-list .date { flex-shrink: 0; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }

/* 兼容旧结构 */
.post-grid { display: block; }
.post-card { display: block; text-decoration: none; padding: 1rem 0; border-bottom: 1px solid var(--hairline); }
.post-card h3 { font-size: 1.1rem; margin-bottom: 0.25em; }
.post-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.4em; }
.post-card .meta { font-size: 0.8rem; color: var(--muted); font-family: var(--mono); }
.post-card .meta span + span::before { content: " · "; }
.tag, .read-more { display: none; }
.about-strip { display: block; }
.about-strip > div { margin-bottom: 1.5rem; }
.channel-list { list-style: none; margin: 0; padding: 0; }
.channel-list li { display: flex; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid var(--hairline); }
.channel-icon { display: none; }
.channel-list .t { font-weight: 600; }
.channel-list .d { color: var(--muted); font-size: 0.92rem; }

/* 文章页 */
.article-hero { margin-bottom: 2rem; padding-top: 1rem; }
.article-hero h1 { font-size: 2.1rem; letter-spacing: -0.02em; }
.article-hero .tag {
  display: inline-block; font-size: 0.8rem; font-family: var(--mono); color: var(--muted);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 0.15em 0.8em; margin-bottom: 1rem;
}
.article-meta { display: flex; gap: 1rem; font-size: 0.85rem; font-family: var(--mono); color: var(--muted); }
.article-body { max-width: 65ch; }
.article-body h2 { font-size: 1.4rem; }
.article-body hr { border: none; border-top: 1px solid var(--hairline); margin: 2em auto; max-width: 12rem; }
.article-body ol, .article-body ul { padding-left: 1.4em; }
.article-body li { margin-bottom: 0.5em; }
.article-end { text-align: center; color: var(--muted); margin: 2.5rem 0; letter-spacing: 0.4em; font-size: 0.85rem; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--hairline); padding-top: 1.2rem; margin-top: 1rem; }
.post-nav a { text-decoration: none; max-width: 45%; }
.post-nav a.next { text-align: right; margin-left: auto; }
.post-nav .label { display: block; font-size: 0.8rem; font-family: var(--mono); color: var(--muted); margin-bottom: 0.2em; }
.post-nav .title { font-weight: 700; }
.post-nav a:hover .title { color: var(--accent); }
.back-home { display: inline-block; margin-top: 1.5rem; font-size: 0.9rem; color: var(--muted); text-decoration: none; }
.back-home:hover { color: var(--accent); }

/* 关于页 */
.about-hero { margin-bottom: 2rem; padding-top: 1rem; }
.about-hero h1 { font-size: 2.1rem; letter-spacing: -0.02em; }
.lede { color: var(--muted); font-size: 1.05rem; }
.timeline { margin: 0; padding: 0; }
.timeline-item { padding: 1.2rem 0; border-bottom: 1px solid var(--hairline); }
.timeline-item:first-child { border-top: 1px solid var(--hairline); }
.timeline-item .year { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 0.3em; }
.timeline-item h3 { font-size: 1.15rem; margin-bottom: 0.3em; }
.timeline-item p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* 页脚 */
.site-footer { border-top: 1px solid var(--hairline); margin-top: 3rem; }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 1.5rem 1.5rem 2.5rem; }
.footer-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.footer-contact .k { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 0.2em; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-contact .v { font-size: 1.2rem; font-weight: 800; }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.82rem; font-family: var(--mono); color: var(--muted); }

.btn { display: inline-block; text-decoration: none; border: 1px solid var(--hairline); border-radius: 999px; padding: 0.45em 1.2em; font-size: 0.9rem; color: var(--fg); }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.hero, .hero-bg, .hero-kicker, .hero-cta, .dot, .hero-sub { display: none; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero-card { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0 2.5rem; }
  .hero-avatar { order: -1; text-align: left; }
  .hero-avatar img { max-width: 200px; }
  .entry-grid { grid-template-columns: 1fr; }
  .entry:nth-child(odd) { border-right: none; }
  .footer-contact { grid-template-columns: 1fr; }
  .post-list li { flex-direction: column; gap: 0.15rem; align-items: flex-start; }
}

/* 一页式区块：Hero / 关于 / 愿景 / 项目 / 进展 */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  padding: 5.5rem 0 5rem;
  border-bottom: 1px solid var(--hairline);
}
.hero-name {
  font-size: clamp(3.8rem, 12vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 0.5em;
}
.hero-sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.2rem; }
.hero-link {
  display: inline-flex; align-items: center; gap: 0.4em;
  text-decoration: none; font-size: 0.95rem; color: var(--fg);
  border-bottom: 1px solid var(--hairline); padding-bottom: 0.3em;
}
.hero-link:hover { color: var(--accent); border-color: var(--accent); }
.hero-link span { color: var(--accent); }
.hero-photo { text-align: right; }
.hero-photo img {
  width: 100%; max-width: 380px; aspect-ratio: 4/5; object-fit: cover;
  border: 1px solid var(--hairline);
}

.block { padding: 4.5rem 0; border-bottom: 1px solid var(--hairline); }
.block-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 1.2rem;
}
.block-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: start; }
.kicker {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.18em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 1.2rem;
}
.kicker-dash { display: inline-block; width: 2rem; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 0.8em; }
.block-para { color: var(--muted); max-width: 38rem; font-size: 1.02rem; }
.block-para.narrow { max-width: 30rem; }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2rem; }
.block-head .block-para { margin: 0; }
.block-head .right { text-align: right; }
.about-row { display: flex; gap: 2rem; margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--hairline); font-size: 0.9rem; color: var(--muted); }
.archive-label {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.2em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 0.8rem; text-align: right;
}
.archive img { width: 100%; max-width: 340px; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--hairline); display: block; margin-left: auto; }

.vision-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem;
  margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--hairline);
}
.vision-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5em; }
.vision-item p { color: var(--muted); font-size: 0.88rem; margin: 0; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project-card { border: 1px solid var(--hairline); padding: 0; background: transparent; }
.project-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; border-bottom: 1px solid var(--hairline); }
.project-kicker {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.2em;
  color: var(--muted); text-transform: uppercase; padding: 1.2rem 1.2rem 0;
}
.project-card h3 { font-size: 1.3rem; padding: 0.6rem 1.2rem 0; margin-bottom: 0.4em; }
.project-card p { color: var(--muted); font-size: 0.9rem; padding: 0 1.2rem; }
.project-tags { display: flex; gap: 0.6rem; padding: 0 1.2rem 1.2rem; flex-wrap: wrap; }
.project-tags span {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--muted); border: 1px solid var(--hairline); border-radius: 999px; padding: 0.25em 0.8em;
  text-transform: uppercase;
}

.progress-list { margin-top: 2rem; border-top: 1px solid var(--hairline); }
.progress-row {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--hairline); align-items: baseline;
}
.progress-name { font-weight: 800; font-size: 1.05rem; }
.progress-tags { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; margin-top: 0.3em; font-weight: 400; }
.progress-desc { color: var(--muted); font-size: 0.95rem; margin: 0; }

@media (max-width: 900px) {
  .vision-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
  .block-grid { grid-template-columns: 1fr; }
  .archive img { margin-left: 0; }
  .archive-label { text-align: left; }
  .block-head { flex-direction: column; align-items: flex-start; }
  .block-head .right { text-align: left; }
  .progress-row { grid-template-columns: 1fr; gap: 0.4rem; }
}
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding: 3.5rem 0 3rem; }
  .hero-photo { order: -1; text-align: left; }
  .hero-photo img { max-width: 240px; }
  .vision-grid { grid-template-columns: 1fr; }
  .about-row { flex-wrap: wrap; gap: 1rem; }
}
