/*!
 * 企业官网首页样式（防洪强开系统 - 落地页）
 * 自包含样式，不依赖任何外部资源，配色沿用腾讯 TDesign 设计变量。
 */

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

:root {
  --brand: #0052d9;
  --brand-hover: #366ef4;
  --brand-deep: #003ba3;
  --brand-dark: #002a7c;
  --text-1: rgba(0, 0, 0, .9);
  --text-2: rgba(0, 0, 0, .6);
  --text-3: rgba(0, 0, 0, .4);
  --line: #e7eaf0;
  --bg-page: #f3f5f8;
  --radius: 6px;
  --shadow-1: 0 1px 3px rgba(0, 0, 0, .06);
  --shadow-2: 0 3px 14px 2px rgba(0, 0, 0, .05), 0 8px 10px 1px rgba(0, 0, 0, .06);
  --shadow-3: 0 16px 40px rgba(0, 42, 124, .18);
}

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-1);
  background: #fff;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { list-style: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-solid { border-bottom-color: var(--line); box-shadow: var(--shadow-1); }
.header-inner { display: flex; align-items: center; height: 64px; gap: 32px; }

.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, #0052d9, #2f6ef0);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 82, 217, .35);
}
.brand__name { font-size: 17px; font-weight: 600; letter-spacing: .5px; }
.brand__name small { display: block; font-size: 10px; font-weight: 400; color: var(--text-3); letter-spacing: 1.5px; line-height: 1.1; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 4px; font-size: 14px; color: var(--text-2);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--brand); background: #f2f5fb; }

.header-cta { display: flex; gap: 10px; flex: 0 0 auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 20px; border-radius: 4px;
  font-size: 14px; font-weight: 500; cursor: pointer; border: 1px solid transparent;
  transition: all .18s; white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(0, 82, 217, .28); }
.btn--primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.btn--line { border-color: #c9d4ea; color: var(--text-1); background: #fff; }
.btn--line:hover { border-color: var(--brand); color: var(--brand); }
.btn--lg { height: 46px; padding: 0 30px; font-size: 15px; border-radius: 5px; }
.btn--block { width: 100%; }

.menu-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--text-1); }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 460px at 82% -10%, rgba(89, 138, 255, .55), transparent 60%),
    linear-gradient(132deg, #002a7c 0%, #003ba3 38%, #0052d9 78%, #2f6ef0 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 72%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px;
  padding: 92px 0 108px; align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 100px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  font-size: 13px; margin-bottom: 22px; backdrop-filter: blur(4px);
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ff0b3; box-shadow: 0 0 0 4px rgba(79, 240, 179, .22); }
.hero__title { font-size: 44px; line-height: 1.25; font-weight: 700; letter-spacing: .5px; margin-bottom: 18px; }
.hero__title em { font-style: normal; background: linear-gradient(90deg, #9cd0ff, #4ff0b3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__desc { font-size: 16px; color: rgba(255, 255, 255, .78); max-width: 480px; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* 数据一览 */
.hero-stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px; padding: 22px 28px; margin-bottom: -58px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-3);
}
.stat__num { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat__num small { font-size: 14px; font-weight: 500; margin-left: 2px; }
.stat__label { font-size: 13px; color: rgba(255, 255, 255, .68); margin-top: 2px; }

/* 仪表盘模拟图 */
.hero-visual { position: relative; }
.dash {
  background: #fff; color: var(--text-1);
  border-radius: 12px; box-shadow: var(--shadow-3);
  overflow: hidden; animation: float 6s ease-in-out infinite;
}
.dash__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dash__bar i { width: 10px; height: 10px; border-radius: 50%; }
.dash__bar i:nth-child(1) { background: #ff6058; }
.dash__bar i:nth-child(2) { background: #ffbd2e; }
.dash__bar i:nth-child(3) { background: #28ca42; }
.dash__bar span { margin-left: 8px; font-size: 12px; color: var(--text-3); }
.dash__body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px; }
.dash__cell { border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.dash__cell h5 { font-size: 12px; color: var(--text-3); font-weight: 400; margin-bottom: 8px; }
.dash__cell .val { font-size: 22px; font-weight: 700; }
.dash__cell .val.up { color: #2ba471; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 74px; }
.bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #4f8bff, #cfe0ff); min-height: 12%; }
.bars i:nth-child(3) { background: linear-gradient(180deg, #0052d9, #4f8bff); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============ 通用 Section ============ */
.section { padding: 88px 0; }
.section--gray { background: var(--bg-page); }
.sec-head { text-align: center; margin-bottom: 52px; }
.sec-head__tag {
  display: inline-block; font-size: 13px; color: var(--brand);
  background: #eef3ff; border-radius: 100px; padding: 3px 14px; margin-bottom: 14px;
}
.sec-head h2 { font-size: 32px; font-weight: 700; letter-spacing: .5px; }
.sec-head p { color: var(--text-2); margin-top: 12px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ============ 客户 ============ */
.partners { padding: 74px 0 8px; }
.partners p { text-align: center; font-size: 13px; color: var(--text-3); margin-bottom: 28px; }
.partner-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 52px; }
.partner-row span { font-size: 18px; font-weight: 600; color: #b6bfce; letter-spacing: 1px; transition: color .2s; }
.partner-row span:hover { color: #8a97ab; }

/* ============ 产品 ============ */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.p-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 30px 26px; transition: transform .22s, box-shadow .22s, border-color .22s;
}
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: #d5e2ff; }
.p-card__icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.p-card__icon--1 { background: linear-gradient(135deg, #0052d9, #4f8bff); }
.p-card__icon--2 { background: linear-gradient(135deg, #0f7a5a, #2ba471); }
.p-card__icon--3 { background: linear-gradient(135deg, #6b3bd4, #a05cff); }
.p-card__icon--4 { background: linear-gradient(135deg, #d54941, #ff8a7a); }
.p-card h3 { font-size: 18px; margin-bottom: 10px; }
.p-card p { font-size: 14px; color: var(--text-2); margin-bottom: 18px; min-height: 66px; }
.p-card a { font-size: 14px; color: var(--brand); font-weight: 500; }
.p-card a:hover { color: var(--brand-hover); }
.p-card a::after { content: " →"; }

/* ============ 优势 ============ */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature__list li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.feature__list li:last-child { border-bottom: 0; }
.f-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px;
  background: #eef3ff; color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.f-body h4 { font-size: 16px; margin-bottom: 6px; }
.f-body p { font-size: 14px; color: var(--text-2); }

.f-panel {
  background: linear-gradient(150deg, #eef3ff 0%, #f8fbff 100%);
  border: 1px solid #dce7ff; border-radius: 14px; padding: 30px;
}
.f-panel__row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px; border-bottom: 1px dashed #d4e0f7; }
.f-panel__row:last-child { border-bottom: 0; }
.f-panel__row b { font-size: 15px; }
.f-panel__row span { font-size: 24px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.f-panel__row span small { font-size: 13px; color: var(--text-3); font-weight: 400; }

/* ============ 新闻 ============ */
.n-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; transition: transform .22s, box-shadow .22s;
}
.n-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.n-card__cover { height: 8px; }
.n-card__body { padding: 26px 24px 28px; }
.n-card__date { font-size: 12px; color: var(--text-3); letter-spacing: 1px; }
.n-card h3 { font-size: 17px; margin: 10px 0 10px; line-height: 1.5; }
.n-card p { font-size: 14px; color: var(--text-2); }
.cover-1 { background: linear-gradient(90deg, #0052d9, #4f8bff); }
.cover-2 { background: linear-gradient(90deg, #0f7a5a, #2ba471); }
.cover-3 { background: linear-gradient(90deg, #6b3bd4, #a05cff); }

/* ============ CTA ============ */
.cta { background: linear-gradient(132deg, #002a7c, #0052d9 70%, #2f6ef0); border-radius: 16px; padding: 56px 48px; color: #fff; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: 28px; font-weight: 700; flex: 1 1 320px; }
.cta p { color: rgba(255, 255, 255, .75); margin-top: 8px; font-size: 14px; }
.cta__btn { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ 页脚 ============ */
.footer { background: #0b1526; color: rgba(255, 255, 255, .65); margin-top: 88px; padding: 64px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer .brand__name { color: #fff; }
.footer .brand__name small { color: rgba(255, 255, 255, .4); }
.footer-brand p { margin-top: 18px; font-size: 13px; line-height: 1.9; max-width: 300px; }
.footer h5 { color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 600; }
.footer li { margin-bottom: 12px; }
.footer li a { color: rgba(255, 255, 255, .6); transition: color .15s; }
.footer li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255, 255, 255, .4); }
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: #fff; }

/* ============ 落地打开层（带短码访问时显示） ============ */
#fh-open {
  position: fixed; inset: 0; z-index: 500; background: #fff;
  display: flex; align-items: center; justify-content: center;
}
#fh-open[hidden] { display: none; }
#fh-open iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fh-loading { display: flex; flex-direction: column; align-items: center; gap: 18px; color: #8a97ab; font-size: 14px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #e3e9f2; border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 动画入场 ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px 0 96px; }
  .hero-visual { max-width: 520px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .hero__title { font-size: 34px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 60px 0; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hero__title { font-size: 28px; }
  .cta { padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat__num { font-size: 24px; }
  .mobile-nav {
    display: none; flex-direction: column; border-top: 1px solid var(--line); padding: 10px 24px 18px; background: #fff;
  }
  .mobile-nav.is-open { display: flex; }
  .mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 15px; }
}
@media (min-width: 641px) { .mobile-nav { display: none !important; } }
