@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:wght@400;500;600;700&family=Jost:wght@300;400;500;600;700&display=swap');

/* ── 重置 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── 根变量 ── */
:root {
  --black: #000000;
  --white: #ffffff;
  --grey-10: #f5f5f5;
  --grey-20: #e8e8e8;
  --grey-50: #888888;
  --grey-80: #222222;
  --accent: #000000;
  --font-serif: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  --font-sans: 'Jost', system-ui, -apple-system, sans-serif;
  --max-w: 1280px;
  --gap: 2rem;
}

/* ── 基础 ── */
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

/* ── 页头 ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--black);
}

.header-brand {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 2rem 0.75rem;
  border-bottom: 1px solid var(--grey-20);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
}

.brand-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--black);
  padding: 0.15rem 0.5rem;
  line-height: 1.4;
}

.site-nav {
  padding: 0 2rem;
}

.site-nav p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  min-height: 2.8rem;
}

.site-nav p a {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.7rem 0.9rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-right: 1px solid var(--grey-20);
  transition: background 0.15s;
  white-space: nowrap;
}

.site-nav p a:first-child { border-left: 1px solid var(--grey-20); }

.site-nav p a:hover {
  background: var(--black);
  color: var(--white);
}

/* ── 主容器 ── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Hero（首页） ── */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  border-bottom: 2px solid var(--black);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 100vh;
}

.hero-media {
  border-right: 2px solid var(--black);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-10);
  min-height: 60vw;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 3rem;
  gap: 1.5rem;
}

.hero-badge {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1.5px solid var(--black);
  padding: 0.3rem 0.8rem;
  display: inline-block;
}

.hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--black);
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--grey-80);
  max-width: 28rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 2.2rem;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--black);
  transition: background 0.2s, color 0.2s;
}

.hero-cta:hover {
  background: var(--white);
  color: var(--black);
}

/* ── 内容区（首页正文 + 侧边栏） ── */
.content-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  border-bottom: 2px solid var(--black);
  padding: 5rem 0;
}

.content-body {
  padding-right: 3rem;
  border-right: 1px solid var(--grey-20);
}

/* ── 卡片区 ── */
.cards-section {
  padding: 5rem 0 6rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--black);
  padding-bottom: 1rem;
}

.section-title span { display: inline; }

.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--black);
  border-left: 1px solid var(--black);
}

.card-item {
  border-right: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
}

.card-link {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.8rem;
  height: 100%;
  transition: background 0.2s;
  position: relative;
}

.card-link:hover {
  background: var(--black);
  color: var(--white);
}

.card-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--grey-20);
  transition: color 0.2s;
}

.card-link:hover .card-num { color: var(--grey-50); }

.card-item h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.card-item h3 span { display: inline; }

.card-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--grey-50);
  flex: 1;
  transition: color 0.2s;
}

.card-link:hover .card-desc { color: var(--grey-20); }

.card-date {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--grey-50);
  transition: color 0.2s;
}

.card-link:hover .card-date { color: var(--grey-20); }

.card-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.card-link:hover .card-arrow { opacity: 1; }

/* ── 侧边栏 ── */
.sidebar {
  padding-left: 2.5rem;
}

.sidebar-title {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--black);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.sidebar-title span { display: inline; }
.sidebar-title--mt { margin-top: 2.5rem; }

.sidebar-list li {
  border-bottom: 1px solid var(--grey-20);
}

.sidebar-list li a {
  display: block;
  padding: 0.65rem 0;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.5;
  transition: padding-left 0.15s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.sidebar-list li a:hover {
  padding-left: 0.5rem;
  font-weight: 600;
}

.sidebar-ol {
  list-style: none;
  counter-reset: sidebar-counter;
}

.sidebar-ol li {
  border-bottom: 1px solid var(--grey-20);
  counter-increment: sidebar-counter;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 0;
}

.sidebar-ol li::before {
  content: counter(sidebar-counter, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--grey-50);
}

.sidebar-ol li a {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: padding-left 0.15s;
}

.sidebar-ol li a:hover { padding-left: 0.4rem; font-weight: 600; }

.sidebar-ol li small {
  font-size: 0.7rem;
  color: var(--grey-50);
  font-weight: 300;
}

/* ── 文章页 ── */
.art-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  padding: 4rem 0 6rem;
  border-top: 2px solid var(--black);
}

.art-body {
  padding-right: 3rem;
  border-right: 1px solid var(--grey-20);
}

.art-hero {
  margin-bottom: 2rem;
  overflow: hidden;
  border: 1px solid var(--grey-20);
}

.art-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.art-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.art-date {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--grey-50);
  text-transform: uppercase;
}

.art-h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--black);
  padding-bottom: 1.5rem;
}

.art-desc {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--grey-80);
  margin-bottom: 2.5rem;
}

.art-content {
  font-size: 1rem;
  line-height: 1.8;
}

.art-pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid var(--black);
}

.pag-prev, .pag-next {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--black);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s, color 0.15s;
  max-width: 45%;
}

.pag-prev:hover, .pag-next:hover {
  background: var(--black);
  color: var(--white);
}

/* ── 关于页 ── */
.about-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  padding: 5rem 0 6rem;
  border-top: 2px solid var(--black);
}

.about-body {
  padding-right: 3rem;
  border-right: 1px solid var(--grey-20);
}

.about-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--black);
  padding-bottom: 1.5rem;
}

/* ── 隐私页 ── */
.privacy-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  padding: 5rem 0 6rem;
  border-top: 2px solid var(--black);
}

.privacy-body {
  padding-right: 3rem;
  border-right: 1px solid var(--grey-20);
}

.privacy-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--black);
  padding-bottom: 1.5rem;
}

.privacy-meta {
  font-size: 0.78rem;
  color: var(--grey-50);
  margin-bottom: 2rem;
  letter-spacing: 0.06em;
}

/* ── 默认页 ── */
.default-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  padding: 5rem 0 6rem;
  border-top: 2px solid var(--black);
}

.default-body {
  padding-right: 3rem;
  border-right: 1px solid var(--grey-20);
}

.default-body h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--black);
  padding-bottom: 1rem;
}

/* ── 正文内容通用 ── */
.page-content h2,
.art-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--grey-20);
}

.page-content h2 > span,
.art-content h2 > span {
  display: inline;
}

.page-content h3,
.art-content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
}

.page-content h3 > span,
.art-content h3 > span {
  display: inline;
}

.page-content p,
.art-content p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.8;
}

.page-content ul,
.art-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.page-content ol,
.art-content ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.page-content li,
.art-content li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

.page-content a,
.art-content a {
  font-weight: 600;
  border-bottom: 1px solid var(--black);
  transition: opacity 0.15s;
}

.page-content a:hover,
.art-content a:hover {
  opacity: 0.6;
}

.page-content blockquote,
.art-content blockquote {
  border-left: 3px solid var(--black);
  padding: 0.8rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--grey-10);
  font-style: italic;
}

.page-content strong,
.art-content strong {
  font-weight: 700;
}

/* ── 页脚 ── */
.site-footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 3rem 2rem;
  border-top: 2px solid var(--black);
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-bottom: 1.2rem;
}

.footer-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.8rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.25);
  transition: border-color 0.15s;
}

.footer-links a:hover {
  border-color: var(--white);
}

.footer-copy {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* ── 滚动动效 ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease calc(var(--i, 0) * 0.07s),
                transform 0.5s ease calc(var(--i, 0) * 0.07s);
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ── 断点：中等屏 ── */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-media {
    border-right: none;
    border-bottom: 2px solid var(--black);
    min-height: 45vw;
  }
  .hero-text {
    padding: 4rem 2rem;
    min-height: 60vw;
  }
  .content-section,
  .art-section,
  .about-section,
  .privacy-section,
  .default-section {
    grid-template-columns: 1fr;
  }
  .content-body,
  .art-body,
  .about-body,
  .privacy-body,
  .default-body {
    padding-right: 0;
    border-right: none;
    border-bottom: 2px solid var(--black);
    padding-bottom: 3rem;
    margin-bottom: 3rem;
  }
  .sidebar {
    padding-left: 0;
  }
}

/* ── 断点：移动端 ── */
@media (max-width: 600px) {
  .wrap { padding: 0 1rem; }

  .header-brand {
    padding: 0.9rem 1rem 0.6rem;
    flex-wrap: wrap;
  }

  .brand-name {
    font-size: 1rem;
  }

  .site-nav {
    padding: 0 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav p {
    flex-wrap: nowrap;
    min-width: max-content;
  }

  .site-nav p a {
    font-size: 0.72rem;
    padding: 0.6rem 0.7rem;
    white-space: nowrap;
  }

  .hero-text {
    padding: 3rem 1.5rem;
  }

  .hero-h1 {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .card-list {
    grid-template-columns: 1fr;
  }

  .cards-section {
    padding: 3rem 0 4rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .content-section,
  .art-section,
  .about-section,
  .privacy-section {
    padding: 3rem 0 4rem;
  }

  .art-pagination {
    flex-direction: column;
    gap: 0.8rem;
  }

  .pag-prev, .pag-next {
    max-width: 100%;
  }

  .footer-links {
    gap: 0.4rem;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
  }
}
