/* ============================================================
   鹰答AI 官网定制样式（自研实现，基于 Bootstrap 5 变量覆盖）
   深色 AI 科技风：深空蓝黑底 · 极光渐变 · 网格背景 ·
   玻璃拟态卡片 · 渐变文字 · 发光按钮（无图片依赖）
   ============================================================ */

:root {
  color-scheme: dark;
  --yd-bg: #0a0e1f;          /* 深空底色 */
  --yd-bg-2: #0c1229;        /* 交替区块底色 */
  --yd-bg-3: #060914;        /* 页脚底色 */
  --yd-surface: rgba(139, 148, 255, 0.05);   /* 玻璃卡片底 */
  --yd-border: rgba(148, 163, 255, 0.14);    /* 描边 */
  --yd-primary: #6366f1;
  --yd-primary-2: #8b5cf6;
  --yd-accent: #22d3ee;
  --yd-gradient: linear-gradient(120deg, #6366f1, #8b5cf6 50%, #22d3ee);
  --yd-heading: #eef1fc;
  --yd-body: #a8b0cc;
  --yd-muted: #7d87a8;
  --yd-radius: 25px;
}

/* 价格套餐 */
.yd-package-summary { display: grid; grid-template-rows: minmax(3.5rem, auto) 3.1rem 1.5rem; gap: 12px; }
.yd-package-card .yd-package-summary-service > h3 { grid-row: 1 / 4; align-items: center; }
.yd-package-card .yd-package-summary > h3, .yd-package-summary > .yd-pricing-description, .yd-package-summary > .yd-pricing-price { margin: 0; }

.yd-pricing-price { font-size: 2.4rem; line-height: 1.2; font-weight: 750; letter-spacing: -.035em; color: #f4f0ff; font-variant-numeric: tabular-nums; }
.yd-pricing-description { font-size: .9rem; line-height: 1.5rem; color: var(--yd-muted); }
.yd-pricing-features li.yd-pricing-service-start { border-top: 1px dashed var(--yd-border); margin-top: 12px; padding-top: 18px; }
@media (prefers-reduced-motion: no-preference) { .yd-package-card { transition: border-color .2s ease, box-shadow .2s ease; } }
.yd-package-card:hover { border-color: rgba(139, 92, 246, .5); }
.yd-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.yd-pricing-card { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid var(--yd-border); border-radius: var(--yd-radius); background: var(--yd-surface); overflow-wrap: anywhere; }
.yd-pricing-emphasis { border-color: rgba(139, 92, 246, .7); background: linear-gradient(155deg, rgba(99, 102, 241, .16), rgba(139, 92, 246, .04)); box-shadow: 0 16px 48px rgba(3, 5, 15, .18); }
.yd-pricing-card h3 { font-size: 1.4rem; line-height: 1.25; min-height: 3.5rem; margin-bottom: 12px; display: flex; align-items: flex-start; justify-content: center; }
.yd-pricing-description, .yd-pricing-price, .yd-pricing-card h3, .yd-pricing-label { text-align: center; }
.yd-pricing-label { min-height: 34px; margin-bottom: 8px; }
.yd-pricing-badge { display: inline-block; font-size: .75rem; line-height: 1.5; padding: 4px 12px; color: #c4b5fd; background: rgba(139,92,246,.18); border-radius: 20px; }
.yd-pricing-features { list-style: none; padding: 20px 0 0; margin: 12px 0 28px; border-top: 1px solid var(--yd-border); font-size: .9rem; }
.yd-pricing-features li { display: flex; align-items: baseline; gap: 10px; padding-block: 7px; text-align: left; }
.yd-pricing-features li > span { min-width: 0; }
.yd-pricing-features i { flex: 0 0 auto; }
.yd-pricing-features i { color: var(--yd-accent); }
.yd-pricing-contents { display: contents; }
.yd-pricing-empty { grid-column: 1 / -1; text-align: center; padding: 40px 20px; border: 1px dashed var(--yd-border); border-radius: var(--yd-radius); margin: 0; }
@media (max-width: 1199.98px) {
  .yd-pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .yd-pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .yd-pricing-card { padding: 24px; }
}

html { scroll-behavior: smooth; overflow-x: hidden; }
section[id] { scroll-margin-top: 80px; }
.yd-case-context { max-width: 860px; margin-inline: auto; line-height: 1.8; }
.yd-case-note { max-width: 860px; margin-inline: auto; font-size: .875rem; line-height: 1.7; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  color: var(--yd-body);
  background: var(--yd-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { color: var(--yd-heading); font-weight: 700; line-height: 1.35; }
h1, .fs-hero { font-size: clamp(2rem, 4.5vw + 1rem, 3.4rem); }
p, li { line-height: 1.75; }
a { text-decoration: none; }
.text-muted { color: var(--yd-muted) !important; }

/* ---------- 颜色工具（覆盖 Bootstrap） ---------- */
.text-primary { color: #a5b4fc !important; }
.bg-primary { background-color: var(--yd-primary) !important; }
.bg-light-yd {
  background-color: var(--yd-bg-2) !important;
  border-top: 1px solid rgba(148, 163, 255, 0.08);
  border-bottom: 1px solid rgba(148, 163, 255, 0.08);
}

/* ---------- 顶部导航 ---------- */
.yd-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: 90px; transition: 0.3s ease-in-out;
  background: linear-gradient(180deg, rgba(10, 14, 31, 0.85), transparent);
}
.yd-header .nav-link {
  color: rgba(238, 241, 252, 0.78); font-weight: 600; padding: .5rem 1rem;
  transition: 0.3s ease-in-out;
}
.yd-header .nav-link:hover,
.yd-header .nav-link.active { color: #a5b4fc !important; }
body.scrolled .yd-header {
  height: 68px;
  background: rgba(10, 14, 31, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(148, 163, 255, 0.12), 0 12px 40px rgba(3, 5, 15, 0.6);
}
.yd-logo img { height: 58px; transition: 0.3s; border-radius: 12px; }
body.scrolled .yd-logo img { height: 46px; }
/* 移动端抽屉暗色 */
.offcanvas { background: var(--yd-bg-2); color: var(--yd-body); }
.offcanvas .nav-link { color: var(--yd-heading); }

/* ---------- 通用区块 ---------- */
.yd-section { padding: 96px 0; position: relative; }
.yd-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.12); color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
  font-weight: 600; font-size: .85rem; padding: 8px 16px; border-radius: 10px;
  margin-bottom: 16px;
}
.yd-section-title { font-size: clamp(1.6rem, 2.5vw + .8rem, 2.4rem); }

/* ---------- 极光背景（纯 CSS，缓慢漂移） ---------- */
.yd-blob { position: relative; }
.yd-blob::before, .yd-blob::after {
  content: ""; position: absolute; width: 900px; height: 900px;
  border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.22), transparent 65%);
  animation: yd-drift 20s ease-in-out infinite alternate;
}
.yd-blob::before { top: -450px; left: -400px; }
.yd-blob::after {
  bottom: -450px; right: -400px;
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.13), transparent 65%);
  animation-delay: -8s;
}
@keyframes yd-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.12); }
}

/* ---------- Hero：网格 + 极光 + 渐变标题 ---------- */
.yd-hero { padding: 190px 0 110px; text-align: center; position: relative; overflow: hidden; }
.yd-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}
.yd-hero h1 {
  background: linear-gradient(120deg, #ffffff 20%, #a5b4fc 60%, #67e8f9);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.yd-hero-video {
  margin-top: 56px; border-radius: var(--yd-radius); overflow: hidden;
  border: 1px solid rgba(148, 163, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.08), 0 40px 100px rgba(99, 102, 241, 0.28), 0 20px 60px rgba(3, 5, 15, 0.8);
  background: var(--yd-bg-2);
}
.yd-hero-video video { width: 100%; display: block; }
/* 固定展示比例并完整呈现截图，避免裁掉操作界面 */
.yd-hero-video img {
  width: 100%; display: block;
  aspect-ratio: 16 / 9; object-fit: contain; object-position: center;
}

/* ---------- Hero 轮播模式（Bootstrap Carousel 定制） ---------- */
.yd-hero-carousel .carousel { border-radius: inherit; }
.yd-hero-carousel .carousel-caption { bottom: 1.25rem; }
.yd-hero-carousel .carousel-caption p {
  margin: 0; display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: rgba(10, 14, 31, 0.72); backdrop-filter: blur(6px);
  font-size: .95rem; color: #e0e7ff;
}
.yd-hero-carousel .carousel-indicators { margin-bottom: .75rem; }
.yd-hero-carousel .carousel-indicators [data-bs-target] {
  width: 22px; height: 4px; border-radius: 2px; border: 0;
  background: rgba(255, 255, 255, 0.45);
}
.yd-hero-carousel .carousel-indicators .active { background: #a5b4fc; }
.yd-platform-strip { margin-top: 48px; flex-wrap: wrap; gap: 14px; }
.yd-platform-strip .platform-pill {
  background: var(--yd-surface); border: 1px solid var(--yd-border);
  backdrop-filter: blur(12px);
  border-radius: 16px; padding: 14px 24px;
  box-shadow: 0 12px 32px rgba(3, 5, 15, 0.5);
  font-weight: 600; color: var(--yd-heading); font-size: 1.2rem;
  display: inline-flex; align-items: center; gap: 10px;
  transition: 0.3s;
}
.yd-platform-strip .platform-pill:hover {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.22);
}
.yd-platform-strip .platform-pill img { width: 34px; height: 34px; object-fit: cover; border-radius: 7px; }
/* 接入中平台：灰阶 + 角标 */
.yd-platform-strip .platform-pill.coming { opacity: .55; filter: grayscale(1); }
.yd-platform-strip .platform-pill.coming em {
  font-style: normal; font-size: .7rem; font-weight: 700; color: #a5b4fc;
  background: rgba(99, 102, 241, 0.15); border-radius: 999px; padding: 3px 10px; margin-left: 2px;
}

/* ---------- 按钮 ---------- */
.btn { border-radius: 12px; font-weight: 700; padding: 13px 26px; border: 0; }
.btn-yd-primary {
  background: linear-gradient(120deg, #6366f1, #8b5cf6); color: #fff;
  box-shadow: 0 10px 34px rgba(99, 102, 241, 0.45);
  transition: 0.3s;
}
.btn-yd-primary:hover {
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(99, 102, 241, 0.6);
}
.btn-yd-outline {
  background: var(--yd-surface); color: var(--yd-heading);
  border: 1px solid var(--yd-border); backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(3, 5, 15, 0.5);
  transition: 0.3s;
}
.btn-yd-outline:hover {
  color: #a5b4fc; border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.22);
}

/* ---------- 玻璃卡片 ---------- */
.yd-card {
  background: var(--yd-surface);
  border: 1px solid var(--yd-border);
  backdrop-filter: blur(14px);
  border-radius: var(--yd-radius); padding: 36px;
  height: 100%;
  box-shadow: 0 18px 50px rgba(3, 5, 15, 0.45);
  transition: 0.35s ease;
}
.yd-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 24px 60px rgba(99, 102, 241, 0.22), 0 18px 50px rgba(3, 5, 15, 0.5);
}
.yd-card .yd-icon {
  width: 62px; height: 62px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; color: #fff; margin-bottom: 22px;
}
.yd-icon.bg-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  box-shadow: 0 14px 26px rgba(99, 102, 241, 0.4);
}
.yd-icon.bg-info {
  background: linear-gradient(135deg, #0ea5e9, #22d3ee) !important;
  box-shadow: 0 14px 26px rgba(14, 165, 233, 0.4);
}
.yd-icon.bg-success {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  box-shadow: 0 14px 26px rgba(16, 185, 129, 0.4);
}
.yd-icon.bg-warning {
  background: linear-gradient(135deg, #d97706, #f59e0b) !important;
  box-shadow: 0 14px 26px rgba(245, 158, 11, 0.4);
}

/* ---------- 三步流程 ---------- */
.yd-step-no {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff;
  font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.15), 0 10px 22px rgba(99, 102, 241, 0.4);
}
.yd-step-img {
  border-radius: 18px; overflow: hidden; margin-bottom: 22px;
  border: 1px solid var(--yd-border);
  box-shadow: 0 12px 34px rgba(3, 5, 15, 0.5);
}
.yd-step-img img { width: 100%; display: block; }

/* ---------- 团队 ---------- */
.yd-team-img {
  border-radius: var(--yd-radius); overflow: hidden;
  border: 1px solid var(--yd-border);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.18), 0 16px 50px rgba(3, 5, 15, 0.55);
}
.yd-team-img img { width: 100%; display: block; }
/* 创始人卡片：照片铺满背景，文字底部居中 */
.yd-member-card {
  position: relative; border-radius: var(--yd-radius); overflow: hidden;
  min-height: 440px; display: flex; align-items: flex-end; justify-content: center;
  background-size: cover; background-position: center 12%;
  border: 1px solid var(--yd-border);
  box-shadow: 0 20px 60px rgba(3, 5, 15, 0.6);
}
.yd-member-card .yd-member-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 9, 20, 0.05) 30%, rgba(6, 9, 20, 0.88) 100%);
}
.yd-member-card .yd-member-info { position: relative; text-align: center; color: #fff; padding: 28px 24px 40px; max-width: 720px; }
.yd-member-info h3 { color: #fff; font-weight: 800; }
.yd-member-info .role { color: rgba(255,255,255,.92); font-weight: 600; letter-spacing: .5px; }
.yd-member-info p { color: rgba(255,255,255,.8); }

.yd-solution-card { height: 100%; }
.yd-solution-card h3 { color: var(--yd-heading); font-weight: 700; line-height: 1.5; }

/* ---------- 教程 ---------- */
.yd-tutorial-item {
  display: block;
  background: var(--yd-surface); border: 1px solid var(--yd-border);
  backdrop-filter: blur(12px);
  border-radius: 18px; padding: 24px 28px;
  box-shadow: 0 12px 32px rgba(3, 5, 15, 0.45); color: var(--yd-heading);
  transition: 0.3s; height: 100%;
}
.yd-tutorial-item:hover { transform: translateY(-4px); color: #a5b4fc; border-color: rgba(99, 102, 241, 0.45); }

/* ---------- 联系表单 ---------- */
.yd-contact-card {
  background: var(--yd-surface);
  border: 1px solid var(--yd-border);
  backdrop-filter: blur(14px);
  border-radius: var(--yd-radius); padding: 44px;
  box-shadow: 0 24px 70px rgba(3, 5, 15, 0.55), 0 0 80px rgba(99, 102, 241, 0.08);
}
.yd-contact-card .form-control {
  background: rgba(6, 9, 20, 0.55); border: 1px solid var(--yd-border);
  color: var(--yd-heading); border-radius: 12px; padding: 13px 16px;
}
.yd-contact-card .form-control::placeholder { color: var(--yd-muted); }
.yd-contact-card .form-control:focus {
  background: rgba(6, 9, 20, 0.75); color: var(--yd-heading);
  border-color: var(--yd-primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}

/* ---------- 页脚 ---------- */
.yd-footer {
  background: var(--yd-bg-3); color: rgba(255, 255, 255, 0.65);
  padding-top: 88px; position: relative; overflow: hidden;
  border-top: 1px solid rgba(148, 163, 255, 0.1);
}
.yd-footer::before {
  content: ""; position: absolute; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22), transparent 65%);
  top: -500px; left: -300px; pointer-events: none;
  animation: yd-drift 20s ease-in-out infinite alternate;
}
.yd-footer h5, .yd-footer h4, .yd-footer h6 { color: #fff; }
.yd-footer a { color: rgba(255, 255, 255, 0.65); transition: 0.3s; }
.yd-footer a:hover { color: #a5b4fc; }
.yd-footer .qr { text-align: center; }
.yd-footer .qr img { width: 120px; height: 120px; border-radius: 12px; background: #fff; padding: 8px; }
.yd-footer .copyright { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 22px 0; margin-top: 0; font-size: .875rem; }
.yd-footer .copyright .yd-copyright-logo {
  height: 22px; border-radius: 5px; vertical-align: -5px; margin-right: 8px;
}

/* ---------- 回到顶部 ---------- */
.btn-scroll-up {
  position: fixed; right: 28px; bottom: -80px; z-index: 900;
  width: 50px; height: 50px; border-radius: 50%;
  /* 抵消 .btn 的 padding，避免图标被挤偏 */
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  font-size: 1.1rem;
  transition: 0.4s ease;
}
.btn-scroll-up.show { bottom: 28px; }

/* ---------- 响应式 ---------- */
@media (max-width: 767px) {
  .yd-hero { padding-top: 130px; }
  .yd-section { padding: 64px 0; }
  .yd-card { padding: 26px; }
  .yd-testimonial { padding: 26px; }
  .yd-contact-card { padding: 26px; }
}

/* ---------- 动效降级：用户偏好减少动画 ---------- */
@media (prefers-reduced-motion: reduce) {
  .yd-blob::before, .yd-blob::after, .yd-footer::before { animation: none; }
  .yd-card, .btn-yd-primary { transition: none; }
}

/* ---------- honeypot：视觉隐藏的反机器人字段 ---------- */
.yd-hp {
  position: absolute; left: -9999px; top: 0;
  width: 1px; height: 1px; overflow: hidden;
}
