/* =========================================================
 * 龙百AI OEM 官网 — 单页滚动样式  白色为主 · AI 现代化
 * ========================================================= */

:root {
  --brand: #4F46E5;
  --brand-light: #6366F1;
  --brand-dark: #3730A3;
  --brand-2: #7C3AED;
  --brand-soft: #EEF2FF;
  --bg: #ffffff;
  --bg-alt: #F6F8FD;
  --text: #0F172A;
  --text-muted: #475569;
  --text-weak: #94A3B8;
  --border: #E6E9F2;
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-md: 0 12px 32px rgba(79, 70, 229, .12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { font-family: var(--font); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; background: var(--bg); }

.hp-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- 导航栏 ---------- */
.hp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: background .25s, box-shadow .25s, padding .25s;
}
.hp-nav-scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  padding: 10px 0;
}
.hp-nav .hp-container { display: flex; align-items: center; justify-content: space-between; }
.hp-nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; color: var(--text); }
.hp-nav-logo { height: 32px; }
.hp-nav-links { display: flex; gap: 28px; }
.hp-nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s; position: relative; }
.hp-nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 2px; transition: width .25s;
}
.hp-nav-links a:hover { color: var(--brand); }
.hp-nav-links a:hover::after { width: 100%; }
.hp-nav-actions { display: flex; gap: 12px; }

/* ---------- 按钮 ---------- */
.hp-btn-primary {
  display: inline-block; padding: 11px 30px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .28);
}
.hp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(79, 70, 229, .38); }
.hp-btn-ghost {
  display: inline-block; padding: 11px 30px; border-radius: 10px;
  border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 500; font-size: 14px;
  transition: border-color .15s, color .15s, background .15s;
}
.hp-btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.hp-btn-lg { padding: 15px 38px; font-size: 16px; border-radius: 12px; }
.hp-btn-block { display: block; text-align: center; width: 100%; }

/* ---------- Hero ---------- */
.hp-hero {
  position: relative; padding: 170px 0 110px; overflow: hidden; text-align: center;
}
.hp-hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(246,248,253,.8) 55%, rgba(255,255,255,.98) 100%),
    url('https://images.unsplash.com/photo-1677442136019-21780ecad995?auto=format&fit=crop&w=1920&q=80');
  background-size: cover; background-position: center;
  z-index: 0;
}
.hp-hero-bg::after {
  content: ''; position: absolute; left: 50%; top: 18%;
  width: 520px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(124, 58, 237, .14) 0%, rgba(79, 70, 229, .07) 40%, transparent 70%);
  border-radius: 50%; filter: blur(20px);
  animation: hpGlow 6s ease-in-out infinite;
}
@keyframes hpGlow {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: .8; }
  50% { transform: translateX(-50%) scale(1.25); opacity: 1; }
}
.hp-hero-inner { position: relative; z-index: 1; }
.hp-hero-title {
  font-size: clamp(38px, 5vw, 58px); font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(135deg, #1E1B4B 0%, var(--brand) 45%, var(--brand-2) 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.hp-hero-sub { font-size: clamp(18px, 2.5vw, 22px); color: var(--text); font-weight: 600; margin-bottom: 12px; }
.hp-hero-desc { font-size: 16px; color: var(--text-muted); max-width: 560px; margin: 0 auto 40px; }
.hp-hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- 公告 ---------- */
.hp-announce { padding: 0 0 24px; }
.hp-announce-box {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 22px; border-radius: var(--radius);
  background: var(--brand-soft);
  border: 1px solid #DDE3FB;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.hp-announce-tag {
  flex-shrink: 0; padding: 3px 12px; border-radius: 7px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 12px; font-weight: 600;
}
.hp-announce-text { color: var(--text); }

/* ---------- 通用板块 ---------- */
.hp-section { padding: 88px 0; }
.hp-section-alt { background: var(--bg-alt); }
.hp-section-title { font-size: clamp(26px, 3vw, 34px); font-weight: 800; text-align: center; margin-bottom: 10px; letter-spacing: -.3px; }
.hp-section-desc { text-align: center; color: var(--text-muted); font-size: 16px; margin-bottom: 52px; }

/* ---------- 功能特性 ---------- */
.hp-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.hp-feature-card {
  padding: 30px 26px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border);
  transition: box-shadow .25s, transform .25s, border-color .25s;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.hp-feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); opacity: 0; transition: opacity .25s;
}
.hp-feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: #C7D2FE; }
.hp-feature-card:hover::before { opacity: 1; }
.hp-feature-icon { font-size: 32px; margin-bottom: 14px; }
.hp-feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 9px; }
.hp-feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ---------- 画布引擎 ---------- */
.hp-canvas-nodes {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px;
}
.hp-node {
  padding: 9px 20px; border-radius: 22px; font-size: 14px; font-weight: 500;
  background: var(--bg); border: 1px solid var(--border);
  transition: border-color .15s, color .15s, transform .15s, box-shadow .15s;
  box-shadow: var(--shadow-sm);
}
.hp-node:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(79, 70, 229, .12); }
.hp-canvas-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.hp-canvas-feat {
  text-align: center; padding: 28px 24px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.hp-canvas-feat h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.hp-canvas-feat p { font-size: 14px; color: var(--text-muted); }

/* ---------- 定价 ---------- */
.hp-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; max-width: 920px; margin: 0 auto; }
.hp-pricing-card {
  position: relative; padding: 34px 30px; border-radius: 18px;
  background: var(--bg); border: 1px solid var(--border); text-align: center;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  box-shadow: var(--shadow-sm);
}
.hp-pricing-card:hover { box-shadow: 0 14px 36px rgba(15, 23, 42, .1); transform: translateY(-4px); }
.hp-pricing-popular { border-color: #A5B4FC; box-shadow: 0 16px 44px rgba(79, 70, 229, .16); }
.hp-pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 5px 18px; border-radius: 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 12px; font-weight: 600;
  box-shadow: 0 4px 12px rgba(124, 58, 237, .35);
}
.hp-pricing-name { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.hp-pricing-price { margin-bottom: 4px; }
.hp-pricing-amount { font-size: 36px; font-weight: 800; color: var(--brand); }
.hp-pricing-original { font-size: 16px; color: var(--text-weak); text-decoration: line-through; margin-left: 8px; }
.hp-pricing-duration { font-size: 14px; color: var(--text-muted); margin-bottom: 22px; }
.hp-pricing-features { list-style: none; padding: 0; margin: 0 0 26px; text-align: left; }
.hp-pricing-features li { padding: 7px 0; font-size: 14px; color: var(--text-muted); border-bottom: 1px solid #F1F3F8; }
.hp-pricing-features li::before { content: "✓ "; color: var(--brand); font-weight: 700; }

/* ---------- 下载 ---------- */
.hp-download-inner { text-align: center; }
.hp-download-cards { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.hp-download-card {
  width: 290px; padding: 40px 30px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border); text-align: center;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  box-shadow: var(--shadow-sm);
}
.hp-download-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: #C7D2FE; }
.hp-download-icon { font-size: 50px; margin-bottom: 16px; }
.hp-download-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.hp-download-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 22px; }

/* ---------- 页脚联系信息 ---------- */
.hp-footer-contact { display: flex; flex-wrap: wrap; gap: 28px; padding: 16px 0; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.hp-footer-contact-item { display: flex; gap: 6px; }
.hp-footer-contact-item span { color: var(--text); font-weight: 600; }

/* ---------- 页脚 ---------- */
.hp-footer {
  padding: 48px 0 32px; border-top: 1px solid var(--border); background: var(--bg-alt);
}
.hp-footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.hp-footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; }
.hp-footer-logo { height: 28px; }
.hp-footer-links { display: flex; gap: 24px; }
.hp-footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color .15s; }
.hp-footer-links a:hover { color: var(--brand); }
.hp-footer-custom { padding: 16px 0; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.hp-footer-bottom { padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-weak); text-align: center; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .hp-hero { padding: 130px 0 70px; }
  .hp-features-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-canvas-features { grid-template-columns: 1fr; }
  .hp-nav-links { display: none; }
  .hp-section { padding: 52px 0; }
  .hp-footer-contact { flex-direction: column; gap: 8px; }
  .hp-pricing-grid { grid-template-columns: 1fr; }
  .hp-footer-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .hp-features-grid { grid-template-columns: 1fr; }
  .hp-hero-cta { flex-direction: column; align-items: center; }
}
