/* ========== 壹加壹科技 官网共享样式 ========== */
:root {
  --deep-blue: #1A3A5C;
  --brand-blue: #2563EB;
  --accent-orange: #F59E0B;
  --bg-light: #F8FAFC;
  --ink: #0F172A;
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}

::selection { background: var(--brand-blue); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--brand-blue), var(--deep-blue)); border-radius: 8px; }

/* ---------- 自定义光标 ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  border-radius: 50%; transform: translate(-50%, -50%);
}
.cursor-dot { width: 8px; height: 8px; background: var(--brand-blue); }
.cursor-ring {
  width: 36px; height: 36px; border: 1.5px solid rgba(37, 99, 235, .55);
  transition: width .25s ease, height .25s ease, border-color .25s ease, background .25s ease;
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  border-color: var(--accent-orange);
  background: rgba(245, 158, 11, .08);
}
@media (hover: none), (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- 页面转场遮罩 ---------- */
.page-transition {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  display: flex;
}
.page-transition span {
  flex: 1; background: linear-gradient(160deg, var(--deep-blue), var(--brand-blue));
  transform: scaleY(0); transform-origin: top;
}

/* ---------- 导航 ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  transition: background .4s ease, box-shadow .4s ease, backdrop-filter .4s ease;
}
.site-nav.scrolled {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 30px rgba(15, 23, 42, .08);
}
.site-nav.scrolled .nav-link { color: var(--ink); }
.site-nav.scrolled .nav-logo-text { color: var(--ink); }
.site-nav.scrolled .nav-logo-sub { color: #64748b; }
.site-nav.scrolled .nav-phone { color: var(--brand-blue); }
.site-nav.scrolled .burger span { background: var(--ink); }

.nav-link {
  position: relative; color: rgba(255,255,255,.85);
  font-size: 15px; font-weight: 500; letter-spacing: .02em;
  transition: color .3s;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--accent-orange); transform: scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.65, 0, .35, 1);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.active { color: var(--accent-orange) !important; }

/* ---------- 按钮 ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(120deg, var(--brand-blue), #1d4ed8);
  color: #fff; font-weight: 600; padding: 14px 32px; border-radius: 999px;
  box-shadow: 0 8px 30px rgba(37, 99, 235, .35);
  transition: transform .3s ease, box-shadow .3s ease;
  will-change: transform;
}
.btn-primary:hover { box-shadow: 0 12px 40px rgba(37, 99, 235, .5); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid rgba(255,255,255,.4); color: #fff; font-weight: 500;
  padding: 13px 30px; border-radius: 999px; transition: all .3s ease;
}
.btn-ghost:hover { border-color: var(--accent-orange); color: var(--accent-orange); }
.btn-ghost.dark { border-color: #cbd5e1; color: var(--ink); }
.btn-ghost.dark:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

/* ---------- 排版 ---------- */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand-blue);
}
.section-tag::before { content: ''; width: 28px; height: 2px; background: var(--accent-orange); }

.section-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.2;
  letter-spacing: -.01em;
}
.grad-text {
  background: linear-gradient(100deg, var(--brand-blue) 10%, var(--accent-orange) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-text-light {
  background: linear-gradient(100deg, #60a5fa, var(--accent-orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 卡片 ---------- */
.service-card {
  position: relative; background: #fff; border-radius: 20px; padding: 36px 30px;
  border: 1px solid #e8eef5; overflow: hidden;
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease, border-color .4s ease;
  will-change: transform;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(245,158,11,.05));
  opacity: 0; transition: opacity .4s ease;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(26, 58, 92, .14);
  border-color: rgba(37, 99, 235, .35);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-blue), var(--deep-blue));
  color: #fff; font-size: 26px; margin-bottom: 22px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .3);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.08); }

.case-card {
  position: relative; border-radius: 22px; overflow: hidden; background: #fff;
  border: 1px solid #e8eef5;
  transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s ease;
}
.case-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: 0 28px 70px rgba(26,58,92,.16); }
.case-card .case-cover {
  height: 180px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 22px;
}
.case-card .case-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 25, 47, .55));
}
.case-num {
  font-size: clamp(34px, 4vw, 52px); font-weight: 800; line-height: 1;
  background: linear-gradient(120deg, #fff, #ffd9a0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 跑马灯 ---------- */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 0; animation: marquee 28s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
  display: inline-flex; align-items: center; gap: 14px; padding: 0 34px;
  font-size: clamp(18px, 2.4vw, 28px); font-weight: 700; color: rgba(255,255,255,.9);
}
.marquee-item i { color: var(--accent-orange); font-style: normal; }

/* ---------- FAQ 手风琴 ---------- */
.faq-item { border-bottom: 1px solid #e2e8f0; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 4px; text-align: left; font-size: 17px; font-weight: 600; color: var(--ink);
  cursor: pointer; background: none; border: none; transition: color .3s;
}
.faq-q:hover { color: var(--brand-blue); }
.faq-q .faq-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid #cbd5e1; display: flex; align-items: center; justify-content: center;
  transition: all .35s ease; font-size: 18px; color: var(--brand-blue);
}
.faq-item.open .faq-icon { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s cubic-bezier(.22,1,.36,1); }
.faq-a-inner { padding: 0 4px 28px; color: #475569; line-height: 1.9; font-size: 15.5px; }

/* ---------- 数据大屏风 hero ---------- */
.hero-dark {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(37, 99, 235, .35), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(245, 158, 11, .18), transparent 55%),
    linear-gradient(155deg, #0B1D33 0%, var(--deep-blue) 55%, #122B47 100%);
  background-color: #0B1D33;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.stat-num { font-variant-numeric: tabular-nums; }

/* ---------- 流程时间线 ---------- */
.flow-step { position: relative; }
.flow-step .flow-dot {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--deep-blue));
  color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37,99,235,.3); position: relative; z-index: 2;
}

/* ---------- 输入框 ---------- */
.form-input {
  width: 100%; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 12px;
  padding: 14px 18px; font-size: 15px; transition: border-color .3s, box-shadow .3s;
  outline: none;
}
.form-input:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }

/* ---------- 滚动显现初始态 ---------- */
[data-reveal] { opacity: 0; }

/* ---------- 其他 ---------- */
.text-balance { text-wrap: balance; }
.glass {
  background: rgba(255,255,255,.06); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
}
.divider-glow {
  height: 1px; background: linear-gradient(90deg, transparent, rgba(37,99,235,.5), transparent);
}

/* ========== 资讯中心 ========== */

/* 分类筛选按钮 */
.news-filter-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  color: #475569; background: #fff; border: 1.5px solid #e2e8f0;
  transition: all .3s ease; cursor: pointer; white-space: nowrap;
}
.news-filter-btn:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.news-filter-btn.active {
  background: linear-gradient(120deg, var(--brand-blue), #1d4ed8);
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .3);
}

/* 文章卡片（图文排版） */
.news-card {
  position: relative; background: #fff; border-radius: 20px; overflow: hidden;
  border: 1px solid #e8eef5; display: flex; flex-direction: column; height: 100%;
  transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s ease, border-color .45s ease;
}
.news-card:hover { transform: translateY(-8px); box-shadow: 0 28px 70px rgba(26,58,92,.16); border-color: rgba(37,99,235,.35); }
.news-card .news-cover {
  position: relative; height: 200px; flex-shrink: 0; overflow: hidden;
}
.news-card .news-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 25, 47, .62));
}
.news-cover .news-emoji {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 64px; line-height: 1; opacity: .95;
  filter: drop-shadow(0 12px 26px rgba(11, 29, 51, .4));
  transition: transform .5s cubic-bezier(.34,1.56,.64,1);
}
.news-card:hover .news-emoji { transform: translate(-50%, -50%) scale(1.12) rotate(-6deg); }
.news-cover .news-chip { position: absolute; top: 16px; left: 16px; z-index: 2; }
.news-cover .news-date { position: absolute; right: 16px; bottom: 14px; z-index: 2; }

/* 分类标签 / 时间标签 */
.news-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.16); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.28); color: #fff;
  font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 12px;
}
.news-chip.solid { background: #fff; color: var(--brand-blue); border-color: transparent; box-shadow: 0 4px 14px rgba(11,29,51,.15); }
.news-date {
  display: inline-flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,.85); font-size: 12.5px; font-weight: 500;
}

/* 卡片正文 */
.news-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.news-body h3 {
  font-size: 18px; font-weight: 700; line-height: 1.5; color: var(--ink);
  transition: color .3s ease;
}
.news-card:hover .news-body h3 { color: var(--brand-blue); }
.news-excerpt {
  margin: 10px 0 16px; color: #64748b; font-size: 14px; line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-meta {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  color: #94a3b8; font-size: 12.5px;
}
.news-meta .news-meta-l { display: inline-flex; align-items: center; gap: 14px; }
.news-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand-blue); font-weight: 600; font-size: 14px;
  transition: gap .3s ease;
}
.news-card:hover .news-more { gap: 10px; }

/* 头条文章（大卡） */
.news-featured { height: 100%; display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .news-featured { grid-template-columns: 1.05fr 1fr; } }
.news-featured .news-cover { height: 100%; min-height: 320px; }
.news-featured .news-emoji { font-size: 96px; }
.news-featured .news-body h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; }
.news-featured .news-excerpt { -webkit-line-clamp: 3; font-size: 15px; }

/* 封面装饰纹理 */
.news-pattern {
  background-image: radial-gradient(rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* 分页 */
.news-page-btn {
  width: 44px; height: 44px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid #e2e8f0; color: #475569; font-weight: 600; font-size: 15px;
  background: #fff; transition: all .3s ease; cursor: pointer;
}
.news-page-btn:hover:not(:disabled) { border-color: var(--brand-blue); color: var(--brand-blue); }
.news-page-btn.active {
  background: linear-gradient(120deg, var(--brand-blue), #1d4ed8);
  color: #fff; border-color: transparent; box-shadow: 0 8px 24px rgba(37,99,235,.3);
}
.news-page-btn:disabled { opacity: .38; cursor: not-allowed; }

/* 空状态 */
.news-empty { text-align: center; color: #94a3b8; padding: 70px 0; }

/* 详情页 */
.article-hero-cover {
  position: relative; border-radius: 26px; overflow: hidden;
  min-height: 300px; display: flex; align-items: flex-end; padding: 34px;
}
.article-hero-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(10, 25, 47, .72));
}
.article-hero-cover .news-emoji {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -52%);
  font-size: 110px; line-height: 1; filter: drop-shadow(0 16px 34px rgba(11, 29, 51, .45));
}
.article-body { font-size: 16.5px; line-height: 2; color: #334155; }
.article-body h2 {
  font-size: 22px; font-weight: 800; color: var(--ink);
  margin: 46px 0 18px; padding-left: 14px; line-height: 1.45;
  border-left: 4px solid var(--brand-blue);
}
.article-body p { margin: 18px 0; }
.article-body blockquote {
  margin: 28px 0; padding: 18px 24px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(245,158,11,.05));
  border-left: 4px solid var(--accent-orange); color: #475569;
}
.article-body ul { margin: 18px 0; padding-left: 4px; }
.article-body ul li { position: relative; padding-left: 26px; margin: 10px 0; }
.article-body ul li::before {
  content: ''; position: absolute; left: 2px; top: 13px;
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--accent-orange));
}
.article-body strong { color: var(--ink); }
.news-tag {
  display: inline-flex; background: #F1F5F9; color: #475569;
  font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 5px 14px;
}
