/* Datrive EDC 产品主页 —— 视觉规范对齐 docs/03-开发过程/ui-design-language.md
   品牌紫 #8b5cf6 仅作点缀（主按钮/图标/编号/链接）；Carbon 灰白专业底；IBM Plex Sans + 系统中文栈
   Hero 深紫场景对齐官方 PPT 封面（品牌展示场景，允许适度玻璃/装饰） */

@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url('assets/fonts/ibm-plex-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: swap; src: url('assets/fonts/ibm-plex-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url('assets/fonts/ibm-plex-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 700; font-display: swap; src: url('assets/fonts/ibm-plex-sans-700.woff2') format('woff2'); }

:root {
  --brand: #8b5cf6;
  --brand-deep: #7c3aed;
  --hero-bg-1: #2e2a5f;
  --hero-bg-2: #26224f;
  --bg-layout: #f4f4f4;
  --bg-container: #ffffff;
  --text-1: #161616;
  --text-2: #525252;
  --text-3: #8d8d8d;
  --line: #e0e0e0;
  --purple-tint: #f4f1fd;
  --radius: 12px;
  --shadow-card: 0 1px 3px rgba(22, 22, 22, .08), 0 8px 24px rgba(22, 22, 22, .06);
  --font: 'IBM Plex Sans', -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text-1); background: var(--bg-layout); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-alt { background: var(--bg-container); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-eyebrow { color: var(--brand); font-weight: 600; font-size: 14px; letter-spacing: .12em; margin-bottom: 8px; }
.section-head h2 { font-size: 32px; font-weight: 700; line-height: 1.3; }
.section-sub { color: var(--text-2); margin-top: 12px; font-size: 16px; }

/* ===== 按钮 ===== */
.btn { display: inline-block; border-radius: 8px; font-weight: 600; text-align: center; transition: background .15s ease, transform .15s ease; }
.btn-primary { background: var(--brand); color: #fff; padding: 10px 22px; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-hero { background: var(--brand); color: #fff; padding: 13px 32px; font-size: 16px; }
.btn-hero:hover { background: var(--brand-deep); transform: translateY(-1px); }
.btn-hero-ghost { border: 1px solid rgba(255, 255, 255, .45); color: #fff; padding: 13px 32px; font-size: 16px; }
.btn-hero-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ===== 顶部导航 ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand-logo { height: 40px; width: auto; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a { font-size: 15px; color: var(--text-2); font-weight: 500; transition: color .15s; }
.site-nav a:hover { color: var(--brand); }

/* ===== Hero（深紫品牌场景） ===== */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--hero-bg-1) 0%, var(--hero-bg-2) 55%, #211d47 100%); color: #fff; }
.hero-deco { position: absolute; border-radius: 50%; background: rgba(139, 92, 246, .16); pointer-events: none; animation: float 14s ease-in-out infinite; }
.hero-deco-1 { width: 520px; height: 520px; top: -200px; right: -140px; }
.hero-deco-2 { width: 380px; height: 380px; bottom: -170px; right: 16%; background: rgba(139, 92, 246, .10); animation-delay: -5s; animation-duration: 18s; }
.hero-deco-3 { width: 280px; height: 280px; bottom: -90px; left: -90px; animation-delay: -9s; animation-duration: 16s; }
.hero-inner { position: relative; padding: 118px 24px 122px; text-align: center; animation: fadeUp .9s ease both; }
.hero-title { font-size: 60px; font-weight: 700; line-height: 1.15; letter-spacing: .01em; }
.hero-title small { display: block; font-size: 23px; font-weight: 500; color: rgba(255, 255, 255, .85); margin-top: 16px; letter-spacing: .06em; }
.brand-purple { color: #a78bfa; }
.hero-sub { margin: 24px auto 0; max-width: 640px; color: rgba(255, 255, 255, .78); font-size: 17px; }
.hero-actions { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-tags { margin-top: 46px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-tags li { background: rgba(139, 92, 246, .22); border: 1px solid rgba(139, 92, 246, .35); color: #e4dcfc; padding: 7px 20px; border-radius: 999px; font-size: 14px; }

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-26px) translateX(14px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
/* 滚动进入动效（main.js 配合）：prefers-reduced-motion 时直接可见 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-deco, .diff-visual, .diff-visual .flow, .diff-visual .pulse { animation: none !important; }
}

/* ===== 差异化能力（无卡片：文字交错排布 + 淡紫场景示意图羽化融入白底） ===== */
.diff-list { display: flex; flex-direction: column; gap: 84px; }
.diff-item { display: flex; align-items: center; gap: 56px; }
.diff-item.flip { flex-direction: row-reverse; }
.diff-text { flex: 1 1 52%; }
.diff-no { display: inline-block; color: var(--brand); font-weight: 700; font-size: 15px; letter-spacing: .14em; margin-bottom: 10px; }
.diff-text h3 { font-size: 25px; font-weight: 700; margin-bottom: 14px; }
.diff-lead { color: var(--text-1); font-weight: 600; font-size: 16px; margin-bottom: 16px; }
.diff-points { list-style: none; }
.diff-points li { position: relative; padding: 0 0 10px 22px; color: var(--text-2); font-size: 15px; }
.diff-points li::before { content: ''; position: absolute; left: 3px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.diff-visual { flex: 0 0 43%; animation: float 11s ease-in-out infinite; }
.diff-visual svg { width: 100%; height: auto; display: block; /* 边缘羽化：示意图向白色页面背景淡出（中心区保持全不透明，保证图内文字可见） */ -webkit-mask-image: radial-gradient(ellipse 74% 74% at center, #000 52%, transparent 84%); mask-image: radial-gradient(ellipse 74% 74% at center, #000 52%, transparent 84%); }
.diff-cap { margin-top: 2px; text-align: center; color: #8d8d8d; font-size: 13px; letter-spacing: .06em; }
/* 示意图动效：连线虚线流动 + 关键点呼吸 */
.diff-visual .flow { stroke-dasharray: 5 9; animation: dashflow 1.5s linear infinite; }
@keyframes dashflow { to { stroke-dashoffset: -28; } }
.diff-visual .pulse { animation: pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0%, 100% { opacity: .5; transform: scale(.92); } 50% { opacity: 1; transform: scale(1); } }

/* ===== 标配能力（紧凑清单） ===== */
.std-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.std-item { background: var(--bg-container); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.std-item:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, .45); box-shadow: var(--shadow-card); }
.std-icon { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(135deg, #f3eefe, #e6dcfd); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; transition: background .22s ease, color .22s ease; }
.std-item:hover .std-icon { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; }
.std-icon svg { width: 22px; height: 22px; }
.std-item h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.std-item p { color: var(--text-2); font-size: 13.5px; }

/* ===== 数据合规 ===== */
.comp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 920px; margin: 0 auto; }
.comp-card { display: flex; align-items: flex-start; gap: 18px; background: var(--bg-container); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.comp-card:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, .45); box-shadow: var(--shadow-card); }
.comp-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, #f3eefe, #e6dcfd); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; }
.comp-icon svg { width: 24px; height: 24px; }
.comp-card:hover .comp-icon { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; }
.comp-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--text-1); }
.comp-body p { color: var(--text-2); font-size: 14.5px; }

/* ===== 部署方式 ===== */
.deploy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 860px; margin: 0 auto; }
.deploy-card { background: var(--bg-container); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow-card); }
.deploy-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--brand-deep); }
.deploy-card p { color: var(--text-2); font-size: 15px; }

/* ===== 联系我们 ===== */
.contact { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--hero-bg-1) 0%, var(--hero-bg-2) 100%); color: #fff; }
.contact-inner { position: relative; text-align: center; padding: 72px 24px; }
.contact-inner h2 { font-size: 30px; font-weight: 700; }
.contact-inner p { margin: 14px auto 32px; color: rgba(255, 255, 255, .78); max-width: 560px; }

/* ===== 页脚 ===== */
.site-footer { background: #1b1838; color: rgba(255, 255, 255, .65); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { height: 32px; width: auto; }
.footer-brand p { font-size: 13px; }
.footer-copy { font-size: 13px; }
.footer-beian a { font-size: 13px; color: rgba(255, 255, 255, .45); }
.footer-beian a:hover { color: rgba(255, 255, 255, .8); }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .site-nav { display: none; }
  .hero-title { font-size: 40px; }
  .hero-inner { padding: 84px 24px 76px; }
  .std-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-item, .diff-item.flip { flex-direction: column; align-items: flex-start; gap: 8px; }
  .diff-visual { flex: none; width: 78%; align-self: center; }
  .comp-grid { grid-template-columns: 1fr; }
  .deploy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .std-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; }
  .hero-title small { font-size: 17px; }
}
