/* ============================================================
   showcase.css —— 作品集单页样式
   暗色、大字、克制配色、浏览器窗口框
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

:root {
  --ink: #eef1f6;
  --ink-2: #a5afbe;
  --ink-3: #6b7787;
  --bg: #08090c;
  --bg-2: #0c0f14;
  --surface: #10141a;
  --line: #1b2028;
  --line-2: #2a313c;
  --accent: #7ef0c4;
  --radius: 16px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  /* 极细噪点，避免纯黑发闷 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 99;
  background: var(--accent); color: #06120d; padding: 10px 18px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- 顶栏 ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 12, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.top__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em; color: var(--ink);
}
.brand__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(126, 240, 196, 0.7);
}
.top__cta {
  font-size: 0.85rem; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 8px 18px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.top__cta:hover { border-color: var(--accent); color: var(--accent); background: rgba(126, 240, 196, 0.06); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(72px, 11vw, 140px) clamp(48px, 7vw, 88px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 620px;
  z-index: -1;
  background:
    radial-gradient(46% 52% at 22% 10%, rgba(126, 240, 196, 0.16), transparent 62%),
    radial-gradient(42% 46% at 82% 0%, rgba(60, 110, 220, 0.14), transparent 66%);
  filter: blur(20px);
  pointer-events: none;
}

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--line-2);
}

h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin-bottom: 26px;
  max-width: 15ch;
}

.hero__sub {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: var(--ink-2);
  max-width: 46ch;
  line-height: 1.78;
}

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero__meta span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
}

/* ---------- 案例 ---------- */
.case {
  padding-block: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--line);
}
.case--alternate { background: var(--bg-2); }

.case__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.case__tag {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.case h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.case__link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 3px;
  white-space: nowrap;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.case__link:hover { color: var(--accent); border-color: var(--accent); }

/* 浏览器窗口框 */
.browser {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  background: #0a0d11;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.browser__bar {
  display: flex; align-items: center; gap: 7px;
  height: 38px;
  padding-inline: 14px;
  background: #10141a;
  border-bottom: 1px solid var(--line);
}
.browser__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #2b323d;
}
.browser__url {
  margin-left: 12px;
  font-size: 0.72rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}
.browser img { width: 100%; }

/* 三点说明 */
.case__body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 34px;
}
.note h3 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
}
.note p {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.78;
}

/* ---------- 通用区块 ---------- */
.block {
  padding-block: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--line);
}
.block--soft { background: var(--bg-2); }

.block__title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.item {
  background: var(--bg);
  padding: 28px 24px;
}
.block--soft .item { background: var(--bg-2); }
.item h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.item p {
  font-size: 0.86rem;
  color: var(--ink-3);
  line-height: 1.72;
}

.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 40px;
}
.checklist li {
  position: relative;
  padding-left: 26px;
  font-size: 0.94rem;
  color: var(--ink-2);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.block__note {
  margin-top: 28px;
  font-size: 0.84rem;
  color: var(--ink-3);
  line-height: 1.75;
  max-width: 62ch;
}

/* ---------- 价格 ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  background: rgba(255, 255, 255, 0.014);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.plan:hover { border-color: var(--line-2); transform: translateY(-3px); }
.plan--featured {
  border-color: rgba(126, 240, 196, 0.4);
  background: linear-gradient(180deg, rgba(126, 240, 196, 0.07), rgba(255, 255, 255, 0.01));
}
.plan h3 {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
  font-weight: 600;
}
.plan--featured h3 { color: var(--accent); }
.plan__price {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
}
.plan__desc {
  font-size: 0.84rem;
  color: var(--ink-3);
}

/* ---------- 联系 ---------- */
.contact {
  position: relative;
  padding-block: clamp(80px, 12vw, 150px);
  border-top: 1px solid var(--line);
  overflow: hidden;
  text-align: center;
}
.contact::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 520px;
  z-index: 0;
  background:
    radial-gradient(50% 60% at 30% 100%, rgba(126, 240, 196, 0.18), transparent 62%),
    radial-gradient(46% 55% at 74% 90%, rgba(60, 110, 220, 0.14), transparent 66%);
  filter: blur(24px);
  pointer-events: none;
}
.contact .wrap { position: relative; z-index: 1; }

.contact h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 18px;
}
.contact__sub {
  color: var(--ink-2);
  font-size: clamp(0.95rem, 1.2vw, 1.06rem);
  max-width: 42ch;
  margin: 0 auto 36px;
  line-height: 1.78;
}
.contact__actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--accent); color: #06120d; }
.btn--solid:hover { background: #a3f7d8; color: #06120d; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(126, 240, 196, 0.06); }

.contact__meta {
  margin-top: 32px;
  font-size: 0.84rem;
  color: var(--ink-3);
}
.ph {
  color: var(--ink-2);
  border-bottom: 1px dashed var(--line-2);
}

/* ---------- 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 30px;
}
.foot__inner {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--ink-3);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .case__body { grid-template-columns: 1fr; gap: 22px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .checklist { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .wrap { padding-inline: 18px; }
  h1 { max-width: none; }
  .case__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .grid { grid-template-columns: 1fr; }
  .browser__url { display: none; }
  .foot__inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
