/* bestgeo.vip — Design System */
:root {
  --color-primary: #1a56db;
  --color-primary-dark: #1344b0;
  --color-primary-light: #e8effc;
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;
  --color-border: #e5e7eb;
  --color-accent: #059669;
  --font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--color-primary-dark); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
}

.logo:hover { color: var(--color-primary); }

.logo svg { width: 36px; height: 36px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
}

.nav-toggle svg { width: 24px; height: 24px; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--color-text);
  font-size: 0.9375rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.nav-cta {
  background: var(--color-primary) !important;
  color: #fff !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--color-primary-dark) !important;
  color: #fff !important;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--color-border);
}

.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }

/* Hero */
.hero {
  padding: 80px 0 64px;
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-bg) 100%);
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--color-text);
}

.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.hero .slogan {
  font-size: 1.125rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt { background: var(--color-bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Cards Grid */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.card-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.stat-item .label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Feature List */
.feature-list {
  list-style: none;
  display: grid;
  gap: 16px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

thead { background: var(--color-bg-alt); }

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th { font-weight: 600; white-space: nowrap; }

tbody tr:last-child td { border-bottom: none; }

tbody tr:hover { background: var(--color-bg-alt); }

.check { color: var(--color-accent); font-weight: 700; }

/* FAQ */
.faq-list { display: grid; gap: 16px; }

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--color-bg);
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.faq-item p, .faq-item dd {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Case Study */
.case-card {
  border-left: 4px solid var(--color-primary);
  padding: 24px 24px 24px 28px;
  background: var(--color-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.case-card .tag {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.case-card h3 { font-size: 1.125rem; margin-bottom: 8px; }

/* Media Item */
.media-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  transition: box-shadow var(--transition);
}

.media-item:hover { box-shadow: var(--shadow-lg); }

.media-source {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--color-primary);
  text-align: center;
}

.media-content h3 { font-size: 1rem; margin-bottom: 6px; }

.media-meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.contact-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.contact-card .icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--color-primary);
  font-size: 1.5rem;
}

.contact-card h3 { margin-bottom: 8px; }

.contact-card .value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Blog */
.blog-list { display: grid; gap: 24px; }

.blog-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}

.blog-item:hover { box-shadow: var(--shadow-lg); }

.blog-date {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  color: var(--color-primary);
  font-weight: 700;
}

.blog-date .day { font-size: 1.5rem; line-height: 1; }
.blog-date .month { font-size: 0.75rem; }

.blog-content h3 { font-size: 1.125rem; margin-bottom: 8px; }
.blog-content p { color: var(--color-text-muted); font-size: 0.9375rem; }

.article-content {
  max-width: 760px;
  margin: 0 auto;
}

.article-content h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 16px;
}

.article-meta {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.article-content h2 {
  font-size: 1.375rem;
  margin: 32px 0 12px;
}

.article-content p { margin-bottom: 16px; }

.article-content ul, .article-content ol {
  margin: 0 0 16px 24px;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 16px 0;
}

.article-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 12px 20px;
  margin: 16px 0;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
}

.article-content pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 16px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 16px 0;
  font-size: 0.875rem;
}

.article-content code {
  background: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
}

.article-content pre code {
  background: none;
  padding: 0;
}

/* CTA Banner */
.cta-banner {
  background: var(--color-primary);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}

.cta-banner h2 { font-size: 1.75rem; margin-bottom: 12px; }

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-outline {
  border-color: #fff;
  color: #fff;
}

.cta-banner .btn-outline:hover {
  background: #fff;
  color: var(--color-primary);
}

/* Footer */
.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 48px 0 24px;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { line-height: 1.8; }

.footer-col h4 {
  color: #fff;
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #9ca3af; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 24px;
  text-align: center;
  line-height: 1.8;
}

.footer-bottom a { color: #9ca3af; }
.footer-bottom a:hover { color: #fff; }

/* Page Title */
.page-header {
  padding: 48px 0 32px;
  background: var(--color-bg-alt);
}

.page-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header p { color: var(--color-text-muted); }

/* Pricing highlight */
.pricing-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.pricing-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
}

.pricing-card h3 { font-size: 1.25rem; margin-bottom: 8px; }

.pricing-card .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 16px 0;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin: 24px 0;
}

.pricing-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.pricing-card li:last-child { border-bottom: none; }

/* Utility */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 16px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav a { padding: 12px 16px; }
  .nav-cta { margin-left: 0 !important; margin-top: 8px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 48px 0; }
  .media-item { flex-direction: column; }
  .blog-item { flex-direction: column; }

  .wechat-float {
    bottom: 16px;
    right: 16px;
    padding: 14px 14px 12px;
  }

  .wechat-float__qr img {
    width: 100px;
    height: 100px;
  }
}

/* WeChat float widget */
.wechat-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  padding: 18px 16px 16px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.wechat-float__close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #bbb;
  font-size: 18px;
  line-height: 20px;
  cursor: pointer;
  transition: color var(--transition);
}

.wechat-float__close:hover {
  color: #888;
}

.wechat-float__title {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #666;
  line-height: 1.4;
}

.wechat-float__qr {
  margin: 0 0 12px;
  line-height: 0;
}

.wechat-float__qr img {
  width: 110px;
  height: 110px;
  margin: 0 auto;
  display: block;
}

.wechat-float__cta {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #e91e8c;
}
