/* ============================================================
   小红花科技官网样式
   本地化：仅使用系统字体栈，无外部字体/图标请求
   ============================================================ */

:root {
  --bg: #070a1f;
  --bg-2: #0a0e27;
  --bg-soft: #0e1430;
  --ink: #eaf0ff;
  --ink-soft: #aab4d4;
  --ink-dim: #6f7aa3;
  --brand: #ff4d6d;          /* 小红花 红 */
  --brand-2: #ff8fa3;
  --cyan: #38e8ff;
  --violet: #8b5cff;
  --grad: linear-gradient(120deg, #ff4d6d 0%, #ff8fa3 35%, #8b5cff 70%, #38e8ff 100%);
  --grad-soft: linear-gradient(120deg, rgba(255,77,109,.18), rgba(139,92,255,.18));
  --card: rgba(255, 255, 255, .04);
  --card-brd: rgba(255, 255, 255, .10);
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --radius: 18px;
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Helvetica Neue",
          Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 背景动态层 ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-aurora {
  position: fixed; inset: -20% -10% auto -10%; height: 70vh; z-index: -2;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(255,77,109,.35), transparent 70%),
    radial-gradient(40% 50% at 80% 20%, rgba(56,232,255,.28), transparent 70%),
    radial-gradient(50% 60% at 60% 60%, rgba(139,92,255,.30), transparent 70%);
  filter: blur(40px);
  animation: auroraMove 16s ease-in-out infinite alternate;
}
@keyframes auroraMove {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(0,-30px,0) scale(1.08); }
}
.bg-particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-particles .pt {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,.6);
  box-shadow: 0 0 8px rgba(255,255,255,.5);
  animation: floatUp linear infinite;
  opacity: 0;
}
@keyframes floatUp {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: .8; }
  90%  { opacity: .8; }
  100% { transform: translateY(-100vh) scale(.4); opacity: 0; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: transform .25s, box-shadow .25s, background .25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px rgba(255,77,109,.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(255,77,109,.5); }
.btn-ghost {
  background: rgba(255,255,255,.04); color: var(--ink);
  border-color: var(--card-brd);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--brand-2); background: rgba(255,255,255,.08); }
.btn-block { width: 100%; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7,10,31,.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--card-brd);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 12px; background: var(--grad); color: #fff; font-size: 20px;
  box-shadow: 0 8px 20px rgba(255,77,109,.4);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-size: 18px; }
.brand-text small { font-size: 10px; letter-spacing: 3px; color: var(--ink-dim); font-weight: 600; }
.nav { display: flex; gap: 30px; }
.nav a { color: var(--ink-soft); font-size: 15px; font-weight: 500; position: relative; padding: 6px 0; transition: color .2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--grad); transition: width .25s;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.nav-cta { padding: 9px 20px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; flex-direction: column; gap: 5px; justify-content: center; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 160px 0 90px; min-height: 100vh; display: flex; align-items: center; }
.hero-inner { max-width: 880px; }
.hero-eyebrow {
  display: inline-block; color: var(--brand-2); font-size: 14px; letter-spacing: 1px;
  padding: 6px 16px; border: 1px solid rgba(255,143,163,.4); border-radius: 999px;
  background: rgba(255,77,109,.08); margin-bottom: 22px;
}
.hero-title { font-size: clamp(34px, 6vw, 68px); line-height: 1.15; font-weight: 800; letter-spacing: -1px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 26px 0 36px; color: var(--ink-soft); font-size: clamp(15px, 2vw, 18px); max-width: 680px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { list-style: none; display: flex; gap: 44px; margin-top: 60px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: clamp(28px, 4vw, 44px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { color: var(--ink-dim); font-size: 14px; margin-top: 4px; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--ink-dim); border-radius: 14px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: var(--brand-2); border-radius: 2px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0%{opacity:0;top:8px} 40%{opacity:1} 80%{opacity:0;top:24px} 100%{opacity:0} }

/* ---------- 通用 section ---------- */
.section { padding: 100px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.kicker { display: inline-block; font-size: 13px; letter-spacing: 4px; color: var(--cyan); font-weight: 700; margin-bottom: 14px; }
.section-title { font-size: clamp(26px, 4vw, 42px); font-weight: 800; letter-spacing: -.5px; }
.section-desc { margin-top: 16px; color: var(--ink-soft); font-size: 16px; }

/* ---------- 玻璃卡片 ---------- */
.glass-card {
  background: var(--card); border: 1px solid var(--card-brd); border-radius: var(--radius);
  padding: 30px; backdrop-filter: blur(8px); box-shadow: var(--shadow);
  transition: transform .3s, border-color .3s;
}
.glass-card:hover { transform: translateY(-6px); border-color: rgba(255,143,163,.5); }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.about-grid .card-ico { font-size: 30px; color: var(--brand-2); margin-bottom: 14px; }
.about-grid h3 { font-size: 20px; margin-bottom: 10px; }
.about-grid p { color: var(--ink-soft); font-size: 15px; }

/* ---------- 主营业务 ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  position: relative; padding: 32px 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--card-brd); overflow: hidden;
  transition: transform .3s, border-color .3s, background .3s;
}
.svc-card::before {
  content: ""; position: absolute; inset: 0; background: var(--grad-soft);
  opacity: 0; transition: opacity .3s;
}
.svc-card:hover { transform: translateY(-6px); border-color: rgba(139,92,255,.5); }
.svc-card:hover::before { opacity: 1; }
.svc-num { font-size: 14px; font-weight: 800; color: var(--cyan); letter-spacing: 2px; }
.svc-card h3 { font-size: 20px; margin: 10px 0 10px; position: relative; }
.svc-card p { color: var(--ink-soft); font-size: 15px; position: relative; }

/* ---------- 软件产品 ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 90px; }
.product-reverse .product-media { order: 2; }
.product-media { position: relative; }
.product-glow {
  position: absolute; inset: -10% -10%; background: radial-gradient(circle at 50% 50%, rgba(255,77,109,.4), transparent 65%);
  filter: blur(50px); z-index: 0;
}
.product-glow.glow-2 { background: radial-gradient(circle at 50% 50%, rgba(56,232,255,.4), transparent 65%); }
.mock-ui {
  position: relative; z-index: 1; background: rgba(10,14,39,.9); border: 1px solid var(--card-brd);
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3;
}
.mock-bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--card-brd); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a335c; }
.mock-bar i:first-child { background: #ff5f57; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }
.mock-body { display: flex; gap: 14px; padding: 18px; height: calc(100% - 42px); }
.mock-side { display: flex; flex-direction: column; gap: 12px; width: 30%; }
.mock-side span { height: 14px; border-radius: 6px; background: #1c2347; }
.mock-side span.active { background: linear-gradient(90deg, var(--brand), var(--violet)); }
.mock-main { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.mock-line { height: 12px; border-radius: 6px; background: #1c2347; }
.mock-line.w70 { width: 70%; } .mock-line.w90 { width: 90%; } .mock-line.w50 { width: 50%; }
.mock-tiles { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: auto; }
.mock-tiles b { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, #1c2347, #2a335c); }
/* shop mock */
.mock-kpis { display: flex; flex-direction: column; gap: 14px; width: 46%; justify-content: center; }
.mock-kpis span { background: #121a3d; border: 1px solid var(--card-brd); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; }
.mock-kpis b { font-size: 12px; color: var(--ink-dim); font-weight: 600; }
.mock-kpis i { font-style: normal; font-size: 18px; font-weight: 800; color: var(--cyan); }
.mock-chart { flex: 1; display: flex; align-items: flex-end; gap: 10px; padding: 10px 0; }
.mock-chart b { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--brand-2), var(--violet)); }

.product-shot {
  position: relative; z-index: 1; border: 1px solid var(--card-brd); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow); background: #0a0e27;
}
.product-shot::before {
  content: ""; display: block; height: 34px; background: linear-gradient(180deg, #181f42, #11173a);
  border-bottom: 1px solid var(--card-brd);
}
.product-shot::after {
  content: ""; position: absolute; top: 11px; left: 14px; width: 11px; height: 11px; border-radius: 50%;
  background: #ff5f57; box-shadow: 18px 0 0 #febc2e, 36px 0 0 #28c840;
}
.product-shot img {
  display: block; width: 100%; height: auto; background: #0a0e27;
  transition: transform .6s ease;
}
.product-shot:hover img { transform: scale(1.02); }

.product-info .prod-tag { display: inline-block; font-size: 13px; color: var(--cyan); border: 1px solid rgba(56,232,255,.35); padding: 4px 14px; border-radius: 999px; margin-bottom: 14px; }
.product-info h3 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 16px; }
.prod-lead { color: var(--ink-soft); font-size: 16px; margin-bottom: 20px; }
.prod-feats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-bottom: 26px; }
.prod-feats li { position: relative; padding-left: 24px; color: var(--ink-soft); font-size: 14.5px; }
.prod-feats li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand-2); font-weight: 800; }

/* ---------- 联系我们 ---------- */
.contact-combined {
  display: flex; align-items: center; gap: 48px; padding: 42px 50px; max-width: 920px; margin: 0 auto;
}
.qr-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.qr-side h3 { font-size: 20px; }
.info-side { flex: 1 1 auto; min-width: 0; }
.info-side h3 { font-size: 20px; margin-bottom: 18px; }
.info-side p { color: var(--ink-soft); font-size: 15px; margin-bottom: 12px; display: flex; flex-direction: column; }
.info-side p span { font-size: 12px; color: var(--ink-dim); letter-spacing: 1px; margin-bottom: 2px; }
.info-side a { color: var(--cyan); }
.qr-frame {
  width: 180px; height: 180px; background: #fff; padding: 12px; border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25); transition: transform .3s, box-shadow .3s;
}
.qr-frame.qr-small { width: 140px; height: 140px; padding: 10px; border-radius: 14px; }
.qr-frame:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.qr-frame img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 8px; }
.qr-tip { color: var(--ink-dim); font-size: 13px; }
.contact-divider { width: 1px; align-self: stretch; background: var(--card-brd); }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--card-brd); padding-top: 50px; background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { font-size: 18px; }
.footer-brand p { color: var(--ink-dim); font-size: 13px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--ink-soft); font-size: 14px; transition: color .2s; }
.footer-nav a:hover { color: var(--brand-2); }
.footer-bottom { margin-top: 36px; padding: 20px 0; border-top: 1px solid var(--card-brd); text-align: center; }
.footer-bottom p { color: var(--ink-dim); font-size: 13px; }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px;
  display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff;
  font-size: 20px; box-shadow: 0 10px 26px rgba(255,77,109,.4); opacity: 0; pointer-events: none;
  transform: translateY(10px); transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- 滚动揭示动画 ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
  .about-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; gap: 30px; }
  .product-reverse .product-media { order: 0; }
  .contact-combined { flex-direction: column; gap: 30px; padding: 32px; }
  .contact-divider { width: 100%; height: 1px; align-self: auto; }
  .info-side { width: 100%; text-align: left; }
}
@media (max-width: 720px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(7,10,31,.96); backdrop-filter: blur(14px); padding: 18px 24px; gap: 14px;
    border-bottom: 1px solid var(--card-brd);
  }
  .nav.open a { font-size: 16px; }
  .hero { padding: 130px 0 70px; }
  .hero-stats { gap: 28px; }
  .section { padding: 70px 0; }
  .about-grid, .services-grid { grid-template-columns: 1fr; }
  .prod-feats { grid-template-columns: 1fr; }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   新闻中心（列表 / 详情）
   ============================================================ */
.hero-subpage { padding: 150px 0 60px; min-height: auto; }
.hero-subpage .hero-title { font-size: clamp(32px, 5vw, 56px); }

.news-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 34px; }
.news-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.news-cats { display: flex; flex-wrap: wrap; gap: 10px; }
.cat {
  background: rgba(255,255,255,.04); border: 1px solid var(--card-brd); color: var(--ink-soft);
  padding: 8px 16px; border-radius: 999px; font-size: 14px; cursor: pointer; font-family: inherit;
  transition: all .2s;
}
.cat:hover { color: var(--ink); border-color: rgba(255,143,163,.5); }
.cat.active { background: var(--grad); color: #fff; border-color: transparent; }

.news-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.news-item {
  display: flex; gap: 18px; padding: 18px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--card-brd); transition: transform .3s, border-color .3s;
}
.news-item:hover { transform: translateY(-5px); border-color: rgba(139,92,255,.5); }
.news-thumb { width: 132px; min-width: 132px; height: 96px; border-radius: 12px; overflow: hidden; background: #121a3d; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb--empty { display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--card-brd); }
.news-thumb--empty span { font-size: 13px; color: var(--brand-2); font-weight: 700; }
.news-body { display: flex; flex-direction: column; }
.news-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.news-tag { font-size: 12px; color: var(--cyan); border: 1px solid rgba(56,232,255,.35); padding: 2px 10px; border-radius: 999px; }
.news-meta time { font-size: 13px; color: var(--ink-dim); }
.news-head { font-size: 17px; line-height: 1.45; margin-bottom: 8px; }
.news-head a { transition: color .2s; }
.news-head a:hover { color: var(--brand-2); }
.news-sum { font-size: 14px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--cyan); font-weight: 600; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.pg {
  min-width: 40px; height: 40px; padding: 0 14px; border-radius: 10px; cursor: pointer; font-family: inherit;
  background: rgba(255,255,255,.04); border: 1px solid var(--card-brd); color: var(--ink-soft); font-size: 14px;
  transition: all .2s;
}
.pg:hover:not(:disabled) { color: var(--ink); border-color: rgba(255,143,163,.5); }
.pg.active { background: var(--grad); color: #fff; border-color: transparent; }
.pg:disabled { opacity: .35; cursor: not-allowed; }

/* 详情页 */
.article-inner { max-width: 820px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--ink-dim); font-size: 14px; margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--cyan); }
.article-meta { color: var(--ink-dim); font-size: 14px; margin-bottom: 12px; }
.article-meta #articleCat { color: var(--cyan); }
.article-title { font-size: clamp(26px, 4vw, 40px); line-height: 1.3; font-weight: 800; margin-bottom: 24px; }
.article-cover { margin: 0 0 30px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--card-brd); box-shadow: var(--shadow); }
.article-cover img { width: 100%; height: auto; display: block; }
.article-body p { font-size: 16.5px; line-height: 1.95; color: var(--ink-soft); margin-bottom: 20px; }
.article-foot { margin-top: 36px; }
.news-head a { color: var(--ink); }
.home-news-foot { margin-top: 34px; text-align: center; }

@media (max-width: 720px) {
  .news-list { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; }
  .news-thumb { width: 100%; min-width: 0; height: 170px; }
  .news-toolbar { flex-direction: column; align-items: flex-start; }
}

