/* ============================================================
   爱卡科技企业官网 · 设计令牌
   方向：蓝白搭配 —— 纯白底 + 科技蓝主导，专业可信
   ============================================================ */
:root {
  --bg: #ffffff;
  --surface: #f6f9ff;         /* 浅蓝面 */
  --ink: #16233c;             /* 深蓝近黑 */
  --muted: #6b7794;
  --accent: #1a56db;          /* 科技蓝 */
  --accent-deep: #0f3a8c;
  --sky: #4f8cff;
  --ok: #159957;
  --line: rgba(22, 35, 60, .12);
  --radius: 14px;
  --shadow-1: 0 2px 10px rgba(15, 58, 140, .08);
  --shadow-2: 0 10px 30px rgba(15, 58, 140, .14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--ink); font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif; line-height: 1.75; }
h1,h2,h3,.serif { font-family: "Noto Serif SC", serif; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; display: block; }

/* 顶栏（白底蓝字） */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 26px;
  padding: 12px 32px; background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 42px; height: 42px; display: block; flex: none; }
.brand-txt strong { font-family: "Noto Serif SC", serif; font-size: 19px; display: block; line-height: 1.15; }
.brand-txt small { color: var(--muted); font-size: 11px; letter-spacing: .18em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 9px 16px; border-radius: 10px; font-size: 15px; color: var(--ink); transition: all 200ms ease-out; }
.nav a:hover { background: var(--surface); color: var(--accent); }
.nav a.on { color: var(--accent); font-weight: 700; }
.top-cta {
  padding: 10px 22px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 15px;
  background: linear-gradient(135deg, var(--accent), var(--sky));
  box-shadow: var(--shadow-1); transition: transform 160ms ease-out, box-shadow 200ms ease-out;
}
.top-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }

.page { min-height: 62vh; }
.loading { padding: 90px 0; text-align: center; color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* 首页 Hero —— 蓝色渐变大气开场 */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(44rem 30rem at 88% 8%, rgba(79, 140, 255, .5), transparent 60%),
    radial-gradient(36rem 26rem at 8% 96%, rgba(15, 58, 140, .65), transparent 58%),
    linear-gradient(128deg, var(--accent-deep), var(--accent) 58%, var(--sky));
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(-58deg, rgba(255,255,255,.05) 0 2px, transparent 2px 30px);
}
.hero-inner { position: relative; max-width: 1120px; margin: 0 auto; padding: 88px 24px 96px; }
.hero .kicker {
  display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); letter-spacing: .08em;
}
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.14; margin: 20px 0 14px; font-weight: 900; }
.hero h1 em { font-style: normal; color: #ffd76a; }
.hero p.lead { font-size: 18px; opacity: .92; max-width: 640px; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 10px 32px; border-radius: 12px; border: 0; font-weight: 700; font-size: 16px;
  transition: transform 160ms ease-out, background 200ms ease-out, box-shadow 200ms ease-out;
}
.btn:active { transform: scale(.97); }
.btn-white { background: #fff; color: var(--accent-deep); box-shadow: var(--shadow-2); }
.btn-white:hover { transform: translateY(-2px); }
.btn-line { background: transparent; border: 1.5px solid rgba(255,255,255,.65); color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.12); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-blue-ghost { background: #fff; border: 1.5px solid var(--accent); color: var(--accent); }
.hero-stats { display: flex; gap: 44px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats .num { font-size: 34px; font-weight: 900; font-family: "Noto Serif SC", serif; }
.hero-stats .lab { font-size: 13px; opacity: .8; }

/* 区块 */
.sec { padding: 72px 0 8px; }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 30px; }
.sec-head h2 { font-size: 30px; }
.sec-head .rule { flex: 1; height: 1px; background: var(--line); }
.sec-head .more { color: var(--accent); font-size: 14px; font-weight: 600; }

/* 四大 AI 能力卡 */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ai-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; position: relative; overflow: hidden;
  transition: transform var(--ease) 300ms, box-shadow var(--ease) 300ms, border-color 300ms;
}
.ai-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--sky));
}
.ai-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: rgba(26, 86, 219, .35); }
.ai-card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--sky)); color: #fff;
  font-size: 24px; margin-bottom: 16px;
}
.ai-card h3 { font-size: 18px; margin-bottom: 8px; }
.ai-card p { color: var(--muted); font-size: 14.5px; }

/* 九大特性九宫格 */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border-radius: 12px; padding: 18px;
  transition: background 200ms ease-out, transform 200ms ease-out;
}
.feat:hover { background: #eaf1ff; transform: translateY(-2px); }
.feat .fi {
  flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: #fff; border: 1px solid rgba(26, 86, 219, .25); color: var(--accent); font-size: 19px;
}
.feat strong { display: block; font-size: 15.5px; }
.feat span { color: var(--muted); font-size: 13.5px; }

/* 定价横幅 */
.price-band {
  margin-top: 66px; border-radius: 20px; color: #fff; overflow: hidden; position: relative;
  background:
    radial-gradient(30rem 18rem at 92% 10%, rgba(255, 255, 255, .18), transparent 55%),
    linear-gradient(120deg, var(--accent-deep), var(--accent) 60%, var(--sky));
  display: flex; align-items: center; gap: 30px; padding: 38px 44px; flex-wrap: wrap;
}
.price-band .p-num { font-size: 56px; font-weight: 900; font-family: "Noto Serif SC", serif; color: #ffd76a; }
.price-band .p-num small { font-size: 20px; }
.price-band .p-desc { flex: 1; min-width: 260px; }
.price-band h3 { font-size: 24px; margin-bottom: 6px; }
.price-band p { opacity: .9; font-size: 15px; }

/* 新闻 */
.news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.news-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; background: var(--bg);
  display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden;
  transition: transform var(--ease) 300ms, box-shadow var(--ease) 300ms;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.news-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.news-card h3 { font-size: 18px; line-height: 1.5; }
.news-card p { color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { color: var(--muted); font-size: 13px; display: flex; gap: 16px; }
.news-date {
  align-self: flex-start; background: var(--surface); color: var(--accent); font-weight: 700;
  border-radius: 8px; padding: 2px 10px; font-size: 13px; font-variant-numeric: tabular-nums;
}

/* 详情页 */
.article { max-width: 800px; margin: 0 auto; }
.article h1 { font-size: 30px; line-height: 1.4; margin: 10px 0 16px; }
.article .meta { color: var(--muted); font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.article .content { font-size: 16.5px; line-height: 2; }
.article .content p { margin-bottom: 18px; }

/* 留言表单 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: start; }
.info-card { background: var(--surface); border-radius: var(--radius); padding: 30px; }
.info-card h3 { font-size: 20px; margin-bottom: 16px; }
.info-line { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.info-line .k { color: var(--muted); flex: none; width: 76px; }
.form-panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-1); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(26, 86, 219, .12); }
.form-ok { text-align: center; padding: 40px 0; }
.form-ok .big { font-size: 46px; }

/* 页脚 */
.footer { background: var(--accent-deep); color: rgba(255, 255, 255, .88); margin-top: 80px; }
.foot-grid { max-width: 1120px; margin: 0 auto; padding: 40px 24px 18px; display: flex; gap: 60px; flex-wrap: wrap; justify-content: space-between; }
.copyright { text-align: center; padding: 16px; font-size: 13px; opacity: .65; border-top: 1px solid rgba(255,255,255,.14); }
.muted { opacity: .82; font-size: 14px; }

/* Toast / 动效 */
.toast { position: fixed; left: 50%; bottom: 48px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 24px; border-radius: 12px;
  opacity: 0; pointer-events: none; z-index: 99; transition: all 300ms var(--ease); box-shadow: var(--shadow-2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 460ms var(--ease), transform 460ms var(--ease); }
.reveal.in:nth-child(2) { transition-delay: 70ms; }
.reveal.in:nth-child(3) { transition-delay: 140ms; }
.reveal.in:nth-child(4) { transition-delay: 210ms; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } .reveal { opacity: 1; transform: none; } }

/* 响应式 */
@media (max-width: 960px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .news-list, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .topbar { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .nav { width: 100%; order: 3; justify-content: space-between; }
  .nav a { padding: 8px 10px; font-size: 14px; }
  .hero-inner { padding: 60px 18px 70px; }
  .grid4, .feat-grid { grid-template-columns: 1fr; }
  .price-band { padding: 30px 24px; }
}
