* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: #f0f2ff;
  color: #0d0f1a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: inherit; }

/* ── 固定背景层 ── */
.hc-bg-fixed {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #f0f2ff;
}

.hc-blob {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
}

.hc-blob-blue {
  left: -20%;
  top: -15%;
  width: 1300px;
  height: 1300px;
  background: radial-gradient(circle at 50% 50%,
    rgba(35, 70, 255, 0.72) 0%,
    rgba(35, 70, 255, 0.38) 35%,
    rgba(35, 70, 255, 0.12) 58%,
    transparent 78%);
  filter: blur(62px);
  animation: hcBlobLeft 16s ease-in-out infinite;
}

.hc-blob-purple {
  right: -20%;
  top: -18%;
  width: 1400px;
  height: 1400px;
  background: radial-gradient(circle at 50% 50%,
    rgba(120, 40, 255, 0.68) 0%,
    rgba(120, 40, 255, 0.34) 34%,
    rgba(120, 40, 255, 0.10) 56%,
    transparent 78%);
  filter: blur(70px);
  animation: hcBlobRight 19s ease-in-out infinite;
}

.hc-blob-center {
  left: 50%;
  top: 6%;
  width: 700px;
  height: 500px;
  margin-left: -350px;
  background: radial-gradient(ellipse at 50% 40%,
    rgba(200, 215, 255, 0.38) 0%,
    rgba(200, 215, 255, 0.12) 45%,
    transparent 72%);
  filter: blur(50px);
  animation: hcBlobCenter 11s ease-in-out infinite;
}

.hc-blob-btm {
  left: 50%;
  bottom: -18%;
  width: 1100px;
  height: 800px;
  margin-left: -550px;
  background: radial-gradient(ellipse at 50% 55%,
    rgba(70, 90, 255, 0.52) 0%,
    rgba(110, 55, 255, 0.28) 38%,
    transparent 72%);
  filter: blur(80px);
  animation: hcBlobBtm 14s ease-in-out infinite;
}

.hc-sweep {
  position: absolute;
  inset: -20%;
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(100, 140, 255, 0.18) 50%,
    transparent 70%);
  filter: blur(22px);
  animation: hcSweep 10s ease-in-out infinite;
}

.hc-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
}

.hc-pointer {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.72) 0%, rgba(180,210,255,0.38) 50%, transparent 75%);
  filter: blur(30px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: left 160ms ease, top 160ms ease;
}

/* Canvas 字符网格 */
.hc-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ── 页面结构 ── */
.page-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 242, 255, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(61, 104, 255, 0.10);
}

.header-left,
.header-actions,
.user-box,
.main-nav,
.nav-link,
.brand-link {
  display: flex;
  align-items: center;
}

.brand-link {
  gap: 10px;
  text-decoration: none;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand-text {
  font-size: 22px;
  font-weight: 800;
  color: #0d0f1a;
  letter-spacing: -0.5px;
}

.main-nav {
  margin-left: 60px;
}

.nav-link {
  gap: 6px;
  margin-left: 32px;
  text-decoration: none;
  font-size: 16px;
  color: #5a5f78;
}

.nav-link.active {
  color: #3d68ff;
  font-weight: 600;
}

.icon-wrap {
  display: inline-flex;
  width: 1em;
  height: 1em;
}

.icon-wrap svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.header-actions {
  gap: 12px;
}

.text-btn,
.primary-pill,
.primary-cta,
.secondary-pill {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.text-btn {
  background: transparent;
  font-size: 16px;
  color: #0d0f1a;
}

.primary-pill {
  background: #3d68ff;
  color: #fff;
  border-radius: 20px;
  padding: 0 24px;
  height: 40px;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.2s;
}

.primary-pill:hover {
  background: #2a56e8;
}

.secondary-pill {
  background: rgba(255, 255, 255, 0.6);
  color: #3d68ff;
  border: 1px solid rgba(61, 104, 255, 0.25);
  border-radius: 20px;
  padding: 0 24px;
  height: 40px;
  font-size: 16px;
  backdrop-filter: blur(8px);
}

.secondary-pill:hover {
  background: rgba(255, 255, 255, 0.85);
}

.user-box {
  gap: 8px;
  cursor: pointer;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #3d68ff;
}

.user-name {
  font-weight: 500;
  color: #0d0f1a;
}

.page-main {
  flex: 1;
}

/* ── Hero 区 ── */
.hero-section {
  padding: 80px 20px 60px;
  text-align: center;
  background: transparent;
}

/* Logo Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(61, 104, 255, 0.15);
  box-shadow: 0 4px 20px rgba(61, 104, 255, 0.12);
  margin: 0 auto 28px;
}

.hero-badge-icon {
  width: 38px;
  height: 38px;
}

.hero-title {
  margin: 0 0 24px;
  font-size: 64px;
  line-height: 1.15;
  font-weight: 800;
  color: #0d0f1a;
  letter-spacing: -0.05em;
}

.hero-title span {
  background: linear-gradient(135deg, #3d68ff 0%, #7c30f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  margin: 0 auto 36px;
  max-width: 520px;
  font-size: 20px;
  line-height: 1.75;
  color: #5a5f78;
}

/* 功能标签组 */
.hero-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(100, 120, 255, 0.15);
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 14px;
  color: #3d68ff;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Shimmer 主按钮 */
.primary-cta {
  height: 52px;
  padding: 0 40px;
  font-size: 18px;
  border-radius: 26px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(110deg, #3d68ff, #5b40f5, #7c30f0, #3d68ff);
  background-size: 220% 220%;
  animation: hcShimmer 5s linear infinite;
  box-shadow: 0 8px 28px rgba(61, 104, 255, 0.38);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: box-shadow 0.2s, transform 0.15s;
}

.primary-cta:hover {
  box-shadow: 0 12px 36px rgba(61, 104, 255, 0.50);
  transform: translateY(-1px);
}

/* 副 CTA 按钮（玻璃拟态） */
.secondary-cta {
  height: 52px;
  padding: 0 36px;
  font-size: 18px;
  border-radius: 26px;
  font-weight: 500;
  color: #3d68ff;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(61, 104, 255, 0.25);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, box-shadow 0.2s;
}

.secondary-cta:hover {
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 6px 20px rgba(61, 104, 255, 0.14);
}

/* 产品截图 */
.hero-preview-wrap {
  margin-top: 60px;
  display: inline-block;
  max-width: 80%;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(61, 104, 255, 0.5), rgba(124, 48, 240, 0.5));
  box-shadow: 0 30px 80px rgba(61, 104, 255, 0.22), 0 8px 24px rgba(0, 0, 0, 0.10);
}

.hero-preview-inner {
  border-radius: 12px;
  overflow: hidden;
}

.hero-preview {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer {
  text-align: center;
  padding: 40px;
  color: #8b90aa;
  background: rgba(240, 242, 255, 0.5);
  border-top: 1px solid rgba(61, 104, 255, 0.08);
}

/* ── 动画关键帧 ── */
@keyframes hcBlobLeft {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%       { transform: translate3d(4%, 6%, 0) scale(1.07); }
  66%       { transform: translate3d(-3%, 3%, 0) scale(0.96); }
}

@keyframes hcBlobRight {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%       { transform: translate3d(-5%, 4%, 0) scale(1.05); }
  66%       { transform: translate3d(3%, -3%, 0) scale(0.98); }
}

@keyframes hcBlobCenter {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.55; }
  50%       { transform: translate3d(0, -4%, 0) scale(1.10); opacity: 0.78; }
}

@keyframes hcBlobBtm {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.40; }
  50%       { transform: translate3d(2%, 3%, 0) scale(1.08); opacity: 0.62; }
}

@keyframes hcSweep {
  0%   { transform: translate3d(-18%, -4%, 0) rotate(-6deg); opacity: 0.18; }
  50%  { transform: translate3d(14%, 2%, 0) rotate(8deg); opacity: 0.36; }
  100% { transform: translate3d(-18%, -4%, 0) rotate(-6deg); opacity: 0.18; }
}

@keyframes hcShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── 响应式 ── */
@media (max-width: 900px) {
  .site-header {
    padding: 0 18px;
  }

  .main-nav {
    display: none;
  }

  .brand-text {
    font-size: 20px;
  }

  .hero-title {
    font-size: 40px;
    letter-spacing: -0.03em;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-preview-wrap {
    max-width: 100%;
  }

  .primary-cta,
  .secondary-cta {
    font-size: 16px;
    height: 46px;
    padding: 0 28px;
  }
}
