/* 票付通创新科技有限公司 官网 — 深蓝主色、浅色区块、橙色强调 */

:root {
  --bg-deep: #0a1628;
  --bg-deep2: #0f2744;
  --accent-blue: #2563eb;
  --accent-sky: #38bdf8;
  --accent-orange: #f97316;
  --accent-orange-hover: #ea580c;
  --text-primary: #0f172a;
  --text-muted: #475569;
  --text-on-dark: #f1f5f9;
  --card-bg: #ffffff;
  --section-light: #e8f4fc;
  --border: rgba(148, 163, 184, 0.35);
  --radius: 12px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-on-dark);
  font-weight: 700;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.92;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-sky), var(--accent-blue));
  font-size: 1.1rem;
}

.logo-mark.sm {
  width: 28px;
  height: 28px;
  font-size: 0.9rem;
}

/* 页头公司名称较长时缩小字号，避免挤压导航 */
.logo-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(0.68rem, 1.65vw, 0.95rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-left: auto;
}

.main-nav a {
  color: #cbd5e1;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 0.35rem 0;
}

.main-nav a:hover {
  color: #fff;
}

.main-nav .nav-cta {
  margin-left: 0.35rem;
  padding: 0.4rem 1rem !important;
  border-radius: 999px;
  background: var(--accent-orange);
  color: #fff !important;
}

.main-nav .nav-cta:hover {
  background: var(--accent-orange-hover);
  color: #fff !important;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--accent-orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-orange-hover);
  color: #fff;
  text-decoration: none;
}

.btn-ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--text-on-dark);
  background: transparent;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.btn-on-orange {
  background: #fff;
  color: var(--accent-orange);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-on-orange:hover {
  background: #fff7ed;
  text-decoration: none;
}

/* 移动端导航 */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #e2e8f0;
  margin: 5px 0;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--text-on-dark);
  padding: 4rem 0 4.5rem;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep2) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(56, 189, 248, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(37, 99, 235, 0.2), transparent 45%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='%2338bdf8' stroke-opacity='0.08'/%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-sky);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 1rem;
}

.hero-accent {
  color: var(--accent-sky);
}

.hero-lead {
  color: #cbd5e1;
  margin: 0 0 1.25rem;
  font-size: 1.02rem;
}

.hero-tags {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags li {
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  color: #e2e8f0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hub-diagram {
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 1 / 0.85;
  margin-inline: auto;
}

.hub-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-sky), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.45);
  z-index: 2;
}

.hub-node {
  position: absolute;
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  background: rgba(15, 39, 68, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  color: #e2e8f0;
  white-space: nowrap;
}

.hub-n1 {
  left: 0;
  top: 12%;
}
.hub-n2 {
  right: 0;
  top: 12%;
}
.hub-n3 {
  left: 0;
  bottom: 12%;
}
.hub-n4 {
  right: 0;
  bottom: 12%;
}

.hub-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ---------- Feature cards ---------- */
.feature-cards {
  padding: 2.5rem 0 3rem;
  background: linear-gradient(180deg, #dbeafe 0%, #f0f9ff 40%, #fff 100%);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.14);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.65rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Advantages ---------- */
.advantages {
  padding: 3.5rem 0;
  background: var(--section-light);
}

.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0 0 1rem;
  color: var(--text-primary);
}

.section-title.center {
  text-align: center;
}

.section-title.light {
  color: var(--text-on-dark);
}

.section-sub {
  text-align: center;
  color: #94a3b8;
  margin: -0.5rem 0 2rem;
  font-size: 0.98rem;
}

.section-sub.light {
  color: #cbd5e1;
}

.section-desc {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.advantages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.check-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.check-list li {
  margin-bottom: 0.5rem;
}

.hex-core {
  position: relative;
  height: 280px;
  max-width: 360px;
  margin-inline: auto;
}

.hex-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.35);
}

.hex-tag {
  position: absolute;
  font-size: 0.8rem;
  padding: 0.4rem 0.65rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-primary);
  box-shadow: var(--shadow);
}

.hex-tag.t1 {
  left: 10%;
  top: 8%;
}
.hex-tag.t2 {
  right: 5%;
  top: 25%;
}
.hex-tag.t3 {
  left: 5%;
  bottom: 20%;
}
.hex-tag.t4 {
  right: 8%;
  bottom: 10%;
}

/* ---------- Architecture / dark sky ---------- */
.dark-sky {
  background: linear-gradient(180deg, #020617 0%, #0f172a 50%, #1e293b 100%);
  padding: 3.5rem 0 4rem;
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}

.dark-sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 40px 70px, rgba(255, 255, 255, 0.15), transparent);
  background-size: 100px 100px;
  opacity: 0.5;
  pointer-events: none;
}

.arch-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.arch-pills span {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 0.88rem;
  color: #e2e8f0;
}

.globe-wrap {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.globe {
  width: min(420px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(56, 189, 248, 0.35), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(37, 99, 235, 0.5), transparent 50%),
    radial-gradient(circle at 50% 50%, #0c4a6e, #020617 70%);
  box-shadow:
    inset 0 0 60px rgba(56, 189, 248, 0.25),
    0 0 80px rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

/* ---------- Solutions ---------- */
.solutions {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, #e0f2fe 0%, #f8fafc 100%);
}

.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.orbit {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  border: 2px dashed rgba(37, 99, 235, 0.25);
  background: rgba(255, 255, 255, 0.6);
}

.orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), #1e40af);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.35);
}

.orbit-item {
  position: absolute;
  font-size: 0.8rem;
  padding: 0.35rem 0.55rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.orbit-item.i1 {
  left: 42%;
  top: 6%;
}
.orbit-item.i2 {
  right: 8%;
  top: 38%;
}
.orbit-item.i3 {
  right: 12%;
  bottom: 18%;
}
.orbit-item.i4 {
  left: 12%;
  bottom: 22%;
}
.orbit-item.i5 {
  left: 10%;
  top: 30%;
}

.panel {
  margin-top: 1.25rem;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.panel p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Stats ---------- */
.stats {
  padding: 3.5rem 0;
  background: #fff;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
  margin: 2rem 0;
}

.stat-num {
  display: block;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: var(--accent-blue);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.map-placeholder {
  height: 180px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eff6ff, #fff);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.map-dots {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(8px 8px at 20% 40%, var(--accent-orange), transparent 50%),
    radial-gradient(8px 8px at 45% 55%, var(--accent-blue), transparent 50%),
    radial-gradient(8px 8px at 70% 35%, var(--accent-sky), transparent 50%),
    radial-gradient(8px 8px at 85% 60%, var(--accent-orange), transparent 50%);
  opacity: 0.85;
}

.partner-note {
  text-align: center;
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.partner-grid span {
  text-align: center;
  padding: 0.65rem;
  font-size: 0.85rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  color: var(--text-muted);
}

/* ---------- News ---------- */
.news {
  padding: 3rem 0 3.5rem;
  background: #f8fafc;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.news-feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.news-cover {
  min-height: 200px;
  background:
    linear-gradient(160deg, #1e3a5f 0%, #0c4a6e 40%, #0369a1 100%);
  position: relative;
}

/* 本地占位图素：古建筑夜景氛围，不依赖外网图片 */
.news-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(251, 191, 36, 0.35), transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(56, 189, 248, 0.25), transparent 40%);
  pointer-events: none;
}

.news-feature-body {
  padding: 1.35rem 1.25rem;
}

.news-feature-body h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

.news-feature-body p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.link-more {
  font-size: 0.9rem;
  font-weight: 600;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list li {
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.news-list li:last-child {
  border-bottom: 0;
}

.news-list a {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.news-list a:hover {
  color: var(--accent-blue);
}

.news-date {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ---------- CTA ---------- */
.cta-banner {
  background: linear-gradient(90deg, #fb923c, #f97316, #ea580c);
  color: #fff;
  padding: 2.5rem 0;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta-inner h2 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.cta-inner p {
  margin: 0;
  opacity: 0.95;
  max-width: 520px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0c1929;
  color: #94a3b8;
  padding: 2.75rem 0 0;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr) auto;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 2rem;
}

.footer-brand-head {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-company-name {
  display: block;
  color: #f1f5f9;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
}

.footer-tagline {
  margin: 0.65rem 0 0;
  padding-left: calc(28px + 0.5rem);
  line-height: 1.55;
  color: #94a3b8;
  font-size: 0.88rem;
}

.footer-brand {
  color: #cbd5e1;
}

.footer-col h4 {
  color: #f1f5f9;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.footer-col a {
  display: block;
  color: #94a3b8;
  margin-bottom: 0.4rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: #e2e8f0;
}

.footer-qr {
  text-align: center;
}

.qr-box {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.35rem;
  background: #1e293b;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.75rem;
}

.footer-bottom {
  background: #0a0a14;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.125rem 1rem 1.25rem;
}

/* 底栏备案行：单行居中、小字灰字（对齐常见企业站底栏样式） */
.footer-legal-line {
  margin: 0;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #8e9297;
}

.footer-legal-line .icp-record {
  color: inherit;
  text-decoration: none;
}

.footer-legal-line .icp-record:hover {
  text-decoration: underline;
}

/* ---------- Motion / fade ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-feature {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }

  .main-nav.is-open {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav a {
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  }
}
