/* ============================================================
   首页专用样式 —— 视觉强化层
   ============================================================ */

.home { overflow-x: hidden; }

/* ────────── Hero ────────── */
.hero {
  position: relative;
  padding: 96px 20px 80px;
  text-align: center;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .5;
  animation: float 16s ease-in-out infinite;
}
.orb-1 { width: 380px; height: 380px; background: #9ccaff; top: -140px; left: -90px; }
.orb-2 { width: 320px; height: 320px; background: #d8c2ff; top: -80px; right: -110px; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: #b8e8ff; bottom: -180px; left: 40%; animation-delay: -9s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(24px, -20px) scale(1.06); }
  66%      { transform: translate(-18px, 14px) scale(.96); }
}

.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(53,152,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(53,152,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 78% 62% at 50% 32%, #000 42%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 32%, #000 42%, transparent 100%);
}

.hero-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px 7px 12px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.85);
  border: 1px solid var(--primary-ring);
  color: var(--primary-ink); font-size: 13px; font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(53,152,255,.12);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
  50%     { box-shadow: 0 0 0 6px rgba(34,197,94,.06); }
}

.hero h1 {
  font-size: clamp(32px, 8vw, 62px);
  line-height: 1.12;
  letter-spacing: -2px;
  font-weight: 800;
  margin: 26px 0 0;
  color: var(--text);
}

.hero .grad {
  background: linear-gradient(100deg, var(--primary) 0%, #7c5cff 55%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 220% auto;
  animation: shine 6s linear infinite;
}
@keyframes shine {
  to { background-position: 220% center; }
}

.hero > .hero-inner > p {
  max-width: 560px; margin: 22px auto 0;
  font-size: clamp(15px, 3.6vw, 17.5px);
  line-height: 1.75; color: var(--text-dim);
}

.hero-actions {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin-top: 34px;
}

.btn .arrow { display: inline-block; transition: transform .22s cubic-bezier(.34,1.56,.64,1); }
.btn:hover .arrow { transform: translateX(4px); }

/* 浮动文件卡片 */
.hero-cards { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fcard {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 14px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(16,21,29,.09);
  font-size: 13px; font-weight: 600; color: var(--text-body);
  backdrop-filter: blur(10px);
  animation: bob 7s ease-in-out infinite;
}
.fc-ico { font-size: 17px; }
.fc1 { top: 20%; left: 4%;  animation-delay: 0s; }
.fc2 { top: 55%; left: 7%;  animation-delay: -1.8s; }
.fc3 { top: 24%; right: 4%; animation-delay: -3.4s; }
.fc4 { top: 60%; right: 6%; animation-delay: -5.1s; }

@keyframes bob {
  0%,100% { transform: translateY(0) rotate(-1.4deg); }
  50%     { transform: translateY(-14px) rotate(1.4deg); }
}

@media (max-width: 900px) {
  .hero-cards { display: none; }
}

/* ────────── 指标条 ────────── */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); margin: 0 0 56px;
}
.metric {
  padding: 26px 14px; text-align: center;
  border-right: 1px solid var(--border-light);
}
.metric:last-child { border-right: none; }
.metric .v {
  font-size: 30px; font-weight: 800; letter-spacing: -1px;
  color: var(--text); line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.metric .k { font-size: 12.5px; color: var(--text-mute); margin-top: 6px; font-weight: 500; }

/* ────────── 文件广场 ────────── */
.plaza-box { margin-bottom: 56px; min-height: 120px; }

.plaza-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.plaza-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 22px 14px 16px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--r-md); text-align: center;
  transition: transform .2s cubic-bezier(.34,1.4,.64,1), box-shadow .2s, border-color .2s;
  text-decoration: none; color: inherit;
}
.plaza-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-ring);
  box-shadow: 0 10px 30px rgba(53,152,255,.14);
}
.pc-ico {
  width: 52px; height: 52px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-size: 25px; background: var(--bg-soft);
}
.pc-name {
  font-size: 13.5px; font-weight: 600; color: var(--text);
  width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pc-meta {
  display: flex; gap: 8px; justify-content: center;
  font-size: 11.5px; color: var(--text-mute);
}
.pc-time { font-size: 11px; color: var(--text-mute); }

.plaza-empty {
  text-align: center; padding: 46px 20px;
  background: var(--panel); border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
}
.plaza-empty .pe-ico { font-size: 42px; margin-bottom: 10px; }
.plaza-empty h4 { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.plaza-empty p { margin: 0 0 18px; font-size: 13.5px; color: var(--text-dim); }

.plaza-loading {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 0;
}

/* ────────── 容量方案 ────────── */
.plans {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin-bottom: 56px;
  align-items: start;
}

.plan {
  padding: 28px 24px; position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.plan.featured {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(53,152,255,.18);
  transform: scale(1.03);
}
.plan-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  padding: 4px 14px; border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--primary), #7c5cff);
  color: #fff; font-size: 11.5px; font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(53,152,255,.35);
}
.plan-name { font-size: 14px; font-weight: 700; color: var(--text-dim); }
.plan-size {
  font-size: 46px; font-weight: 800; letter-spacing: -2.5px;
  color: var(--text); line-height: 1; margin: 12px 0 4px;
  font-variant-numeric: tabular-nums;
}
.plan-size span { font-size: 19px; font-weight: 700; letter-spacing: 0; margin-left: 3px; }
.plan-price {
  font-size: 14px; font-weight: 700; color: var(--primary);
  margin-bottom: 20px;
}
.plan-feats {
  list-style: none; padding: 0; margin: 0 0 22px;
  width: 100%; text-align: left;
}
.plan-feats li {
  font-size: 13.5px; color: var(--text-body);
  padding: 7px 0; border-bottom: 1px solid var(--border-light);
}
.plan-feats li:last-child { border-bottom: none; }
.plan .btn { width: 100%; }
.plan-note {
  font-size: 11.5px; color: var(--text-mute); margin: 12px 0 0;
}

/* ────────── 三步 ────────── */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px; margin-bottom: 56px;
}
.step {
  text-align: center; padding: 28px 20px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.step .n {
  width: 42px; height: 42px; margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c5cff);
  color: #fff; font-size: 19px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(53,152,255,.3);
}
.step h4 { margin: 0 0 8px; font-size: 16px; color: var(--text); }
.step p { margin: 0; font-size: 13.5px; color: var(--text-dim); line-height: 1.7; }

/* ────────── FAQ ────────── */
.faq { margin-bottom: 56px; }
.faq-item {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--r-md); margin-bottom: 10px;
  overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] {
  border-color: var(--primary-ring);
  box-shadow: 0 4px 18px rgba(53,152,255,.1);
}
.faq-item summary {
  padding: 17px 20px; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--text);
  list-style: none; display: flex; align-items: center; gap: 10px;
  transition: color .18s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "＋"; color: var(--primary); font-size: 17px; font-weight: 700;
  flex-shrink: 0; transition: transform .24s;
}
.faq-item[open] summary::before { content: "－"; }
.faq-item summary:hover { color: var(--primary); }
.faq-item p {
  margin: 0; padding: 0 20px 18px 48px;
  font-size: 13.5px; color: var(--text-dim); line-height: 1.8;
}

/* ────────── 结尾 CTA ────────── */
.end-cta {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); padding: 58px 26px;
  background: linear-gradient(135deg, #eef6ff 0%, #f6f0ff 50%, #eafaff 100%);
  border: 1px solid var(--border);
  text-align: center; margin-bottom: 40px;
}
.end-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(53,152,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(53,152,255,.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 30%, transparent 100%);
}
.end-cta-inner { position: relative; z-index: 1; }
.end-cta h2 {
  font-size: clamp(24px, 5.5vw, 34px); font-weight: 800;
  letter-spacing: -1.2px; margin: 0 0 10px; color: var(--text);
}
.end-cta p { margin: 0; font-size: 15px; color: var(--text-dim); }

/* ────────── 页脚 ────────── */
.footer-logo { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.footer-links {
  display: flex; gap: 20px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 14px;
}
.footer-links a {
  font-size: 13px; color: var(--text-dim); transition: color .18s;
}
.footer-links a:hover { color: var(--primary); }
.footer-note { font-size: 12px; color: var(--text-mute); }

/* ────────── 滚动入场 ────────── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .62s cubic-bezier(.22,.68,.36,1),
              transform .62s cubic-bezier(.22,.68,.36,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .fcard, .badge-dot, .hero .grad { animation: none; }
}

/* ────────── 移动端 ────────── */
@media (max-width: 700px) {
  /* 首页顶栏：导航项过多，只留必要入口 */
  .home .topbar .btn-ghost { display: none; }
  .home .topbar .btn-ghost[href="/plaza.html"] { display: inline-flex; }
}

@media (max-width: 560px) {
  .home .topbar { gap: 6px; }
  .home .topbar .btn { padding: 8px 13px; font-size: 13px; }
  .home .topbar .btn-ghost { padding: 7px 10px; }

  .hero { padding: 62px 15px 56px; }
  .hero h1 { letter-spacing: -1.2px; margin-top: 20px; }
  .hero-actions { gap: 10px; margin-top: 26px; }
  .hero-actions .btn { flex: 1; min-width: 140px; }

  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { padding: 20px 10px; border-bottom: 1px solid var(--border-light); }
  .metric:nth-child(odd) { border-right: 1px solid var(--border-light); }
  .metric:nth-child(even) { border-right: none; }
  .metric:nth-last-child(-n+2) { border-bottom: none; }
  .metric .v { font-size: 24px; letter-spacing: -.6px; }

  .plaza-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .plaza-card { padding: 16px 10px 12px; }
  .pc-ico { width: 44px; height: 44px; border-radius: 13px; font-size: 21px; }
  .plaza-empty { padding: 34px 18px; }
  .plaza-empty .pe-ico { font-size: 34px; }

  .plan.featured { transform: none; }
  .plan { padding: 24px 20px; }
  .plan-size { font-size: 38px; letter-spacing: -2px; }

  .faq-item p { padding-left: 20px; }
  .end-cta { padding: 40px 20px; border-radius: var(--r-lg); }
  .hero .hint { font-size: 12.5px; }
}
