/* --- JCWiki Modern Minimalist Clean CSS --- */
:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --secondary: #0f172a;
  --accent: #f97316;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.68;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--primary-hover);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.header-left .brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  border-radius: var(--radius-sm);
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
}
.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Search Box */
.search-box {
  position: relative;
}
.search-box input {
  padding: 8px 14px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  outline: none;
  width: 200px;
  transition: all 0.2s ease;
}
.search-box input:focus {
  width: 260px;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(2,132,199,0.15);
}
.search-dropdown {
  position: absolute;
  top: 42px;
  right: 0;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 380px;
  overflow-y: auto;
  z-index: 200;
}
.search-result-item {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
}
.search-result-item:hover {
  background: #f1f5f9;
}
.search-result-item strong {
  display: block;
  font-size: 14px;
  color: var(--secondary);
  margin-bottom: 2px;
}

/* Telegram Button */
.tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #229ed9;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  transition: background 0.15s ease;
}
.tg-btn:hover {
  background: #1c88bd;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--secondary);
  margin: 5px 0;
  transition: 0.2s;
}

/* Nav Menu */
.site-nav {
  background: var(--surface);
  border-top: 1px solid #f1f5f9;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
  padding: 8px 0;
  overflow-x: auto;
  white-space: nowrap;
}
.nav-link {
  display: block;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.nav-link:hover, .nav-link.active {
  background: #f1f5f9;
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: #fff !important;
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-secondary {
  background: var(--secondary);
  color: #fff !important;
}
.btn-secondary:hover {
  background: #1e293b;
}
.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-large {
  padding: 12px 24px;
  font-size: 15px;
}
.btn-small {
  padding: 4px 10px;
  font-size: 12px;
}
.btn-aff {
  background: #ea580c !important;
  color: #fff !important;
}
.btn-aff:hover {
  background: #c2410c !important;
}

/* Hero */
.hero-section {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.hero-badge span {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: #e0f2fe;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hero-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 16px;
  line-height: 1.3;
}
.hero-desc {
  max-width: 860px;
  margin: 0 auto 24px;
  font-size: 16px;
  color: var(--text);
  line-height: 1.75;
}
.hero-cta-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.hero-meta-tips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Section titles */
.section-title-wrap {
  text-align: center;
  margin: 40px 0 24px;
}
.section-title-wrap h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary);
}
.section-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 6px;
}

/* Core 4 Cards Grid */
.core-providers-showcase {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 30px 0;
  box-shadow: var(--shadow-sm);
}
.showcase-header {
  margin-bottom: 20px;
}
.showcase-header h3 {
  font-size: 20px;
  color: var(--secondary);
  margin-bottom: 6px;
}
.disclosure-note {
  font-size: 13px;
  color: var(--text-muted);
}
.core-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.core-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.core-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.core-card.rank-1 {
  border-color: #38bdf8;
  background: #f0f9ff;
}
.core-card-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  padding: 2px 10px;
  border-radius: 12px;
}
.core-card h3, .core-card h4 {
  font-size: 20px;
  color: var(--secondary);
  margin-bottom: 8px;
}
.core-price {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--text);
}
.price-val {
  font-size: 18px;
  font-weight: 700;
  color: #dc2626;
}
.core-suit {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
}
.core-features {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}
.core-features p {
  margin-bottom: 6px;
}
.core-actions {
  display: flex;
  gap: 10px;
}
.core-actions .btn {
  flex: 1;
  text-align: center;
}

/* Modules Grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 36px 0;
}
.module-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.module-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.module-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.module-card h3 a {
  color: var(--secondary);
}
.module-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-grow: 1;
}
.module-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

/* Table */
.table-responsive {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
.comparison-table th, .comparison-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.comparison-table th {
  background: #f1f5f9;
  font-weight: 600;
  color: var(--secondary);
  white-space: nowrap;
}
.comparison-table tr:hover {
  background: #f8fafc;
}
.highlight-row {
  background: #f0fdf4;
}
.badge-price {
  font-weight: 700;
  color: #dc2626;
}
.table-bottom-cta {
  text-align: center;
  margin-top: 14px;
}

/* FAQ List Expanded */
.faq-list-expanded {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}
.faq-item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.faq-q {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.faq-badge {
  font-size: 12px;
  font-weight: 700;
  background: #e0f2fe;
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
}
.faq-q h2, .faq-q h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
}
.faq-q h2 a, .faq-q h3 a {
  color: var(--secondary);
}
.faq-a p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}
.faq-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.faq-bottom-cta {
  text-align: center;
  margin-top: 20px;
}

/* Services directory */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.service-card.highlight-service {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px #38bdf8;
}
.service-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.service-rank {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}
.service-card-header h2 {
  font-size: 20px;
  color: var(--secondary);
}
.badge-core {
  font-size: 11px;
  background: #fee2e2;
  color: #dc2626;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.service-card-body {
  font-size: 14px;
  margin-bottom: 18px;
  flex-grow: 1;
}
.service-card-body p {
  margin-bottom: 6px;
}
.service-card-footer {
  display: flex;
  gap: 10px;
}
.service-card-footer .btn {
  flex: 1;
  text-align: center;
}

/* Article Page */
.article-container {
  max-width: 860px;
  margin: 30px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
}
.breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}
.breadcrumbs .separator {
  color: #cbd5e1;
}
.article-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.article-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.35;
  margin-bottom: 12px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
}
.article-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--secondary);
  margin: 32px 0 14px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}
.article-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary);
  margin: 24px 0 10px;
}
.article-content p {
  margin-bottom: 18px;
}
.article-content ul, .article-content ol {
  margin-bottom: 18px;
  padding-left: 24px;
}
.article-content li {
  margin-bottom: 8px;
}
.article-content blockquote {
  border-left: 4px solid var(--primary);
  background: #f0f9ff;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
  color: #0369a1;
}
.article-content code {
  font-family: monospace;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}

.provider-hero-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 0;
}
.provider-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  margin-bottom: 16px;
}
.provider-cta-row {
  text-align: center;
}

/* Article footer */
.article-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.article-share-tg {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 14px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 14px;
}
.article-nav-links {
  display: flex;
  justify-content: space-between;
}

/* List Template Cards */
.list-container {
  max-width: 960px;
  margin: 30px auto;
}
.list-header {
  margin-bottom: 30px;
}
.list-title {
  font-size: 28px;
  color: var(--secondary);
  margin-bottom: 10px;
}
.list-desc {
  font-size: 15px;
  color: var(--text-muted);
}
.list-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.list-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.15s ease;
}
.list-card:hover {
  transform: translateX(4px);
  border-color: var(--primary);
}
.card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.card-tag {
  background: #e0f2fe;
  color: var(--primary);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.list-card h2 {
  font-size: 18px;
  margin-bottom: 8px;
}
.list-card h2 a {
  color: var(--secondary);
}
.card-summary {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.6;
}
.card-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* Featured Pillar Card in Recommend */
.list-card.featured-pillar-card {
  border: 2px solid #0284c7;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
  position: relative;
  padding: 26px;
}
.featured-pillar-badge {
  display: inline-block;
  background: #ea580c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.list-card.featured-pillar-card h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}
.list-card.featured-pillar-card h2 a {
  color: #0369a1;
}
.card-action-row {
  margin-top: 14px;
}

/* Global Pillar Top Banner (All lists & Articles top) */
.pillar-top-banner {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #0284c7;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 24px;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.08);
}
.pillar-banner-badge {
  display: inline-block;
  background: #ea580c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.pillar-banner-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.pillar-banner-text {
  flex: 1;
  min-width: 280px;
}
.pillar-banner-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}
.pillar-banner-title a {
  color: #0369a1;
}
.pillar-banner-title a:hover {
  color: #0284c7;
  text-decoration: underline;
}
.pillar-banner-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}
.pillar-banner-action {
  white-space: nowrap;
}
.article-top-pillar-notice {
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  margin-top: 60px;
  padding: 48px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr;
  gap: 30px;
  margin-bottom: 36px;
}
.footer-brand-title {
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 12px;
}
.footer-seo-desc {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.footer-tg-link a {
  color: #38bdf8;
  word-break: break-all;
}
.footer-col h4 {
  font-size: 15px;
  color: #f8fafc;
  margin-bottom: 14px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: #94a3b8;
}
.footer-links a:hover {
  color: #ffffff;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  font-size: 12px;
}
.disclosure-box {
  background: #1e293b;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  line-height: 1.6;
}
.copyright {
  text-align: center;
  color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 24px; }
  .hero-desc { font-size: 15px; }
  .header-inner { flex-wrap: wrap; }
  .search-box input { width: 140px; }
  .search-box input:focus { width: 180px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .article-container { padding: 20px 16px; }
  .core-actions { flex-direction: column; }
}
