/* Jane Theme Custom Styles for JichangOne */
:root {
  --primary-color: #2b5797;
  --primary-hover: #1e3f70;
  --secondary-color: #3f6db5;
  --accent-color: #e67e22;
  --text-color: #2c3e50;
  --text-muted: #667587;
  --bg-light: #f7f9fa;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --border-light: #edf2f7;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.06);
  --card-hover-shadow: 0 6px 16px rgba(0,0,0,0.1);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --max-content-width: 1180px;
  --reading-width: 840px;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--bg-light);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top-bar {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.logo-wrapper {
  display: flex;
  flex-direction: column;
}

.logo-brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.site-tagline {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Search Box in Header */
.header-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-input {
  padding: 7px 12px;
  font-size: 13px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  width: 180px;
  outline: none;
  transition: all 0.2s ease;
}

.header-search-input:focus {
  border-color: var(--primary-color);
  width: 230px;
  box-shadow: 0 0 0 2px rgba(43,87,151,0.15);
}

.search-results-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  margin-top: 6px;
  z-index: 2000;
  padding: 8px 0;
}

.search-results-dropdown.active {
  display: block;
}

.search-result-item {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-color);
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
}

.search-result-item:hover {
  background-color: #f8fafc;
  color: var(--primary-color);
  text-decoration: none;
}

.search-result-category {
  display: inline-block;
  font-size: 11px;
  background: #edf2f7;
  color: #4a5568;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 6px;
}

/* TG Button */
.btn-tg {
  background: #229ED9;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.btn-tg:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* Nav */
.main-nav {
  background: var(--bg-white);
}

.menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 20px;
  overflow-x: auto;
  white-space: nowrap;
}

.menu-item {
  padding: 10px 0;
}

.menu-item a {
  color: var(--text-color);
  font-weight: 500;
  font-size: 15px;
  padding: 4px 6px;
  border-radius: 4px;
}

.menu-item.active a, .menu-item a:hover {
  color: var(--primary-color);
  background: #f0f4f8;
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.mobile-menu-toggle .icon-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-color);
  margin: 4px 0;
}

.mobile-nav-drawer {
  display: none;
}

/* Breadcrumb */
.breadcrumb-nav {
  background: #edf2f7;
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb-item::after {
  content: "/";
  margin-left: 8px;
  color: #a0aec0;
}

.breadcrumb-item:last-child::after {
  content: "";
}

.breadcrumb-item.active {
  color: var(--text-color);
  font-weight: 500;
}

/* Main Content */
.main-content {
  padding: 30px 0 60px 0;
  min-height: 70vh;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: var(--card-shadow);
}

.hero-badge {
  display: inline-block;
  background: #e2e8f0;
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 32px;
  line-height: 1.3;
  margin: 0 0 16px 0;
  color: #1a202c;
}

.hero-keyword-text {
  font-size: 16px;
  color: #334155;
  line-height: 1.85;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-disclosure {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary-color);
  color: #ffffff !important;
}

.btn-primary:hover {
  background: var(--primary-hover);
  text-decoration: none;
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color) !important;
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: #ffffff !important;
  text-decoration: none;
}

.btn-cta-official {
  background: #d9381e;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  padding: 9px 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(217, 56, 30, 0.35);
  transition: all 0.2s ease;
}

.btn-cta-official:hover {
  background: #b52c15;
  box-shadow: 0 4px 10px rgba(217, 56, 30, 0.45);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* Sections */
.section-block {
  margin-bottom: 50px;
}

.section-header {
  margin-bottom: 24px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-title {
  font-size: 24px;
  margin: 0;
  color: #1a202c;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Provider Cards & Table */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.provider-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.provider-card.featured-rank-1 {
  border-top: 4px solid #e67e22;
}
.provider-card.featured-rank-2 {
  border-top: 4px solid #3498db;
}
.provider-card.featured-rank-3 {
  border-top: 4px solid #9b59b6;
}
.provider-card.featured-rank-4 {
  border-top: 4px solid #1abc9c;
}

.provider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.provider-rank-badge {
  font-size: 12px;
  font-weight: 700;
  background: #edf2f7;
  color: #4a5568;
  padding: 2px 8px;
  border-radius: 12px;
}

.provider-name {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #2d3748;
}

.provider-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 8px 0;
}

.provider-traffic {
  font-size: 13px;
  color: var(--text-muted);
}

.provider-desc {
  font-size: 14px;
  color: #4a5568;
  margin: 12px 0;
  flex-grow: 1;
}

.provider-coupon-box {
  background: #f7fafc;
  border: 1px dashed var(--border-color);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.coupon-code {
  font-family: monospace;
  font-weight: 700;
  color: #e53e3e;
}

.copy-btn {
  background: #edf2f7;
  border: 1px solid #cbd5e0;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
}

.provider-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.provider-check-date {
  font-size: 11px;
  color: #a0aec0;
  margin-top: 10px;
  text-align: right;
}

/* 4 Providers Box inside Articles */
.providers-recommendation-box {
  background: #ffffff;
  border: 2px solid #2b5797;
  border-radius: 8px;
  padding: 24px;
  margin: 36px 0;
  box-shadow: 0 4px 12px rgba(43,87,151,0.08);
}

.providers-rec-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.providers-rec-title {
  font-size: 20px;
  color: var(--primary-color);
  margin: 0 0 6px 0;
  font-weight: 700;
}

.providers-rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.provider-rec-item {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.provider-rec-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.badge-qcloud { background: #fee2e2; color: #b91c1c; }
.badge-flycat { background: #e0f2fe; color: #0369a1; }
.badge-twilight { background: #f3e8ff; color: #7e22ce; }
.badge-breeze { background: #dcfce7; color: #15803d; }

.provider-rec-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #1e293b;
}

.provider-rec-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.provider-rec-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 14px;
  flex-grow: 1;
}

/* Comparison Table */
.table-responsive {
  overflow-x: auto;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  margin-bottom: 30px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.comparison-table th {
  background: #f8fafc;
  color: #4a5568;
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  color: #2d3748;
}

.comparison-table tr:hover td {
  background-color: #f7fafc;
}

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

.article-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

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

.article-card-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.article-card-summary {
  font-size: 14px;
  color: #4a5568;
  margin-bottom: 16px;
  flex-grow: 1;
}

.article-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* Article Page Content & TOC */
.reading-container {
  max-width: var(--reading-width);
  margin: 0 auto;
  background: var(--bg-white);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.article-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 30px;
}

.article-title {
  font-size: 30px;
  line-height: 1.3;
  margin: 0 0 16px 0;
  color: #1a202c;
}

.article-meta-info {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-toc {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 30px;
}

.article-toc-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
  color: #2d3748;
}

.article-toc ul {
  margin: 0;
  padding-left: 20px;
}

.article-toc li {
  margin: 6px 0;
  font-size: 14px;
}

.article-body h2 {
  font-size: 22px;
  color: #2d3748;
  margin: 36px 0 16px 0;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}

.article-body h3 {
  font-size: 18px;
  color: #2d3748;
  margin: 24px 0 12px 0;
}

.article-body p {
  margin: 16px 0;
  line-height: 1.85;
}

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

.article-body li {
  margin: 8px 0;
}

.callout-box {
  background: #ebf8ff;
  border-left: 4px solid var(--primary-color);
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  margin: 24px 0;
  font-size: 14px;
  color: #2b6cb0;
}

/* FAQ Unfolded Block */
.faq-unfolded-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.faq-unfolded-question {
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  margin: 0;
}

.faq-unfolded-answer {
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.8;
  color: #334155;
}

/* Footer */
.site-footer {
  background: #1a202c;
  color: #cbd5e0;
  padding: 50px 0 30px 0;
  font-size: 14px;
  margin-top: 60px;
}

.footer-widgets-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.widget-title {
  color: #ffffff;
  font-size: 16px;
  margin: 0 0 16px 0;
}

.footer-keyword-snippet {
  line-height: 1.85;
  color: #a0aec0;
  margin-bottom: 16px;
}

.footer-disclosure {
  font-size: 12px;
  color: #718096;
  line-height: 1.6;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  margin: 8px 0;
}

.footer-nav-list a {
  color: #a0aec0;
}

.footer-nav-list a:hover {
  color: #ffffff;
}

.footer-bottom-bar {
  border-top: 1px solid #2d3748;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #718096;
}

.footer-meta-links a {
  color: #718096;
}
.footer-meta-links a:hover {
  color: #cbd5e0;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-widgets-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .header-top-bar {
    padding: 10px 0;
  }
  .header-container {
    gap: 10px;
  }
  .logo-brand {
    font-size: 19px;
  }
  .site-tagline {
    display: none;
  }
  .header-search-input {
    width: 130px;
    font-size: 12px;
    padding: 5px 8px;
  }
  .header-search-input:focus {
    width: 160px;
  }
  .search-results-dropdown {
    width: 280px;
  }
  .btn-tg {
    padding: 5px 10px;
    font-size: 12px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .main-nav {
    display: none;
  }
  .header-service-btn {
    display: none;
  }
  .hero-section {
    padding: 20px;
  }
  .hero-title {
    font-size: 22px;
  }
  .reading-container {
    padding: 20px 16px;
  }
  .providers-rec-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Mobile Drawer */
.mobile-nav-drawer.open {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: #ffffff;
  z-index: 2000;
  box-shadow: 2px 0 12px rgba(0,0,0,0.15);
  padding: 20px;
  overflow-y: auto;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.mobile-nav-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--primary-color);
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  margin: 12px 0;
}

.mobile-menu a {
  font-size: 16px;
  color: var(--text-color);
  font-weight: 500;
}
