/* ============================================================
   marketing.css — 官网首页（亮色全屏流行风 + 动画特效）
   ============================================================ */

[data-theme="light"] body { background: #FFFFFF; }

/* ================= 顶部导航（玻璃拟态） ================= */
.mk-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  height: 72px;
  transition: background var(--dur-base) ease, box-shadow var(--dur-base) ease, border-color var(--dur-base) ease;
  border-bottom: 1px solid transparent;
}
.mk-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 20px rgba(14, 19, 32, 0.05);
}
.mk-nav-inner {
  max-width: var(--w-container-wide); height: 100%; margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex; align-items: center; gap: var(--sp-7);
}
.mk-logo { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 750; letter-spacing: 0.5px; }
.mk-logo img { width: 30px; height: 30px; }
.mk-links { display: flex; align-items: center; gap: var(--sp-2); flex: 1; }
.mk-links a {
  padding: 8px 14px; font-size: var(--fs-body); font-weight: 500;
  color: var(--text-secondary); border-radius: var(--r-full);
  transition: all var(--dur-fast) ease;
}
.mk-links a:hover { color: var(--text-primary); background: var(--bg-active); }
.mk-actions { display: flex; align-items: center; gap: var(--sp-3); }

/* ================= Hero 全屏 ================= */
.mk-hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 var(--sp-8);
  overflow: clip;
}

/* 漂移渐变光斑 */
.mk-hero .blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; pointer-events: none; will-change: transform; }
.mk-hero .blob-1 { width: 560px; height: 560px; top: -160px; left: -120px; background: radial-gradient(circle, rgba(124,124,255,0.5), transparent 65%); animation: drift1 16s ease-in-out infinite alternate; }
.mk-hero .blob-2 { width: 480px; height: 480px; top: 10%; right: -140px; background: radial-gradient(circle, rgba(168,85,247,0.4), transparent 65%); animation: drift2 20s ease-in-out infinite alternate; }
.mk-hero .blob-3 { width: 420px; height: 420px; bottom: -160px; left: 30%; background: radial-gradient(circle, rgba(34,211,238,0.32), transparent 65%); animation: drift3 24s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(90px, 60px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-70px, 90px) scale(0.92); } }
@keyframes drift3 { to { transform: translate(60px, -70px) scale(1.08); } }

/* 网格背景 */
.mk-hero .grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(14, 19, 32, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 19, 32, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
}

.mk-hero-inner { position: relative; max-width: var(--w-container-wide); margin: 0 auto; padding: 0 var(--sp-6); width: 100%; }

.mk-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 16px; margin-bottom: var(--sp-5);
  font-size: var(--fs-sm); font-weight: 550; color: var(--brand-500);
  background: var(--brand-soft);
  border: 1px solid rgba(91, 91, 245, 0.22);
  border-radius: var(--r-full);
}
.mk-hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); animation: pulse 1.8s ease infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.72); } }

.mk-hero h1 {
  max-width: 860px;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.14; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
}
.mk-hero h1 .grad-text { background-size: 200% 100%; animation: gradShift 6s ease infinite alternate; }
@keyframes gradShift { to { background-position: 100% 0; } }

.mk-hero-sub { max-width: 640px; font-size: 18px; line-height: 1.7; color: var(--text-secondary); margin-bottom: var(--sp-6); }
.mk-hero-cta { display: flex; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-7); }

/* 信任数据 */
.mk-hero-stats { display: flex; gap: var(--sp-8); }
.mk-stat .num {
  font-size: 32px; font-weight: 750; letter-spacing: -0.02em;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.mk-stat .label { font-size: var(--fs-sm); color: var(--text-tertiary); margin-top: 2px; }

/* Hero 产品演示卡（辉光跟随 + 浮动） */
.mk-hero-visual {
  position: relative; margin-top: var(--sp-8);
  border-radius: 20px;
  perspective: 1200px;
}
.mk-hero-visual .glass-frame {
  position: relative;
  border-radius: 20px; overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.86)) padding-box,
    var(--brand-grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 30px 80px rgba(14, 19, 32, 0.16), 0 4px 24px rgba(91, 91, 245, 0.12);
  transform: rotateX(0deg) rotateY(0deg);
  transition: transform 0.35s var(--ease-out);
  will-change: transform;
  animation: floatY 7s ease-in-out infinite;
}
@keyframes floatY { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.mk-hero-visual .glass-frame .fake-ui { pointer-events: none; }
/* 鼠标辉光 */
.mk-hero-visual .cursor-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 124, 255, 0.16), transparent 65%);
  opacity: 0; transition: opacity 0.3s ease;
}
.mk-hero-visual:hover .cursor-glow { opacity: 1; }

/* Hero 内嵌假工作台 UI */
.fake-ui { display: grid; grid-template-columns: 200px 1fr; min-height: 380px; }
.fake-ui .fake-side { background: #0F1320; padding: var(--sp-4); display: flex; flex-direction: column; gap: 8px; }
.fake-ui .fake-side i { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); display: block; }
.fake-ui .fake-side i.on { background: linear-gradient(90deg, #6366F1, #A855F7); opacity: 0.9; }
.fake-ui .fake-main { background: #0C0F16; padding: var(--sp-5); position: relative; overflow: hidden; }
.fake-ui .fake-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.fake-ui .fake-card { height: 150px; border-radius: 12px; background: linear-gradient(145deg, rgba(124,124,255,0.16), rgba(168,85,247,0.08)); border: 1px solid rgba(255,255,255,0.07); position: relative; overflow: hidden; }
.fake-ui .fake-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 3.2s ease infinite; }
.fake-ui .fake-card:nth-child(2)::after { animation-delay: 0.8s; }
.fake-ui .fake-card:nth-child(3)::after { animation-delay: 1.6s; }
@keyframes sheen { 60%, 100% { transform: translateX(100%); } }
.fake-ui .fake-line { height: 9px; border-radius: 5px; background: rgba(255, 255, 255, 0.07); margin-top: var(--sp-4); }
.fake-ui .fake-line.w60 { width: 60%; }
.fake-ui .fake-line.w80 { width: 80%; }
.fake-ui .fake-btn-row { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.fake-ui .fake-btn { height: 32px; padding: 0 18px; border-radius: 8px; background: var(--brand-grad); opacity: 0.9; }
.fake-ui .fake-btn.ghost { background: rgba(255, 255, 255, 0.08); }

/* ================= 跑马灯能力标签 ================= */
.mk-marquee { overflow: hidden; padding: var(--sp-5) 0; border-block: 1px solid var(--border); background: var(--bg-surface); }
.mk-marquee-track { display: flex; gap: var(--sp-5); width: max-content; animation: marquee 26s linear infinite; }
.mk-marquee:hover .mk-marquee-track { animation-play-state: paused; }
.mk-marquee-track .tag {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 20px;
  font-size: var(--fs-sm); font-weight: 550; color: var(--text-secondary);
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r-full);
  white-space: nowrap;
}
.mk-marquee-track .tag svg { width: 15px; height: 15px; color: var(--brand-500); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================= 区块通用 ================= */
.mk-section { padding: var(--sp-9) 0; position: relative; }
.mk-section-head { text-align: center; max-width: 720px; margin: 0 auto var(--sp-7); }
.mk-section-head .eyebrow {
  display: inline-block; margin-bottom: var(--sp-3);
  font-size: var(--fs-caption); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-500);
}
.mk-section-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 750; letter-spacing: -0.015em; margin-bottom: var(--sp-3); }
.mk-section-head p { color: var(--text-secondary); font-size: 16px; }

/* ================= 核心能力 6 卡（辉光跟随） ================= */
.mk-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.mk-tool {
  position: relative; overflow: hidden;
  padding: var(--sp-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) ease, border-color var(--dur-base) ease;
}
.mk-tool:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(14, 19, 32, 0.1); border-color: rgba(91, 91, 245, 0.35); }
.mk-tool .glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 124, 255, 0.13), transparent 65%);
  opacity: 0; transition: opacity 0.3s ease;
}
.mk-tool:hover .glow { opacity: 1; }
.mk-tool .icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: var(--sp-4);
  border-radius: 13px; color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.3);
}
.mk-tool .icon svg { width: 22px; height: 22px; }
.mk-tool:nth-child(2) .icon { background: linear-gradient(135deg, #0EA5E9, #22D3EE); box-shadow: 0 6px 18px rgba(14, 165, 233, 0.3); }
.mk-tool:nth-child(3) .icon { background: linear-gradient(135deg, #F59E0B, #F97316); box-shadow: 0 6px 18px rgba(245, 158, 11, 0.3); }
.mk-tool:nth-child(4) .icon { background: linear-gradient(135deg, #10B981, #34D399); box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3); }
.mk-tool:nth-child(5) .icon { background: linear-gradient(135deg, #EC4899, #F472B6); box-shadow: 0 6px 18px rgba(236, 72, 153, 0.3); }
.mk-tool:nth-child(6) .icon { background: linear-gradient(135deg, #8B5CF6, #6366F1); box-shadow: 0 6px 18px rgba(139, 92, 246, 0.3); }
.mk-tool h3 { font-size: 18px; margin-bottom: var(--sp-2); }
.mk-tool p { color: var(--text-secondary); font-size: var(--fs-sm); line-height: 1.65; min-height: 44px; }
.mk-tool .arrow {
  display: inline-flex; align-items: center; gap: 4px; margin-top: var(--sp-4);
  font-size: var(--fs-sm); font-weight: 600; color: var(--brand-500);
}
.mk-tool .arrow svg { width: 14px; height: 14px; transition: transform var(--dur-fast) ease; }
.mk-tool:hover .arrow svg { transform: translateX(4px); }

/* ================= 模型矩阵 ================= */
.mk-models { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.mk-model {
  padding: var(--sp-5);
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: all var(--dur-base) var(--ease-out);
}
.mk-model:hover { transform: translateY(-4px); border-color: rgba(91, 91, 245, 0.4); box-shadow: var(--glow-brand); }
.mk-model .logo { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-inset); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-3); }
.mk-model .logo img { width: 22px; height: 22px; }
.mk-model h3 { font-size: 16px; }
.mk-model .desc { font-size: var(--fs-sm); color: var(--text-tertiary); margin-top: 4px; min-height: 40px; }
.mk-model .price { margin-top: var(--sp-3); font-size: var(--fs-caption); color: var(--text-secondary); }
.mk-model .price b { font-size: 17px; color: var(--brand-500); font-weight: 750; }

/* ================= 精选画廊 ================= */
.mk-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.mk-shot {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  aspect-ratio: 3 / 4; cursor: pointer;
  border: 1px solid var(--border);
}
.mk-shot img, .mk-shot .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.mk-shot .ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #EEF0FF, #F8EFFF); }
.mk-shot .ph svg { width: 30%; height: 30%; color: rgba(91, 91, 245, 0.4); }
.mk-shot:hover img, .mk-shot:hover .ph { transform: scale(1.06); }
.mk-shot .veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 10, 18, 0.72) 0%, transparent 55%);
  opacity: 0; transition: opacity var(--dur-base) ease;
}
.mk-shot:hover .veil { opacity: 1; }
.mk-shot .meta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-4);
  color: #fff; transform: translateY(10px); opacity: 0;
  transition: all var(--dur-base) var(--ease-out);
}
.mk-shot:hover .meta { transform: none; opacity: 1; }
.mk-shot .meta .t { font-size: var(--fs-sm); font-weight: 600; }
.mk-shot .meta .acts { display: flex; gap: var(--sp-2); margin-top: var(--sp-2); }
.mk-shot .meta .acts button {
  height: 28px; padding: 0 12px; font-size: var(--fs-caption); font-weight: 600;
  color: #fff; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r-full); cursor: pointer; backdrop-filter: blur(6px);
  transition: background var(--dur-fast) ease;
}
.mk-shot .meta .acts button:hover { background: var(--brand-500); border-color: transparent; }
.mk-shot .play {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; color: #fff;
  opacity: 0; scale: 0.8; transition: all var(--dur-base) var(--ease-spring);
}
.mk-shot:hover .play { opacity: 1; scale: 1; }
.mk-shot .play svg { width: 20px; height: 20px; margin-left: 2px; }

/* ================= 会员定价 ================= */
.mk-pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); align-items: stretch; }
.mk-plan {
  position: relative; display: flex; flex-direction: column;
  padding: var(--sp-6) var(--sp-5);
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 20px;
  transition: all var(--dur-base) var(--ease-out);
}
.mk-plan:hover { transform: translateY(-6px); box-shadow: 0 24px 56px rgba(14, 19, 32, 0.12); }
.mk-plan.is-hot {
  border-color: transparent;
  background-image: linear-gradient(var(--bg-elevated), var(--bg-elevated)), var(--brand-grad);
  background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: 0 24px 60px rgba(91, 91, 245, 0.25);
}
.mk-plan .plan-tag {
  position: absolute; top: -12px; left: 50%; translate: -50% 0;
  height: 24px; padding: 0 14px; display: inline-flex; align-items: center;
  font-size: var(--fs-caption); font-weight: 700; color: #fff;
  background: var(--brand-grad); border-radius: var(--r-full);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
.mk-plan .p-name { font-size: 18px; font-weight: 700; }
.mk-plan .p-desc { font-size: var(--fs-sm); color: var(--text-tertiary); margin-top: 4px; min-height: 40px; }
.mk-plan .p-price { margin: var(--sp-4) 0; }
.mk-plan .p-price b { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.mk-plan .p-price span { font-size: var(--fs-sm); color: var(--text-tertiary); }
.mk-plan ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--sp-6); }
.mk-plan ul li { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-secondary); }
.mk-plan ul li svg { width: 15px; height: 15px; color: var(--success); flex: none; }
.mk-plan .btn { margin-top: auto; }

/* ================= 底部 CTA ================= */
.mk-cta-band { position: relative; overflow: hidden; border-radius: 24px; padding: var(--sp-8) var(--sp-6); text-align: center; color: #fff; background: var(--brand-grad); }
.mk-cta-band::before, .mk-cta-band::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); }
.mk-cta-band::before { width: 340px; height: 340px; top: -120px; left: -80px; background: rgba(255, 255, 255, 0.22); animation: drift1 14s ease-in-out infinite alternate; }
.mk-cta-band::after { width: 300px; height: 300px; bottom: -120px; right: -60px; background: rgba(34, 211, 238, 0.3); animation: drift2 18s ease-in-out infinite alternate; }
.mk-cta-band h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 780; margin-bottom: var(--sp-3); position: relative; }
.mk-cta-band p { color: rgba(255, 255, 255, 0.85); margin-bottom: var(--sp-6); position: relative; }
.mk-cta-band .btns { display: flex; justify-content: center; gap: var(--sp-4); position: relative; }
.mk-cta-band .btn-white { height: 48px; padding: 0 30px; border: none; border-radius: 12px; font-size: 15px; font-weight: 700; color: var(--brand-600); background: #fff; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); transition: transform var(--dur-fast) var(--ease-out); }
.mk-cta-band .btn-white:hover { transform: translateY(-2px); }
.mk-cta-band .btn-plain { height: 48px; padding: 0 30px; border-radius: 12px; font-size: 15px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.35); cursor: pointer; transition: background var(--dur-fast) ease; }
.mk-cta-band .btn-plain:hover { background: rgba(255, 255, 255, 0.24); }

/* ================= 页脚 ================= */
.mk-footer { padding: var(--sp-8) 0 var(--sp-6); border-top: 1px solid var(--border); color: var(--text-tertiary); font-size: var(--fs-sm); }
.mk-footer-inner { max-width: var(--w-container-wide); margin: 0 auto; padding: 0 var(--sp-6); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap; }
.mk-footer a:hover { color: var(--brand-500); }
.mk-footer .links { display: flex; gap: var(--sp-5); }

/* ================= 滚动进度条（顶部） ================= */
.mk-scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: calc(var(--z-nav) + 1); pointer-events: none; }
.mk-scroll-progress i { display: block; height: 100%; width: 0; background: var(--brand-grad); }

/* ================= 响应式 ================= */
@media (max-width: 1024px) {
  .mk-tools { grid-template-columns: repeat(2, 1fr); }
  .mk-models { grid-template-columns: repeat(2, 1fr); }
  .mk-gallery { grid-template-columns: repeat(2, 1fr); }
  .mk-pricing { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5) var(--sp-4); }
  .mk-links { display: none; }
}
@media (max-width: 640px) {
  .mk-tools { grid-template-columns: 1fr; }
  .mk-models { grid-template-columns: 1fr; }
  .mk-gallery { grid-template-columns: 1fr; }
  .mk-pricing { grid-template-columns: 1fr; }
  .mk-hero-stats { gap: var(--sp-5); }
  .mk-hero-cta { flex-direction: column; align-items: stretch; }
  .fake-ui { grid-template-columns: 1fr; }
  .fake-ui .fake-side { display: none; }
}
