
:root {
  --bg-color: #0d1117;
  --panel-bg: #161b22;
  --border-color: #30363d;
  --text-main: #c9d1d9;
  --text-muted: #8b949e;
  --text-bright: #f0f6fc;
  --term-green: #3fb950;
  --term-blue: #58a6ff;
  --term-purple: #bc8cff;
  --term-yellow: #d29922;
  --term-red: #f85149;
  --accent: #238636;
  --accent-hover: #2ea043;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", monospace, sans-serif;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--term-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: #79c0ff; text-decoration: underline; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.content-reading { max-width: 860px; margin: 0 auto; }

/* Header & Nav */
header {
  background-color: rgba(22, 27, 34, 0.95);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(48, 54, 61, 0.5);
  gap: 16px;
}
.brand-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.brand-tagline {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-search {
  position: relative;
  display: flex;
  align-items: center;
}
.header-search input {
  background: #0d1117;
  border: 1px solid var(--border-color);
  color: var(--text-bright);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  width: 180px;
  outline: none;
  transition: width 0.2s, border-color 0.2s;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.header-search input:focus {
  border-color: var(--term-blue);
  width: 240px;
}
.search-results {
  position: absolute;
  top: 38px;
  right: 0;
  width: 320px;
  background: #161b22;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  display: none;
  max-height: 360px;
  overflow-y: auto;
  z-index: 200;
}
.search-item {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(48, 54, 61, 0.4);
  font-size: 13px;
  display: block;
  color: var(--text-main);
}
.search-item:hover {
  background: #1f242c;
  color: var(--term-blue);
  text-decoration: none;
}
.search-item strong { color: var(--text-bright); display: block; margin-bottom: 2px; }

.cta-button {
  background: var(--accent);
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(240, 246, 252, 0.1);
  text-decoration: none !important;
}
.cta-button:hover { background: var(--accent-hover); text-decoration: none; }
.cta-tg {
  background: #2aabee;
  color: #fff !important;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none !important;
}
.cta-tg:hover { background: #229ed9; }

.nav-bar {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  overflow-x: auto;
  white-space: nowrap;
}
.nav-link {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
}
.nav-link:hover, .nav-link.active {
  color: var(--term-green);
  background: rgba(63, 185, 80, 0.1);
  text-decoration: none;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs span { margin: 0 6px; }

/* Hero Section */
.hero {
  padding: 40px 0 30px;
  border-bottom: 1px solid var(--border-color);
}
.hero-badge {
  display: inline-block;
  font-size: 12px;
  color: var(--term-green);
  background: rgba(63, 185, 80, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(63, 185, 80, 0.3);
  margin-bottom: 16px;
  font-family: ui-monospace, monospace;
}
.hero h1 {
  font-size: 32px;
  color: var(--text-bright);
  margin-bottom: 16px;
  line-height: 1.3;
}
.hero-desc {
  font-size: 16px;
  color: var(--text-main);
  max-width: 900px;
  margin-bottom: 24px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.btn-secondary {
  background: #21262d;
  color: var(--text-bright) !important;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
}
.btn-secondary:hover { background: #30363d; }
.hero-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
}

/* Provider Cards & Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.provider-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.provider-card:hover {
  border-color: var(--term-blue);
  transform: translateY(-2px);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.card-rank {
  background: rgba(88, 166, 255, 0.15);
  color: var(--term-blue);
  font-size: 11px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
}
.card-tags {
  font-size: 12px;
  color: var(--term-green);
  margin-bottom: 10px;
  font-family: ui-monospace, monospace;
}
.card-summary {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 14px;
}
.card-meta {
  background: #0d1117;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
  font-size: 13px;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.meta-label { color: var(--text-muted); }
.meta-val { color: var(--term-yellow); font-weight: 600; font-family: ui-monospace, monospace; }
.card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.coupon-tag {
  background: rgba(210, 153, 34, 0.15);
  border: 1px dashed var(--term-yellow);
  color: var(--term-yellow);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-family: ui-monospace, monospace;
}

/* Article Cards */
.article-list { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
.article-item {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 18px;
  transition: border-color 0.2s;
}
.article-item:hover { border-color: var(--term-blue); }
.article-item h3 { font-size: 18px; margin-bottom: 8px; }
.article-item p { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.article-item .item-footer {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 14px;
  font-family: ui-monospace, monospace;
}

/* FAQ Accordions */
.faq-accordion {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-accordion summary {
  padding: 14px 18px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-bright);
  font-size: 15px;
  background: rgba(30, 36, 44, 0.5);
  outline: none;
}
.faq-accordion summary:hover { color: var(--term-blue); }
.faq-content {
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text-main);
  border-top: 1px solid var(--border-color);
  line-height: 1.8;
}

/* Footer */
footer {
  background-color: #0b0e14;
  border-top: 1px solid var(--border-color);
  padding: 40px 0 20px;
  margin-top: 60px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 {
  color: var(--text-bright);
  font-size: 14px;
  margin-bottom: 14px;
  font-family: ui-monospace, monospace;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--term-blue); }
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
}
.footer-keywords-p {
  line-height: 1.7;
  margin-bottom: 12px;
  color: var(--text-main);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
}
.page-btn {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  color: var(--text-bright);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-family: ui-monospace, monospace;
}
.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
  body { font-size: 15px; }
  .container { padding: 0 14px; }
  
  /* Header & Navigation */
  .header-top {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
  }
  .brand-logo { font-size: 18px; }
  .brand-tagline { font-size: 11px; max-width: 180px; line-height: 1.4; }
  .header-right { width: 100%; justify-content: space-between; margin-top: 6px; }
  .header-search { flex: 1; margin-right: 8px; }
  .header-search input { width: 100% !important; }
  .search-results { width: 100%; }
  
  .nav-bar {
    gap: 8px;
    padding: 8px 0 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-bar::-webkit-scrollbar { display: none; }
  .nav-link { font-size: 13px; padding: 4px 8px; flex-shrink: 0; }

  /* Hero */
  .hero { padding: 24px 0 20px; }
  .hero h1 { font-size: 22px; line-height: 1.35; }
  .hero-desc { font-size: 14px; line-height: 1.65; margin-bottom: 18px; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-ctas .cta-button, .hero-ctas .btn-secondary, .hero-ctas .cta-tg {
    text-align: center;
    justify-content: center;
    padding: 10px 14px;
    font-size: 14px;
  }

  /* Grids & Cards */
  .grid-2 { grid-template-columns: 1fr; gap: 14px; margin: 16px 0; }
  .provider-card { padding: 16px; }
  .card-title { font-size: 17px; }
  .card-actions { flex-direction: column; gap: 8px; }
  .card-actions .cta-button, .card-actions .btn-secondary {
    width: 100% !important;
    text-align: center;
    justify-content: center;
    padding: 8px 12px;
  }
  
  /* Article & Content */
  .content-reading { padding: 16px 0 !important; }
  article h1 { font-size: 22px !important; line-height: 1.35 !important; }
  article h2 { font-size: 18px !important; margin: 20px 0 10px !important; }
  
  /* Footer */
  footer { padding: 30px 0 16px; margin-top: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-col { grid-column: span 1 !important; }
  
  /* Pagination */
  .pagination { flex-wrap: wrap; gap: 6px; margin: 20px 0; }
  .page-btn { padding: 5px 10px; font-size: 12px; }
}
