.admin-shell {
  min-height: 100vh;
}

/* —— 首页 / 登录：Apple 风格 —— */
.home-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    linear-gradient(180deg, #fbfbfd 0%, #f2f2f4 48%, #ebebef 100%);
  color: #1d1d1f;
}

.home-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.home-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.home-orb-a {
  top: -12%;
  left: -8%;
  width: 52vw;
  height: 52vw;
  max-width: 560px;
  max-height: 560px;
  background: radial-gradient(circle, rgba(90, 160, 255, 0.35), rgba(58, 109, 246, 0.08) 55%, transparent 70%);
  animation: orbDrift 14s ease-in-out infinite alternate;
}

.home-orb-b {
  right: -10%;
  bottom: -20%;
  width: 48vw;
  height: 48vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(circle, rgba(160, 210, 255, 0.28), transparent 68%);
  animation: orbDrift 16s ease-in-out infinite alternate-reverse;
}

@keyframes orbDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 4%, 0) scale(1.06);
  }
}

.home-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 28px 0;
}

.home-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}

.home-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(145deg, #7aa2ff 0%, #3a6df6 52%, #2450d6 100%);
  box-shadow: 0 10px 24px rgba(58, 109, 246, 0.32);
}

.home-nav-meta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #6e6e73;
}

.home-hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 28px 24px;
  min-height: calc(100vh - 120px);
  box-sizing: border-box;
}

.home-brand {
  animation: riseIn 0.7s ease both;
}

.home-brand .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #6e6e73;
}

.home-brand .eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a6df6;
  box-shadow: 0 0 0 4px rgba(58, 109, 246, 0.15);
}

.home-brand h1 {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: #1d1d1f;
}

.home-brand h1 span {
  display: block;
  margin-top: 6px;
  background: linear-gradient(105deg, #1d1d1f 8%, #3a6df6 78%, #6ea0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-brand .lead {
  margin: 20px 0 0;
  max-width: 32em;
  font-size: 18px;
  line-height: 1.55;
  color: #6e6e73;
  letter-spacing: -0.015em;
}

.home-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.home-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 13px;
  color: #1d1d1f;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.045);
}

.home-pill b {
  font-weight: 600;
}

.home-pill .pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3a6df6;
  box-shadow: 0 0 0 3px rgba(58, 109, 246, 0.12);
}

.home-cred {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.cred-item {
  display: grid;
  gap: 2px;
}

.cred-item strong {
  font-size: 16px;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}

.cred-item span {
  font-size: 12px;
  color: #86868b;
}

.cred-divider {
  width: 1px;
  height: 28px;
  background: rgba(0, 0, 0, 0.08);
}

.home-aside {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.home-preview {
  position: relative;
  height: clamp(160px, 28vh, 260px);
  animation: riseIn 0.85s ease 0.08s both;
}

.preview-device {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.2)),
    linear-gradient(135deg, rgba(58, 109, 246, 0.08), rgba(120, 180, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 60px rgba(29, 29, 31, 0.08);
  overflow: hidden;
}

.preview-stack {
  position: absolute;
  inset: 0;
}

.preview-card {
  position: absolute;
  width: min(240px, 68%);
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 16px 40px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.preview-card:nth-child(1) {
  top: 22px;
  left: 10%;
  transform: rotate(-3.5deg);
  animation: floatA 7s ease-in-out infinite;
}

.preview-card:nth-child(2) {
  top: 78px;
  right: 6%;
  transform: rotate(2.8deg);
  animation: floatB 8s ease-in-out infinite;
}

.preview-card:nth-child(3) {
  bottom: 18px;
  left: 16%;
  transform: rotate(1.2deg);
  animation: floatC 6.5s ease-in-out infinite;
}

.preview-card .pc-top {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.preview-card .pc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d2d2d7;
}

.preview-card .pc-dot:nth-child(1) {
  background: #ff5f57;
}
.preview-card .pc-dot:nth-child(2) {
  background: #febc2e;
}
.preview-card .pc-dot:nth-child(3) {
  background: #28c840;
}

.preview-card .pc-title {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
}

.preview-card .pc-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #6e6e73;
}

.preview-card .pc-bars {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.preview-card .bar {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(58, 109, 246, 0.22), rgba(58, 109, 246, 0.04));
}

.preview-card .bar.w1 {
  width: 88%;
}
.preview-card .bar.w2 {
  width: 64%;
}
.preview-card .bar.w3 {
  width: 76%;
}

.preview-card .pc-code {
  margin-top: 10px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #3a6df6;
  font-variant-numeric: tabular-nums;
}

.preview-card-code {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(237, 243, 255, 0.9));
}

@keyframes floatA {
  0%,
  100% {
    transform: rotate(-4deg) translateY(0);
  }
  50% {
    transform: rotate(-4deg) translateY(-10px);
  }
}
@keyframes floatB {
  0%,
  100% {
    transform: rotate(3deg) translateY(0);
  }
  50% {
    transform: rotate(3deg) translateY(12px);
  }
}
@keyframes floatC {
  0%,
  100% {
    transform: rotate(1.5deg) translateY(0);
  }
  50% {
    transform: rotate(1.5deg) translateY(-8px);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-panel {
  width: 100%;
  padding: 22px 24px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 28px 70px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  animation: riseIn 0.75s ease 0.12s both;
  flex-shrink: 0;
}

.login-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #86868b;
  margin-bottom: 8px;
}

.login-panel h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: #1d1d1f;
}

.login-panel .stack {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.login-panel .stack label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #6e6e73;
}

.login-panel .input {
  height: 46px;
  border-radius: 14px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.login-panel .pwd-field .pwd-wrap {
  position: relative;
  display: block;
}

.login-panel .pwd-field .input {
  width: 100%;
  padding-right: 44px;
  box-sizing: border-box;
}

.login-panel .pwd-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #86868b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.login-panel .pwd-toggle:hover {
  color: #3a6df6;
  background: rgba(58, 109, 246, 0.08);
}

.login-panel .pwd-toggle svg {
  width: 18px;
  height: 18px;
}

.login-panel .pwd-toggle .icon-eye-off {
  display: none;
}

.login-panel .pwd-toggle[data-visible="1"] .icon-eye {
  display: none;
}

.login-panel .pwd-toggle[data-visible="1"] .icon-eye-off {
  display: block;
}

.login-panel .input:focus {
  box-shadow: inset 0 0 0 1.5px #3a6df6, 0 0 0 4px rgba(58, 109, 246, 0.12);
}

.login-panel .btn-primary {
  height: 46px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
  box-shadow: 0 12px 28px rgba(58, 109, 246, 0.28);
}

.login-share-title {
  margin: -4px 0 12px;
  font-size: 13px;
  color: #6e6e73;
  line-height: 1.45;
}

/* —— 分享工作室 —— */
.share-studio {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fbfbfd 0%, #f3f5f9 52%, #eef2f8 100%);
  color: #1d1d1f;
}

.share-studio-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(36px);
  z-index: 0;
}

.share-studio-orb-a {
  top: -160px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(58, 109, 246, 0.2), transparent 70%);
}

.share-studio-orb-b {
  bottom: -180px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(120, 170, 255, 0.16), transparent 70%);
}

.share-studio-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(251, 251, 253, 0.78);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.share-studio-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.share-studio-nav .brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(145deg, #7aa2ff, #3a6df6);
  box-shadow: 0 6px 14px rgba(58, 109, 246, 0.28);
}

.share-studio-nav .right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-studio-main {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 28px 72px;
  display: grid;
  gap: 28px;
}

.share-studio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.75fr);
  gap: 20px;
  align-items: stretch;
}

.share-studio-hero-copy {
  padding: 8px 4px;
}

.share-studio-hero-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: #1d1d1f;
}

.share-studio-lead {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: #6e6e73;
}

.share-studio-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.share-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(29, 29, 31, 0.04);
  font-size: 13px;
  color: #6e6e73;
}

.share-chip b {
  color: #1d1d1f;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.share-chip-accent {
  background: rgba(58, 109, 246, 0.1);
  border-color: rgba(58, 109, 246, 0.16);
  color: #3a6df6;
  font-weight: 600;
}

.share-studio-note {
  padding: 22px 22px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 40px rgba(29, 29, 31, 0.06);
  backdrop-filter: blur(16px);
}

.share-note-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #86868b;
}

.share-studio-note ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.share-studio-note li {
  position: relative;
  padding-left: 14px;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: #1d1d1f;
}

.share-studio-note li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a6df6;
}

.share-note-tip {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 12px;
  line-height: 1.5;
  color: #86868b;
}

.share-studio-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.share-studio-list-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.share-studio-list-head span {
  font-size: 13px;
  color: #86868b;
}

.share-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.share-project-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.92));
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 16px 40px rgba(29, 29, 31, 0.06);
  text-decoration: none;
  color: inherit;
  transition: 0.22s ease;
}

.share-project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(29, 29, 31, 0.1);
  border-color: rgba(58, 109, 246, 0.28);
}

.share-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.share-card-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(58, 109, 246, 0.1);
  color: var(--card-accent, #3a6df6);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.share-project-card h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: #1d1d1f;
}

.share-project-card > p {
  margin: 10px 0 0;
  flex: 1;
  font-size: 13px;
  line-height: 1.55;
  color: #6e6e73;
}

.share-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 12px;
  color: #86868b;
}

.share-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--card-accent, #3a6df6);
}

.share-project-card:hover .share-card-cta {
  color: #2e5ad4;
}

@media (max-width: 860px) {
  .share-studio-hero {
    grid-template-columns: 1fr;
  }
}

.login-panel .error {
  color: #f3423c;
  font-size: 12px;
  min-height: 18px;
}

.home-footer {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 28px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #86868b;
  letter-spacing: 0.01em;
}

.home-footer .footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c7c7cc;
}

/* —— 登录后控制台 —— */
.studio-dash,
.dash {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #fbfbfd 0%, #f3f5f9 52%, #eef2f8 100%);
  overflow: hidden;
  color: #1d1d1f;
}

.studio-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(36px);
  z-index: 0;
}

.studio-orb-a {
  top: -160px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(58, 109, 246, 0.2), transparent 70%);
}

.studio-orb-b {
  bottom: -180px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(120, 170, 255, 0.14), transparent 70%);
}

.studio-nav,
.dash-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(251, 251, 253, 0.78);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.studio-nav .brand,
.dash-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}

.studio-nav .brand-mark,
.dash-header .brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(145deg, #7aa2ff, #3a6df6);
  box-shadow: 0 6px 14px rgba(58, 109, 246, 0.28);
}

.studio-nav .right,
.dash-header .right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.studio-main {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 28px 72px;
  display: grid;
  gap: 28px;
}

.studio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.75fr);
  gap: 20px;
  align-items: stretch;
}

.studio-hero-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.studio-lead {
  margin: 12px 0 0;
  max-width: 28em;
  font-size: 16px;
  line-height: 1.55;
  color: #6e6e73;
}

.studio-hero-aside {
  padding: 22px 22px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 40px rgba(29, 29, 31, 0.06);
  backdrop-filter: blur(16px);
}

.studio-hero-aside ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.studio-hero-aside li {
  position: relative;
  padding-left: 14px;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.studio-hero-aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a6df6;
}

.studio-section {
  display: grid;
  gap: 16px;
}

.studio-section-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.studio-section-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #86868b;
}

.studio-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.studio-project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 18px 18px 0;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.92));
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 16px 40px rgba(29, 29, 31, 0.06);
  transition: 0.22s ease;
}

.studio-project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(29, 29, 31, 0.1);
  border-color: rgba(58, 109, 246, 0.28);
}

.studio-project-card:has(input:checked) {
  border-color: rgba(58, 109, 246, 0.42);
  background: linear-gradient(180deg, #f7f9ff, #fff);
  box-shadow: 0 18px 42px rgba(58, 109, 246, 0.1);
}

.studio-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #86868b;
  cursor: pointer;
  user-select: none;
}

.studio-check input {
  width: 16px;
  height: 16px;
  accent-color: #3a6df6;
  cursor: pointer;
}

.studio-project-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding-bottom: 18px;
  color: inherit;
  text-decoration: none;
}

.studio-project-link h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.studio-project-link > p {
  margin: 10px 0 0;
  flex: 1;
  font-size: 13px;
  line-height: 1.55;
  color: #6e6e73;
}

.studio-project-link:hover h3,
.studio-project-link:hover .share-card-cta {
  color: #3a6df6;
}

.studio-share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(29, 29, 31, 0.05);
}

.studio-share-bar-copy {
  display: grid;
  gap: 4px;
}

.studio-share-bar-copy strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.studio-share-bar-copy span {
  font-size: 12px;
  color: #86868b;
}

.studio-share-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.studio-share-bar-actions .input {
  width: min(280px, 100%);
  height: 42px;
  border-radius: 12px;
}

.studio-share-bar-actions .btn-primary {
  height: 42px;
  border-radius: 12px;
  padding: 0 18px;
  box-shadow: 0 10px 24px rgba(58, 109, 246, 0.24);
}

.studio-pack-list {
  display: grid;
  gap: 14px;
}

.studio-pack-card {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 14px 34px rgba(29, 29, 31, 0.05);
}

.studio-pack-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.studio-pack-names {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
}

.studio-pack-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.studio-pack-code {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.studio-pack-code span {
  font-size: 12px;
  color: #86868b;
}

.studio-pack-code .code {
  font-size: 28px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: #3a6df6;
  font-variant-numeric: tabular-nums;
}

.studio-pack-url {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f5f7fb;
  color: #6e6e73;
  font-size: 12px;
  word-break: break-all;
}

.studio-empty {
  padding: 28px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(0, 0, 0, 0.08);
  color: #86868b;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 860px) {
  .studio-hero {
    grid-template-columns: 1fr;
  }
}

.dash-glow {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 109, 246, 0.16), transparent 68%);
  pointer-events: none;
  filter: blur(10px);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  font-size: 12px;
  color: #6e6e73;
}

.dash-main {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 28px 64px;
  display: grid;
  gap: 20px;
}

.dash-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding: 8px 4px 4px;
}

.dash-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86868b;
}

.dash-hero h1 {
  margin: 0;
  font-size: 40px;
  letter-spacing: -0.04em;
  color: #1d1d1f;
}

.dash-sub {
  margin: 10px 0 0;
  max-width: 28em;
  font-size: 15px;
  line-height: 1.5;
  color: #6e6e73;
}

.dash-mini-stats {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(16px);
}

.dash-mini-stats > div {
  min-width: 72px;
  padding: 8px 12px;
  text-align: center;
}

.dash-mini-stats strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: #1d1d1f;
  font-variant-numeric: tabular-nums;
}

.dash-mini-stats span {
  font-size: 11px;
  color: #86868b;
}

.panel {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.045);
  backdrop-filter: blur(12px);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.025em;
  color: #1d1d1f;
}

.panel-head .hint {
  font-size: 13px;
  color: #86868b;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.project-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  background: #fff;
  transition: 0.22s ease;
}

.project-item:hover {
  transform: translateY(-2px);
  border-color: rgba(58, 109, 246, 0.28);
  box-shadow: 0 16px 36px rgba(29, 29, 31, 0.08);
}

.project-item:has(input:checked) {
  border-color: rgba(58, 109, 246, 0.45);
  background: linear-gradient(180deg, #f7f9ff, #fff);
}

.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.project-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.04);
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.project-check {
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
  cursor: pointer;
}

.project-check input {
  width: 16px;
  height: 16px;
  accent-color: #3a6df6;
  cursor: pointer;
}

.project-body {
  min-width: 0;
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-body:hover .name {
  color: #3a6df6;
}

.project-body:hover .project-open {
  color: #2e5ad4;
}

.project-item .name {
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.01em;
}

.project-item .desc {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: #6e6e73;
}

.project-item .foot {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.project-item .project-open {
  font-size: 13px;
  font-weight: 500;
}

.share-bar {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.share-bar .input {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  height: 42px;
  border-radius: 14px;
}

.share-bar .btn {
  height: 42px;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(58, 109, 246, 0.22);
}

.pack-list {
  display: grid;
  gap: 12px;
}

.pack-item {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 12px;
  background: #fbfbfd;
}

.pack-title {
  font-size: 15px;
  color: #1d1d1f;
  letter-spacing: -0.01em;
}

.pack-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pack-item .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
}

.pack-item .code {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #3a6df6;
  font-variant-numeric: tabular-nums;
}

.pack-item .url {
  font-size: 12px;
  color: #6e6e73;
  word-break: break-all;
}

.muted {
  color: #86868b;
  font-size: 12px;
}

.share-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f5f5f7;
}

.share-card {
  width: min(420px, 100%);
  padding: 28px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px);
}

.share-card h1 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}

.share-projects {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 24px 48px;
}

.share-projects h1 {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: #1d1d1f;
}

.share-projects .grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.share-projects .card {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: 0.2s ease;
}

.share-projects .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.share-projects .card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #1d1d1f;
}

.share-projects .card p {
  margin: 0;
  font-size: 13px;
  color: #6e6e73;
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
    gap: 24px;
    min-height: 0;
  }
  .home-preview {
    height: clamp(140px, 26vh, 220px);
  }
  .home-cred {
    gap: 12px;
  }
  .cred-divider {
    display: none;
  }
  .dash-hero h1 {
    font-size: 32px;
  }
  .dash-mini-stats {
    width: 100%;
    justify-content: space-between;
  }
}

/* 矮屏：压缩装饰区，保证登录卡片完整可见 */
@media (max-height: 820px) {
  .home-nav {
    padding-top: 14px;
  }
  .home-hero {
    min-height: 0;
    align-items: start;
    padding-top: 20px;
    padding-bottom: 16px;
    gap: 24px;
  }
  .home-preview {
    height: 150px;
  }
  .login-panel {
    padding: 18px 20px 16px;
  }
  .login-panel h2 {
    font-size: 22px;
  }
  .login-panel .stack {
    gap: 10px;
    margin-top: 14px;
  }
  .login-panel .input,
  .login-panel .btn-primary {
    height: 42px;
  }
}

@media (max-height: 700px) {
  .home-preview {
    display: block;
    height: 120px;
  }
  .preview-card {
    padding: 10px 12px;
  }
  .preview-card .pc-code {
    font-size: 22px;
    margin-top: 6px;
  }
  .preview-card .pc-bars {
    gap: 6px;
    margin-top: 8px;
  }
  .preview-card .bar {
    height: 5px;
  }
}
