/* 参考 ljbaoyu.com 的钓鱼站布局：深色水纹氛围 + 清晰正文层级 */
:root {
  --bg-deep: #0c1418;
  --bg-card: #121d24;
  --bg-elevated: #18232c;
  --text: #e8eef2;
  --text-muted: #8fa3ad;
  --accent: #3db88c;
  --accent-soft: rgba(61, 184, 140, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Serif SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --space: clamp(1rem, 3vw, 2rem);
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

a:hover {
  color: #5ee0b3;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg-deep);
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 20, 24, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem var(--space);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 20rem;
}

.nav-main {
  display: flex;
  gap: 1.5rem;
}

.nav-main a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.nav-main a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem var(--space);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(61, 184, 140, 0.12), transparent 55%),
    linear-gradient(180deg, #0a1014 0%, var(--bg-deep) 100%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40'%3E%3Cpath fill='%23ffffff' fill-opacity='0.02' d='M0 20c20-4 40 4 60 0s40-4 60 0v20H0z'/%3E%3C/svg%3E");
  background-size: 120px 40px;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 40rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: 0.04em;
}

.hero-sub {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--accent);
  color: #0a1210;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
}

.btn-primary:hover {
  background: #4dd49e;
  color: #0a1210;
}

/* Sections */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem var(--space) 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Categories */
.cat-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cat-pill {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9rem;
}

.cat-pill:hover {
  background: var(--accent-soft);
  border-color: rgba(61, 184, 140, 0.35);
  color: var(--accent);
}

/* Article list */
.article-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}

.article-list li {
  border-bottom: 1px solid var(--border);
}

.article-list li:last-child {
  border-bottom: none;
}

.article-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
}

.article-row:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.article-title {
  font-size: 0.98rem;
  flex: 1;
  min-width: 0;
}

.article-row time {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* About */
.about-card {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.about-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

.about-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.about-card a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2rem var(--space) 2.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

.footer-small {
  font-size: 0.8rem;
  opacity: 0.75;
}

.footer-small small {
  font-size: 1em;
}

@media (max-width: 640px) {
  .nav-main {
    width: 100%;
    justify-content: center;
  }

  .header-inner {
    flex-direction: column;
    text-align: center;
  }

  .brand {
    flex-direction: column;
  }

  .article-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
