/* ==========================================================================
   广东星耘软件有限公司 - 金蝶授权伙伴官网
   统一设计系统 & 响应式样式
   ========================================================================== */

:root {
  /* 金蝶品牌蓝 */
  --primary: #0a5aa9;
  --primary-2: #0083c3;
  --primary-light: #e8f2fc;
  --primary-deep: #07447f;
  --deep: #062a57;
  --deep-2: #041c3a;

  /* 强调色 */
  --accent: #ff6b2c;
  --gold: #f5a623;

  /* 中性色 */
  --bg: #f5f8fc;
  --bg-soft: #eef4fb;
  --text: #1a2b4a;
  --text-2: #42526e;
  --text-3: #7a879b;
  --line: #e4ecf5;
  --white: #ffffff;

  /* 渐变 */
  --grad-hero: linear-gradient(135deg, #041c3a 0%, #07447f 55%, #0a5aa9 100%);
  --grad-primary: linear-gradient(135deg, #0a5aa9 0%, #0083c3 100%);
  --grad-accent: linear-gradient(135deg, #ff6b2c 0%, #f5a623 100%);

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(6, 42, 87, 0.06);
  --shadow-md: 0 8px 24px rgba(6, 42, 87, 0.1);
  --shadow-lg: 0 16px 40px rgba(6, 42, 87, 0.14);

  /* 圆角 */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --container: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ---------- 布局工具 ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg); }
.section--deep { background: var(--deep); color: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head--left { text-align: left; margin-left: 0; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-weight: 700; font-size: 13px;
  letter-spacing: 1px; margin-bottom: 14px;
}
.section-tag::before { content: ""; width: 22px; height: 2px; background: var(--grad-accent); border-radius: 2px; }
.section-head--left .section-tag::before { background: var(--grad-accent); }
.section-title { font-size: 34px; font-weight: 800; line-height: 1.3; color: var(--deep); }
.section-sub { color: var(--text-3); margin-top: 14px; font-size: 16px; }
.section--deep .section-title { color: var(--white); }
.section--deep .section-sub { color: rgba(255,255,255,.7); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-size: 15px; font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: 0 8px 20px rgba(10, 90, 169, .3); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(10, 90, 169, .42); }
.btn-accent { background: var(--grad-accent); color: #fff; box-shadow: 0 8px 20px rgba(255, 107, 44, .32); }
.btn-outline { border: 1.5px solid var(--line); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ---------- 顶部导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 19px; color: var(--deep); }
.logo__mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--grad-primary);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: 0 6px 14px rgba(10,90,169,.3); flex-shrink: 0;
}
.logo__sub { display: block; font-size: 11px; font-weight: 500; color: var(--text-3); letter-spacing: 1px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-block; padding: 8px 16px; border-radius: 8px;
  font-weight: 600; font-size: 15px; color: var(--text-2); position: relative;
}
.nav a:hover, .nav a.active { color: var(--primary); background: var(--primary-light); }
.nav a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--grad-primary); border-radius: 2px;
}
.header__cta { display: flex; align-items: center; gap: 12px; }
.header__phone { font-weight: 700; color: var(--primary); font-size: 15px; }
.header__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.header__toggle span { width: 24px; height: 2px; background: var(--deep); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-hero); color: #fff;
  padding: 96px 0 110px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0,131,195,.35), transparent 55%),
              radial-gradient(circle at 10% 90%, rgba(245,166,35,.18), transparent 45%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.hero__badge b { color: var(--gold); }
.hero h1 { font-size: 46px; line-height: 1.2; font-weight: 800; letter-spacing: .5px; }
.hero h1 .hl { color: var(--gold); }
.hero p.lead { margin: 22px 0 30px; font-size: 18px; color: rgba(255,255,255,.82); max-width: 560px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 26px 24px; backdrop-filter: blur(6px);
}
.stat-card__num { font-size: 40px; font-weight: 800; line-height: 1; color: #fff; }
.stat-card__num span { color: var(--gold); font-size: 24px; }
.stat-card__label { margin-top: 8px; color: rgba(255,255,255,.7); font-size: 14px; }

/* ---------- 通用卡片栅格 ---------- */
.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(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(10,90,169,.3); }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--primary-light);
  display: grid; place-items: center; color: var(--primary); margin-bottom: 20px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 19px; font-weight: 700; color: var(--deep); margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 14.5px; }
.card__foot { margin-top: 18px; display: flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: 14px; }
.card__foot svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card__foot svg { transform: translateX(4px); }
.card__badge {
  position: absolute; top: 20px; right: 20px; font-size: 11px; font-weight: 700;
  background: var(--grad-accent); color: #fff; padding: 4px 10px; border-radius: 999px;
}

/* ---------- 服务 / 特性 ---------- */
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature__icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary);
  display: grid; place-items: center;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h4 { font-size: 17px; font-weight: 700; color: var(--deep); margin-bottom: 6px; }
.feature p { color: var(--text-2); font-size: 14px; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(var(--primary), var(--primary-2)); transform: translateX(-50%);
}
.timeline__item { position: relative; width: 50%; padding: 0 44px 48px; }
.timeline__item:nth-child(odd) { left: 0; text-align: right; }
.timeline__item:nth-child(even) { left: 50%; text-align: left; }
.timeline__dot {
  position: absolute; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad-primary); border: 3px solid #fff; box-shadow: 0 0 0 3px rgba(10,90,169,.2);
}
.timeline__item:nth-child(odd) .timeline__dot { right: -8px; }
.timeline__item:nth-child(even) .timeline__dot { left: -8px; }
.timeline__year { font-size: 28px; font-weight: 800; color: var(--primary); }
.timeline__title { font-weight: 700; color: var(--deep); margin: 4px 0 6px; font-size: 17px; }
.timeline__desc { color: var(--text-2); font-size: 14px; }

/* ---------- 行业方案 ---------- */
.solution {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: .25s; display: flex; flex-direction: column; gap: 10px;
}
.solution:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(10,90,169,.3); }
.solution__tag { color: var(--accent); font-weight: 700; font-size: 13px; }
.solution h3 { font-size: 19px; color: var(--deep); font-weight: 700; }
.solution p { color: var(--text-2); font-size: 14px; flex: 1; }

/* ---------- 生态伙伴 logo 墙 ---------- */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.partner {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  height: 92px; display: grid; place-items: center; font-weight: 700; color: var(--text-3);
  transition: .25s; padding: 12px;
}
.partner:hover { color: var(--primary); border-color: rgba(10,90,169,.35); box-shadow: var(--shadow-sm); }

/* ---------- 授权证书 ---------- */
.cert { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.cert__seal {
  width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--grad-accent); display: grid; place-items: center; color: #fff;
  font-weight: 800; font-size: 22px; box-shadow: 0 8px 20px rgba(255,107,44,.3);
}
.cert h4 { color: var(--deep); font-size: 17px; margin-bottom: 4px; }
.cert p { color: var(--text-3); font-size: 13px; }

/* ---------- 咨询/联系 ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.contact-info { display: flex; flex-direction: column; }
.contact-info .section-head--left { margin-bottom: 28px; }
.contact-info .section-head--left .section-title { margin-bottom: 0; }
/* 联系项等高分布，末项不再留多余下边距，使左栏与右侧表单底部对齐 */
.contact-list { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item > div:last-child { padding-top: 2px; }
.contact-item__icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary); display: grid; place-items: center;
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item b { display: block; color: var(--deep); font-size: 15px; margin-bottom: 3px; line-height: 22px; }
.contact-item span { display: block; color: var(--text-2); font-size: 14px; line-height: 22px; }
/* 企业微信二维码项：图标+文字+二维码横向排布，垂直居中 */
.contact-item--qr { align-items: center; }
.contact-item--qr .contact-item__body { flex: 1; min-width: 0; }
.contact-item__body .contact-item__tip { color: var(--text-3); font-size: 12px; line-height: 18px; margin-top: 2px; }
.contact-qr {
  width: 96px; height: 96px; flex-shrink: 0; margin-left: 12px;
  border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 5px;
  box-shadow: var(--shadow-sm); object-fit: contain;
  transition: transform .25s ease, box-shadow .25s ease;
}
.contact-qr:hover { transform: scale(1.06); box-shadow: var(--shadow-md); }
/* 左栏标题与右侧表单标题首行基线对齐 */
.contact-info > .section-head--left { min-height: 78px; display: flex; flex-direction: column; justify-content: center; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; }
.form h3 { font-size: 22px; color: var(--deep); margin-bottom: 6px; line-height: 32px; }
.form p { color: var(--text-3); font-size: 14px; margin-bottom: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { margin-bottom: 16px; }
.form__field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.form__field input, .form__field select, .form__field textarea {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text); background: var(--bg-soft); transition: border-color .2s, background .2s;
}
.form__field input:focus, .form__field select:focus, .form__field textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
}
.form__field textarea { resize: vertical; min-height: 110px; }
.form .btn { width: 100%; }
.form__note { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 12px; }

/* ---------- 页头（内页 banner） ---------- */
.page-hero { background: var(--grad-hero); color: #fff; padding: 72px 0; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 30%, rgba(0,131,195,.3), transparent 50%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: 38px; font-weight: 800; }
.page-hero p { color: rgba(255,255,255,.8); margin-top: 12px; font-size: 16px; max-width: 640px; }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: var(--gold); }

/* ---------- 页脚 ---------- */
.footer { background: var(--deep-2); color: rgba(255,255,255,.72); padding: 64px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer__about { font-size: 14px; line-height: 1.9; }
.footer h5 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer__links li { margin-bottom: 11px; }
.footer__links a { font-size: 14px; }
.footer__links a:hover { color: var(--gold); }
.footer__contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.footer__contact svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; text-align: center; font-size: 13px; }
.footer__bottom a:hover { color: var(--gold); }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 46px; height: 46px; border-radius: 12px; background: var(--grad-primary); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
  transition: .3s;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- 浮窗咨询 ---------- */
.float-consult {
  position: fixed; right: 24px; bottom: 84px; z-index: 900;
  display: flex; align-items: center; gap: 10px; background: var(--grad-accent); color: #fff;
  padding: 13px 20px; border-radius: 999px; box-shadow: 0 10px 26px rgba(255,107,44,.4);
  font-weight: 600; font-size: 14px;
}

/* ---------- 揭示动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 38px; }
}

@media (max-width: 820px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 27px; }
  .hero { padding: 64px 0 80px; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 32px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  /* 移动端：取消等高拉伸，联系项恢复常规流式间距 */
  .contact-info .section-head--left { min-height: auto; margin-bottom: 22px; }
  .contact-list { display: block; }
  .contact-item { margin-bottom: 20px; }
  .contact-item:last-child { margin-bottom: 0; }
  .contact-qr { width: 84px; height: 84px; }
  .contact-qr:hover { transform: none; }
  .form { padding: 26px 22px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 16px; }
  .timeline__item { width: 100%; left: 0 !important; text-align: left !important; padding: 0 0 40px 48px; }
  .timeline__item:nth-child(odd) .timeline__dot, .timeline__item:nth-child(even) .timeline__dot { left: 8px; right: auto; }
  .header__cta .btn, .header__phone { display: none; }

  /* 移动端菜单 */
  .header__toggle { display: flex; }
  .nav {
    position: fixed; top: 72px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform .3s ease; gap: 2px;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 13px 14px; font-size: 16px; border-radius: 8px; }
  .nav a.active::after { display: none; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .grid-4, .partners { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 27px; }
  .hero p.lead { font-size: 15px; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card__num { font-size: 30px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 29px; }
  .float-consult { bottom: 78px; }
}
