:root{
  --accent: 200,200,255;
  --accent2: 180,220,255;
  --text: #111;
  --text-soft: rgba(0,0,0,0.65);
  --text-strong: #000;
}

* { margin:0; padding:0; box-sizing:border-box; font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,sans-serif; }

body {
  min-height:100vh; display:flex; flex-direction:column; justify-content:center; align-items:center;
  padding:60px 60px 100px;
  background-size:cover; background-position:center; overflow:hidden;
  animation:fadeIn 1.2s ease;
  perspective:1600px;
  /* 性能优化：添加背景色作为 fallback */
  background-color:#f0f0f0;
}

.footer {
  position:absolute;
  left:50%;
  bottom:72px;
  transform:translateX(-50%);
  z-index:20;
  width:max-content;
  padding:10px 18px;
  border-radius:999px;
  text-align:center;
  font-size:13px;
  color:rgba(255,255,255,0.95);
  text-shadow:0 1px 2px rgba(0,0,0,0.25);
  background:rgba(18, 18, 18, 0.14);
  backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,0.18);
}

body::before {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(circle at 20% 30%, rgba(var(--accent),0.35), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(var(--accent2),0.28), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(var(--accent),0.18), transparent 60%);
  filter: blur(110px);
  animation: float 28s ease-in-out infinite alternate;
}

body::after {
  content:""; position:absolute; inset:0;
  background-image:url('https://grainy-gradients.vercel.app/noise.svg');
  opacity:0.08;
}

@keyframes float {
  from { transform:translateY(-40px) scale(1); }
  to { transform:translateY(40px) scale(1.08); }
}

.overlay {
  position:absolute; inset:0;
  /* 性能优化：减少 backdrop-filter 复杂度 */
  backdrop-filter:blur(30px) saturate(140%);
  background:rgba(255,255,255,0.16);
  /* 性能优化：硬件加速 */
  transform: translateZ(0);
}

.container {
  position:relative; z-index:2;
  display:flex; flex-direction:column; align-items:center;
  gap:42px;
  padding:85px 100px;
  border-radius:48px;
  width:min(1060px, 92vw);
  min-height:500px;

  /* 性能优化：减少 backdrop-filter 复杂度 */
  backdrop-filter:blur(30px) saturate(140%);
  background:linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0.28));
  /* 性能优化：硬件加速 */
  will-change: transform;

  box-shadow:
    0 80px 200px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.9);

  border:1px solid rgba(255,255,255,0.8);

  transform-style:preserve-3d;
  transition:transform .18s ease-out;
  overflow:hidden;

  transform:scale(0.85);
}

.container::before{
  content:""; position:absolute; inset:0; border-radius:inherit;
  background:linear-gradient(130deg,
    rgba(var(--accent),0.35),
    transparent 30%,
    transparent 70%,
    rgba(var(--accent2),0.35));
  mix-blend-mode:overlay;
  opacity:0.6;
  pointer-events:none;
}

.profile { 
  display:flex; flex-direction:column; align-items:center; gap:18px;
  transform: translateZ(40px);
}

.avatar {
  width:150px; height:150px; border-radius:50%; overflow:hidden;
  border:3px solid rgba(255,255,255,0.9);
  box-shadow:0 25px 60px rgba(0,0,0,0.22);
  transition:transform .4s ease;
  transform: translateZ(70px);
}

.avatar:hover { transform:scale(1.06) translateZ(90px); }

.avatar img { width:100%; height:100%; object-fit:cover; }

.name {
  font-size:34px; font-weight:800;
  color:var(--text-strong);
  letter-spacing:0.6px;
  text-shadow:0 2px 10px rgba(0,0,0,0.15);
  transform: translateZ(60px);
}

.intro-line {
  max-width:520px;
  font-size:15px;
  color:rgba(0,0,0,0.56);
  line-height:1.7;
  text-align:center;
  transform: translateZ(54px);
}

.daily-quote {
  text-align:center;
  max-width:600px;
  padding:6px 20px 0;
  transform: translateZ(50px);
}

.quote-label {
  margin-bottom:10px;
  font-size:11px;
  font-weight:700;
  letter-spacing:0.18em;
  color:rgba(0,0,0,0.36);
  text-transform:uppercase;
}

.quote-text {
  font-size:16px;
  font-style:italic;
  color:var(--text-soft);
  line-height:1.6;
  margin-bottom:8px;
}

.quote-author {
  font-size:14px;
  color:var(--text-soft);
  opacity:0.8;
}

.links {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:22px;
  width:100%; max-width:950px;
  transform: translateZ(50px);
}

.link-btn {
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
  text-decoration:none;
  gap:10px;
  min-height:110px;
  padding:22px 26px;
  border-radius:24px;
  color:#0b0b0c;

  /* 性能优化：减少 backdrop-filter 复杂度 */
  backdrop-filter:blur(20px) saturate(140%);
  background:rgba(255,255,255,0.98);

  box-shadow:0 18px 50px rgba(0,0,0,0.18);
  border:1px solid rgba(0,0,0,0.06);

  position:relative; overflow:hidden;
  text-shadow:0 1px 0 rgba(255,255,255,0.6);

  will-change: transform;

  transition:
    transform .35s cubic-bezier(.2,.9,.25,1.15),
    box-shadow .35s cubic-bezier(.2,.9,.2,1),
    background .25s ease;
}

.link-btn::after {
  content:""; position:absolute; inset:0;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,0.9),transparent);
  transform:translateX(-120%);
  transition:0.9s;
}

.link-btn:hover::after { transform:translateX(120%); }

.link-btn:hover {
  transform:translateY(-8px) scale(1.035);
  background:#ffffff;
  box-shadow:0 35px 90px rgba(0,0,0,0.28);
}

.link-btn:active {
  transform:translateY(-1px) scale(0.94);
  box-shadow:0 12px 28px rgba(0,0,0,0.18);
  transition: transform .12s cubic-bezier(.3,1.5,.5,1);
}

.link-title {
  font-size:18px;
  font-weight:800;
  letter-spacing:0.4px;
}

.link-desc {
  font-size:13px;
  line-height:1.6;
  color:rgba(0,0,0,0.48);
  font-weight:600;
}

@keyframes fadeIn {
  from {opacity:0; transform:scale(.94);} 
  to {opacity:1; transform:scale(1);} 
}

/* ===== 移动端适配（仅新增）===== */
@media (max-width:768px) {
  body{
    justify-content:flex-start;
    padding:10px 14px 16px;
    overflow-y:auto;
    perspective:none;
    background-image:none !important;
    background-color:#edf3fb;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    text-rendering:optimizeLegibility;
    /* 性能优化：禁用动画 */
    animation:none;
  }

  body::before {
    display:none;
  }

  body::after {
    display:none;
  }

  .container {
    width:min(100%, 420px);
    min-height:auto;
    padding:22px 18px 16px;
    border-radius:26px;
    gap:18px;
    transform:none !important;
    transform-style:flat;
    will-change:auto;
    transition:box-shadow .2s ease;
    /* 性能优化：减少 backdrop-filter 复杂度 */
    backdrop-filter:blur(20px) saturate(120%);
  }

  .overlay {
    transform:none;
    backdrop-filter:blur(18px) saturate(118%);
    background:rgba(255,255,255,0.14);
  }

  .profile {
    gap:10px;
    transform:none;
  }

  .avatar {
    width:104px; height:104px;
    transform:none;
  }

  .avatar:hover { transform:none; }

  .name {
    font-size:22px;
    transform:none;
  }

  .intro-line {
    font-size:13px;
    max-width:280px;
    transform:none;
  }

  .daily-quote {
    max-width:100%;
    padding:0 6px 0;
    transform:none;
  }

  .quote-label {
    margin-bottom:6px;
    font-size:10px;
  }

  .quote-text {
    font-size:15px;
    line-height:1.65;
    margin-bottom:4px;
  }

  .quote-author {
    font-size:13px;
  }

  .name,
  .quote-text,
  .quote-author,
  .link-btn,
  .link-title,
  .link-desc,
  .footer {
    text-shadow:none;
  }

  .links {
    grid-template-columns:1fr;
    gap:10px;
    transform:none;
  }

  .link-btn {
    padding:14px 16px;
    min-height:76px;
    border-radius:20px;
    backdrop-filter:blur(10px) saturate(115%);
    transition:none;
  }

  .link-title {
    font-size:16px;
  }

  .link-desc {
    font-size:12px;
    line-height:1.55;
  }

  .link-btn::after {
    display:none;
  }

  .link-btn:hover,
  .link-btn:active {
    transform:none;
    box-shadow:0 18px 50px rgba(0,0,0,0.18);
    background:rgba(255,255,255,0.98);
  }

  .footer {
    position:static;
    transform:none;
    width:fit-content;
    max-width:min(100%, 420px);
    margin:8px auto 0;
    padding:8px 14px;
    font-size:12px;
    line-height:1.35;
  }
}

/* ===== 低性能设备适配 ===== */
@media (max-width:480px) {
  .container {
    background:linear-gradient(135deg, rgba(255,255,255,0.66), rgba(255,255,255,0.32));
    backdrop-filter:blur(18px) saturate(118%);
  }

  .overlay {
    background:rgba(255,255,255,0.12);
    backdrop-filter:blur(16px) saturate(115%);
  }

  .link-btn {
    background:rgba(255,255,255,0.9);
    backdrop-filter:blur(8px) saturate(112%);
  }

  .footer {
    max-width:calc(100vw - 28px);
    font-size:11px;
    padding:8px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation:none !important; transition:none !important; }
}

.dark-bg .link-btn{
  background:rgba(255,255,255,0.92);
  color:#000;
  border:1px solid rgba(0,0,0,0.08);
  text-shadow:none;
}

.light-bg .link-btn{
  background:rgba(255,255,255,0.88);
  color:#000;
}
