/* ===== Multi-page SEO/GEO additions for usa-eb.cn ===== */

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, #f5f6fa 0%, #eef0f8 100%);
  padding: 120px 0 40px;
  border-bottom: 1px solid var(--border-color);
}
.page-hero .breadcrumb {
  font-size: var(--font-size-small);
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.page-hero .breadcrumb a { color: var(--primary-color); text-decoration: none; }
.page-hero .breadcrumb span { margin: 0 4px; }
.page-title {
  font-size: var(--font-size-h1);
  color: var(--text-primary);
  margin-bottom: 8px;
}
.page-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Body layout */
.page-body { padding: 48px 0 16px; }
.page-body .container { max-width: 960px; }

/* Prose sections */
.prose-section { margin-bottom: 40px; }
.prose-section h2 {
  font-size: var(--font-size-h2);
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}
.prose-section h3 {
  font-size: var(--font-size-h4);
  color: var(--text-primary);
  margin: 20px 0 10px;
}
.prose-section p { color: var(--text-primary); line-height: var(--line-height-base); margin-bottom: 12px; }
.prose-section a { color: var(--primary-color); }

/* Answer-first lead paragraph (AI engines love this) */
.answer-first {
  background: var(--off-white);
  border-left: 4px solid var(--primary-color);
  padding: 20px 24px;
  border-radius: 0 var(--border-radius-large) var(--border-radius-large) 0;
}
.answer-first p { margin-bottom: 0; font-size: 1.02rem; }

/* Check list */
.check-list { list-style: none; padding: 0; }
.check-list li {
  position: relative;
  padding: 8px 0 8px 32px;
  color: var(--text-primary);
  line-height: 1.6;
}
.check-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--primary-color);
  position: absolute;
  left: 4px;
  top: 10px;
}

/* Info table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  background: #fff;
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius-large);
  overflow: hidden;
}
.info-table th, .info-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  line-height: 1.6;
  vertical-align: top;
}
.info-table th {
  background: var(--off-white);
  color: var(--text-primary);
  white-space: nowrap;
  width: 220px;
  font-weight: 600;
}
.compare-table th { white-space: normal; width: auto; }
.compare-table td a { color: var(--primary-color); text-decoration: none; }
.table-scroll { overflow-x: auto; }
.note { font-size: var(--font-size-small); color: var(--text-secondary); }

/* Steps grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.step-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-large);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.step-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
  margin-bottom: 12px;
}
.step-card h3 { font-size: 1.05rem; margin: 0 0 8px; color: var(--text-primary); }
.step-card p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* FAQ */
.faq-list { margin-top: 8px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-large);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 0.8rem;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.faq-answer { padding: 0 20px 16px; }
.faq-answer p { color: var(--text-secondary); font-size: 0.95rem; margin: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--primary-color) 0%, #5f6db8 100%);
  color: #fff;
  text-align: center;
  padding: 56px 0;
  margin-top: 32px;
}
.cta-band h2 { color: #fff; font-size: var(--font-size-h2); margin-bottom: 8px; }
.cta-band p { opacity: 0.9; margin-bottom: 24px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: var(--primary-color); border: none; }
.cta-band .btn-primary:hover { background: #f0f0f5; color: var(--primary-hover); }
.cta-band .btn-secondary { background: transparent; border: 1px solid #fff; color: #fff; }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* About image */
.about-img-wrap { margin-bottom: 20px; }
.about-img-wrap img {
  width: 100%; max-height: 420px; object-fit: cover;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-md);
}

/* WeChat QR — always visible, fixed size */
.contact-qr { text-align: left; margin-top: 16px; display: flex; align-items: center; gap: 16px; }
.contact-qr .qr-img { margin: 0; flex-shrink: 0; }
.contact-qr h4 { margin-bottom: 10px; }
.contact-qr .qr-img {
  width: 250px;
  height: 250px;
  object-fit: contain;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-large);
  padding: 6px;
  background: #fff;
  display: block;
}
.contact-qr .qr-tip {
  font-size: var(--font-size-small);
  color: #fff;
  opacity: 0.9;
  margin-top: 8px;
}

/* Contact info card: keep light text inside prose-section */
.contact-info h3, .contact-info h4, .contact-info strong { color: #fff; }
.contact-info p, .contact-info a, .contact-info .contact-item p { color: #fff; opacity: 0.9; }
.contact-info a:hover { opacity: 1; }

/* Contact page reuse */
.contact-form .form-note {
  font-size: var(--font-size-small);
  color: var(--text-secondary);
  margin-top: 12px;
}
.contact-content { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.contact-qr .qr-placeholder {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-large);
  padding: 24px;
  text-align: center;
  color: var(--text-secondary);
}
.contact-qr .qr-placeholder i { font-size: 2rem; color: #07c160; margin-bottom: 8px; display: block; }

/* Nav fix: brand link + dropdown for US projects */
.nav-brand a h1 { font-size: inherit; }
.nav-menu .has-dropdown { position: relative; }
.nav-menu .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px 0;
  z-index: 1000;
}
.nav-menu .has-dropdown:hover .dropdown { display: block; }
.nav-menu .dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
}
.nav-menu .dropdown a:hover { background: var(--off-white); color: var(--primary-color); }

@media (max-width: 768px) {
  .page-hero { padding: 90px 0 28px; }
  .page-title { font-size: 1.6rem; }
  .contact-content { grid-template-columns: 1fr; }
  .info-table th { width: auto; white-space: normal; }
  .nav-menu .dropdown { position: static; box-shadow: none; border: none; padding-left: 16px; }
  .nav-menu .has-dropdown:hover .dropdown,
  .nav-menu.active .has-dropdown .dropdown { display: block; }
}

/* News cards */
.news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 16px; }
.news-grid.news-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .news-grid, .news-grid.news-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .news-grid, .news-grid.news-grid-3 { grid-template-columns: 1fr; } }
.news-card {
  display: block; background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--border-radius-large); padding: 24px;
  text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-card .news-date { font-size: var(--font-size-small); color: var(--text-secondary); margin-bottom: 10px; }
.news-card h3 { font-size: 1.1rem; color: var(--text-primary); margin-bottom: 10px; line-height: 1.5; }
.news-card p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.6; }
.news-card .news-more { color: var(--primary-color); font-size: 0.9rem; font-weight: 600; }
