/* 鱼悦电竞 · 陪玩展示站 —— 浅色蓝白国风（对齐 joyfish.site 主站风格） */
:root {
  --bg: #eaf2fb;
  --bg-2: #f6fbff;
  --bg-soft: #ffffff;
  --card: rgba(255, 255, 255, .72);
  --card-hi: rgba(255, 255, 255, .94);
  --line: rgba(47, 89, 135, .16);
  --text: #1d2c3b;
  --muted: #62748a;
  --brand: #2c6cae;          /* 主蓝 */
  --brand-2: #4a9ed8;        /* 亮蓝 */
  --gold: #bd8a2c;           /* 暖金 */
  --gold-soft: #f4e6c4;
  --cyan: #2b9bbf;
  --purple: #7b6cc4;
  --pink: #cf6fa0;
  --green: #2f9e6f;
  --amber: #c98a2d;
  --red: #d2584f;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(47, 89, 135, .14);
  --font-display: "STKaiti", "KaiTi", "楷体", "Noto Serif SC", "Ma Shan Zheng", "Songti SC", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 楷体仅用于品牌与标题，呼应主站国风 */
.brand, h1, h2, h3, .hero h1, .logo-text { font-family: var(--font-display); }

body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(60vw 40vw at 10% -8%, rgba(74, 158, 216, .22), transparent 60%),
    radial-gradient(55vw 40vw at 94% 2%, rgba(189, 138, 44, .14), transparent 60%),
    radial-gradient(50vw 42vw at 50% 108%, rgba(44, 108, 174, .12), transparent 60%);
  pointer-events: none; z-index: 0;
}

.wrap { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 14px 60px; }
a { color: var(--brand); text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .5px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; font-size: 18px;
  box-shadow: 0 4px 12px rgba(44, 108, 174, .3);
}
.brand small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0; font-family: var(--font-body); }
.topbar nav { display: flex; gap: 6px; }
.topbar nav a {
  color: var(--muted); font-size: 13px; padding: 6px 10px; border-radius: 999px;
  border: 1px solid transparent;
}
.topbar nav a:hover, .topbar nav a.on { color: var(--brand); background: rgba(44, 108, 174, .1); border-color: var(--line); }

/* ---------- Hero ---------- */
.hero { padding: 26px 4px 18px; text-align: center; }
.hero h1 {
  margin: 0 0 8px; font-size: 27px; line-height: 1.3;
  background: linear-gradient(100deg, var(--brand), var(--gold) 55%, var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { margin: 0 auto; max-width: 460px; color: var(--muted); font-size: 13.5px; }

/* ---------- 筛选 ---------- */
.filters { margin: 8px 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid var(--line); background: var(--card);
  color: var(--muted); padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; cursor: pointer; transition: .16s;
}
.chip:hover { color: var(--text); border-color: rgba(44, 108, 174, .35); }
.chip.on {
  color: #fff; background: linear-gradient(120deg, var(--brand), var(--brand-2));
  border-color: transparent; font-weight: 600;
}
.filter-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.filter-row .label { font-size: 12px; color: var(--muted); min-width: 52px; }
.search {
  flex: 1 1 160px; min-width: 140px;
  background: var(--card-hi); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; outline: none;
}
.search:focus { border-color: var(--brand); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: transform .18s, border-color .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(44, 108, 174, .45); box-shadow: var(--shadow); }

.card .cover { position: relative; aspect-ratio: 4 / 3; background: #e6eef8; overflow: hidden; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .cover .ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-size: 40px; font-weight: 800; color: rgba(47, 89, 135, .35);
  background: linear-gradient(135deg, #dcebf8, #eaf3fc);
}
.badge {
  position: absolute; left: 10px; top: 10px;
  font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 600;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(6px); border: 1px solid var(--line); color: var(--muted);
}
.badge.on { color: #fff; background: var(--green); border-color: transparent; }
.badge.off { color: var(--muted); }
.price {
  position: absolute; right: 10px; bottom: 10px;
  font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  color: #4a3410; background: linear-gradient(120deg, var(--gold-soft), #ecd28a);
  border: 1px solid rgba(189, 138, 44, .4);
}
.card .body { padding: 12px 13px 14px; background: var(--bg-soft); }
.card .name { display: flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 700; }
.card .name .voice { font-size: 11.5px; font-weight: 500; color: var(--brand); background: rgba(44, 108, 174, .12); padding: 2px 8px; border-radius: 999px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tag {
  font-size: 11.5px; color: var(--muted); padding: 3px 8px; border-radius: 8px;
  background: rgba(47, 89, 135, .06); border: 1px solid var(--line);
}
.tag.game { color: #6a5bc4; border-color: rgba(123, 108, 196, .3); background: rgba(123, 108, 196, .1); }
.tag.char { color: #c15a93; border-color: rgba(207, 111, 160, .3); background: rgba(207, 111, 160, .1); }
.card .intro { margin-top: 9px; font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.empty { text-align: center; color: var(--muted); padding: 60px 10px; font-size: 14px; }
.empty .big { font-size: 40px; display: block; margin-bottom: 10px; opacity: .5; }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 60; display: none;
  background: rgba(20, 40, 66, .42); backdrop-filter: blur(6px);
  overflow-y: auto; padding: 16px 0 40px;
}
.modal.show { display: block; }
.modal .sheet {
  max-width: 560px; margin: 0 auto; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(20, 40, 66, .28);
}
.modal .head { position: relative; aspect-ratio: 16 / 10; background: #e6eef8; }
.modal .head img { width: 100%; height: 100%; object-fit: cover; }
.modal .head .ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 60px; font-weight: 800; color: rgba(47, 89, 135, .3); background: linear-gradient(135deg, #dcebf8, #eaf3fc); }
.close {
  position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .82); color: var(--text);
  font-size: 18px; cursor: pointer; display: grid; place-items: center;
}
.modal .content { padding: 16px 18px 22px; }
.modal h2 { margin: 0 0 4px; font-size: 20px; }
.modal .sub { color: var(--muted); font-size: 12.5px; margin-bottom: 12px; }
.section { margin-top: 16px; }
.section h3 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .5px; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 520px) { .thumbs { grid-template-columns: repeat(4, 1fr); } }
.thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; cursor: pointer; border: 1px solid var(--line); }
.intro-text { white-space: pre-wrap; font-size: 13.5px; color: #3a4a5c; }

/* ---------- 按钮 / 表单 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--card-hi); color: var(--text);
  padding: 9px 16px; border-radius: 12px; font-size: 14px; cursor: pointer; transition: .16s;
  font-family: inherit;
}
.btn:hover { border-color: rgba(44, 108, 174, .35); }
.btn.primary {
  border-color: transparent; color: #fff; font-weight: 700;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 16px rgba(44, 108, 174, .28);
}
.btn.violet { border-color: transparent; color: #fff; font-weight: 700; background: linear-gradient(120deg, var(--purple), #a594e6); }
.btn.danger { color: var(--red); border-color: rgba(210, 88, 79, .35); background: rgba(210, 88, 79, .1); }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.sm { padding: 6px 11px; font-size: 12.5px; border-radius: 10px; }
.btn.block { width: 100%; }

label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=password], input[type=number], textarea, select {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--text); border-radius: 12px; padding: 10px 12px; font-size: 14px;
  outline: none; font-family: inherit;
}
input:focus, textarea:focus, select:focus { border-color: var(--brand); background: rgba(44, 108, 174, .05); }
textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
input[type=file] { display: none; }

.card-panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin-bottom: 14px;
}
.card-panel h3 { margin: 0 0 12px; font-size: 15px; }
.card-panel .hint { font-size: 12px; color: var(--muted); margin: -4px 0 12px; }

/* ---------- 登录 ---------- */
.auth-shell { min-height: 100dvh; display: grid; place-items: center; padding: 20px; position: relative; z-index: 1; }
.auth-box { width: 100%; max-width: 380px; }
.auth-box .title { text-align: center; margin-bottom: 20px; }
.auth-box .title .logo {
  width: 56px; height: 56px; border-radius: 17px; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; font-size: 27px;
  box-shadow: 0 8px 20px rgba(44, 108, 174, .3);
}
.auth-box .title h1 { margin: 0; font-size: 22px; }
.auth-box .title p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.alert { padding: 10px 13px; border-radius: 12px; font-size: 13px; margin-bottom: 14px; border: 1px solid; }
.alert.err { color: #a23a31; background: rgba(210, 88, 79, .1); border-color: rgba(210, 88, 79, .3); }
.alert.ok { color: #1f7d57; background: rgba(47, 158, 111, .1); border-color: rgba(47, 158, 111, .3); }
.alert.warn { color: #9a6a17; background: rgba(201, 138, 45, .1); border-color: rgba(201, 138, 45, .3); }
.hide { display: none !important; }

/* ---------- 后台 ---------- */
.tabs { display: flex; gap: 6px; margin: 14px 0; flex-wrap: wrap; }
.tabs button {
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  padding: 8px 14px; border-radius: 999px; font-size: 13px; cursor: pointer; font-family: inherit;
}
.tabs button.on { color: #fff; background: linear-gradient(120deg, var(--brand), var(--brand-2)); border-color: transparent; font-weight: 600; }

.row-item {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  border: 1px solid var(--line); background: var(--card);
  border-radius: 14px; padding: 11px 12px; margin-bottom: 10px;
}
.row-item .ava { width: 50px; height: 50px; border-radius: 12px; object-fit: cover; background: #e6eef8; flex: none; }
.row-item .ava.ph { display: grid; place-items: center; font-weight: 800; color: rgba(47, 89, 135, .35); }
.row-item .info { flex: 1 1 150px; min-width: 130px; }
.row-item .info .n { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.row-item .info .m { font-size: 12px; color: var(--muted); margin-top: 2px; }
.row-item .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-start; flex-basis: 100%; margin-top: 4px; }
@media (min-width: 620px) {
  .row-item .actions { flex-basis: auto; margin-top: 0; justify-content: flex-end; }
}

.pill { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.ok { color: #fff; background: var(--green); border-color: transparent; font-weight: 600; }
.pill.warn { color: #4a3410; background: var(--gold-soft); border-color: rgba(189, 138, 44, .4); font-weight: 600; }
.pill.off { color: var(--muted); }

.diff { display: grid; gap: 10px; }
@media (min-width: 640px) { .diff { grid-template-columns: 1fr 1fr; } }
.diff .box { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: rgba(255, 255, 255, .6); }
.diff .box h4 { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); }
.diff .box.new { border-color: rgba(47, 158, 111, .4); background: rgba(47, 158, 111, .08); }
.kv { display: flex; gap: 8px; font-size: 12.5px; padding: 3px 0; }
.kv .k { color: var(--muted); min-width: 62px; flex: none; }
.kv .v { word-break: break-all; }

.uploader { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.avatar-preview {
  width: 84px; height: 84px; border-radius: 18px; object-fit: cover;
  background: #e6eef8; border: 1px solid var(--line); flex: none;
}
.avatar-preview.ph { display: grid; place-items: center; font-size: 28px; font-weight: 800; color: rgba(47, 89, 135, .3); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
@media (min-width: 520px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
.photo-cell { position: relative; }
.photo-cell img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.photo-cell .del {
  position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  border: none; background: rgba(20, 40, 66, .72); color: #fff; font-size: 13px; cursor: pointer; line-height: 1;
}
.audio-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
audio { width: 100%; max-width: 320px; height: 38px; }
footer.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 10px 10px; }
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: rgba(255, 255, 255, .97); border: 1px solid var(--line); color: var(--text);
  padding: 10px 18px; border-radius: 999px; font-size: 13.5px; z-index: 200;
  opacity: 0; transition: .22s; pointer-events: none; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
