/* =========================================================
   弘羊账ERP管理系统 官网样式
   ========================================================= */

:root {
  --primary: #2f6bff;
  --primary-dark: #1d4fd7;
  --primary-light: #eaf1ff;
  --success: #00b578;
  --dark: #111827;
  --gray: #6b7280;
  --bg-soft: #f6f8fc;
  --border: #e5e9f2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 24, 39, .08);
  --shadow-lg: 0 20px 50px rgba(47, 107, 255, .18);
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: #1f2937;
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: 10px;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-block { width: 100%; padding: 13px 20px; font-size: 15px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(47, 107, 255, .35); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(47, 107, 255, .4); }
.btn-success { background: var(--success); color: #fff; box-shadow: 0 6px 18px rgba(0, 181, 120, .3); }
.btn-success:hover { background: #009a66; transform: translateY(-2px); }
.btn-dark { background: #0f172a; color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--primary); border: 2px solid rgba(47, 107, 255, .4); }
.btn-ghost:hover { background: var(--primary-light); border-color: var(--primary); }

/* ---------------- 顶部导航 ---------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.header.scrolled {
  border-color: var(--border);
  box-shadow: 0 4px 20px rgba(17, 24, 39, .06);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 38px; height: 38px; }
.logo-text { font-size: 22px; font-weight: 800; color: var(--dark); letter-spacing: 1px; }
.logo-sub {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 6px;
  padding: 2px 7px;
  margin-left: 4px;
  vertical-align: middle;
}
.nav { display: flex; gap: 34px; }
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #4b5563;
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width .25s;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.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); }

/* ---------------- 首页横幅 ---------------- */
.hero {
  padding: 150px 0 90px;
  background:
    radial-gradient(700px 400px at 85% 10%, rgba(47, 107, 255, .10), transparent 60%),
    radial-gradient(600px 380px at 10% 90%, rgba(0, 181, 120, .08), transparent 60%),
    linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  overflow: hidden;
}
.hero-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(47, 107, 255, .2);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 1px;
  color: var(--dark);
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 17px;
  color: var(--gray);
  margin-bottom: 34px;
  max-width: 520px;
}
.hero-desc span { color: var(--primary); font-weight: 600; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats {
  display: flex;
  gap: 44px;
  border-top: 1px solid var(--border);
  padding-top: 26px;
}
.hero-stats strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.hero-stats span { font-size: 14px; color: var(--gray); }

.hero-visual { position: relative; }
.hero-img {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}
.hero-card svg { color: var(--primary); }
.hero-card strong { display: block; font-size: 15px; color: var(--dark); }
.hero-card span { font-size: 13px; color: var(--gray); }
.hero-card.card-1 { top: 26px; left: -40px; }
.hero-card.card-2 { bottom: 40px; right: -30px; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------------- 通用区块 ---------------- */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: 34px; font-weight: 800; color: var(--dark); margin-bottom: 14px; }
.section-head p { font-size: 16px; color: var(--gray); }

/* ---------------- 产品功能 ---------------- */
.features { background: var(--bg-soft); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(47, 107, 255, .3);
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ic, var(--primary));
  background: color-mix(in srgb, var(--ic, var(--primary)) 12%, white);
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 19px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.feature-card p { font-size: 15px; color: var(--gray); }

/* ---------------- 产品展示 ---------------- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}
.showcase-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.showcase-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.showcase-img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .5s;
}
.showcase-item:hover .showcase-img img { transform: scale(1.04); }
.showcase-item h3 { font-size: 20px; font-weight: 700; color: var(--dark); padding: 24px 28px 6px; }
.showcase-item p { font-size: 15px; color: var(--gray); padding: 0 28px 28px; }

/* ---------------- 下载中心 ---------------- */
.download { background: var(--bg-soft); }
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.download-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 38px 30px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.download-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.download-icon {
  width: 84px; height: 84px;
  border-radius: 22px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.download-icon.win { background: linear-gradient(135deg, #2f6bff, #1d4fd7); }
.download-icon.android { background: linear-gradient(135deg, #3ddc84, #0aa25c); }
.download-icon.ios { background: linear-gradient(135deg, #64748b, #334155); }
.download-card h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.download-card > p { font-size: 14px; color: var(--gray); margin-bottom: 20px; }
.download-meta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.download-meta span {
  font-size: 12.5px;
  color: #4b5563;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
}
.download-tip { font-size: 12.5px; color: #9ca3af; margin-top: 16px; }

/* ---------------- 联系我们 ---------------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
}
.contact-info h2 { font-size: 32px; font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.contact-info > p { color: var(--gray); font-size: 16px; margin-bottom: 34px; max-width: 480px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--border);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list svg { color: var(--primary); flex-shrink: 0; }
.contact-list span { display: block; font-size: 13px; color: var(--gray); }
.contact-list strong { font-size: 16px; color: var(--dark); }

.contact-links {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 32px;
  align-self: start;
}
.contact-links h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 18px; }
.contact-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 15px;
  color: #4b5563;
  border-bottom: 1px dashed var(--border);
  transition: color .2s, padding-left .2s;
}
.contact-links a:last-child { border-bottom: none; }
.contact-links a:hover { color: var(--primary); padding-left: 8px; }
.contact-links a::after { content: "↗"; color: #9ca3af; }

/* ---------------- 页脚 ---------------- */
.footer { background: #0f172a; color: #cbd5e1; padding-top: 60px; }
.footer-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer .logo-text { color: #fff; }
.footer-col p { font-size: 14px; color: #94a3b8; margin-top: 14px; max-width: 260px; }
.footer-col h4 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 18px; }
.footer-col a {
  display: block;
  font-size: 14px;
  color: #94a3b8;
  padding: 6px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--primary); }
.footer-col .ext { font-size: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { font-size: 13px; color: #64748b; }
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: var(--primary); }

/* ---------------- 回到顶部 ---------------- */
.back-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 46px; height: 46px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(47, 107, 255, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s;
  z-index: 90;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--primary-dark); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 42px; }
  .hero-card.card-1 { left: 0; }
  .hero-card.card-2 { right: 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
    box-shadow: 0 20px 40px rgba(17, 24, 39, .12);
    transform: translateY(-140%);
    transition: transform .35s ease;
    z-index: 99;
  }
  .nav.open { transform: translateY(0); }
  .nav-link { padding: 13px 0; border-bottom: 1px solid var(--bg-soft); }
  .nav-toggle { display: flex; }
  .nav-download { display: none; }

  .hero { padding-top: 130px; }
  .hero-wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: 36px; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .hero-card.card-1 { top: -16px; left: 12px; }
  .hero-card.card-2 { bottom: 24px; right: 12px; }

  .features-grid { grid-template-columns: 1fr; }
  .showcase-grid, .download-grid, .contact-wrap { grid-template-columns: 1fr; }
  .footer-wrap { grid-template-columns: 1fr 1fr; }
  .section { padding: 68px 0; }
  .section-head h2 { font-size: 28px; }
}

@media (max-width: 520px) {
  .footer-wrap { grid-template-columns: 1fr; }
  .hero-btns .btn { width: 100%; }
}
