:root {
  --accent: #29ABE2;
  --accent-hover: #1a90c4;
  --text: #1a202c;
  --text-secondary: #718096;
  --border: #e2e8f0;
  --bg-light: #f8f9fc;
  --font: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: #fff;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ── Header ─────────────────────────────── */
header {
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
}

.logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.logo-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding-left: 10px;
  border-left: 1px solid var(--border);
  margin-left: 4px;
  white-space: nowrap;
}

/* ── Layout ─────────────────────────────── */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.container-wide {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Breadcrumb ──────────────────────────── */
.breadcrumb {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border); }

/* ── Homepage hero banner ────────────────── */
.hero-banner {
  width: 100%;
  aspect-ratio: 1440 / 320;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Homepage hero ───────────────────────── */
.hero {
  text-align: center;
  padding: 36px 24px 36px;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
}

.hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 20px;
  display: block;
}

/* ── Category cards ──────────────────────── */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 48px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(108,99,255,0.08);
}

.card h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}

.card h2 a { color: var(--text); }
.card h2 a:hover { color: var(--accent); text-decoration: none; }

.card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card ul li a {
  font-size: 15px;
  color: var(--accent);
  line-height: 1.4;
}

/* ── Footer links (Privacy · Contact) ────── */
.footer-links {
  text-align: center;
  padding: 16px 24px 0;
  font-size: 15px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}

.footer-links a { color: var(--text-secondary); margin: 0 8px; }
.footer-links a:hover { color: var(--accent); }


/* ── Article page ────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 48px;
  align-items: start;
}

h1 { font-size: 28px; font-weight: 700; margin-bottom: 28px; line-height: 1.3; }

.article-body h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.article-body p { margin-bottom: 16px; }

.article-body ul, .article-body ol {
  margin: 0 0 16px 24px;
}

.article-body li { margin-bottom: 6px; }

.article-body strong { font-weight: 600; }

.article-body a { color: var(--accent); }

.article-body .note {
  background: var(--bg-light);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  font-size: 15px;
}

/* ── Sidebar ─────────────────────────────── */
.sidebar {
  position: sticky;
  top: 24px;
}

.sidebar h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.sidebar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar ul li a {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.sidebar ul li a:hover { color: var(--accent); }
.sidebar ul li a.active { color: var(--accent); font-weight: 500; }

/* ── Category page article list ─────────── */
.article-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.article-list li {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.article-list li:first-child { border-top: 1px solid var(--border); }

.article-list li a {
  font-size: 17px;
  font-weight: 500;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 640px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .hero h1 { font-size: 26px; }
  .categories { grid-template-columns: 1fr; }
  h1 { font-size: 24px; }
}
