/* GEO AI 签站 - 响应式样式 */
:root {
  --primary: #1a56db;
  --primary-dark: #1438a8;
  --accent: #f59e0b;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.logo span { color: var(--text); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1a56db 50%, #2563eb 100%);
  color: #fff;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.1), transparent 50%);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -.5px;
}
.hero .lead {
  font-size: 18px;
  opacity: .92;
  margin-bottom: 28px;
  max-width: 620px;
}
.hero-keywords {
  font-size: 14px;
  opacity: .8;
  margin-bottom: 28px;
}
.hero-keywords strong { color: #fde047; }
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: #1f2937;
  box-shadow: 0 4px 14px rgba(245,158,11,.4);
}
.btn-outline {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}

/* 通用区块 */
section { padding: 70px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  text-align: center;
  margin-bottom: 12px;
}
.section-title h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
}
.section-title .sub {
  color: var(--text-light);
  margin-top: 10px;
  font-size: 15px;
}

/* 优势 */
.advantages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.adv-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.adv-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.adv-card h3 { font-size: 17px; margin-bottom: 8px; }
.adv-card p { color: var(--text-light); font-size: 14px; }

/* 产品 */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 22px;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card .p-img {
  width: 88px; height: 88px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.product-card h3 { font-size: 19px; margin-bottom: 8px; }
.product-card p { color: var(--text-light); font-size: 14px; margin-bottom: 12px; }
.tag {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  background: #eff6ff;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* FAQ 摘要 */
.faq-summary {
  max-width: 820px;
  margin: 44px auto 0;
}
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q";
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
}
.faq-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--text-light);
  font-size: 20px;
  flex-shrink: 0;
}
.faq-item summary:has(.faq-date)::after {
  margin-left: 12px;
}
.faq-item[open] summary::after { content: "−"; }
.faq-q {
  flex: 1;
  min-width: 0;
}
.faq-date {
  margin-left: auto;
  flex-shrink: 0;
  font-weight: 400;
  font-size: 13px;
  color: var(--text-light);
}
.faq-answer {
  padding: 0 24px 20px 52px;
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.faq-answer::before {
  content: "A ";
  color: var(--accent);
  font-weight: 800;
}
.faq-answer p {
  margin: 0 0 10px;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}
.faq-answer strong {
  font-weight: 700;
}
.faq-answer ul,
.faq-answer ol {
  margin: 8px 0 10px;
  padding-left: 1.3em;
}

.article-body {
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
}
.news-card .article-body p {
  color: var(--text);
  font-size: 15px;
  flex: none;
}
.article-body h2 {
  font-size: 22px;
  margin: 28px 0 12px;
  line-height: 1.4;
}
.article-body h3 {
  font-size: 18px;
  margin: 22px 0 10px;
}
.article-body h4 {
  font-size: 16px;
  margin: 18px 0 8px;
}
.article-body p { margin: 0 0 14px; }
.article-body ul, .article-body ol {
  margin: 0 0 14px;
  padding-left: 1.4em;
}
.article-body li { margin: 0 0 6px; }
.article-body strong { font-weight: 700; }
.article-body blockquote {
  margin: 0 0 14px;
  padding: 8px 14px;
  border-left: 4px solid var(--primary);
  background: #f8fafc;
  color: var(--text);
}
.article-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}
.article-body code {
  background: #f3f4f6;
  padding: 0 4px;
  border-radius: 4px;
}

.faq-more {
  text-align: center;
  margin-top: 30px;
}

/* 统计 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-num {
  font-size: 38px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  color: var(--text-light);
  font-size: 14px;
  margin-top: 8px;
}

/* CTA */
.cta-band {
  background: linear-gradient(135deg, #1a56db, #1e3a8a);
  color: #fff;
  text-align: center;
  padding: 60px 0;
}
.cta-band h2 { font-size: 28px; margin-bottom: 12px; }
.cta-band p { opacity: .9; margin-bottom: 26px; }

/* 页脚 */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 50px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a { color: #cbd5e1; text-decoration: none; transition: color .2s; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
}

/* 友情链接 */
.friend-links {
  border-top: 1px solid #1e293b;
  margin-top: 24px;
  padding: 18px 0 14px;
  font-size: 13px;
  color: #cbd5e1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}
.friend-links strong { color: #fff; }
.friend-links a {
  color: #93c5fd;
  text-decoration: none;
  transition: color .2s;
}
.friend-links a:hover { color: #fff; text-decoration: underline; }

/* FAQ 页 */
.faq-page {
  max-width: 900px;
  margin: 0 auto;
}
.faq-category {
  margin-bottom: 40px;
}
.faq-category h2 {
  font-size: 22px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

/* 关于页 */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.team-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.team-card .avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.team-card h4 { font-size: 16px; margin-bottom: 4px; }
.team-card .role { color: var(--primary); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.team-card p { color: var(--text-light); font-size: 13px; }

/* 面包屑 */
.breadcrumb {
  padding: 20px 0;
  font-size: 14px;
  color: var(--text-light);
}
.breadcrumb a { color: var(--text-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

/* 新闻资讯 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.news-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
}
.news-date { color: var(--text-light); }
.news-tag {
  background: #eff6ff;
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
}
.news-card h1,
.news-card h3 {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.news-card h1 { font-size: 26px; }
.news-card p {
  color: var(--text-light);
  font-size: 14px;
  flex: 1;
}
.news-readmore {
  display: inline-block;
  margin-top: 14px;
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: gap .2s;
}
.news-readmore:hover { text-decoration: underline; }

/* 新闻页 */
.news-page { max-width: 900px; margin: 44px auto 0; }
.news-category { margin-bottom: 44px; }
.news-cat-title {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.news-page .news-card {
  margin-bottom: 18px;
}
.news-page .news-card h3 { font-size: 19px; }

@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* 响应式 */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 28px; }
  .hero .lead { font-size: 16px; }
  .advantages, .products, .stats { grid-template-columns: 1fr; }
  .about-grid, .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-card { flex-direction: column; }
  section { padding: 50px 0; }
  .section-title h2 { font-size: 24px; }
}
