:root {
  --red: #e81935;
  --red-hot: #ff4761;
  --red-deep: #aa061b;
  --ink: #261115;
  --muted: #7a555e;
  --line: rgba(255, 255, 255, .62);
  --card: rgba(255,255,255,.64);
  --glass-strong: rgba(255,255,255,.78);
  --shadow: 0 18px 44px rgba(174, 11, 32, .13);
}

html[data-theme] {
  --ink: #fff4f6;
  --muted: #e7aeb8;
  --line: rgba(255,255,255,.13);
  --card: rgba(41, 12, 20, .82);
  --glass-strong: rgba(60, 18, 28, .82);
  --shadow: 0 22px 58px rgba(0, 0, 0, .28);
  background:
    linear-gradient(135deg, rgba(255, 71, 97, .16) 0%, transparent 34%),
    linear-gradient(180deg, #18070c 0%, #2a0d15 56%, #120508 100%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  min-height: 100%;
  background:
    linear-gradient(145deg, rgba(255, 91, 116, .24) 0%, rgba(255,255,255,0) 36%),
    linear-gradient(215deg, rgba(255, 222, 97, .22) 0%, rgba(255,255,255,0) 30%),
    linear-gradient(180deg, #fff1f4 0%, #fffafa 54%, #fff3f5 100%);
}
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.page {
  width: min(100%, 414px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 12px 13px 24px;
  position: relative;
}
.topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.top-socials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-link, .clock, .theme-toggle {
  min-height: 39px;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(174, 11, 32, .08);
  backdrop-filter: blur(18px) saturate(1.25);
}
.top-link {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.clock {
  display: grid;
  place-items: center;
  min-width: 55px;
  color: var(--red-deep);
  font-size: 12px;
  font-weight: 950;
}
.theme-toggle {
  width: 39px;
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 0;
  position: relative;
}
.theme-toggle::before {
  content: "";
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: inset 6px 0 0 rgba(255,255,255,.96);
}
html[data-theme] .theme-toggle::before {
  background: #ffd84b;
  box-shadow: 0 0 18px rgba(255, 216, 75, .34);
}
html[data-theme] .profile-card::after {
  background:
    linear-gradient(90deg, rgba(36,8,16,.72), rgba(36,8,16,.42) 54%, rgba(255,217,74,.12)),
    linear-gradient(135deg, rgba(255,255,255,.08), transparent 52%);
}
html[data-theme] .platform-link {
  background: rgba(41, 12, 20, .76);
  color: var(--ink);
}
html[data-theme] .hint {
  background: linear-gradient(135deg, rgba(232, 25, 53, .2), rgba(41, 12, 20, .72));
}
.logo {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  overflow: hidden;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo svg { width: 70%; height: 70%; display: block; }
.logo-instagram {
  background: transparent;
  color: #fff;
  border-radius: 7px;
}
.logo-instagram svg { width: 100%; height: 100%; }
.logo-telegram {
  background: #1d9bf0;
  color: #fff;
}
.logo-official {
  background: #111;
  color: #fff;
}
.logo-tangxin {
  background: #111;
  color: #fff;
}

.profile-card {
  margin: 14px 0 12px;
  min-height: 143px;
  display: grid;
  grid-template-columns: 102px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 28px;
  background: var(--card);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.2);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.profile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,255,255,.86), rgba(255,255,255,.38) 54%, rgba(255,217,74,.18)),
    linear-gradient(135deg, rgba(255,255,255,.18), transparent 52%);
}
.avatar-wrap {
  width: 92px;
  height: 92px;
  padding: 4px;
  border-radius: 999px;
  background: conic-gradient(from 210deg, #ffd84b, #ff6378, var(--red), #ffd84b);
  box-shadow: 0 16px 34px rgba(232,25,53,.28);
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  border: 4px solid #fff;
}
.profile-copy h1 {
  margin: 0;
  font-size: 31px;
  line-height: 1.06;
  font-weight: 950;
}
.english {
  margin-top: 5px;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.showcase {
  position: relative;
  aspect-ratio: 760 / 428;
  margin-bottom: 12px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #ffe1e7, #ff6a7d 48%, #7f0618);
  border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(18px) saturate(1.2);
  cursor: pointer;
}
.showcase-svg,
.showcase-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}
.showcase-svg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.showcase-svg svg { transform: scale(1.002); }
.showcase-svg [data-showcase-index] { cursor: pointer; }
.showcase-svg::after {
  content: "";
  position: absolute;
  inset: -24%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(105deg, transparent 28%, rgba(255,255,255,.88) 45%, rgba(255,63,91,.26) 52%, transparent 66%),
    radial-gradient(circle at 34% 50%, rgba(255,255,255,.56), transparent 28%);
  transform: translateX(-70%) skewX(-13deg) scale(1.05);
}
.showcase-svg.is-flashback::after {
  animation: flashbackSweep .72s cubic-bezier(.2,.7,.18,1) both;
}
.showcase-svg.is-flashback svg {
  animation: flashbackFrame .72s cubic-bezier(.2,.7,.18,1) both;
}
.showcase-main {
  filter: drop-shadow(0 18px 24px rgba(70, 0, 12, .24));
  animation: showcaseIn .58s cubic-bezier(.2,.75,.2,1) both;
}
.showcase-side {
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 12px 18px rgba(70, 0, 12, .2));
  opacity: .92;
  transition: opacity .18s ease, transform .18s ease;
}
.side-a { transform: rotate(3deg) translateY(1px); }
.side-b { transform: rotate(-4deg) translateX(-4px); opacity: .82; }
.side-c { transform: rotate(2deg) translateX(6px); opacity: .74; }
.showcase-side:hover { opacity: 1; transform: scale(1.025); }
.showcase-dot {
  fill: rgba(255,255,255,.76);
  stroke: rgba(255,255,255,.7);
  stroke-width: 2;
  cursor: pointer;
}
.showcase-dot.active {
  fill: var(--red);
  stroke: #fff;
}
.showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02) 0%, transparent 62%, rgba(0,0,0,.18) 100%);
  pointer-events: none;
}
.showcase-label, .showcase-copy {
  position: absolute;
  z-index: 2;
  color: #fff;
}
.showcase-label {
  left: 14px;
  top: 12px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  color: var(--red-deep);
  font-size: 12px;
  font-weight: 950;
  backdrop-filter: blur(12px);
}
.showcase-copy {
  left: 16px;
  bottom: 14px;
  text-shadow: 0 4px 18px rgba(0,0,0,.36);
  display: none;
}
.showcase-copy strong { display: block; font-size: 20px; font-weight: 950; }
.showcase-copy span { font-size: 12px; font-weight: 800; }
.svg-sweep {
  transform-origin: center;
  animation: svgSweep 7s ease-in-out infinite alternate;
}
@keyframes svgSweep {
  from { transform: translateX(-90px); opacity: .45; }
  to { transform: translateX(80px); opacity: .9; }
}
@keyframes showcaseIn {
  0% { opacity: .4; transform: scale(1.035) translateX(18px); filter: saturate(1.4) contrast(1.08); }
  45% { opacity: .92; transform: scale(.992) translateX(-5px); }
  100% { opacity: 1; transform: scale(1) translateX(0); filter: saturate(1) contrast(1); }
}
@keyframes flashbackSweep {
  0% { opacity: 0; transform: translateX(-72%) skewX(-13deg) scale(1.05); }
  18% { opacity: .95; }
  58% { opacity: .32; }
  100% { opacity: 0; transform: translateX(68%) skewX(-13deg) scale(1.05); }
}
@keyframes flashbackFrame {
  0% { filter: brightness(1) saturate(1); transform: scale(1.018); }
  18% { filter: brightness(1.42) saturate(1.28); transform: scale(1.035); }
  100% { filter: brightness(1) saturate(1); transform: scale(1.002); }
}

.intro-card, .category-group, .gallery-section {
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.18);
}
.intro-card {
  margin-bottom: 12px;
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.52;
  font-weight: 760;
}
.intro-card p { margin: 0; }
.intro-card p + p { margin-top: 4px; }
.hint {
  margin: 0 0 12px;
  padding: 10px 13px;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(232, 25, 53, .12), rgba(255,255,255,.54));
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 850;
  backdrop-filter: blur(16px);
}
.platforms { display: grid; gap: 10px; }
.platforms.actions .platform-link { margin-top: 0; }
.category-group { padding: 12px; }
.category-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .4px;
}
.platform-link {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding: 0 12px 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  box-shadow: 0 13px 26px rgba(174,11,32,.1);
  font-size: 15px;
  font-weight: 950;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
  backdrop-filter: blur(18px) saturate(1.15);
}
.platform-link:first-of-type { margin-top: 0; }
.platform-link.primary {
  background: rgba(255,255,255,.72);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 13px 26px rgba(174,11,32,.1);
}
.platform-link:hover, .top-link:hover {
  transform: translateY(-3px) scale(1.045);
  filter: brightness(1.055);
  box-shadow: 0 20px 42px rgba(174,11,32,.18);
}
.platform-name {
  min-width: 0;
  flex: 1 1 auto;
}
.enter-badge {
  flex: 0 0 auto;
  min-width: 46px;
  padding: 7px 10px;
  border-radius: 999px;
  text-align: center;
  background: rgba(232, 25, 53, .09);
  color: var(--red-deep);
  font-size: 12px;
  font-weight: 950;
}
.platform-link.primary .enter-badge {
  background: rgba(232, 25, 53, .09);
  color: var(--red-deep);
}
.platform-link .arrow {
  flex: 0 0 auto;
  opacity: .82;
  font-size: 18px;
  line-height: 1;
}

.gallery-section {
  margin-top: 13px;
  padding: 13px 0 14px;
  overflow: hidden;
}
.gallery-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 0 13px 10px;
}
.gallery-head strong { font-size: 15px; font-weight: 950; }
.gallery-head span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,211,60,.3);
  color: #8a3d0a;
  font-size: 11px;
  font-weight: 950;
}
.gallery-window { overflow: hidden; }
.gallery-track {
  width: max-content;
  display: flex;
  gap: 9px;
  padding: 0 13px;
  animation: galleryScroll 38s linear infinite;
}
.gallery-shot {
  width: 118px;
  aspect-ratio: 3/4;
  flex: 0 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: #ffe1e6;
  cursor: zoom-in;
  box-shadow: 0 12px 26px rgba(174, 11, 32, .16);
}
.gallery-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.gallery-hint {
  margin: 10px 13px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}
.is-hidden { display: none !important; }
@keyframes galleryScroll { to { transform: translateX(-50%); } }

.footer {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(20,0,5,.88);
  backdrop-filter: blur(10px);
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: min(96vw, 720px);
  max-height: 82vh;
  border-radius: 22px;
  object-fit: contain;
}
.lightbox-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  font-size: 30px;
}
.lightbox-close { top: 18px; right: 18px; font-size: 24px; }
.lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-count {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.admin-page {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 18px;
}
.login-card, .admin-card, .save-bar, .admin-header {
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.login-card {
  max-width: 420px;
  margin: 12vh auto 0;
  padding: 20px;
}
.login-card h1, .admin-header h1, .admin-card h2 { margin: 0; }
.login-card p, .admin-header p, .form-note {
  color: var(--muted);
  font-size: 13px;
}
.login-card input, .admin-card input, .admin-card textarea, .admin-card select {
  width: 100%;
  margin-top: 6px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
}
.login-card button, .admin-actions button, .admin-form button, .ghost-btn {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}
.ghost-btn {
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: var(--red-deep);
  border: 1px solid var(--line);
}
.admin-shell { display: grid; gap: 14px; }
.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px;
}
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-form { display: grid; gap: 14px; }
.admin-card { padding: 16px; display: grid; gap: 12px; }
.admin-card label { display: grid; gap: 4px; font-size: 13px; font-weight: 850; }
.section-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.platform-editor { display: grid; gap: 12px; }
.platform-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.62);
}
.platform-row .wide { grid-column: 1 / -1; }
.platform-row .inline { display: flex; align-items: center; gap: 8px; }
.save-bar {
  position: sticky;
  bottom: 12px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px;
}

@media (max-width: 560px) {
  .platform-row { grid-template-columns: 1fr; }
  .admin-header { align-items: flex-start; flex-direction: column; }
}
