:root {
  --ink: #17181d;
  --muted: #5d6470;
  --paper: #ffffff;
  --wash: #f6f4ef;
  --line: #e7e2d8;
  --accent: #ff1a75;
  --accent-dark: #d90f60;
  --navy: #14122e;
  --green: #27694e;
  --shell: min(1120px, calc(100% - 3rem));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.shell { width: var(--shell); margin: 0 auto; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 64px;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; color: var(--accent); }

.site-nav {
  display: flex;
  gap: 1.4rem;
  font-size: .95rem;
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(118deg, #101c46 0%, #2c1c5c 42%, #7c2168 78%, #c2246f 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/hero.jpg") center / cover no-repeat;
  background-size: 108% auto;
  animation: hero-drift 42s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 45%, rgba(8, 10, 30, .12) 0%, rgba(8, 10, 30, .3) 72%, rgba(8, 10, 30, .42) 100%);
}

@keyframes hero-drift {
  from { background-position: 46% 40%; }
  to { background-position: 54% 58%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; background-position: 50% 48%; }
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(6rem, 16vh, 10rem) 0 clamp(5.5rem, 15vh, 9rem);
}

.kicker {
  margin: 0 0 1.1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .22em;
  color: #ffd7e8;
}

.hero h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  line-height: 1.28;
  letter-spacing: -.02em;
  font-weight: 700;
  text-shadow: 0 2px 30px rgba(5, 6, 24, .35);
}

.lede {
  margin: 0 0 2rem;
  max-width: 42rem;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  color: rgba(255, 255, 255, .93);
  text-shadow: 0 1px 18px rgba(5, 6, 24, .32);
}

.actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .78rem 1.35rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-dark); }
.button.ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .55); }
.button.ghost:hover { background: rgba(255, 255, 255, .2); }

.section { padding: clamp(3.2rem, 7vw, 5rem) 0; }

.section-head { margin-bottom: 2rem; }
.section-head h2 {
  margin: 0 0 .5rem;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  letter-spacing: -.01em;
}
.section-head p { margin: 0; color: var(--muted); }

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.channel-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.4rem 1.3rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.channel-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: #d9b7c7;
  box-shadow: 0 10px 28px rgba(23, 24, 29, .07);
}

.channel-label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--accent);
}
.channel-card h3 { margin: 0; font-size: 1.06rem; line-height: 1.5; }
.channel-card p { margin: 0; font-size: .9rem; color: var(--muted); }
.channel-go { margin-top: auto; padding-top: .6rem; font-size: .82rem; color: var(--green); font-weight: 600; }

.factory { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.factory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.factory-item {
  padding: 1.5rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.factory-index {
  display: inline-block;
  margin-bottom: .7rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
}
.factory-item h3 { margin: 0 0 .45rem; font-size: 1.08rem; }
.factory-item p { margin: 0; font-size: .92rem; color: var(--muted); }

.factory-note { margin: 1.6rem 0 0; color: var(--muted); font-size: .95rem; }
.factory-note a { color: var(--green); font-weight: 600; }

.latest-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.latest-list li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.latest-date { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; padding-top: .2rem; }
.latest-list h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.latest-list h3 a { color: var(--ink); }
.latest-list h3 a:hover { color: var(--accent); }
.latest-list p { margin: 0; color: var(--muted); font-size: .92rem; }
.latest-list p a { color: var(--green); font-weight: 600; }

.subscribe-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: 14px;
  background: linear-gradient(120deg, #14122e 0%, #2a1b4e 55%, #55184f 100%);
  color: #fff;
}
.subscribe-card h2 { margin: 0 0 .4rem; font-size: 1.35rem; }
.subscribe-card p { margin: 0; color: rgba(255, 255, 255, .82); font-size: .95rem; }
.subscribe-card .button { flex-shrink: 0; }

.site-footer { border-top: 1px solid var(--line); background: var(--wash); padding: 2.4rem 0; }
.footer-inner { display: grid; gap: 1.1rem; }
.footer-inner strong { font-size: 1.05rem; }
.footer-inner p { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .9rem; }
.footer-inner nav a { color: var(--muted); }
.footer-inner nav a:hover { color: var(--ink); }
.footer-meta { font-size: .82rem !important; }

@media (max-width: 960px) {
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factory-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --shell: min(1120px, calc(100% - 2rem)); }
  .header-inner { flex-direction: column; align-items: flex-start; gap: .4rem; padding: .7rem 0; }
  .site-nav { flex-wrap: wrap; gap: .5rem 1rem; font-size: .88rem; }
  .hero-inner { padding: 3.6rem 0 3.2rem; }
  .channel-grid { grid-template-columns: 1fr; }
  .latest-list li { grid-template-columns: 1fr; gap: .3rem; }
  .subscribe-card { flex-direction: column; align-items: flex-start; }
  .wide-only { display: none; }
}
