/* =============================================
   任推邦官网 style.css
   对标 gw.bd.cn 绿色风格
   ============================================= */

/* ---------- CSS 变量 ---------- */
:root {
  --brand: #00C853;
  --brand-dark: #009624;
  --brand-light: #E8F5E9;
  --brand-gradient: linear-gradient(135deg, #00C853 0%, #43A047 100%);
  --text-primary: #1D2129;
  --text-secondary: #4E5969;
  --text-muted: #86909C;
  --bg-page: #F7F8FA;
  --bg-white: #FFFFFF;
  --border: #E5E6EB;
  --radius: 8px;
  --radius-lg: 12px;
  --font: PingFang SC, HarmonyOS Sans SC, Microsoft YaHei, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- 最大宽度容器 ---------- */
.w1228,
.container,
.nav-inner,
.banner-inner,
.footer-inner,
.channelBox,
.professionalTeam {
  max-width: 1228px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 40px; font-size: 17px; }
.btn-brand {
  background: var(--brand-gradient);
  color: #FFF;
  box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}
.btn-brand:hover { background: linear-gradient(135deg, #009624 0%, #388E3C 100%); }
.btn-white { background: #FFF; color: var(--brand-dark); }
.btn-white:hover { background: #f0f0f0; }
.btn-outline { background: transparent; border: 1px solid var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); }

/* ---------- 通用区块标题 ---------- */
.section-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 12px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
}

/* 带左侧绿竖线标题（ptBox / teamBox / channel / cliqueBox） */
.ptBox .title,
.teamBox .title,
.channel .title,
.cliqueBox .title {
  margin-bottom: 32px;
}
.ptBox .title .span,
.teamBox .title .span,
.cliqueBox .title .span,
.channel .title .span {
  font-size: 36px;
  font-weight: 800;
  color: #222;
  line-height: 1.3;
  margin: 0;
  padding-bottom: 7px;
  display: inline-block;
  position: relative;
  z-index: 1;
  border-left: none;
  padding-left: 0;
}
.ptBox .title .span::before,
.teamBox .title .span::before,
.cliqueBox .title .span::before,
.channel .title .span::before {
  content: '';
  width: 101px;
  height: 38px;
  background: url(../images/tit_line.png) no-repeat;
  background-size: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: -1;
}
.channel .title .small { color: var(--text-muted); padding-left: 20px; font-size: 15px; }
.teamBox .title .small,
.ptBox .title .small {
  color: var(--text-muted);
  padding-left: 20px;
  font-size: 15px;
}

/* =============================================
   导航栏 .nav
   ============================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFF;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img { height: 32px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 48px;
  list-style: none;
}
.nav-links li a {
  font-size: 16px;
  font-weight: 400;
  color: #444;
  transition: color 0.2s;
  position: relative;
  padding: 6px 0;
}
.nav-links li a:hover { color: #00bf6e; }
.nav-links li a.active {
  font-weight: 600;
  color: #111c3d;
}
.nav-links li a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 12px;
  background: url(../images/nav_line.png) no-repeat center;
  background-size: 100%;
}
.nav-cta {
  font-size: 16px;
  font-weight: 400;
  color: #444 !important;
  transition: color 0.2s;
  background: none;
  padding: 0;
  border-radius: 0;
}
.nav-cta:hover { color: #00bf6e !important; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  padding: 4px;
}

/* =============================================
   Banner
   ============================================= */
.banner {
  background: var(--brand-gradient);
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}
.banner::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.banner-left { flex: 1; max-width: 640px; }
.banner-right { flex-shrink: 0; }
.banner h1 {
  font-size: 42px;
  font-weight: 700;
  color: #FFF;
  line-height: 1.3;
  margin-bottom: 16px;
}
.banner .sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  line-height: 1.7;
}
.banner-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.banner-stat-num {
  font-size: 32px;
  font-weight: 700;
  color: #FFF;
  line-height: 1.2;
}
.banner-stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}
.banner-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* 邀请码卡片（Banner右侧） */
.banner-invite-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 36px 40px;
  text-align: center;
  min-width: 280px;
}
.invite-card-title {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}
.invite-card-code {
  font-size: 52px;
  font-weight: 800;
  color: #FFF;
  letter-spacing: 6px;
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.invite-card-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}
.invite-card-btn {
  display: inline-block;
  background: #FFF;
  color: var(--brand-dark);
  font-size: 16px;
  font-weight: 600;
  padding: 12px 48px;
  border-radius: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.invite-card-btn:hover {
  background: #F0F0F0;
  color: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* =============================================
   锚点导航条 .tabs_index
   ============================================= */
.tabs_index {
  position: sticky;
  top: 60px;
  z-index: 90;
  background: #FFF;
  border-bottom: 1px solid var(--border);
  transition: top 0.3s ease;
}
.tabs_index .w1228 {
  display: flex;
  align-items: center;
}
.tabs_index .span {
  flex-shrink: 0;
}
.tabs_index .span a {
  display: block;
  padding: 16px 24px;
  font-size: 15px;
  color: var(--text-secondary);
  transition: color 0.2s;
  white-space: nowrap;
  position: relative;
}
.tabs_index .span a:hover { color: #00bf6e; }
.tabs_index .span.active a {
  color: #111c3d;
  font-weight: 600;
}
.tabs_index .span.active a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  background: #00bf6e;
  border-radius: 2px;
}

/* =============================================
   平台介绍 .ptBox
   ============================================= */
.ptBox {
  background: #FFF;
  padding: 80px 0;
}
.pt-view {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.pt-view .content { flex: 1; }
.pt-view .content .desc p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.pt-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #F0FFF4;
  border: 1px solid #C8E6C9;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
.ptImage {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.img-main img { width: 260px; border-radius: var(--radius); }
.key-point {
  display: flex;
  gap: 24px;
}
.kp-item { text-align: center; }
.kp-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.2;
}
.kp-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* =============================================
   邀请码 .inviteBox
   ============================================= */
.inviteBox {
  background: var(--bg-page);
  padding: 64px 0;
}
.invite-code-box {
  max-width: 480px;
  margin: 0 auto 32px;
  text-align: center;
  border: 2px dashed var(--brand);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  background: #FFF;
}
.invite-code-label {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.invite-code-value {
  font-size: 52px;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: 8px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.invite-code-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* =============================================
   热门项目 .hotBox
   ============================================= */
.hotBox {
  background: #FFF;
  padding: 64px 0;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
  transform: translateY(-2px);
}
.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

/* =============================================
   专业服务 .teamBox
   ============================================= */
.teamBox {
  background: var(--bg-page);
  padding: 80px 0;
}
.boxContent {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.crad-item {
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.crad-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.crad-item .top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.crad-item .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(0, 200, 83, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}
.crad-item .text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.crad-item .desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   平台数据 .channel
   ============================================= */
.channel {
  background: var(--bg-page);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.contentBox {
  display: flex;
  justify-content: space-around;
  text-align: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 60px;
}
.channel .box { flex: 1; min-width: 200px; }
.channel .num {
  font-size: 28px;
  font-weight: 400;
  color: var(--brand);
  line-height: 1.1;
}
.channel .num .num1 {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -2px;
}
.channel .box > .title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 12px 0 8px;
  padding: 0;
  border: none;
  text-align: center;
}
.channel .box .desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   关于我们 .cliqueBox
   ============================================= */
.cliqueBox {
  background: #FFF;
  padding: 80px 0;
}
.clique {
  max-width: 1228px;
  margin: 0 auto;
  padding: 0 20px;
}
.cliqueBox .intro {
  margin-bottom: 40px;
}
.cliqueBox .intro-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}
.cliqueBox .sub-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.intro-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.stat { text-align: center; }
.stat .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.2;
}
.stat .label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.brands-title,
.honors-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 32px 0 16px;
}
.brands-grid,
.honors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.brand-tag {
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-secondary);
}
.honor-tag {
  background: #F0FFF4;
  border: 1px solid #C8E6C9;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--brand-dark);
}

/* =============================================
   CTA 横幅 .cta-banner
   ============================================= */
.cta-banner {
  background: var(--brand-gradient);
  padding: 64px 0;
  text-align: center;
  color: #FFF;
}
.cta-banner h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
}
.cta-banner p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

/* =============================================
   页脚 .footer
   ============================================= */
.footer {
  background: #1D2129;
  color: #FFF;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand {
  font-size: 20px;
  font-weight: 600;
  color: #FFF;
  margin-bottom: 12px;
}
.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.footer h4 {
  font-size: 15px;
  font-weight: 500;
  color: #FFF;
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links li a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links li a:hover { color: #FFF; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* =============================================
   子页面通用样式
   ============================================= */
.section { padding: 64px 0; }
.breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand-dark); }

/* 文章页 */
.article {
  max-width: 800px;
  margin: 0 auto;
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
}
.article h1 { font-size: 28px; font-weight: 700; margin-bottom: 24px; }
.article h2 { font-size: 22px; font-weight: 600; margin: 32px 0 16px; color: var(--text-primary); }
.article h3 { font-size: 18px; font-weight: 600; margin: 24px 0 12px; color: var(--text-primary); }
.article p { font-size: 16px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 16px; }
.article ul, .article ol { padding-left: 24px; margin-bottom: 16px; }
.article li { font-size: 16px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 8px; }
.article strong { color: var(--text-primary); font-weight: 600; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-q:hover { background: var(--bg-page); }
.faq-a {
  padding: 0 24px 18px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* 步骤 */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px 24px;
  text-align: center;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #FFF;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.step h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* 数据表格 */
.data-table { width: 100%; border-collapse: collapse; background: #FFF; }
.data-table th, .data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.data-table th {
  background: #FAFAFA;
  font-weight: 500;
  color: var(--text-primary);
}
.data-table td { color: var(--text-secondary); }

/* Hero 小版（子页面） */
.hero {
  background: var(--brand-gradient);
  padding: 64px 0;
  color: #FFF;
}
.hero-inner {
  max-width: 1228px;
  margin: 0 auto;
  padding: 0 20px;
}
.hero-text h1 { font-size: 32px; font-weight: 700; color: #FFF; margin-bottom: 12px; }
.hero-text p { font-size: 16px; color: rgba(255,255,255,0.9); }

/* =============================================
   响应式 768px
   ============================================= */
@media (max-width: 768px) {
  /* 导航 */
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #FFF;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 24px; }
  .nav-toggle { display: block; }

  /* Banner */
  .banner { padding: 48px 0; text-align: center; }
  .banner-inner { flex-direction: column; align-items: center; gap: 32px; }
  .banner-left { max-width: 100%; }
  .banner h1 { font-size: 28px; }
  .banner .sub { font-size: 16px; }
  .banner-stats { justify-content: center; gap: 24px; }
  .banner-stat-num { font-size: 24px; }
  .banner-btns { justify-content: center; }
  .banner-invite-card { min-width: auto; padding: 28px 32px; }
  .invite-card-code { font-size: 40px; letter-spacing: 4px; }

  /* tabs_index */
  .tabs_index .w1228 { overflow-x: auto; }
  .tabs_index .span a { padding: 14px 16px; font-size: 14px; }

  /* ptBox */
  .ptBox { padding: 48px 0; }
  .pt-view { flex-direction: column; gap: 24px; }
  .ptImage { width: 100%; }
  .img-main img { width: 100%; max-width: 300px; margin: 0 auto; }
  .key-point { justify-content: center; }

  /* 通用网格 */
  .card-grid, .boxContent { grid-template-columns: 1fr; }

  /* teamBox */
  .teamBox { padding: 48px 0; }

  /* channel */
  .channel { padding: 48px 0; }
  .channel .num { font-size: 48px; }
  .contentBox { margin-top: 32px; }

  /* cliqueBox */
  .cliqueBox { padding: 48px 0; }
  .intro-stats { gap: 16px; justify-content: center; }

  /* CTA */
  .cta-banner { padding: 48px 0; }
  .cta-banner h2 { font-size: 22px; }

  /* footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  /* steps */
  .steps { grid-template-columns: 1fr 1fr; }

  /* article */
  .article { padding: 28px 20px; }
}

/* =============================================
   响应式 480px
   ============================================= */
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .banner-btns { flex-direction: column; width: 100%; }
  .banner-btns .btn { text-align: center; }
  .banner-stats { gap: 16px; }
  .section-title { font-size: 22px; }
}
