/* STORAGE DARK — 个人主页第一版 */

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

:root {
  --bg: #0e0e0d;
  --surface: #171716;
  --thumb: #23221f;
  --ink: #f1eee7;
  --ink-2: #bbb5aa;
  --ink-3: #817b71;
  --line: rgba(241, 238, 231, 0.14);
  --line-2: rgba(241, 238, 231, 0.32);
  --grid: rgba(241, 238, 231, 0.055);
  --accent: #ff5a2e;
  --accent-soft: rgba(255, 90, 46, 0.14);
  --deep: #080808;
  --deep-ink: #f1eee7;
  --sans: "Helvetica Neue", "Neue Haas Grotesk", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Consolas", "Liberation Mono", Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(18px, 5vw, 76px);
}

html { color-scheme: dark; font-size: 16px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  padding-bottom: 34px;
  background:
    radial-gradient(1100px 540px at 72% -8%, #24211c 0%, rgba(241, 239, 233, 0) 58%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.gridlines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--pad);
  background: rgba(14, 14, 13, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; }
.mark { width: 9px; height: 9px; background: var(--accent); }
.top-meta { font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; color: var(--ink-3); }
.top-link { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; padding: 6px 0; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.top-link:hover { color: var(--accent); border-color: var(--accent); }
.top-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.top-actions .top-link { margin-left: 0; }

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
  gap: clamp(32px, 6vw, 90px);
  align-items: end;
  padding: clamp(46px, 7vw, 84px) 0 clamp(30px, 4vw, 44px);
}
.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.tick { width: 7px; height: 7px; background: var(--accent); flex: none; }
.slash { color: var(--ink-3); }
.hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 12vw, 9rem);
  line-height: 0.88;
  font-weight: 800;
  letter-spacing: -0.06em;
  word-break: break-word;
}
.hero h1::after {
  content: "";
  display: inline-block;
  width: 0.12em;
  height: 0.12em;
  margin-left: 0.1em;
  background: var(--accent);
}
.tagline {
  margin: 24px 0 0;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.8;
  color: var(--ink-2);
}
.intro {
  max-width: 34em;
  margin: 12px 0 0;
  font-size: 0.9rem;
  line-height: 1.95;
  color: var(--ink-3);
}

.stats { border-top: 1px solid var(--ink); }
.stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.stat span { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.18em; color: var(--ink-3); }
.stat b { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats-note { margin: 14px 0 0; font-family: var(--mono); font-size: 9px; line-height: 1.9; color: var(--ink-3); }

.rule { height: 1px; background: var(--ink); }

/* materials */
.materials { padding: 22px 0 clamp(48px, 7vw, 84px); }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.sec-no { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; color: var(--accent); }
.sec-head h2 { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: 0.02em; }
.sec-head p { margin: 0 0 0 auto; font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: var(--ink-3); }

.filelist { border-top: 1px solid var(--line-2); }
.fhead, .frow {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 74px 74px 84px 30px;
  gap: 14px;
  align-items: center;
}
.fhead {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.frow {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.16s, padding-left 0.2s var(--ease);
}
.frow:hover { background: rgba(241, 238, 231, 0.045); padding-left: 6px; }
.fno { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: var(--ink-3); transition: color 0.2s; }
.frow:hover .fno { color: var(--accent); }
.fname { min-width: 0; font-size: 0.96rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fext, .fsize, .fdate { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.08em; color: var(--ink-2); }
.farrow { text-align: right; font-size: 12px; color: var(--ink-3); transition: color 0.2s, transform 0.2s var(--ease); }
.frow:hover .farrow { color: var(--accent); transform: translate(2px, -2px); }

.empty {
  border: 1px dashed var(--line-2);
  padding: clamp(36px, 6vw, 64px) 24px;
  text-align: center;
}
.empty-code { margin: 0 0 14px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em; color: var(--accent); }
.empty h3 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.04em; }
.empty p:last-child { margin: 0; font-size: 0.9rem; color: var(--ink-2); }

/* server */
.server { padding: 0 0 clamp(48px, 7vw, 84px); }
.live-meta { display: flex; align-items: center; gap: 8px; }
.live-meta .led { background: var(--accent); }
.server-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.85fr);
  gap: 14px;
  margin-bottom: 14px;
}
.server-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3.2vw, 36px);
  background: var(--deep);
  color: var(--deep-ink);
}
.server-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
  background-image:
    linear-gradient(rgba(232, 229, 222, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 229, 222, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
}
.server-card > * { position: relative; }
.server-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: rgba(232, 229, 222, 0.55);
}
.server-badge,
.power-badge {
  flex: none;
  padding: 4px 7px;
  border: 1px solid rgba(239, 74, 33, 0.55);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}
.server-badge.is-offline,
.power-badge.is-offline { color: var(--ink-3); border-color: var(--line-2); }
.server-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: clamp(36px, 5vw, 64px) 0 clamp(26px, 4vw, 42px);
}
.server-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: rgba(232, 229, 222, 0.5);
}
.server-title h3 {
  margin: 10px 0 0;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.045em;
  word-break: break-word;
}
.server-uptime { flex: none; text-align: right; }
.server-uptime span {
  display: block;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: rgba(232, 229, 222, 0.5);
}
.server-uptime b {
  display: block;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.server-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 26px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(232, 229, 222, 0.16);
}
.server-facts div { min-width: 0; }
.server-facts dt {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: rgba(232, 229, 222, 0.45);
}
.server-facts dd {
  margin: 6px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(232, 229, 222, 0.86);
}
.power-card {
  padding: clamp(24px, 3.2vw, 36px);
  border: 1px solid var(--line-2);
  background: var(--surface);
}
.server-card-head--light { color: var(--ink-3); }
.power-badge { color: var(--accent); border-color: rgba(239, 74, 33, 0.55); }
.power-main {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 28px);
  margin: clamp(24px, 3vw, 36px) 0 20px;
}
.battery-dial {
  --value: 0%;
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: clamp(100px, 13vw, 132px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--accent) var(--value), rgba(241, 238, 231, 0.1) 0);
  transition: background 0.5s var(--ease);
}
.battery-dial::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--surface);
}
.battery-dial > div { position: relative; text-align: center; }
.battery-dial b {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.battery-dial span {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.power-copy { min-width: 0; }
.power-copy p:first-child {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.power-detail {
  margin: 9px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.8;
  color: var(--ink-3);
}
.power-rows { border-top: 1px solid var(--line); }
.power-rows div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.power-rows span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.power-rows b {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.sleep-note {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.9;
  color: var(--ink-3);
}
.sleep-note b { color: var(--ink); font-weight: 500; }
.meter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.meter { border-top: 1px solid var(--ink); padding-top: 14px; }
.meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.meter-head span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.meter-head b {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.meter-track {
  height: 4px;
  margin: 12px 0 9px;
  background: var(--line);
}
.meter-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.5s var(--ease);
}
.meter p {
  margin: 0;
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

/* prank */
.prank {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin: 0 0 clamp(48px, 7vw, 84px);
  padding: clamp(28px, 5vw, 56px);
  background: var(--deep);
  color: var(--deep-ink);
}
.prank-kicker { margin: 0 0 14px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; color: rgba(232, 229, 222, 0.55); }
.prank h2 { margin: 0; font-size: clamp(2rem, 5vw, 4rem); line-height: 1; font-weight: 800; letter-spacing: -0.05em; }
.prank-sub { margin: 14px 0 0; font-size: 0.92rem; color: rgba(232, 229, 222, 0.62); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid currentColor;
  background: transparent;
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  transition: transform 0.18s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: #ff5a2e; border-color: #ff5a2e; }

/* status */
.statusbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  background: var(--deep);
  color: rgba(232, 229, 222, 0.7);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
}
.status-item { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.status-item b { font-weight: 400; color: rgba(232, 229, 222, 0.95); letter-spacing: 0.1em; }
.led { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: led 2.4s ease-in-out infinite; }

/* prank overlay */
.prank-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--deep);
  color: var(--deep-ink);
}
.prank-overlay[hidden] { display: none; }
.prank-card { width: min(560px, 100%); }
.prank-step { margin: 0 0 18px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em; color: var(--accent); }
.prank-card h2 { margin: 0; font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 0.95; font-weight: 800; letter-spacing: -0.05em; }
.prank-line { height: 2px; background: rgba(232, 229, 222, 0.18); margin: 28px 0 16px; }
.prank-line i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.5s var(--ease); }
.prank-text { margin: 0 0 28px; font-size: 0.95rem; line-height: 1.8; color: rgba(232, 229, 222, 0.72); }
.prank-card .btn { border-color: rgba(232, 229, 222, 0.4); color: var(--deep-ink); }
.prank-card .btn:hover { border-color: var(--deep-ink); background: rgba(255, 255, 255, 0.08); }

@keyframes led { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .stats { max-width: 420px; }
  .server-grid { grid-template-columns: 1fr; }
  .meter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prank { grid-template-columns: 1fr; align-items: start; }
  .prank .btn { justify-self: start; }
}

@media (max-width: 700px) {
  :root { --pad: 18px; }
  .gridlines { background-size: calc(100% / 6) 100%; }
  .topbar { height: 54px; }
  .top-meta { display: none; }
  .top-actions { gap: 13px; }
  .top-actions .top-link { font-size: 9px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(3.1rem, 17vw, 5.4rem); }
  .fhead, .frow { grid-template-columns: 34px minmax(0, 1fr) 58px 26px; gap: 10px; }
  .fhead span:nth-child(4), .fhead span:nth-child(5), .fsize, .fdate { display: none; }
  .fhead span:last-child { display: block; }
  .frow { padding: 14px 0; }
  .server-title { align-items: flex-start; flex-direction: column; gap: 18px; }
  .server-uptime { text-align: left; }
  .server-facts { grid-template-columns: 1fr; gap: 14px; }
  .meter-grid { grid-template-columns: 1fr; }
  .status-mid { display: none; }
  .prank { padding: 26px 20px; }
}
