* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; color: #1e293b; background: #f8fafc; line-height: 1.65; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* Header & Navigation */
.site-header { background: #0f172a; color: #fff; padding: 24px 0 0; }
.header-top h1 { margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.header-top h1 a { color: #f8fafc; }
.header-top h1 a:hover { text-decoration: none; }
.header-top .subtitle { margin: 0; color: #94a3b8; font-size: 14px; }
.header-top .meta { margin: 8px 0 0; font-size: 12px; color: #64748b; }

.site-nav { margin-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); background: rgba(15, 23, 42, 0.7); }
.nav-inner { display: flex; gap: 12px; padding: 10px 16px 0; overflow-x: auto; }
.nav-tab {
  display: flex;
  flex-direction: column;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  color: #cbd5e1;
  min-width: 200px;
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
}
.nav-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}
.nav-tab.active {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
  font-weight: 600;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08);
}
.nav-tab.active .nav-desc { color: #475569; }
.nav-tab .nav-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.nav-badge.radar { background: #fed7aa; color: #9a3412; }
.nav-badge.ready { background: #bbf7d0; color: #166534; }
.nav-tab .nav-title { font-size: 15px; font-weight: 700; }
.nav-tab .nav-desc { font-size: 12px; color: #94a3b8; margin-top: 2px; }

/* Main layout */
main { padding: 20px 0 40px; }
h2 { font-size: 20px; border-bottom: 2px solid #0f172a; padding-bottom: 6px; margin: 28px 0 16px; color: #0f172a; }
h3 { font-size: 16px; margin: 20px 0 8px; color: #1e293b; }

/* Hero Banner explaining purpose and audience */
.hero-banner {
  background: #fff;
  border-radius: 10px;
  border-left: 5px solid #2563eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 18px 20px;
  margin: 8px 0 24px;
}
.hero-banner.radar {
  border-left-color: #f97316;
  background: linear-gradient(to right, #fff7ed, #ffffff);
}
.hero-banner.directory {
  border-left-color: #10b981;
  background: linear-gradient(to right, #f0fdf4, #ffffff);
}
.hero-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hero-header h2 { margin: 0; padding: 0; border: none; font-size: 18px; color: #0f172a; }
.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.hero-tag.radar { background: #ea580c; color: #fff; }
.hero-tag.directory { background: #059669; color: #fff; }
.hero-desc { margin: 0 0 12px; font-size: 14px; color: #334155; line-height: 1.6; }
.hero-desc strong { color: #0f172a; }
.hero-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.hero-point {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
}
.hero-point-title { font-weight: 700; margin-bottom: 2px; color: #0f172a; }
.hero-cta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.cta-btn:hover { background: #1e293b; color: #fff; text-decoration: none; }

/* Stats & summary */
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.stat { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 16px; min-width: 120px; }
.stat b { font-size: 24px; display: block; color: #0f172a; }
.stat span { font-size: 13px; color: #64748b; }
.summary { background: #eff6ff; border-left: 4px solid #2563eb; padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: 14px; margin: 14px 0; }

/* Tables */
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13.5px; margin: 8px 0 18px; display: block; overflow-x: auto; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
th, td { border: 1px solid #e2e8f0; padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: #f8fafc; color: #475569; font-weight: 600; white-space: nowrap; }
td code, .suffix-chip { font-family: ui-monospace, "SF Mono", Menlo, monospace; background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 13px; white-space: nowrap; }

/* Badges */
.badge { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #dcfce7; color: #166534; white-space: nowrap; font-weight: 500; }
.badge.warn { background: #fef3c7; color: #92400e; }
.badge.muted { background: #f1f5f9; color: #64748b; }
.badge.bad { background: #fee2e2; color: #991b1b; }
.badge.pending { background: #e0e7ff; color: #3730a3; }

/* Archive list */
.archive-list { list-style: none; padding: 0; margin: 0; }
.archive-list li { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px 16px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.archive-list .week { font-weight: 700; font-size: 15px; }
.archive-list .meta { color: #64748b; font-size: 13px; }

/* Directory Controls */
.controls { background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; padding: 14px 16px; margin: 14px 0 20px; position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 4px rgba(0,0,0,0.04); }
.controls input[type="search"] { width: 100%; padding: 10px 14px; font-size: 15px; border: 1px solid #cbd5e1; border-radius: 6px; margin-bottom: 10px; outline: none; }
.controls input[type="search"]:focus { border-color: #2563eb; ring: 2px rgba(37,99,235,0.2); }
.controls .filters { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.controls .count { margin-left: auto; color: #475569; font-weight: 600; font-size: 13px; }
.controls button { padding: 5px 12px; border: 1px solid #cbd5e1; background: #f8fafc; border-radius: 6px; cursor: pointer; font-size: 13px; }
.controls button:hover { background: #e2e8f0; }

/* Provider cards */
.dir-group { margin-bottom: 24px; }
.group-desc { color: #475569; margin: 2px 0 12px; font-size: 14px; }
.provider { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; transition: border-color 0.15s; }
.provider:hover { border-color: #cbd5e1; }
.provider h3 { margin: 0 0 6px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.provider .suffixes { margin: 6px 0 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.provider dl { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; margin: 8px 0 0; font-size: 13.5px; }
.provider dt { color: #64748b; }
.provider dd { margin: 0; }

/* Notices */
.notice { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; }
.notice h3 { margin-top: 0; font-size: 15px; color: #92400e; }
.notice p { margin: 6px 0; font-size: 13.5px; color: #78350f; }
.notice .checked { font-size: 12px; color: #b45309; }

/* Footer */
.site-footer { border-top: 1px solid #e2e8f0; padding: 24px 0 36px; color: #64748b; font-size: 13px; margin-top: 40px; }
.back { margin: 16px 0 0; display: inline-block; font-weight: 500; }

/* Responsive adjustments */
@media (max-width: 640px) {
  .header-top h1 { font-size: 22px; }
  .nav-inner { gap: 8px; padding: 8px 12px 0; }
  .nav-tab { min-width: 140px; padding: 8px 12px; }
  .nav-tab .nav-title { font-size: 14px; }
  .nav-tab .nav-desc { font-size: 11px; }
  .provider dl { grid-template-columns: 96px 1fr; }
  .hero-points { grid-template-columns: 1fr; }
}
