:root {
  --color-bg: #fff5f9;
  --color-surface: #ffffff;
  --color-surface-soft: #fff9e6;
  --color-accent-blue: #e6f4ff;
  --color-accent-purple: #f5efff;
  --color-text: #827070;

  --radius-card: 18px;
  --radius-pill: 999px;
  --shadow-sm: 0 10px 24px rgba(130, 112, 112, 0.08);
  --shadow-xs: 0 6px 14px rgba(130, 112, 112, 0.06);

  --border: 1px solid rgba(130, 112, 112, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 20% -10%, rgba(229, 244, 255, 0.65), transparent 60%),
    radial-gradient(800px 520px at 95% 5%, rgba(245, 239, 255, 0.8), transparent 58%),
    radial-gradient(600px 400px at 40% 105%, rgba(255, 249, 230, 0.75), transparent 55%);
}

/* subtle “碎花暗纹”：低对比小点 */
.bg-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    radial-gradient(rgba(130, 112, 112, 0.15) 1px, transparent 1.2px),
    radial-gradient(rgba(245, 239, 255, 0.9) 1px, transparent 1.2px);
  background-size: 22px 22px, 34px 34px;
  background-position: 0 0, 12px 10px;
  mask-image: radial-gradient(circle at 50% 20%, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0) 65%);
}

.page {
  min-height: 100%;
}

.container {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 64px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero */
.hero {
  padding: 80px 0 56px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  position: relative;
}

.hero-text {
  text-align: center;
}

.hero-title {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 56px);
  letter-spacing: 0.5px;
  color: rgba(130, 112, 112, 0.96);
}

.hero-sub {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(130, 112, 112, 0.85);
}

.hero-decor {
  position: absolute;
  right: 0;
  bottom: -24px;
  width: 160px;
  height: 160px;
  pointer-events: none;
}

.hero-decor-wiggle {
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 12px 16px rgba(130, 112, 112, 0.12));
}

.kitty {
  width: 140px;
  height: 140px;
}

/* Titles */
.section-title-row {
  display: flex;
  justify-content: center;
}

.section-title {
  margin: 0 0 22px;
  font-size: clamp(22px, 2.6vw, 30px);
  text-align: center;
  font-weight: 800;
  color: rgba(130, 112, 112, 0.96);
}

.title-emoji {
  display: inline-block;
  margin-right: 8px;
  transform-origin: center;
}

/* Cards */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  border: var(--border);
  box-shadow: var(--shadow-xs);
}

.hover-card {
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
  outline: none;
}

.hover-card:hover,
.hover-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card-collection {
  background: linear-gradient(180deg, rgba(255, 249, 230, 0.92), rgba(255, 255, 255, 0.9));
  padding: 22px 18px;
}

.card-collection-top {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.collection-icon {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
}

.badge-svg {
  width: 46px;
  height: 46px;
  display: block;
}

.wiggle {
  animation: wiggle 2.6s ease-in-out infinite;
}

.card-title {
  margin: 0;
  font-size: 18px;
  color: rgba(130, 112, 112, 0.95);
}

.card-text {
  margin: 12px 0 0;
  text-align: center;
  line-height: 1.6;
  font-size: 14.5px;
}

.collection-photo-wrap {
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(130, 112, 112, 0.14);
  box-shadow: 0 8px 18px rgba(130, 112, 112, 0.1);
  aspect-ratio: 16 / 10;
  max-height: 160px;
  background: rgba(255, 255, 255, 0.75);
}

.collection-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Works */
.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.card-work {
  grid-column: span 4;
  padding: 0;
  overflow: hidden;
}

.work-image {
  height: 160px;
  background: linear-gradient(180deg, rgba(230, 244, 255, 0.9), rgba(255, 255, 255, 0.9));
  position: relative;
  overflow: hidden;
}

.work-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-placeholder {
  position: absolute;
  inset: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(130, 112, 112, 0.18);
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 239, 255, 0.65), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(255, 249, 230, 0.75), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 249, 230, 0.65));
}

.img-a {
  background:
    radial-gradient(circle at 20% 20%, rgba(230, 244, 255, 0.8), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(245, 239, 255, 0.75), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 249, 230, 0.65));
}
.img-b {
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 249, 230, 0.9), transparent 45%),
    radial-gradient(circle at 78% 62%, rgba(245, 239, 255, 0.75), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(245, 239, 255, 0.45));
}
.img-c {
  background:
    radial-gradient(circle at 24% 18%, rgba(245, 239, 255, 0.85), transparent 42%),
    radial-gradient(circle at 70% 70%, rgba(230, 244, 255, 0.7), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 249, 230, 0.5));
}
.img-d {
  background:
    radial-gradient(circle at 25% 22%, rgba(230, 244, 255, 0.78), transparent 46%),
    radial-gradient(circle at 75% 70%, rgba(255, 249, 230, 0.85), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(230, 244, 255, 0.35));
}
.img-e {
  background:
    radial-gradient(circle at 20% 24%, rgba(245, 239, 255, 0.82), transparent 46%),
    radial-gradient(circle at 75% 66%, rgba(230, 244, 255, 0.75), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(245, 239, 255, 0.35));
}
.img-f {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 249, 230, 0.95), transparent 46%),
    radial-gradient(circle at 75% 68%, rgba(245, 239, 255, 0.78), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 249, 230, 0.42));
}

.work-desc {
  margin: 0;
  padding: 16px 16px 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(130, 112, 112, 0.9);
}

/* Contact */
.contact-card {
  margin: 0 auto;
  width: min(860px, 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 249, 230, 0.7));
  border-radius: 22px;
  border: var(--border);
  box-shadow: var(--shadow-xs);
  padding: 18px;
}

.contact-row {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 14px;
}

.contact-row + .contact-row {
  border-top: 1px dashed rgba(130, 112, 112, 0.18);
}

.contact-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
}

.contact-icon svg {
  width: 44px;
  height: 44px;
  display: block;
}

.contact-label {
  font-weight: 800;
  color: rgba(130, 112, 112, 0.95);
}

.copy-btn {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-pill);
  border: var(--border);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  color: var(--color-text);
  box-shadow: 0 10px 22px rgba(130, 112, 112, 0.06);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.copy-btn:hover,
.copy-btn:focus-visible {
  background: rgba(255, 249, 230, 0.85);
  transform: translateY(-2px);
}

.copy-btn:active {
  transform: translateY(0);
}

.copy-btn:focus-visible {
  outline: 3px solid rgba(230, 244, 255, 0.75);
  outline-offset: 2px;
}

.copy-value {
  font-weight: 700;
  letter-spacing: 0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-hint {
  font-size: 12.5px;
  color: rgba(130, 112, 112, 0.75);
  padding-left: 8px;
  border-left: 1px solid rgba(130, 112, 112, 0.15);
  flex: none;
}

/* About frame */
.cloud-frame {
  position: relative;
  padding: 28px 22px;
  border-radius: 26px;
  border: var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 249, 230, 0.72));
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

/* Cloud-like top edge (light ribbon) */
.cloud-frame::before {
  content: "";
  position: absolute;
  left: -12%;
  top: -18px;
  width: 124%;
  height: 56px;
  opacity: 0.9;
  background:
    radial-gradient(circle at 18px 32px, rgba(255, 249, 230, 0.95) 18px, transparent 19px),
    radial-gradient(circle at 60px 24px, rgba(255, 249, 230, 0.95) 18px, transparent 19px),
    radial-gradient(circle at 102px 32px, rgba(255, 249, 230, 0.95) 18px, transparent 19px),
    radial-gradient(circle at 144px 24px, rgba(255, 249, 230, 0.95) 18px, transparent 19px);
  filter: drop-shadow(0 10px 14px rgba(130, 112, 112, 0.08));
}

.frame-corner {
  position: absolute;
  width: 86px;
  height: 86px;
}

.frame-corner--lt {
  left: -10px;
  top: -8px;
  transform: rotate(-6deg);
}

.frame-corner--rb {
  right: -12px;
  bottom: -14px;
  transform: rotate(8deg);
}

.corner-critter {
  width: 86px;
  height: 86px;
  display: block;
  opacity: 0.95;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.about-item {
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed rgba(130, 112, 112, 0.18);
  border-radius: 18px;
  padding: 14px 14px;
}

.about-label {
  font-size: 12.5px;
  color: rgba(130, 112, 112, 0.7);
  margin-bottom: 6px;
}

.about-value {
  font-weight: 800;
  color: rgba(130, 112, 112, 0.93);
  line-height: 1.55;
}

/* Footer */
.footer {
  padding: 44px 0 70px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.footer-title {
  font-weight: 900;
  font-size: 16px;
  color: rgba(130, 112, 112, 0.95);
}

.footer-sub {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(130, 112, 112, 0.82);
}

.footer-decor {
  width: 320px;
  height: 56px;
  display: grid;
  place-items: center;
}

.walk-svg {
  width: 260px;
  height: 46px;
}

/*轻量走路循环：整体平移+轻微缩放*/
.line-walk {
  width: 100%;
  display: grid;
  place-items: center;
  animation: walk 2.8s ease-in-out infinite;
  filter: drop-shadow(0 10px 16px rgba(130, 112, 112, 0.08));
}

@keyframes walk {
  0% {
    transform: translateX(-6px);
  }
  50% {
    transform: translateX(6px);
  }
  100% {
    transform: translateX(-6px);
  }
}

@keyframes wiggle {
  0% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-3px);
  }
  60% {
    transform: translateX(3px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 30;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.88);
  border: var(--border);
  box-shadow: var(--shadow-xs);
  color: rgba(130, 112, 112, 0.95);
  font-weight: 800;
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* Kitty micro motion */
.hero-decor-wiggle {
  animation: kittyWiggle 4.4s ease-in-out infinite;
}

@keyframes kittyWiggle {
  0% {
    transform: rotate(0deg) translateX(0);
  }
  30% {
    transform: rotate(-2deg) translateX(-3px);
  }
  60% {
    transform: rotate(2deg) translateX(3px);
  }
  100% {
    transform: rotate(0deg) translateX(0);
  }
}

/* Hover color feedback (match “变浅粉”要求) */
.card-collection.hover-card:hover,
.card-collection.hover-card:focus-visible {
  background: linear-gradient(180deg, rgba(255, 249, 230, 0.98), rgba(255, 255, 255, 0.95));
}

.card-work {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 249, 230, 0.62));
}

.card-work.hover-card:hover,
.card-work.hover-card:focus-visible {
  background: linear-gradient(180deg, rgba(255, 249, 230, 0.88), rgba(255, 255, 255, 0.92));
}

/* Responsive */
@media (max-width: 920px) {
  .card-row {
    grid-template-columns: 1fr;
  }
  .works-grid {
    grid-template-columns: 1fr;
  }
  .card-work {
    grid-column: span 12;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .hero-decor {
    position: relative;
    right: auto;
    bottom: auto;
    width: 140px;
    height: 140px;
  }
  .hero-decor-wiggle {
    margin: 18px auto 0;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-decor {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .wiggle,
  .line-walk,
  .hero-decor-wiggle {
    animation: none;
  }
  .hover-card {
    transition: none;
  }
}

