/* =========================================================
   一只小格OvO 的小站 —— 样式
   设计语言参考 StarBot（奶白底 / 淡金主色 / 暖白卡片）
   ========================================================= */

:root {
  --bg: #eeece6;
  --bg-2: #f6f3ec;
  --surface: #fffdf9;
  --surface-2: #fbfaf6;
  --soft: #f3f1eb;
  --line: #e5e2da;
  --line-2: #ece8df;
  --tx: #273142;
  --tx-2: #4a5568;
  --muted: #86909e;
  --gold: #a66a18;
  --gold-2: #c08b26;
  --tint: #fff7e7;
  --tint-2: #fffaf0;
  --danger: #d34d64;
  --good: #329374;
  --radius: 18px;
  --shadow: 0 8px 30px rgba(112, 85, 42, 0.07), 0 1px 3px rgba(112, 85, 42, 0.04);
  --shadow-hover: 0 14px 40px rgba(112, 85, 42, 0.12), 0 2px 6px rgba(112, 85, 42, 0.06);
  --font-display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-body: Inter, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--tx);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  background:
    radial-gradient(ellipse at 7% 4%, #f2d59a70, transparent 43%),
    radial-gradient(ellipse at 96% 88%, #cbd9e57a, transparent 46%),
    linear-gradient(135deg, #f2eee4, var(--bg) 50%, #e8edf1);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* 细点纹理 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(#c5af8a42 0.7px, transparent 0.7px);
  background-size: 24px 24px;
  mask-image: linear-gradient(150deg, #0006, transparent 70%);
  z-index: 0;
}

a { color: inherit; }

::selection { background: #fde6ad; color: #79430e; }

button, input, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------------------------------------------------
   顶部导航
   --------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fffdf7d9;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 18px #73562906;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: none;
}

.brand-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #f8da85, #ffc28a);
}

.brand-avatar.fallback {
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #7b5724;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--tx);
}

.nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  color: #6b7686;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.nav a:hover { background: var(--soft); color: var(--tx); }

.status-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b9bec8;
}

.status-pill.live {
  color: #b84358;
  border-color: #f0c3cd;
  background: #fff1f4;
}
.status-pill.live .dot {
  background: var(--danger);
  animation: pulse 1.9s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(211, 77, 100, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(211, 77, 100, 0); }
  100% { box-shadow: 0 0 0 0 rgba(211, 77, 100, 0); }
}

/* ---------------------------------------------------------
   首屏
   --------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 44px;
  align-items: center;
  padding: 66px 0 52px;
}

.hero-avatar {
  position: relative;
  width: 210px;
  height: 210px;
  flex: none;
}

.ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from 20deg, #f6d984, #ffb86b, #ffe3a3, #f6d984);
  opacity: 0.9;
  animation: spin 18s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
}

@keyframes spin { to { transform: rotate(360deg); } }

.avatar-img,
.avatar-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface);
  box-shadow: 0 10px 30px rgba(112, 85, 42, 0.14);
  background: linear-gradient(150deg, #ffe9b8, #ffd6a8 45%, #fff3d6);
}

.avatar-fallback {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 74px;
  color: #8d6220;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #a0a8b3;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-name {
  margin: 14px 0 10px;
  font-size: clamp(38px, 5.6vw, 58px);
  line-height: 1.12;
  letter-spacing: 1px;
  font-weight: 700;
  color: #232c3a;
}

.hero-tagline {
  margin: 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.9;
  color: #6b7686;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.18s, box-shadow 0.2s, border-color 0.18s, transform 0.12s;
}

.btn-primary {
  color: #694618;
  background: linear-gradient(105deg, #f8da85, #ffd37d, #ffc28a);
  border-color: #f5cc79;
  box-shadow: 0 4px 12px #d09e2120;
}
.btn-primary:hover { background: linear-gradient(105deg, #f9d16c, #ffcc68, #ffb876); box-shadow: 0 6px 16px #d09e2130; }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  color: #5c6676;
  background: #fff;
  border-color: #e4e7ec;
  box-shadow: 0 2px 3px #16233402;
}
.btn-ghost:hover { background: #fffaf0; border-color: #e6c792; color: #9e6719; }

.qq-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 7px 8px 7px 15px;
  border-radius: 999px;
  border: 1px dashed #dcc9a4;
  background: var(--tint-2);
  font-size: 13px;
  color: #8a7452;
}
.qq-chip b {
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 1.5px;
  color: #6d4c1a;
}
.qq-copy {
  padding: 4px 11px;
  border: 1px solid #efdfc0;
  border-radius: 999px;
  background: #fff;
  color: #9e6719;
  font-size: 12px;
}
.qq-copy:hover { background: #fff4dd; }

/* ---------------------------------------------------------
   公告
   --------------------------------------------------------- */

.announce {
  margin: 0 0 10px;
  padding: 13px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: 14px;
  border: 1px solid #f0dfbb;
  background: var(--tint);
  font-size: 13px;
  color: #8a6f42;
  box-shadow: 0 4px 16px #70552a08;
}
.announce .tag {
  flex: none;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #f0dfbb;
  color: var(--gold);
  margin-top: 1px;
}

/* ---------------------------------------------------------
   区块
   --------------------------------------------------------- */

.section { padding: 52px 0; border-top: 1px solid var(--line-2); }

.section-head { margin-bottom: 24px; }

.section-title {
  margin: 10px 0 0;
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #2b3442;
}

.section-desc { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------------------------------------------------------
   关于
   --------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 26px;
  align-items: start;
}

.about-text p {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 2.05;
  color: #556172;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  float: left;
  margin: 5px 10px 0 0;
  color: var(--gold);
}

.about-side { display: grid; gap: 10px; }

.fact {
  padding: 15px 18px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(112, 85, 42, 0.03);
}
.fact .k { font-size: 11px; letter-spacing: 2px; color: var(--muted); }
.fact .v { margin-top: 5px; font-size: 13.5px; color: var(--tx-2); }

/* ---------------------------------------------------------
   直播日程
   --------------------------------------------------------- */

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.day-card {
  padding: 16px 13px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 116px;
  box-shadow: 0 2px 8px rgba(112, 85, 42, 0.03);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.day-card:hover { transform: translateY(-3px); border-color: #d9cfb9; box-shadow: var(--shadow); }

.day-name { font-size: 11.5px; letter-spacing: 1px; color: var(--muted); }

.day-card .day-time {
  margin-top: 9px;
  font-size: 20px;
  font-weight: 600;
  color: #35465b;
}

.day-card .day-title { margin-top: 5px; font-size: 12px; color: var(--muted); line-height: 1.5; }

.day-card.today {
  border-color: #e6c37c;
  background: linear-gradient(180deg, #fff7e4, #fffdf8);
}
.day-card.today .day-name { color: var(--gold); }

.day-card.rest { opacity: 0.66; }
.day-card.rest .day-time { font-size: 14px; color: var(--muted); font-weight: 500; }

/* ---------------------------------------------------------
   点歌台
   --------------------------------------------------------- */

.request-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.song-form { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.song-form .field { margin-bottom: 9px; }

.kind-tag {
  display: inline-block;
  font-size: 10px;
  line-height: 1.7;
  padding: 0 5px;
  border-radius: 5px;
  background: var(--soft);
  color: #8a7452;
  border: 1px solid var(--line-2);
  vertical-align: 1px;
  font-weight: 500;
}
.kind-tag.kind-sing { background: #fff1f4; color: #b84358; border-color: #f0c3cd; }

.media-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.panel { padding: 24px; }

.field { margin-bottom: 13px; }

.label { display: block; font-size: 12px; color: #7c8796; margin: 0 2px 7px; letter-spacing: 0.4px; }

.input,
.select,
.textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid #e2e6ec;
  background: #fbfcfd;
  color: var(--tx);
  font-size: 14px;
  outline: none;
  box-shadow: 0 1px 2px #24385202;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.input::placeholder,
.textarea::placeholder { color: #aeb5bf; }
.input:hover,
.select:hover,
.textarea:hover { border-color: #cbd2dc; background: #fff; }
.input:focus,
.select:focus,
.textarea:focus {
  background: #fff;
  border-color: #e1b866;
  box-shadow: 0 0 0 3px #f6cf791b;
}

.textarea { resize: vertical; min-height: 96px; line-height: 1.7; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.hint { margin: 10px 2px 0; font-size: 12px; color: #99a1ad; line-height: 1.7; }

.btn-block { width: 100%; margin-top: 4px; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-title { margin: 0; font-size: 15px; font-weight: 600; color: #344052; }

.count-badge {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--soft);
  color: #8d95a3;
}

.queue { list-style: none; margin: 0; padding: 0; }

.song {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--surface-2);
  margin-bottom: 7px;
  transition: border-color 0.18s, background 0.18s;
}
.song:last-child { margin-bottom: 0; }
.song:hover { border-color: var(--line); background: #fff; }

.rank {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #8a7452;
  background: var(--soft);
  border: 1px solid var(--line-2);
}
.song:nth-child(1) .rank { color: #694618; background: linear-gradient(135deg, #f8da85, #ffc28a); border-color: #f0cd80; }
.song:nth-child(2) .rank { color: #6d6a5f; background: linear-gradient(135deg, #f0eee6, #e6e2d6); border-color: #e2ddcf; }
.song:nth-child(3) .rank { color: #7d5c42; background: linear-gradient(135deg, #f6e3d2, #eccfae); border-color: #e8d3b4; }

.song-main { flex: 1; min-width: 0; }

.song-name {
  font-size: 14px;
  font-weight: 600;
  color: #2f3a49;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-meta { margin-top: 3px; font-size: 11.5px; color: var(--muted); }

.song-link {
  flex: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  text-decoration: none;
  color: var(--gold);
  border: 1px solid #efdab7;
  background: var(--tint-2);
  transition: background 0.18s, border-color 0.18s;
}
.song-link:hover { background: var(--tint); border-color: #e6c792; }

.votes {
  flex: none;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.empty {
  margin: 8px 0;
  padding: 26px 12px;
  text-align: center;
  font-size: 13px;
  color: #9aa3af;
  border: 1px dashed #e0e5ec;
  border-radius: 12px;
  background: #fafbfc;
}

/* ---------------------------------------------------------
   歌单（热门 / 已播）
   --------------------------------------------------------- */

.tabs {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fffdf8d9;
  box-shadow: 0 4px 16px #70552a08;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab-highlight {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 10px;
  background: #fff4d9;
  box-shadow: inset 0 0 0 1px #f3dfb6;
  transition: transform 0.36s cubic-bezier(0.2, 0.7, 0.2, 1), width 0.36s cubic-bezier(0.2, 0.7, 0.2, 1), height 0.36s cubic-bezier(0.2, 0.7, 0.2, 1);
  display: none;
}

.tab {
  position: relative;
  z-index: 1;
  padding: 8px 19px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #7a8492;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}
.tab:hover { color: #3d4654; background: var(--soft); }
.tab.active { color: #a06a1d; font-weight: 600; }
.tab.active:hover { background: transparent; }

.songbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(226px, 1fr));
  gap: 11px;
  margin-top: 18px;
}

.media-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px 16px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(112, 85, 42, 0.03);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.media-card:hover { transform: translateY(-3px); border-color: #e6c792; box-shadow: var(--shadow); }

.media-card .idx { font-size: 10.5px; letter-spacing: 2px; color: #a0a8b3; }
.media-card .t { font-size: 14px; font-weight: 600; color: #2f3a49; }
.media-card .a { font-size: 11.5px; color: var(--muted); }

/* ---------------------------------------------------------
   留言墙
   --------------------------------------------------------- */

.wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 11px;
  margin-top: 18px;
}

.msg {
  padding: 16px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(112, 85, 42, 0.03);
}

.msg-head { display: flex; align-items: center; gap: 9px; }

.msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  flex: none;
  box-shadow: inset 0 0 0 1px #00000010;
}

.msg-name { font-size: 12.5px; font-weight: 600; color: #3d4654; }
.msg-time { margin-left: auto; font-size: 11px; color: #a0a8b3; }

.msg-text {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.85;
  color: #556172;
  word-break: break-word;
}

/* ---------------------------------------------------------
   链接
   --------------------------------------------------------- */

.links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(112, 85, 42, 0.03);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.link-card::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe6b34a, transparent 65%);
  opacity: 0;
  transition: opacity 0.3s;
}
.link-card:hover { transform: translateY(-3px); border-color: #e6c792; box-shadow: var(--shadow); }
.link-card:hover::after { opacity: 1; }

.link-icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 19px;
  background: var(--tint-2);
  border: 1px solid #f0e2c6;
}

.link-label { display: block; font-size: 14.5px; font-weight: 600; color: #2f3a49; }
.link-sub { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }

.link-arrow { margin-left: auto; color: #b9a37a; font-size: 17px; }

/* ---------------------------------------------------------
   页脚
   --------------------------------------------------------- */

.footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line-2);
  text-align: center;
  font-size: 12px;
  color: #9aa3af;
  line-height: 2;
}

/* ---------------------------------------------------------
   动效
   --------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ring { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------
   Toast
   --------------------------------------------------------- */

.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translate(-50%, -8px);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 50px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid #ead9b7;
  border-radius: 14px;
  box-shadow: 0 12px 40px #25354d28;
  font-size: 13.5px;
  color: #8c6a32;
  max-width: calc(100vw - 40px);
  z-index: 110;
  transition: opacity 0.22s, transform 0.22s;
}
.toast::before {
  content: "i";
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff4de;
  color: #bd9147;
  font-size: 12px;
  font-weight: 700;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad {
  background: #fff9fa;
  border-color: #edbbc7;
  color: #b94b66;
}
.toast.bad::before { content: "!"; background: #fbe2e9; color: #cb5976; }

/* ---------------------------------------------------------
   后台
   --------------------------------------------------------- */

.admin-header {
  padding: 34px 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-title {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #2b3442;
}

.admin-sub { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

.admin-bar { display: flex; gap: 9px; flex-wrap: wrap; margin: 6px 0 18px; }

.btn-sm { padding: 8px 15px; font-size: 12.5px; border-radius: 9px; }

.btn-danger {
  color: #b94b66;
  border: 1px solid #f1cbd2;
  background: #fff;
}
.btn-danger:hover { background: #fff1f3; border-color: #eab0bc; }

.tabs-bar {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fffdf8d9;
  box-shadow: 0 4px 16px #70552a08;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-bar::-webkit-scrollbar { display: none; }

.tabs-bar .tab { border-radius: 10px; padding: 8px 16px; }
.tabs-bar .tab.active { background: #fff4d9; box-shadow: inset 0 0 0 1px #f3dfb6; color: #a06a1d; }

.actions { display: flex; gap: 5px; flex: none; }

.icon-btn {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #e4e7ec;
  background: #fff;
  color: #6b7686;
  font-size: 12px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.icon-btn:hover { border-color: #e6c792; color: #9e6719; background: #fffaf0; }
.icon-btn.ok { color: var(--good); border-color: #c5e3d4; }
.icon-btn.ok:hover { background: #f4faf6; }
.icon-btn.danger { color: #c25b6e; border-color: #f1cbd2; }
.icon-btn.danger:hover { background: #fff3f5; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }

.schedule-editor { display: grid; gap: 8px; }
.sch-row { display: grid; grid-template-columns: 92px 108px 1fr 38px; gap: 8px; align-items: center; }

.avatar-preview {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--soft);
  flex: none;
}

.avatar-row { display: flex; align-items: center; gap: 14px; }

.upload-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: 9px;
  border: 1px dashed #d6cdb8;
  background: var(--surface-2);
  color: #7c8796;
  font-size: 12.5px;
  cursor: pointer;
}
.upload-btn:hover { border-color: #e6c792; color: #9e6719; background: #fffaf0; }
.upload-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.switch-row { display: flex; align-items: center; gap: 10px; }

.switch {
  position: relative;
  width: 40px;
  height: 23px;
  border-radius: 999px;
  background: #dce1e8;
  border: 1px solid #d3dae3;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex: none;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px #22334415;
  transition: transform 0.22s;
}
.switch.on { background: #edbc5d; border-color: #e6b454; }
.switch.on::after { transform: translateX(17px); }

.msg-admin {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 14px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  margin-bottom: 7px;
}
.msg-admin .body { flex: 1; min-width: 0; }
.msg-admin .who { font-size: 11.5px; color: var(--muted); }
.msg-admin .txt { margin-top: 5px; font-size: 13px; line-height: 1.75; color: #556172; word-break: break-word; }

.status-line { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------
   响应式
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding: 40px 0 38px; text-align: center; justify-items: center; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero-actions, .qq-chip { justify-content: center; }
  .hero-avatar { width: 172px; height: 172px; }
  .about-grid { grid-template-columns: 1fr; }
  .request-grid { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .sch-row { grid-template-columns: 80px 1fr 38px; }
  .sch-row .sch-title { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .header-inner { padding: 10px 16px; gap: 10px; }
  .brand-name { display: none; }
  .section { padding: 38px 0; }
  .hero-name { font-size: 36px; }
  .day-card { min-height: 100px; }
  .panel { padding: 18px; }
}
