/* ================================================
   白头鹰私家侦探社 - Main Stylesheet
   Design: White background, blue links, cyan CTA
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Serif+SC:wght@400;600;700&display=swap');

:root {
  --blue:        #2563eb;
  --blue-dark:   #1e40af;
  --cyan:        #06b6d4;
  --cyan-dark:   #0891b2;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-400:    #9ca3af;
  --gray-600:    #4b5563;
  --gray-700:    #374151;
  --gray-900:    #111827;
  --dark:        #0f172a;
  --white:       #ffffff;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.1);
  --shadow:      0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.15);
  --radius:      8px;
  --radius-lg:   12px;
  --transition:  0.25s ease;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--white);
  color: var(--gray-700);
  line-height: 1.8;
}
h1, h2, h3, h4, h5 {
  font-family: 'Noto Serif SC', 'SimSun', serif;
  color: var(--gray-900);
  line-height: 1.4;
}
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
p { margin-bottom: 1rem; color: var(--gray-600); }
img { max-width: 100%; height: auto; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 72px 0; }

/* ─── Topbar ─── */
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  padding: 6px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: rgba(255,255,255,0.8); }
.topbar a:hover { color: var(--white); }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-trad {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

/* ─── Navbar ─── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-name {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gray-900);
  line-height: 1.2;
}
.logo-sub {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 400;
}
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--blue);
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 500;
}
.nav-links a:hover { background: var(--gray-100); color: var(--blue-dark); }
.nav-links a.active { color: var(--blue-dark); font-weight: 700; }
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 11px; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  min-width: 180px;
  box-shadow: var(--shadow);
  z-index: 200;
  padding: 8px 0;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 18px;
  border-radius: 0;
  font-size: 14px;
  color: var(--gray-800);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--gray-100); color: var(--blue); }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-cta {
  background: var(--cyan) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--cyan-dark) !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--gray-700); border-radius: 2px;
}

/* ─── Hero ─── */
.hero {
  background: var(--white);
  padding: 60px 0 80px;
  border-bottom: 1px solid var(--gray-200);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.badge {
  display: inline-block;
  border: 1px solid var(--gray-300, #d1d5db);
  color: var(--gray-600);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
}
.hero-title {
  font-size: 2.2rem;
  color: var(--gray-900);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.hero-desc {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 32px;
}
.hero-desc em {
  font-style: normal;
  background: var(--gray-100);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 13px;
  color: var(--gray-600);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-item {
  background: var(--white);
  padding: 16px 12px;
  text-align: center;
}
.stat-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  font-family: 'Noto Serif SC', serif;
}
.stat-label { font-size: 12px; color: var(--gray-400); margin-top: 2px; }

/* Hero Right */
.hero-right { display: flex; flex-direction: column; gap: 0; }
.hero-logo-box {
  background: var(--dark);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}
.hero-logo-box img { width: 100%; max-width: 280px; border-radius: 8px; }
.hero-phone-box {
  background: var(--gray-900);
  color: var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 16px 24px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.hero-phone-box a { color: var(--white); }

/* ─── Section Heading ─── */
.section-heading { text-align: center; margin-bottom: 48px; }
.section-heading h2 { font-size: 1.8rem; color: var(--gray-900); }
.section-heading p { color: var(--gray-400); max-width: 560px; margin: 12px auto 0; font-size: 0.95rem; }
.blue-bar {
  width: 48px; height: 3px;
  background: var(--blue);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ─── Service Card Link ─── */
.service-card-link { text-decoration: none; color: inherit; display: block; }
.service-card-link:hover { color: inherit; }

/* ─── Services Grid ─── */
.services-section { background: var(--gray-50); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
}
.service-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.service-icon { font-size: 2rem; margin-bottom: 12px; }
.service-card h3 { font-size: 1.05rem; color: var(--gray-900); margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 12px; }
.service-card ul { font-size: 0.85rem; color: var(--gray-600); }

/* ─── Trust Section ─── */
.trust-section { background: var(--white); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.trust-item { text-align: center; padding: 24px 16px; }
.trust-icon { font-size: 2.5rem; margin-bottom: 14px; }
.trust-item h3 { font-size: 1.05rem; color: var(--gray-900); margin-bottom: 8px; }
.trust-item p { font-size: 0.9rem; color: var(--gray-600); }

/* ─── Blog Section ─── */
.blog-section { background: var(--gray-50); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow); }
.blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.blog-category {
  background: #eff6ff;
  color: var(--blue);
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 500;
}
.blog-date { color: var(--gray-400); font-size: 12px; }
.blog-card h3 { font-size: 1rem; color: var(--gray-900); margin-bottom: 10px; line-height: 1.5; }
.blog-card h3 a { color: var(--gray-900); }
.blog-card h3 a:hover { color: var(--blue); }
.blog-card p { font-size: 0.88rem; color: var(--gray-600); flex: 1; }
.blog-read-more { color: var(--blue); font-size: 13px; font-weight: 500; margin-top: 12px; }

/* ─── CTA Section ─── */
.cta-section {
  background: var(--dark);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); font-size: 1.8rem; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.7); margin-bottom: 32px; }
.cta-contact-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.cta-info-item { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.cta-info-item strong { color: var(--white); }

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-cyan {
  background: var(--cyan);
  color: var(--white);
}
.btn-cyan:hover { background: var(--cyan-dark); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.1); }
.btn-blue {
  background: var(--blue);
  color: var(--white);
}
.btn-blue:hover { background: var(--blue-dark); color: var(--white); }
.btn-blue-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-blue-outline:hover { background: var(--blue); color: var(--white); }

/* ─── Page Hero ─── */
.page-hero {
  background: var(--dark);
  color: var(--white);
  padding: 64px 0;
}
.page-hero h1 { color: var(--white); font-size: 2rem; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1rem; margin: 0; }

/* ─── Footer ─── */
footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.6); margin-top: 16px; }
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.footer-logo-wrap img { width: 40px; height: 40px; border-radius: 6px; }
.footer-logo-name { color: var(--white); font-weight: 700; font-size: 1rem; }
footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; font-family: 'Noto Sans SC', sans-serif; }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 10px; }
footer ul a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
footer ul a:hover { color: var(--cyan); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ─── Misc Pages ─── */
.content-section { padding: 64px 0; }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.sidebar-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.sidebar-card h3 { font-size: 1.05rem; margin-bottom: 16px; }
.contact-card {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
}
.contact-card h3 { color: var(--white); margin-bottom: 20px; }
.contact-item { display: flex; gap: 12px; margin-bottom: 20px; align-items: flex-start; }
.contact-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.contact-label { font-size: 11px; text-transform: uppercase; color: rgba(255,255,255,0.5); letter-spacing: 0.5px; margin-bottom: 2px; }
.contact-value { font-size: 0.95rem; font-weight: 600; color: var(--white); }
.contact-value a { color: var(--cyan); }

/* ─── Blog Post ─── */
.post-content { max-width: 780px; }
.post-content h2 { font-size: 1.4rem; margin: 32px 0 12px; color: var(--gray-900); }
.post-content h3 { font-size: 1.15rem; margin: 24px 0 10px; color: var(--gray-900); }
.post-content p { font-size: 1rem; line-height: 1.9; color: var(--gray-700); }
.post-content ul, .post-content ol { margin: 12px 0 20px; }
.post-content li { color: var(--gray-700); }
.post-meta { display: flex; gap: 16px; flex-wrap: wrap; margin: 16px 0 32px; }
.post-tag {
  background: #eff6ff; color: var(--blue);
  padding: 3px 12px; border-radius: 12px; font-size: 13px;
}
.post-date { color: var(--gray-400); font-size: 13px; display: flex; align-items: center; gap: 4px; }
.post-cta {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 40px;
  text-align: center;
}
.post-cta h3 { font-size: 1.15rem; margin-bottom: 10px; }
.post-cta p { font-size: 0.9rem; margin-bottom: 20px; }

/* ─── Blog Index ─── */
.blog-header { margin-bottom: 40px; }
.blog-index-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.blog-list { display: flex; flex-direction: column; gap: 20px; }
.blog-list-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow var(--transition);
}
.blog-list-card:hover { box-shadow: var(--shadow); }
.blog-list-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.blog-list-card h3 a { color: var(--gray-900); }
.blog-list-card h3 a:hover { color: var(--blue); }
.blog-list-card p { font-size: 0.9rem; color: var(--gray-600); margin: 8px 0 12px; }

/* ─── Keyword Tags ─── */
.kw-tag {
  display: inline-block;
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  background: var(--white);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 14px;
  transition: all var(--transition);
}
.kw-tag:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #eff6ff;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .blog-index-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--gray-200); padding: 16px; gap: 4px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-title { font-size: 1.6rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-contact-info { flex-direction: column; gap: 16px; }
}
