/* 攻略前线 - 白底现代风全局样式 */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1a1d21;
  --text-secondary: #5c6570;
  --muted: #8b949e;
  --border: #e8ecf0;
  --primary: #0f766e;
  --primary-dark: #0d5f59;
  --primary-soft: #ecfdf8;
  --accent: #ea580c;
  --accent-soft: #fff7ed;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.06);
  --shadow-hover: 0 8px 28px rgba(16, 24, 40, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1120px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-display: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo:hover { color: var(--text); }

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.85rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 48px;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(15, 118, 110, 0.08), transparent),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(234, 88, 12, 0.06), transparent),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #e0f2f1, #f0fdfa 40%, #fff7ed);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    linear-gradient(135deg, #f0f4f8 25%, transparent 25%) -20px 0 / 40px 40px,
    linear-gradient(225deg, #f0f4f8 25%, transparent 25%) -20px 0 / 40px 40px,
    linear-gradient(315deg, #f0f4f8 25%, transparent 25%) 0 0 / 40px 40px,
    linear-gradient(45deg, #f0f4f8 25%, #e8eef4 25%) 0 0 / 40px 40px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
  border-radius: inherit;
}

.img-placeholder strong {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.img-placeholder.ratio-16-9 { aspect-ratio: 16/9; min-height: 180px; }
.img-placeholder.ratio-4-3 { aspect-ratio: 4/3; }
.img-placeholder.ratio-1-1 { aspect-ratio: 1; min-height: 120px; }

/* Sections */
.section { padding: 56px 0; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 6px;
}

.link-more {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.card-media {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #eef2f6;
}

.card-media img,
.article-cover img,
.hero-visual img,
.comp-thumb img,
.sidebar-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.comp-thumb {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #eef2f6;
  max-width: 140px;
}

.article-cover img {
  border-radius: var(--radius-sm);
  max-height: 420px;
}

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

.game-tile .tile-cover {
  aspect-ratio: 16/10;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #eef2f6;
}

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

/* Poker guides grid */
.poker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.poker-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  min-height: 210px;
}

.poker-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
  color: inherit;
}

.poker-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.poker-abbr {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f766e, #115e59);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.poker-card h3 {
  font-size: 1.05rem;
  color: var(--text);
}

.poker-en {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 !important;
}

.poker-card > p:not(.poker-en) {
  font-size: 0.88rem;
  color: var(--text-secondary);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.poker-banner-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.poker-banner-img img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary-soft);
  color: var(--primary);
}

.tag.orange { background: var(--accent-soft); color: var(--accent); }
.tag.gray { background: #f1f5f9; color: #64748b; }

.card h3 {
  font-size: 1.05rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--primary); }

.card-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Game spotlight */
.game-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.game-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s;
}

.game-tile:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.game-tile .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  font-size: 0.85rem;
}

.game-tile.tft .icon { background: #0f766e; }
.game-tile.wz .icon { background: #2563eb; }
.game-tile.ys .icon { background: #7c3aed; }
.game-tile.hy .icon { background: #dc2626; }

.game-tile h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text);
}

.game-tile p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Comp list */
.comp-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comp-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.comp-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fef3c7;
  color: #b45309;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.comp-item h3 { font-size: 1.1rem; margin-bottom: 4px; }
.comp-item p { color: var(--text-secondary); font-size: 0.9rem; }

/* Feature text blocks */
.prose-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.prose-section h2 { margin-bottom: 16px; font-size: 1.35rem; }

.prose-section p {
  color: var(--text-secondary);
  margin-bottom: 14px;
}

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.feature-block {
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.feature-block h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.feature-block p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Page banner */
.page-banner {
  padding: 40px 0 32px;
  background: linear-gradient(180deg, #fff, var(--bg));
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-secondary); }

.page-banner h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.page-banner .lead {
  color: var(--text-secondary);
  max-width: 48em;
}

/* Article detail */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  padding: 40px 0 64px;
  align-items: start;
}

.article-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article-cover {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 28px;
}

.article-content h2 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  letter-spacing: -0.01em;
}

.article-content h3 {
  font-size: 1.05rem;
  margin: 22px 0 10px;
}

.article-content p {
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 16px 1.2em;
  color: var(--text-secondary);
}

.article-content li {
  margin-bottom: 8px;
  list-style: disc;
}

.article-content ol li { list-style: decimal; }

.article-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  margin: 20px 0;
  background: var(--primary-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 88px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.sidebar-card h3 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.sidebar-list a {
  display: block;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-list a:last-child { border-bottom: none; }
.sidebar-list a:hover { color: var(--primary); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.pagination button,
.pagination a {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.pagination button:hover:not(:disabled),
.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination button.active,
.pagination a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-info {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 12px;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 28px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-grid p { font-size: 0.9rem; line-height: 1.7; }

.footer-grid h4 {
  color: #e2e8f0;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.footer-grid a {
  display: block;
  color: #94a3b8;
  font-size: 0.88rem;
  padding: 4px 0;
}

.footer-grid a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

/* Misc */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.update-tip {
  background: var(--accent-soft);
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.85rem;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.comp-table th,
.comp-table td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
}

.comp-table th {
  background: var(--bg);
  font-weight: 600;
}

.comp-table tr:hover td { background: #fafbfc; }

@media (max-width: 900px) {
  .hero-grid,
  .article-layout,
  .footer-grid,
  .feature-grid { grid-template-columns: 1fr; }

  .game-strip { grid-template-columns: repeat(2, 1fr); }

  .comp-item {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .sidebar { position: static; }

  .menu-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
  }

  .nav.open { display: flex; }

  .header-inner { position: relative; }
}

@media (max-width: 560px) {
  .game-strip { grid-template-columns: 1fr; }
  .article-main { padding: 22px; }
  .section { padding: 40px 0; }
}
