/* ============================================================
   灯辉煌漫无边 · 个人介绍站
   设计方向：海岸杂志风 · 暖白 + 海青 + 琥珀
   背景：青岛五四广场海岸线
   v3 · 2026
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800;9..144,900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* —— color · 暖白海岸 —— */
  --bg-0: #f5f7fa;
  --bg-1: #eef2f7;
  --bg-2: #e3eaf2;
  --paper: rgba(255, 255, 255, 0.66);
  --paper-strong: rgba(255, 255, 255, 0.82);
  --paper-soft: rgba(255, 255, 255, 0.45);
  --paper-hover: rgba(255, 255, 255, 0.72);

  --line: rgba(30, 58, 95, 0.12);
  --line-strong: rgba(30, 58, 95, 0.24);
  --line-accent: rgba(13, 148, 136, 0.40);

  --ink: #1a2942;
  --ink-dim: rgba(26, 41, 66, 0.72);
  --ink-faint: rgba(26, 41, 66, 0.50);
  --ink-ghost: rgba(26, 41, 66, 0.30);

  /* accents */
  --amber: #ea8a0c;
  --amber-bright: #f59e0b;
  --amber-deep: #c2660a;
  --amber-ink: #fffaf0;
  --amber-soft: rgba(234, 138, 12, 0.14);

  --teal: #0d9488;
  --teal-bright: #14b8a6;
  --teal-deep: #0f766e;
  --teal-soft: rgba(13, 148, 136, 0.12);

  --rose: #e11d48;
  --violet: #7c3aed;

  /* —— type —— */
  --font-display: "Fraunces", "Songti SC", "Noto Serif SC", "STSong", serif;
  --font-body: "Inter", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  /* —— shape —— */
  --radius-xl: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --nav-h: 72px;

  /* —— shadow —— */
  --shadow-sm: 0 2px 12px rgba(30, 58, 95, 0.10);
  --shadow: 0 18px 50px rgba(30, 58, 95, 0.16);
  --shadow-lg: 0 30px 80px rgba(30, 58, 95, 0.22);
  --shadow-amber: 0 16px 40px rgba(234, 138, 12, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-0);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: hidden;
}

::selection {
  background: var(--teal);
  color: #fff;
}

/* —— background layers · 青岛五四广场海岸线 —— */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 800px at 85% -10%, rgba(234, 138, 12, 0.10) 0%, transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(13, 148, 136, 0.10) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
}

.bg-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/bg-qingdao.jpg") center center / cover no-repeat fixed;
  opacity: 0.42;
}

.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(175deg, rgba(245, 247, 250, 0.55) 0%, rgba(238, 242, 247, 0.78) 100%);
}

a {
  color: var(--ink);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================================
   Password gate
   ============================================================ */
.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(238, 242, 247, 0.82);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.gate-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-card {
  width: min(92%, 460px);
  text-align: center;
  padding: 48px 44px;
  background: var(--paper-strong);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  animation: floatIn 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.gate-card::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(13, 148, 136, 0.16), transparent 70%);
  pointer-events: none;
}

.gate-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--teal-deep);
  font-weight: 600;
  margin-bottom: 16px;
  position: relative;
}

.gate-card h2 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  position: relative;
}

.gate-desc {
  color: var(--ink-dim);
  font-size: 0.95rem;
  margin-bottom: 30px;
  position: relative;
}

.gate-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  outline: none;
  margin-bottom: 14px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  position: relative;
}

.gate-input::placeholder {
  color: var(--ink-faint);
}

.gate-input:focus {
  border-color: var(--teal);
  background: rgba(13, 148, 136, 0.08);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.14);
}

.gate-input.shake {
  animation: shake 0.42s ease;
  border-color: var(--rose);
}

.gate-btn {
  width: 100%;
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--teal-bright) 0%, var(--teal-deep) 100%);
  color: #fff;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.2s, filter 0.2s;
  position: relative;
  box-shadow: 0 16px 40px rgba(13, 148, 136, 0.32);
}

.gate-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.gate-btn:active {
  transform: translateY(1px);
}

.gate-error {
  min-height: 1.4em;
  margin-top: 14px;
  color: #be123c;
  font-size: 0.88rem;
  position: relative;
}

/* ============================================================
   Masthead / nav
   ============================================================ */
.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.mast-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.85;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.015em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-top: -1px;
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--ink-dim);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.nav-links a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--teal-bright), var(--teal-deep));
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.32);
}

.nav-links svg {
  width: 15px;
  height: 15px;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 36px 64px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

body.unlocked .container {
  opacity: 1;
  transform: translateY(0);
}

/* shared editorial pieces */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal-deep);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow.teal {
  color: var(--teal-deep);
}

.eyebrow.orange {
  color: var(--amber-deep);
}

.lead {
  font-size: 1.12rem;
  color: var(--ink-dim);
  max-width: 56ch;
}

.rule {
  height: 1px;
  background: var(--line);
  border: none;
  margin: 28px 0;
}

/* ============================================================
   Cover / hero
   ============================================================ */
.cover {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  gap: 56px;
  align-items: end;
  padding: 32px 4px 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.cover-left .eyebrow {
  margin-bottom: 22px;
}

.cover-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 7.5vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}

.cover-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--amber-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.cover-lead {
  font-size: 1.15rem;
  color: var(--ink-dim);
  max-width: 48ch;
  margin-bottom: 32px;
}

.cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
  cursor: pointer;
  border: none;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-bright) 0%, var(--teal-deep) 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(13, 148, 136, 0.32);
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 20px 50px rgba(13, 148, 136, 0.4);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--line-accent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal-deep);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, gap 0.2s;
}

.text-link:hover {
  border-color: var(--teal-deep);
  gap: 10px;
}

.text-link svg {
  width: 15px;
  height: 15px;
}

/* portrait */
.portrait {
  position: relative;
}

.portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  filter: saturate(1.05) contrast(1.04);
  box-shadow: var(--shadow);
}

.portrait::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--teal-bright), transparent 40%, var(--amber-bright));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}

.portrait-cap {
  position: absolute;
  left: -14px;
  bottom: 18px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ============================================================
   Page header
   ============================================================ */
.page-header {
  margin-bottom: 36px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.page-header .eyebrow {
  margin-bottom: 14px;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.page-subtitle {
  margin-top: 14px;
  color: var(--ink-dim);
  font-size: 1.06rem;
  max-width: 60ch;
}

/* ============================================================
   Two-column grid
   ============================================================ */
.page-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 44px;
  align-items: start;
}

.page-content {
  min-width: 0;
}

/* ============================================================
   Panel
   ============================================================ */
.panel {
  background: var(--paper);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 34px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.panel + .panel {
  margin-top: 26px;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.015em;
}

.panel-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}

.panel p {
  color: var(--ink-dim);
  margin-bottom: 14px;
}

.panel p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Feature grid (bento)
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-soft);
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.feature::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-bright), var(--amber-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.feature:hover {
  border-color: var(--line-accent);
  background: var(--paper-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature:hover::after {
  transform: scaleX(1);
}

.feature-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.feature:nth-child(2n) .feature-ico {
  background: var(--amber-soft);
  color: var(--amber-deep);
}

.feature-ico svg {
  width: 20px;
  height: 20px;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 700;
}

.feature p {
  font-size: 0.9rem;
  color: var(--ink-dim);
}

/* ============================================================
   Metadata list
   ============================================================ */
.meta-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.meta-list li {
  background: rgba(255, 255, 255, 0.5);
  padding: 18px 20px;
  transition: background 0.2s;
}

.meta-list li:hover {
  background: rgba(255, 255, 255, 0.8);
}

.meta-list strong {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 8px;
}

.meta-list span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

/* ============================================================
   Tables
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  margin: 0 -8px;
  padding: 0 8px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.data-table th,
.data-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.5);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr {
  transition: background 0.15s;
}

.data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.6);
}

.tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
}

.tag-win {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.tag-loss {
  background: rgba(225, 29, 72, 0.14);
  color: #be123c;
}

/* ============================================================
   Ad rail
   ============================================================ */
.ad-rail {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.ad-board {
  background: linear-gradient(155deg, var(--teal-bright) 0%, var(--teal-deep) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 16px 40px rgba(13, 148, 136, 0.32);
  position: relative;
  overflow: hidden;
}

.ad-board::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  filter: blur(2px);
}

.ad-board::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 160px;
  height: 160px;
  background: rgba(15, 118, 110, 0.4);
  border-radius: 50%;
}

.ad-board > * {
  position: relative;
  z-index: 1;
}

.ad-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ad-board-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.015em;
}

.ad-badge {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal-deep);
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 11px;
  border-radius: 999px;
}

.ad-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ad-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #fff;
  transition: background 0.2s, transform 0.18s;
}

.ad-item:hover {
  background: rgba(255, 255, 255, 0.38);
  transform: translateX(3px);
}

.ad-item-ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-item-ico svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.ad-item-body {
  flex: 1;
  min-width: 0;
}

.ad-item h3 {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.ad-item p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.ad-item .url {
  display: block;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  word-break: break-all;
  opacity: 0.88;
}

/* ============================================================
   Pull quote
   ============================================================ */
.pullquote {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  border-left: 3px solid var(--teal);
  padding: 6px 0 6px 22px;
  margin: 26px 0;
}

/* ============================================================
   RSS · Latest articles
   ============================================================ */
.feed-panel {
  position: relative;
  overflow: hidden;
}

.feed-panel::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(closest-side, rgba(234, 138, 12, 0.14), transparent 70%);
  pointer-events: none;
}

.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
}

.feed-head-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feed-head-left .eyebrow {
  margin-bottom: 6px;
}

.feed-head-left h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.015em;
}

.feed-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}

.feed-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-bright);
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  position: relative;
}

.feed-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-soft);
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.feed-card:hover {
  border-color: var(--line-accent);
  background: var(--paper-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feed-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--line);
}

.feed-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.feed-card-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-ghost);
}

.feed-card-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.01em;
  /* clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-card:hover .feed-card-title {
  color: var(--teal-deep);
}

.feed-card-desc {
  font-size: 0.88rem;
  color: var(--ink-dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
}

.feed-card-author {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--ink-dim);
}

.feed-card-author img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

.feed-card-read {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-deep);
  font-weight: 600;
  transition: gap 0.2s;
}

.feed-card:hover .feed-card-read {
  gap: 9px;
}

.feed-card-read svg {
  width: 13px;
  height: 13px;
}

/* loading / error / empty states */
.feed-state {
  padding: 36px 24px;
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.92rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.5);
  grid-column: 1 / -1;
}

.feed-state .feed-spinner {
  width: 26px;
  height: 26px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--teal-bright);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 0.8s linear infinite;
}

.feed-state .feed-state-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.feed-state .feed-state-sub {
  font-size: 0.84rem;
  color: var(--ink-faint);
}

.feed-state a {
  color: var(--teal-deep);
  border-bottom: 1px solid var(--line-accent);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-size: 0.84rem;
}

.site-footer a {
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s, border-color 0.2s;
}

.site-footer a:hover {
  color: var(--teal-deep);
  border-color: var(--teal);
}

.site-footer .icp {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes floatIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.feed-card {
  animation: fadeUp 0.5s ease backwards;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .page-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ad-rail {
    position: static;
    order: -1;
  }

  .cover {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .portrait {
    max-width: 340px;
  }
}

@media (max-width: 640px) {
  .mast-inner {
    height: auto;
    flex-direction: column;
    padding: 12px 18px;
    gap: 10px;
  }

  .container {
    padding-top: 150px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  .nav-links svg {
    display: none;
  }

  .panel {
    padding: 24px 22px;
  }

  .feature-grid,
  .feed-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
