/* ============================================================
   珠海市云创纪元科技有限公司 — 官方网站样式
   Design: 企业商务风 — 主色沉稳蓝青, 点缀金
   明暗双主题, 无装饰性发光/网格, 字体全部系统无衬线
   ============================================================ */

:root {
  color-scheme: light;

  /* 品牌色 */
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --teal-600: #0891b2;
  --accent: #d99a2b;            /* 点缀金 */
  --accent-soft: #f5e6c8;

  /* 明色主题 (默认) */
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --line: #e4e7ec;
  --line-strong: #cdd3dc;
  --text: #1a2233;
  --text-dim: #4a5568;
  --text-faint: #8a94a6;
  --grad: linear-gradient(120deg, var(--brand-600), var(--teal-600));
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.06);

  /* 深色主题 */
  --bg-d: #0e1520;
  --surface-d: #151e2c;
  --surface-2-d: #1b2636;
  --line-d: #263244;
  --line-strong-d: #37455c;
  --text-d: #e8ecf3;
  --text-dim-d: #a8b3c7;
  --text-faint-d: #76839a;

  /* 排版: 全部系统无衬线, 无 mono/像素感字体 */
  --font-display: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;

  --maxw: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 10px;
  --radius-lg: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

/* 深色主题: 仅覆盖背景/文字/边框色 */
html[data-theme="dark"] body { background: var(--bg-d); color: var(--text-d); }
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--bg-d);
  --surface: var(--surface-d);
  --surface-2: var(--surface-2-d);
  --line: var(--line-d);
  --line-strong: var(--line-strong-d);
  --text: var(--text-d);
  --text-dim: var(--text-dim-d);
  --text-faint: var(--text-faint-d);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: rgba(37, 99, 235, 0.22); }

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand-600);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------------- 通用结构 ---------------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand-600);
}
.eyebrow::before {
  content: "";
  width: 20px; height: 2px;
  background: var(--brand-600);
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; margin: 0; letter-spacing: -0.01em; }

h2 { font-size: clamp(1.8rem, 3.8vw, 2.5rem); font-weight: 700; }

.lead { color: var(--text-dim); font-size: clamp(1rem, 1.5vw, 1.1rem); max-width: 42em; }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------------- 头部导航 ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
}
.brand-logo {
  display: flex;
  align-items: center;
  flex: none;
}
.brand-logo img {
  height: 44px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  display: block;
}
.brand-logo .logo-dark { display: none; }
html[data-theme="dark"] .brand-logo .logo-light { display: none; }
html[data-theme="dark"] .brand-logo .logo-dark { display: block; }

.nav-links { display: flex; align-items: center; gap: 0.3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.94rem;
  color: var(--text-dim);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--brand-600); background: rgba(37, 99, 235, 0.08); font-weight: 600; }

.nav-right { display: flex; align-items: center; gap: 0.6rem; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-dim);
  border-radius: 9px;
  cursor: pointer;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn svg { display: block; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  overflow: hidden;
  font-size: 0.82rem;
}
.lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--text-dim);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0.04em;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.lang-toggle button.is-active { background: var(--brand-600); color: #fff; font-weight: 600; }

.menu-btn { display: none; }

/* ---------------- Hero ---------------- */

.hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  margin: 1rem 0 1.2rem;
}
.hero .sub { color: var(--text-dim); font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 34em; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.4rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.96rem;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); }

.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2.4rem; }
.stat { padding-left: 1rem; border-left: 3px solid var(--brand-600); }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
}
.stat .lbl { font-size: 0.84rem; color: var(--text-faint); margin-top: 0.3rem; }

/* 首页右侧: 简洁的品牌卡片, 替代装饰性图形 */
.hero-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.hero-aside h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.hero-aside .muted { color: var(--text-faint); font-size: 0.9rem; margin: 0 0 1.2rem; }
.hero-aside ul { list-style: none; margin: 0; padding: 0; }
.hero-aside li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.94rem;
}
.hero-aside li:first-child { border-top: 0; }
.hero-aside li svg { flex: none; color: var(--brand-600); }

/* ---------------- 卡片与网格 ---------------- */

.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); }

.card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand-600);
  margin-bottom: 1rem;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.45rem; }
.card p { margin: 0; color: var(--text-dim); font-size: 0.94rem; }

/* 编号用于真正的"流程/阶段" */
.process { counter-reset: step; }
.process .step { position: relative; padding-left: 3.2rem; margin-bottom: 1.8rem; }
.process .step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0.1rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand-600);
  background: rgba(37, 99, 235, 0.08);
  border-radius: 8px;
  padding: 0.1rem 0.6rem;
}
.process .step h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.process .step p { margin: 0; color: var(--text-dim); font-size: 0.94rem; }

/* ---------------- 业务标签 ---------------- */

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  font-size: 0.84rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}

/* ---------------- 常见问题 (FAQ 折叠) ---------------- */

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--brand-600);
  line-height: 1;
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.3rem 1.1rem; color: var(--text-dim); font-size: 0.95rem; }

/* ---------------- 联系我们 ---------------- */

.contact-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; }

.contact-item { display: flex; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .icon { flex: none; margin-bottom: 0; }
.contact-item h3 { font-size: 0.82rem; color: var(--text-faint); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.2rem; font-weight: 600; }
.contact-item .val { font-size: 1.04rem; font-weight: 600; }
.contact-item .val a:hover { color: var(--brand-600); }

.contact-note {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ---------------- 留言表单 ---------------- */

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.form-card .muted { color: var(--text-faint); font-size: 0.9rem; margin: 0 0 1.4rem; }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.field textarea { resize: vertical; min-height: 120px; }

.form-status { margin-top: 1rem; padding: 0.8rem 1rem; border-radius: 9px; font-size: 0.92rem; display: none; }
.form-status.is-error { display: block; background: rgba(220, 60, 60, 0.1); color: #c0392b; border: 1px solid rgba(220, 60, 60, 0.3); }
.form-status.is-ok { display: block; background: rgba(22, 163, 74, 0.1); color: #1d8a4a; border: 1px solid rgba(22, 163, 74, 0.3); }

.privacy-note { margin-top: 1rem; font-size: 0.8rem; color: var(--text-faint); }

/* ---------------- 页脚 ---------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2.4rem;
  margin-top: 2rem;
  background: var(--surface);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand .brand-cn { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.footer-brand p { color: var(--text-faint); font-size: 0.86rem; max-width: 30em; margin: 0.7rem 0 0; }
.footer-col h4 { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 0.9rem; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-dim); font-size: 0.9rem; }
.footer-col a:hover { color: var(--brand-600); }

.footer-bottom {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* ---------------- 动效 ---------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn:hover { transform: none; }
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .hero-aside { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed;
    inset: 66px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--line-strong);
    padding: 0.8rem var(--pad) 1.2rem;
    gap: 0.3rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 0.8rem 1rem; border-radius: 9px; }
  .menu-btn { display: inline-flex; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
}

/* ============================================================
   背景装饰 (视差层)
   ============================================================ */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.decor-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  will-change: transform;
}
.decor-blob--1 { width: 540px; height: 540px; top: -170px; right: -130px; background: radial-gradient(circle at 32% 32%, rgba(37, 99, 235, 0.32), transparent 68%); }
.decor-blob--2 { width: 480px; height: 480px; top: 34%; left: -200px; background: radial-gradient(circle at 60% 40%, rgba(8, 145, 178, 0.26), transparent 68%); }
.decor-blob--3 { width: 420px; height: 420px; bottom: -140px; right: 16%; background: radial-gradient(circle at 50% 50%, rgba(217, 154, 43, 0.18), transparent 68%); }
.decor-ring {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  will-change: transform;
}
.decor-ring--1 { width: 360px; height: 360px; top: 9%; right: 5%; }
.decor-ring--2 { width: 180px; height: 180px; top: 48%; left: 7%; opacity: 0.7; }
.decor-dots {
  position: absolute;
  width: 240px;
  height: 240px;
  top: 58%;
  right: 11%;
  background-image: radial-gradient(var(--line-strong) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.55;
  will-change: transform;
}

@media (max-width: 880px) {
  .decor-blob { filter: blur(54px); }
  .decor-blob--1 { width: 360px; height: 360px; top: -120px; right: -120px; }
  .decor-blob--2 { width: 320px; height: 320px; left: -160px; }
  .decor-blob--3 { width: 300px; height: 300px; }
  .decor-ring--1 { width: 240px; height: 240px; }
  .decor-ring--2 { display: none; }
  .decor-dots { display: none; }
}
