:root {
  --ink: #2a2451;
  --sub-ink: #615d82;
  --brand: #ff7bb0;
  --brand-dark: #ff5ca0;
  --mint: #8be9da;
  --bg: #fff7fd;
  --card-bg: rgba(255, 255, 255, 0.9);
  --line: rgba(109, 88, 146, 0.16);
  --shadow: 0 10px 30px rgba(137, 98, 164, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(circle at 16px 16px, rgba(255, 203, 227, 0.35) 4px, transparent 5px),
    radial-gradient(circle at 64px 24px, rgba(176, 238, 230, 0.24) 3px, transparent 4px),
    linear-gradient(120deg, #fff9fd 0%, #f7fcff 100%);
  background-size: 96px 96px, 128px 128px, auto;
}
a { color: var(--ink); text-decoration: none; }
a:hover { opacity: 0.86; }

.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(255, 249, 253, 0.88);
}
.nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(161, 129, 202, 0.24);
  box-shadow: 0 4px 12px rgba(124, 96, 173, 0.2);
}
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { font-size: 14px; font-weight: 600; }
.mobile-auth-link {
  display: none;
  color: #3b73ff;
  font-size: 16px;
  font-weight: 700;
}
.mobile-nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.btn {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:focus-visible { outline: 2px solid #8d79ff; outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 92, 160, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: #fff0f8; }

.hero {
  min-height: 72vh;
  position: relative;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 248, 254, 0.72), rgba(255, 248, 254, 0.94));
}
.hero-inner { position: relative; z-index: 1; padding: 108px 0 70px; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #a13c79;
  background: #ffe8f4;
  border: 1px solid #ffd2e8;
}
h1 {
  margin: 16px 0 18px;
  font-size: clamp(34px, 6vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.hero p {
  margin: 0 0 28px;
  max-width: 760px;
  color: var(--sub-ink);
  font-size: 19px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

section { padding: 92px 0; }
.section-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.section-desc { margin: 0 0 30px; color: var(--sub-ink); font-size: 17px; max-width: 880px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card,
.step {
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 22px;
}
.card h3,
.step h3 { margin: 0 0 10px; font-size: 22px; }
.card p,
.step p { margin: 0; color: var(--sub-ink); }
.card p + p { margin-top: 10px; }

.mono {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  color: #8b7db4;
}

.auth-wrap, .feedback-wrap {
  width: min(620px, calc(100% - 32px));
  margin: 56px auto;
  padding: 28px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.auth-page { padding: 42px 0 64px; }
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.auth-side {
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 228, 242, 0.95), rgba(228, 248, 255, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-side h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.2;
}
.auth-side p { margin: 0; color: var(--sub-ink); font-size: 16px; }
.auth-side-squirrel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(145deg, #fff5f7 0%, #f0f9eb 100%);
}
.auth-panel-media-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: .28;
}
.auth-panel-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.04) contrast(1.03);
}
.auth-flow-light {
  position: absolute;
  inset: -25%;
  z-index: 1;
  background: linear-gradient(120deg, rgba(255,255,255,0) 10%, rgba(255,255,255,.34) 50%, rgba(255,255,255,0) 90%);
  animation: flow-light 7s linear infinite;
  pointer-events: none;
}
.auth-side-squirrel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 16%, rgba(255,255,255,0.7), transparent 40%),
              radial-gradient(circle at 78% 24%, rgba(255,255,255,0.62), transparent 34%);
  z-index: -1;
}
.auth-side-inner { position: relative; z-index: 2; text-align: center; }
.auth-panel-enter { animation: panel-enter .9s var(--ease) both; }
.auth-form-enter { animation: panel-enter .9s .08s var(--ease) both; }
.auth-form-stagger .auth-stagger-item {
  opacity: 0;
  transform: translateY(16px);
  animation: auth-stagger .66s var(--ease) forwards;
}
.auth-squirrel-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  animation: squirrel-sway 3.6s ease-in-out infinite;
  filter: drop-shadow(0 10px 16px rgba(139, 90, 43, 0.16));
}
.auth-squirrel-icon svg { width: 100%; height: 100%; }
.auth-side-title {
  margin: 0 0 12px;
  color: #8b5a2b;
  font-size: clamp(28px, 3.2vw, 40px);
  font-family: "PingFang SC", "Microsoft YaHei", "Trebuchet MS", sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  animation: title-breathe 3.6s ease-in-out infinite;
}
.auth-side-subtitle {
  color: #6d4c41;
  font-size: 16px;
  animation: subtitle-float 4s ease-in-out infinite;
}
.auth-cloud,
.auth-leaf,
.auth-nut { position: absolute; pointer-events: none; }
.auth-cloud {
  width: 96px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 20px rgba(255,255,255,0.35);
}
.auth-cloud::before,
.auth-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}
.auth-cloud::before { width: 36px; height: 36px; left: 13px; top: -14px; }
.auth-cloud::after { width: 28px; height: 28px; right: 16px; top: -10px; }
.cloud-1 { top: 26px; left: 22px; opacity: 0.78; }
.cloud-2 { top: 60px; right: 18px; transform: scale(0.84); opacity: 0.7; }
.auth-leaf {
  width: 22px;
  height: 14px;
  background: linear-gradient(135deg, #8ecf93, #6fbf78);
  border-radius: 100% 0 100% 0;
  animation: float-soft 4.8s ease-in-out infinite;
}
.leaf-1 { top: 28px; right: 46px; transform: rotate(-20deg); }
.leaf-2 { top: 94px; left: 42px; transform: rotate(18deg); animation-delay: .7s; }
.leaf-3 { bottom: 20px; right: 90px; transform: rotate(-8deg); animation-delay: 1.1s; }
.auth-nut {
  width: 15px;
  height: 20px;
  border-radius: 55% 55% 45% 45%;
  background: linear-gradient(180deg, #d9a36d, #bc7f43);
  box-shadow: inset 0 -3px 0 rgba(139, 90, 43, 0.24);
  animation: float-soft 5.4s ease-in-out infinite;
}
.nut-1 { left: 44px; bottom: 26px; }
.nut-2 { right: 38px; bottom: 30px; animation-delay: 1.2s; }
.switch-link { margin: 14px 0 0; color: var(--sub-ink); }
.switch-link a { color: #3b73ff; font-weight: 700; }
.input-row { display: grid; gap: 8px; margin-bottom: 14px; }
label { font-size: 14px; font-weight: 600; color: var(--ink); }
input, textarea, select {
  width: 100%;
  border: 1px solid rgba(141, 118, 181, 0.25);
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 11px 12px;
  font-size: 14px;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(141, 121, 255, 0.5);
  border-color: transparent;
}
textarea { min-height: 120px; resize: vertical; }

.alert {
  margin-bottom: 14px;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
}
.alert-ok { background: #eafff4; color: #0f6f4c; border: 1px solid #b7f2d8; }
.alert-err { background: #fff0f0; color: #9a2d33; border: 1px solid #ffcbcb; }

footer {
  border-top: 1px solid var(--line);
  color: var(--sub-ink);
  padding: 34px 0;
}

table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 6px; border-bottom: 1px dashed rgba(141, 118, 181, 0.18); vertical-align: top; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.parallax { will-change: transform; }
.admin-reply-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #eef9ff;
  border: 1px solid #bee4f8;
}
.admin-reply-box.pending {
  background: #fff7ea;
  border-color: #ffdca8;
}
.admin-reply-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #0d6a99;
  background: #d7f0ff;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}
.admin-reply-box.pending .admin-reply-tag {
  color: #8a5a00;
  background: #ffe8ba;
}
.page-transition {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 183, 220, 0.25), rgba(255,255,255,0.95));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .38s var(--ease);
  z-index: 9999;
  pointer-events: none;
}
.page-transition.active { transform: scaleY(1); }
.page-transition.login-burst {
  background: radial-gradient(circle at 50% 45%, rgba(255, 152, 204, 0.62), rgba(255,255,255,0.98));
  transform: scale(0);
  border-radius: 999px;
  transform-origin: center;
}
.page-transition.login-burst.active {
  animation: login-burst .62s var(--ease) forwards;
}

.service-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.service-card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(137, 98, 164, 0.22);
}
.service-card-thumb {
  margin: -6px -6px 14px;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #ffe8f4, #e4f8ff);
}
.service-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-card-thumb-placeholder {
  min-height: 140px;
}

.service-detail { padding-bottom: 48px; }
.service-detail-back { margin: 0 0 18px; font-size: 14px; font-weight: 600; }
.service-detail-cover {
  margin: 0 0 22px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-height: 420px;
}
.service-detail-cover img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.service-detail-body {
  font-size: 17px;
  color: var(--sub-ink);
  line-height: 1.75;
  margin-bottom: 48px;
}

.comment-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px dashed var(--line);
}
.comment-section-title {
  margin: 0 0 16px;
  font-size: 24px;
}
.comment-login-hint {
  color: var(--sub-ink);
  margin-bottom: 16px;
}
.comment-form { margin-bottom: 22px; }
.comment-form-reply { margin-top: 10px; }
.comment-thread { display: flex; flex-direction: column; gap: 10px; overflow-x: auto; }
.comment-root-block { display: block; }
.comment-children {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comment-item {
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  box-sizing: border-box;
  max-width: 100%;
}
.comment-item-root {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(141, 121, 255, 0.22);
}
.comment-item-reply {
  background: rgba(246, 248, 252, 0.95);
  border-color: rgba(109, 88, 146, 0.12);
  margin-left: 20px !important;
  width: calc(100% - 20px);
}
.comment-item-reply .comment-content {
  font-size: 14px;
  color: var(--sub-ink);
}
.comment-item-reply[data-depth="2"] {
  margin-left: 20px !important;
  width: calc(100% - 20px);
}
.comment-replies-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f4f6f8;
  border: 1px solid #e8edf3;
}
.comment-replies-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comment-replies-toggle {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  height: 36px;
  background: linear-gradient(135deg, #eef3ff, #ffeef7);
  color: #4f5f8b;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.comment-replies-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(96, 114, 165, 0.16);
}
.comment-replies-toggle:active {
  transform: translateY(0);
}
.comment-item-by-admin {
  background: linear-gradient(135deg, rgba(255, 240, 250, 0.98), rgba(235, 248, 255, 0.95));
  border-color: rgba(255, 123, 176, 0.35);
  box-shadow: 0 6px 20px rgba(255, 123, 176, 0.12);
}
.comment-badge-admin {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #ff7bb0, #8d79ff);
  border-radius: 6px;
  padding: 2px 8px;
  margin-right: 6px;
  vertical-align: middle;
}
.comment-author-name { vertical-align: middle; }
.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}
.comment-time { color: var(--sub-ink); font-size: 13px; font-weight: 500; }
.comment-region {
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #5a6b8a;
  background: rgba(90, 107, 138, 0.1);
  border-radius: 999px;
}
.comment-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}
.comment-like-btn {
  border: 1px solid rgba(141, 118, 181, 0.25);
  background: #fff;
  color: #5f4b7a;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.comment-like-btn:hover {
  background: #fff1f8;
  border-color: rgba(255, 92, 160, 0.4);
}
.comment-like-btn.liked {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: transparent;
}
.comment-hot-tag {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb86b, #ff8a65);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.comment-like-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
}
.comment-like-count {
  margin-left: 4px;
  min-width: 16px;
  display: inline-block;
}
.comment-reply-prefix {
  font-size: 13px;
  font-weight: 700;
  color: #4a5a85;
  margin-bottom: 6px;
}
.comment-reply-prefix-admin {
  color: #a13c79;
}
.comment-reply-admin-mark {
  font-weight: 800;
  margin-right: 4px;
  color: #8d3d9a;
}
.comment-content { font-size: 15px; color: var(--ink); line-height: 1.55; }
.comment-reply-toggle summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #3b73ff;
  margin-top: 8px;
}
.comment-empty { color: var(--sub-ink); margin: 0; }

.img-frame {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: inherit;
  max-width: 100%;
}
.img-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, #f0f0f0 8%, #f7f7f7 18%, #ececec 33%);
  background-size: 220% 100%;
  animation: img-loading 1.1s linear infinite;
  opacity: 0;
  transition: opacity .2s ease;
}
.img-frame.loading::before { opacity: 1; }
img.img-pending {
  opacity: 0;
  transition: opacity .45s var(--ease);
}
img.img-ready { opacity: 1; }

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (hover: none) and (pointer: coarse) {
  .nav-links { display: none !important; }
  .mobile-nav-toggle { display: none !important; }
  .mobile-auth-link { display: inline-flex; }
}

@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-side { order: 2; }
  .auth-wrap { order: 1; margin: 0; width: 100%; }
  .logo-img { width: 30px; height: 30px; }
  section { padding: 58px 0; }
  .hero-inner { padding: 86px 0 58px; }
  .hero p { font-size: 16px; }
  .comment-item-reply {
    margin-left: 12px !important;
    width: calc(100% - 12px);
  }
  .comment-item-reply[data-depth="2"] {
    margin-left: 12px !important;
    width: calc(100% - 12px);
  }
  .comment-replies-box {
    padding: 8px;
  }
}

@keyframes squirrel-sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
@keyframes title-bounce {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-6px); }
  70% { transform: translateY(1px); }
}
@keyframes panel-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes auth-stagger {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes flow-light {
  from { transform: translateX(-18%); }
  to { transform: translateX(18%); }
}
@keyframes title-breathe {
  0%, 100% { opacity: .93; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}
@keyframes subtitle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes subtitle-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float-soft {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
}
@keyframes img-loading {
  to { background-position-x: -220%; }
}
@keyframes login-burst {
  0% { transform: scale(0.1); opacity: .4; }
  70% { transform: scale(1.25); opacity: .92; }
  100% { transform: scale(1.45); opacity: 1; }
}
