/* ============================================================
   济邦邦官网 · 浅色主题共享样式 site.css
   用法：<link rel="stylesheet" href="assets/css/site.css">
   适用页面：首页 / 工商代理 / 代理记账 / 财智邦 / 公司介绍 / 常见问题 / 资讯
   ============================================================ */

:root {
  --red: #e50020;
  --red-dark: #c00018;
  --red-light: #fff0f2;
  --ink: #1c2130;
  --text: #2d3142;
  --text-2: #6b7280;
  --bg: #fff;
  --bg-gray: #f7f8fa;
  --border: #eceef2;
  --radius: 14px;
  --shadow: 0 2px 16px rgba(20,30,50,0.05);
  --shadow-lg: 0 12px 40px rgba(20,30,50,0.10);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  animation: page-in .5s var(--ease-out) forwards;
}
@keyframes page-in { to { opacity: 1; } }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(20,30,50,0.08); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 800;
}
.nav-logo .jbb {
  font-size: 26px;
  font-weight: 900;
  font-style: italic;
  color: var(--red);
  letter-spacing: -1px;
}
.nav-logo .name { font-size: 17px; color: var(--ink); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.nav-links a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
  transition: var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--red);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(229,0,32,0.25);
}
.nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); }
.nav-cta::after { display: none; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 110;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-2); transition: var(--transition); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { margin: 0 6px; }

/* ---------- 页头 Hero ---------- */
.page-hero {
  padding: 56px 0 48px;
  background: linear-gradient(135deg, #f7f8fa 0%, #fff 100%);
}
.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.page-hero .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.page-hero .tag::before {
  content: '';
  width: 3px; height: 16px;
  background: var(--red);
  border-radius: 2px;
}
.page-hero h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.page-hero p {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 28px;
  max-width: 480px;
}
.page-hero .hero-photo {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.page-hero .hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 区块通用 ---------- */
.section { padding: 72px 0; }
.section.gray { background: var(--bg-gray); }
.sec-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.sec-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}
.sec-title::after {
  content: '';
  display: block;
  width: 44px; height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin-top: 14px;
}
.sec-sub { font-size: 15px; color: var(--text-2); margin-bottom: 40px; }

/* ---------- 按钮 ---------- */
.btn-red {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  padding: 14px 30px;
  border-radius: 26px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(229,0,32,0.28);
}
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(229,0,32,0.35); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 14px 30px;
  border-radius: 26px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  background: #fff;
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

/* ---------- 服务卡片 ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.svc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: block;
}
.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #ff5c74);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-icon {
  width: 52px; height: 52px;
  background: var(--red-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}
.svc-card:hover .svc-icon { transform: scale(1.08) rotate(-4deg); }
.svc-icon svg { width: 26px; height: 26px; stroke: var(--red); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.svc-card p { font-size: 14px; color: var(--text-2); margin-bottom: 18px; min-height: 66px; }
.svc-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.svc-card:hover .svc-link { gap: 12px; }

/* ---------- 图文卡片（带图） ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.photo-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.photo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.photo-card .photo { height: 180px; overflow: hidden; }
.photo-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.photo-card:hover .photo img { transform: scale(1.06); }
.photo-body { padding: 22px 24px 26px; display: flex; gap: 16px; align-items: flex-start; }
.photo-num {
  font-size: 34px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  font-style: italic;
}
.photo-body h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.photo-body p { font-size: 13px; color: var(--text-2); }

/* ---------- 图标网格（无图） ---------- */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.icon-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.icon-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #ff5c74);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.icon-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.icon-card:hover::before { transform: scaleX(1); }
.icon-card .icon-wrap {
  width: 52px; height: 52px;
  background: var(--red-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}
.icon-card:hover .icon-wrap { transform: scale(1.08) rotate(-4deg); }
.icon-card .icon-wrap svg { width: 26px; height: 26px; stroke: var(--red); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-card h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.icon-card p { font-size: 14px; color: var(--text-2); }
.icon-card .svc-link { margin-top: 8px; }

/* ---------- 步骤条 ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 56px; height: 56px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(229,0,32,0.25);
  transition: var(--transition);
}
.step-card:hover .step-num { transform: scale(1.1); box-shadow: 0 6px 24px rgba(229,0,32,0.35); }
.step-card h4 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.step-card p { font-size: 13px; color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 900px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  transition: var(--transition);
  cursor: default;
}
.faq-item:hover { background: linear-gradient(90deg, var(--red-light), transparent 60%); }
.faq-q {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.faq-q .q-badge, .faq-a .a-badge {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.faq-q .q-badge { background: var(--red); color: #fff; }
.faq-a { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.faq-a .a-badge { background: #f0f2f5; color: var(--text-2); }

/* ---------- 资讯卡片 ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.news-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card .photo { overflow: hidden; }
.news-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.news-card:hover .photo img { transform: scale(1.06); }
.news-body { padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.news-body h3 { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.5; }

/* ---------- CTA 深色横幅 ---------- */
.cta-band {
  position: relative;
  background: #0d1117;
  overflow: hidden;
}
.cta-band .cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px;
}
.cta-inner h2 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.cta-inner p { font-size: 15px; color: rgba(255,255,255,0.65); margin-bottom: 28px; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: baseline; gap: 10px; }
.footer-brand .jbb { font-size: 22px; font-weight: 900; font-style: italic; color: var(--red); }
.footer-brand small { font-size: 13px; color: var(--text-2); display: block; }
.footer-links { display: flex; gap: 28px; font-size: 14px; color: var(--text-2); }
.footer-links a { transition: var(--transition); }
.footer-links a:hover { color: var(--red); }
.footer-site { font-size: 13px; color: var(--text-2); }

/* ---------- 动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal="left"]  { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal].revealed { opacity: 1; transform: none; }

.back-top {
  position: fixed;
  right: 28px; bottom: 28px;
  z-index: 90;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(229,0,32,0.3);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  color: var(--red);
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.back-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { background: var(--red); color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .svc-grid, .icon-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 30px; }
  .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(280px, 80vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: rgba(255,255,255,0.98);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 32px rgba(0,0,0,0.08);
    padding: 96px 28px 40px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 16px; display: block; padding: 10px 0; }
  .nav-cta { margin-top: 12px; }
  .svc-grid, .icon-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .faq-item { grid-template-columns: 1fr; gap: 12px; }
  .news-card { grid-template-columns: 1fr; }
  .news-card .photo { height: 160px; }
  .sec-title { font-size: 24px; }
  .page-hero h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
