/* Blank Magazine Style CSS for jcdaohang.cyou */
:root {
  --primary-color: #1d4ed8;
  --primary-hover: #1e40af;
  --accent-color: #f59e0b;
  --accent-red: #ef4444;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 10px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

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: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.logo-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: none;
}

@media(min-width: 768px) {
  .logo-tagline { display: inline-block; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
}

.search-input {
  padding: 8px 14px 8px 36px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.88rem;
  outline: none;
  width: 180px;
  transition: width 0.3s ease;
}

.search-input:focus {
  width: 240px;
  border-color: var(--primary-color);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.btn-tg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #0088cc;
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none !important;
  transition: background-color 0.2s;
}

.btn-tg:hover {
  background-color: #006699;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-main);
  padding: 6px 0;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
  }
  .nav-links.show { display: flex; }
  .search-input { width: 130px; }
  .search-input:focus { width: 160px; }
}

/* Breadcrumbs */
.breadcrumb-container {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb-container a { color: var(--text-muted); }
.breadcrumb-container span { margin: 0 6px; }

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: #ffffff;
  padding: 48px 0;
  margin-bottom: 32px;
  border-radius: 0 0 16px 16px;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 18px;
}

.hero-text {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.95;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #0f172a !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  transition: transform 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: #d97706;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.hero-note {
  margin-top: 16px;
  font-size: 0.82rem;
  opacity: 0.8;
}

/* Section Styling */
.section-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

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

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

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

.provider-card.rank-1 { border-top: 4px solid #ef4444; }
.provider-card.rank-2 { border-top: 4px solid #f59e0b; }
.provider-card.rank-3 { border-top: 4px solid #3b82f6; }
.provider-card.rank-4 { border-top: 4px solid #10b981; }

.rank-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
}

.rank-badge.rank-1-badge { background: #ef4444; }
.rank-badge.rank-2-badge { background: #f59e0b; }
.rank-badge.rank-3-badge { background: #3b82f6; }
.rank-badge.rank-4-badge { background: #10b981; }

.provider-header {
  margin-bottom: 12px;
}

.provider-name {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.provider-suitable {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

.provider-details {
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.provider-price {
  font-weight: 700;
  color: #ef4444;
}

.provider-coupon {
  margin-top: 4px;
  font-size: 0.82rem;
  color: #059669;
}

.coupon-code {
  background: #ecfdf5;
  border: 1px dashed #059669;
  padding: 2px 6px;
  font-family: monospace;
  font-weight: 700;
  border-radius: 4px;
}

.provider-actions {
  display: flex;
  gap: 10px;
}

.btn-card-review {
  flex: 1;
  text-align: center;
  background: #f1f5f9;
  color: var(--text-main) !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none !important;
}

.btn-card-review:hover {
  background: #e2e8f0;
}

.btn-card-aff {
  flex: 1.2;
  text-align: center;
  background: var(--primary-color);
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  display: inline-block;
}

.btn-card-aff:hover {
  background: var(--primary-hover);
}

/* Comparison Table */
.table-responsive {
  overflow-x: auto;
  margin-bottom: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  background: #fff;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.comp-table th, .comp-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.comp-table th {
  background-color: #f1f5f9;
  font-weight: 700;
  color: var(--text-main);
}

.comp-table tr:hover {
  background-color: #f8fafc;
}

/* Article Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.article-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-card-title a {
  color: var(--text-main);
}

.article-card-title a:hover {
  color: var(--primary-color);
}

.article-card-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

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

/* FAQ Accordion Section */
.faq-section {
  margin-bottom: 40px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;

}

.faq-answer {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Article Prose styling */
.article-prose {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  font-size: 1rem;
  line-height: 1.8;
  color: #1e293b;
}

.article-prose h1 { font-size: 2rem; margin-bottom: 16px; color: var(--text-main); }
.article-prose h2 { font-size: 1.5rem; margin: 32px 0 16px 0; padding-bottom: 8px; border-bottom: 2px solid #f1f5f9; color: var(--text-main); }
.article-prose h3 { font-size: 1.25rem; margin: 24px 0 12px 0; color: var(--text-main); }
.article-prose p { margin-bottom: 16px; }
.article-prose ul, .article-prose ol { margin: 0 0 20px 24px; }
.article-prose li { margin-bottom: 8px; }
.article-prose blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 12px 20px;
  background: #f8fafc;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-style: italic;
}

.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.article-prose th, .article-prose td {
  border: 1px solid var(--border-color);
  padding: 10px 14px;
}

.article-prose th { background: #f1f5f9; }

/* Callout Box inside Articles */
.featured-provider-box {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #93c5fd;
  border-radius: 12px;
  padding: 24px;
  margin: 28px 0;
}

.featured-provider-box h3 {
  margin-top: 0;
  color: #1e40af;
}

/* Footer Styling */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 24px 0;
  margin-top: 60px;
  border-top: 4px solid var(--primary-color);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-text {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-heading {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-keywords-box {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
}

/* Full-Site Search Modal Styles */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
}

.search-modal.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 50px;
}

.search-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}

.search-modal-container {
  position: relative;
  width: 92%;
  max-width: 760px;
  max-height: 85vh;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
  animation: modalSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.search-modal-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  padding: 10px 16px;
}

.search-modal-icon {
  font-size: 1.2rem;
  color: #3b82f6;
}

.search-modal-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.05rem;
  color: #0f172a;
}

.search-modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
}

.search-modal-close:hover {
  color: #0f172a;
}

.search-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  max-height: 62vh;
}

.search-modal-placeholder {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
  font-size: 0.95rem;
}

.search-stats-bar {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
}

.search-result-item {
  display: block;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  transition: all 0.15s ease;
}

.search-result-item:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  transform: translateX(2px);
}

.search-result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.search-result-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: #dbeafe;
  color: #1e40af;
  white-space: nowrap;
}

.search-result-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #1e293b;
}

.search-result-snippet {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
}

.search-result-snippet mark, .search-result-title mark {
  background: #fef08a;
  color: #854d0e;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 700;
}

.search-modal-footer {
  padding: 10px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
}

.search-modal-footer kbd {
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

