/* 视觉方向：跟随官方的"梦幻淡紫"系（微博头像/公式照的薰衣草紫 + 白 + 星光）。
   颜色集中在 :root 变量里，调整色调只动这里。 */
:root {
  --bg: #faf8fe;
  --card: #ffffff;
  --text: #2b2734;
  --muted: #8b84a0;
  --line: #eae4f6;
  --accent: #a78bdb;        /* 薰衣草紫：chip、色块 */
  --accent-deep: #7d5fc7;   /* 深一档：文字高亮，保证对比度 */
  --accent-soft: #f3eefc;   /* 极淡紫：底色 */
  --grad: linear-gradient(120deg, #b9a3e8, #f0b9de); /* 淡紫→淡粉 */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* hidden 属性永远生效,防止被 display:flex/grid 类覆盖 */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
main section { scroll-margin-top: 82px; }

/* ---------- 固定顶部导航(参考日系偶像官网) ---------- */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 36px;
  background: rgba(250, 248, 254, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(167, 139, 219, 0.18);
  z-index: 90;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
/* Hero 大图上:透明底白字(参考日系官网),滚过后回到毛玻璃;
   加一条很淡的顶部渐变 scrim,白字压在公式照亮部(浅紫丝带等)也保持可读 */
.topnav.over-hero {
  background: linear-gradient(to bottom, rgba(43, 39, 52, 0.34), rgba(43, 39, 52, 0));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.topnav.over-hero .nav-logo,
.topnav.over-hero .nav-links .zh {
  color: #fff;
  text-shadow: 0 1px 10px rgba(43, 39, 52, 0.5);
}
.topnav.over-hero .nav-links .en {
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 8px rgba(43, 39, 52, 0.5);
}
.topnav.over-hero .nav-links a::after {
  background: #fff;
}
.nav-logo {
  font-family: "Apple Chancery", "Snell Roundhand", "Segoe Script", cursive, sans-serif;
  font-size: 2rem;
  color: var(--accent-deep);
  text-decoration: none;
  line-height: 1;
}
/* 链接组以页面中轴绝对居中(左侧 logo 不再把它挤偏) */
.nav-links {
  display: flex;
  gap: 30px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 2px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links .zh { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.14em; }
.nav-links .en {
  font-family: "Comfortaa", sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -3px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--accent-deep); }
.nav-links a:hover .en { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- 滚动渐入 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* Hero 信息区进场:各元素依次浮现 */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero-info > * { animation: rise 0.7s ease both; }
.hero-info > :nth-child(2) { animation-delay: 0.08s; }
.hero-info > :nth-child(3) { animation-delay: 0.16s; }
.hero-info > :nth-child(4) { animation-delay: 0.22s; }
.hero-info > :nth-child(5) { animation-delay: 0.28s; }
.hero-info > :nth-child(6) { animation-delay: 0.34s; }
.hero-info > :nth-child(7) { animation-delay: 0.4s; }

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

body {
  background: linear-gradient(180deg, #f1eafb 0%, var(--bg) 360px) no-repeat, var(--bg);
  color: var(--text);
  /* 成员照片墙用 100vw 通栏,100vw 含竖向滚动条宽度,这里兜住多出的几像素 */
  overflow-x: hidden;
  /* 偶像官网惯例(=LOVE/FRUITS ZIPPER):中文用干净黑体,
     数字/英文用圆润西文字体 Comfortaa 出可爱感 */
  font-family: "Comfortaa", -apple-system, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

main { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* ---------- 全屏 Hero(参考日系偶像官网首屏) ---------- */
.hero-full {
  position: relative;
  /* 高度=照片按全宽等比高的 90%(顶部装饰裁掉一成,首屏能看到手写字大部分),
     照片贴底:往下拖一点名字就完整露出,不变形 */
  height: max(100vh, calc(100vw * 2116 / 3000 * 0.9));
  min-height: 540px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
.hero-full::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

/* ---------- Hero 信息区 ---------- */
.hero-info { max-width: 860px; margin: 0 auto; padding: 4px 20px 28px; text-align: center; }
/* 大标题是中文 catchphrase(照片里已有 RealizE 手写字);
   text-indent 补偿行尾字距,墨迹与眉题同轴 */
.hero-info h1 {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  color: var(--accent-deep);
  text-shadow: 0 2px 16px rgba(167, 139, 219, 0.4);
}
/* 眉题(属性小字)在上,大标语在下——海报式层级 */
.tagline {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  /* 副标含拉丁字母(IdolProductions),疏排适度,免得字母被拉散 */
  letter-spacing: 0.16em;
  /* 桌面端:眉题首字「七」与下方大标语首字「和」左缘对齐(实测校准) */
  text-indent: -17px;
  margin-bottom: 10px;
}
/* 副标各段不内部换行,窄屏只在分隔符处折行 */
.tg-seg { white-space: nowrap; }
/* 地址末段(场地名+楼层)整体不换行 */
.nbk { white-space: nowrap; }
.sub { color: var(--text); font-size: 1rem; line-height: 1.9; margin-top: 14px; }

.facts {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.fact-unit { display: inline-flex; align-items: center; gap: 20px; white-space: nowrap; }
.fact { display: inline-flex; align-items: baseline; gap: 8px; }
.f-label { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.14em; }
.f-value { font-size: 0.95rem; font-weight: 600; }
.f-sep { width: 1px; height: 14px; background: var(--line); align-self: center; }

/* 官方链接:圆角 pill 按钮 */
#group-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* NEXT LIVE:左侧大日期块 + 右侧场地信息 */
.next-show {
  margin: 30px auto 0;
  max-width: 560px;
  background: linear-gradient(135deg, #ffffff 40%, #f4eefd);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 28px 22px;
  box-shadow: 0 10px 32px rgba(167, 139, 219, 0.14);
}
.next-label {
  font-family: "Comfortaa", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.next-flex { display: flex; align-items: center; gap: 26px; margin-top: 12px; text-align: left; }
.next-datebox {
  flex-shrink: 0;
  text-align: center;
  padding-right: 26px;
  border-right: 1px solid var(--line);
}
.next-date-num {
  font-family: "Comfortaa", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent-deep);
  line-height: 1;
}
.next-date-sub {
  font-family: "Comfortaa", sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 6px;
}
.next-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 600;
}
.next-badge.today {
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  color: #fff;
}
.next-venuebox { min-width: 0; }
.next-venue { font-size: 1.05rem; font-weight: 600; }
.next-address { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.next-note { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.next-empty { color: var(--muted); margin-top: 10px; }
.show-venue { color: var(--muted); font-size: 0.82rem; margin-right: 8px; }
.member-links { margin-top: 8px; font-size: 0.85rem; }
.member-links a { color: var(--accent-deep); text-decoration: none; }
.member-links a:hover { text-decoration: underline; }
#group-links a {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--accent-deep);
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(167, 139, 219, 0.08);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
#group-links a:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(167, 139, 219, 0.2);
}
.link-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  vertical-align: -4px;
}
/* 品牌小图标:各平台官方 app 图标原样使用,统一 16px 基线对齐 + 小圆角 */
.wb-icon {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  margin-right: 5px;
  display: inline-block;
  border-radius: 3.5px;
}
/* emoji 图标与文字的间距,和 .wb-icon 的 4px 对齐 */
.link-emoji { margin-right: 4px; }
/* 小红书/抖音官方 logo 是方形色块,切个小圆角 */
.xhs-icon, .dy-icon { border-radius: 3px; }

/* 统计:去掉盒子,数字大写 + 竖线分隔 */
.stats { display: flex; justify-content: center; flex-wrap: wrap; margin: 6px 0 26px; }
.stat { padding: 2px 34px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-value {
  font-family: "Comfortaa", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent-deep);
  line-height: 1.1;
}
.stat-unit {
  font-family: -apple-system, "PingFang SC", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 4px;
}
.stat-label { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.1em; margin-top: 4px; }

/* ---------- 区块 ---------- */
section { margin: 48px 0; }
/* 区块标题统一居中(与 hero/信息区的居中语言一致,参考日系官网) */
h2 { font-size: 1.45rem; margin-bottom: 16px; text-align: center; }
h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad);
  margin: 4px auto 0;
}
/* 编辑页是工具页:标题豁免居中,回到左对齐 */
.edit-page h2 { text-align: left; }
.edit-page h2::after { margin-left: 0; }
.h2-sub { font-size: 0.85rem; font-weight: normal; color: var(--muted); margin-left: 8px; }
.h2-en {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.22em;
  margin-left: 6px;
  vertical-align: 3px;
}

/* ---------- 成员:参考 peel-the-apple.com/profile(居中大图,照片下名字,留白干净) ---------- */
.members {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  /* 比 860px 内容栏稍宽,让每张照片够大,但不撑满页面 */
  width: min(1120px, calc(100vw - 48px));
  margin-left: calc((100% - min(1120px, 100vw - 48px)) / 2);
  margin-top: 26px;
}
.member-card { text-align: center; transition: transform 0.2s ease; }
.member-card:hover { transform: translateY(-5px); }
.member-photo {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  box-shadow: 0 6px 22px rgba(167, 139, 219, 0.16);
}
.member-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 5 / 7;
  font-size: 4rem;
  border-radius: 8px;
  background: var(--accent-soft);
}
.member-name { font-weight: 700; font-size: 1.1rem; margin-top: 12px; }
.member-roman {
  font-family: "Comfortaa", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 2px;
}
.member-colorbar {
  width: 26px;
  height: 4px;
  border-radius: 2px;
  margin: 8px auto 0;
  /* 描边兜住浅色应援色(阿鱼的白色系),否则色条隐形 */
  box-shadow: inset 0 0 0 1px rgba(43, 39, 52, 0.14);
}
@media (max-width: 860px) {
  .members { grid-template-columns: repeat(2, 1fr); }
  /* 两列网格下末张孤行卡片(第 5 位)居中,不再贴左失衡;
     宽度=单列宽(50% 减半个 gap),和上面的卡片一样大 */
  .member-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 12px);
  }
}

/* ---------- 演出档案 ---------- */
.filters { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text);
}
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: 1px;
  box-shadow: 0 0 0 1px rgba(43, 39, 52, 0.08);
}

.shows {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  /* 约 10 行的高度,翻到条目少的页时下方内容不跳动 */
  min-height: 392px;
}
.show-row {
  display: grid;
  grid-template-columns: 72px 150px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.show-row:last-child { border-bottom: none; }
.show-row:hover { background: var(--accent-soft); }
.show-row.future { color: var(--muted); background: var(--bg); }
.show-row.special { background: var(--accent-soft); }
.show-n { color: var(--muted); font-size: 0.85rem; }
.show-row.future .show-n {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 999px;
  text-align: center;
  padding: 1px 0;
  font-size: 0.78rem;
}
.show-note {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag {
  background: var(--grad);
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 1px 9px;
  margin-right: 6px;
}
.show-lineup { display: flex; gap: 3px; }
.dot.absent { opacity: 0.22; filter: grayscale(1); }

@media (max-width: 560px) {
  .show-row { grid-template-columns: 60px 1fr auto; }
  .show-note { grid-column: 1 / -1; padding-left: 2px; }
  .show-note:empty { display: none; }
}

/* ---------- 成员详情弹窗 ---------- */
.member-card { cursor: pointer; }
.modal-mask[hidden] { display: none; }
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(43, 39, 52, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal {
  position: relative;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(43, 39, 52, 0.3);
  max-width: 1040px;
  width: 100%;
  /* 固定高度:每位成员的弹窗尺寸一致,简介过长时右侧内部滚动 */
  height: min(660px, 92vh);
}
.modal-nav {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  margin: 0 14px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent-deep);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(43, 39, 52, 0.2);
}
.modal-nav:hover { background: var(--accent); color: #fff; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: var(--accent-soft);
  color: var(--accent-deep);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  z-index: 1;
}
.modal-body { display: flex; gap: 28px; padding: 32px; height: 100%; box-sizing: border-box; }
.modal-photo {
  width: 380px;
  flex-shrink: 0;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(167, 139, 219, 0.25);
}
.modal-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-soft);
}
.ph-emoji { font-size: 3.4rem; }
.ph-text { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.1em; }
.modal-info { min-width: 0; flex: 1; overflow-y: auto; padding-right: 6px; }
/* 弹窗滚动条:细紫条,融入主题 */
.modal-info::-webkit-scrollbar { width: 6px; }
.modal-info::-webkit-scrollbar-track { background: transparent; }
.modal-info::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.modal-info::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.modal-info { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.modal-name { font-size: 1.7rem; font-weight: 700; }
.modal-roman { font-size: 0.95rem; font-weight: 400; color: var(--muted); letter-spacing: 0.06em; }
.catch-chip {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 999px;
  padding: 2px 10px;
  vertical-align: 4px;
  margin-left: 6px;
  /* 中性描边兜住浅色应援色(阿鱼的白色系),否则 chip 融进白底 */
  box-shadow: inset 0 0 0 1px rgba(43, 39, 52, 0.16);
}
.modal-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 6px 20px;
  margin-top: 10px;
}
.fact { font-size: 0.86rem; }
.fact-l { color: var(--muted); margin-right: 4px; }
.modal-bio {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 0.97rem;
  line-height: 1.95;
  letter-spacing: 0.02em;
}
.modal-bio p { margin-bottom: 6px; }
.bio-empty { color: var(--muted); }
.tr-btn {
  border: 1px solid var(--accent);
  background: var(--card);
  color: var(--accent-deep);
  border-radius: 6px;
  font-size: 0.72rem;
  padding: 0 6px;
  margin-left: 4px;
  cursor: pointer;
  vertical-align: 1px;
}
.tr-btn.on, .tr-btn:hover { background: var(--accent); color: #fff; }
.tr-text[hidden] { display: none; }
.tr-text {
  display: block;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 4px 10px;
  margin-top: 4px;
  font-size: 0.86rem;
}
.modal-weibo {
  display: inline-block;
  margin-top: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent-deep);
  text-decoration: none;
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.88rem;
}
.modal-weibo:hover { background: var(--accent); color: #fff; }
/* (窄屏弹窗布局统一在文件末尾的 ≤700px 媒体查询里处理) */

/* ---------- 日历事件详情弹窗 ---------- */
.modal.show-dlg {
  max-width: 400px;
  height: auto;
  max-height: 84vh;
  overflow-y: auto;
}
.show-dlg-body { padding: 26px 28px 24px; }
.sd-badge {
  display: inline-block;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 14px;
  font-size: 0.85rem;
}
.sd-badge.future { border: 1px dashed var(--accent); background: var(--card); }
.sd-date { font-size: 1.35rem; font-weight: 700; margin-top: 10px; }
.sd-venue { margin-top: 6px; font-weight: 600; }
.sd-address { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 400; margin-top: 2px; }
.sd-note { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.sd-label {
  font-family: "Comfortaa", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-top: 16px;
}
.sd-lineup { font-size: 1.15rem; margin-top: 4px; letter-spacing: 3px; }
.sd-setlist { list-style: none; margin-top: 6px; }
.sd-setlist li { padding: 3px 0; font-size: 0.92rem; }
.sd-setlist .sl-no {
  display: inline-block;
  width: 34px;
  font-family: "Comfortaa", sans-serif;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.page-btn {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 8px;
  min-width: 32px;
  padding: 4px 8px;
  font-size: 0.88rem;
  cursor: pointer;
}
.page-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn:disabled { opacity: 0.35; cursor: default; }

/* ---------- 维护兜底页 ---------- */
.fallback {
  max-width: 560px;
  margin: 8vh auto;
  padding: 0 20px;
  text-align: center;
}
.fallback-photo {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 12px 44px rgba(167, 139, 219, 0.28);
}
.fallback h1 { margin-top: 24px; font-size: 1.6rem; color: var(--accent-deep); }
.fallback p { color: var(--muted); margin-top: 8px; }
.fallback-err { font-size: 0.82rem; }
.fallback-retry {
  margin-top: 18px;
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 8px 28px;
  font-size: 0.95rem;
  cursor: pointer;
}

/* ---------- 情报 NEWS ---------- */
.news { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.news-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.news-row:last-child { border-bottom: none; }
.news-date { color: var(--muted); font-size: 0.84rem; flex-shrink: 0; }
.news-cat {
  flex-shrink: 0;
  border-radius: 6px;
  font-size: 0.74rem;
  padding: 1px 8px;
  color: #fff;
}
.cat-live { background: var(--accent); }
.cat-goods { background: #e8a13c; }
.cat-bday { background: #ef8fb6; }
.cat-other { background: #a9a2bd; }
.cat-mile { background: linear-gradient(120deg, #ffd44d, #f0b9de); color: var(--text); }
.news-main { min-width: 0; }
.news-title { font-weight: 600; }
.news-title a { color: var(--accent-deep); text-decoration: none; }
.news-title a::after { content: " ↗"; font-size: 0.82em; color: var(--accent); }
.news-title a:hover { text-decoration: underline; }
.news-pin {
  color: var(--accent-deep);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-size: 0.72rem;
  padding: 0 6px;
  margin-right: 6px;
  vertical-align: 1px;
}
.news-body { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

/* ---------- 档案视图切换 + 日历 ---------- */
.view-toggle { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.view-toggle button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.88rem;
  cursor: pointer;
}
.view-toggle button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
/* 日历角标筛选行:紧贴视图切换行,按钮字号收一档 */
.kind-toggle { margin-top: -6px; }
.kind-toggle button { font-size: 0.8rem; padding: 3px 13px; }
/* 订阅按钮:虚线描边和视图切换区分,不参与选中态 */
.view-toggle .ics-btn { border-style: dashed; border-color: var(--accent); color: var(--accent-deep); }
.view-toggle .ics-btn:hover { background: var(--accent-soft); }

/* ---------- 日程订阅弹窗 ---------- */
.ics-p { margin-top: 12px; font-size: 0.92rem; }
.ics-main {
  display: block;
  margin-top: 12px;
  text-align: center;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 600;
}
.ics-main:hover { background: var(--accent-deep); }
.ics-linkrow { display: flex; gap: 8px; margin-top: 8px; align-items: stretch; }
.ics-link {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.8rem;
}
.ics-copy {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--accent-deep);
  border-radius: 8px;
  padding: 0 14px;
  cursor: pointer;
  flex-shrink: 0;
}
.ics-copy:hover { border-color: var(--accent); }
.ics-note { margin-top: 10px; color: var(--muted); font-size: 0.8rem; }
.ics-dl { color: var(--accent-deep); font-weight: 600; }
/* Google 日历按钮:描边样式,与主按钮区分层级 */
.ics-main.ics-google {
  background: var(--card);
  color: var(--accent-deep);
  border: 1px solid var(--accent);
}
.ics-main.ics-google:hover { background: var(--accent-soft); }

.cal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  /* 日历 7 列吃宽度,与成员照片墙同为 1120 宽档;列表视图仍是 820 正文档 */
  width: min(1120px, calc(100vw - 48px));
  margin-left: calc((100% - min(1120px, 100vw - 48px)) / 2);
}
.cal-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.cal-title { font-weight: 700; font-size: 1.05rem; }
.cal-nav, .cal-today {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 8px;
  padding: 3px 12px;
  cursor: pointer;
  font-size: 0.88rem;
}
.cal-nav:hover, .cal-today:hover { background: var(--accent-soft); }
.cal-today { margin-left: auto; color: var(--accent-deep); }
/* minmax(0,1fr):不让 nowrap 的 chip 把列撑开,7 列永远等宽 */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.cal-cell {
  min-height: 84px;
  min-width: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  padding: 4px 5px;
}
.cal-cell:nth-child(7n + 1) { border-left: none; }
.cal-cell.other { opacity: 0.35; }
.cal-cell.today { background: var(--accent-soft); }
.cal-cell.today .cal-day {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cal-day { font-size: 0.78rem; color: var(--muted); }
.cal-chip {
  display: block;
  margin-top: 3px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 可点击的事件条:hover/按下 微放大 */
.cal-chip[data-show-id] { cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.cal-chip[data-show-id]:hover,
.cal-chip[data-show-id]:active {
  transform: scale(1.07);
  box-shadow: 0 3px 10px rgba(167, 139, 219, 0.3);
}
.cal-chip.special { background: var(--grad); color: #fff; }
.cal-chip.future { border: 1px dashed var(--accent); background: var(--card); }
.cal-chip.bday { color: var(--text); }
/* 出道里程碑(整百天/周年):金→粉渐变庆祝感,与特别场的紫粉渐变区分 */
.cal-chip.mile { background: linear-gradient(120deg, #ffd44d, #f0b9de); color: var(--text); }
/* 带 data-day 的角标可点开当日详情(手机上角标截断,弹窗看全文) */
.cal-chip[data-day] { cursor: pointer; }
.di-item { margin-top: 10px; font-size: 0.95rem; }

/* ---------- 歌曲 ---------- */
.songs { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.song-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.song-row:last-child { border-bottom: none; }
.song-row:hover { background: var(--accent-soft); }
.song-idx { color: var(--accent); font-size: 0.82rem; font-weight: 600; width: 22px; flex-shrink: 0; }
.song-main { min-width: 0; }
.song-title { font-weight: 600; }
.song-artist { color: var(--muted); font-size: 0.82rem; }
.song-stats { margin-left: auto; color: var(--muted); font-size: 0.84rem; white-space: nowrap; }

/* 演出行:整行可点开详情弹窗;有歌单的行带 ♪ 标记 */
.show-row { cursor: pointer; }
.setlist-badge {
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 1px 9px;
  white-space: nowrap;
}

/* ---------- 影像(封面卡片,一屏三张 + 左右箭头滚动) ---------- */
.videos-wrap { position: relative; }
.videos {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* 留出卡片 hover 上浮和阴影的空间,免得被裁 */
  padding: 4px 2px 10px;
  margin: -4px -2px -10px;
}
.videos::-webkit-scrollbar { display: none; }
.videos .video-card { scroll-snap-align: start; }
.vid-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-deep);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(43, 39, 52, 0.18);
  transition: background 0.15s, opacity 0.2s;
}
.vid-nav:hover { background: var(--accent); color: #fff; }
.vid-nav.prev { left: -19px; }
.vid-nav.next { right: -19px; }
.vid-nav.off { opacity: 0.25; pointer-events: none; }
.video-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s;
}
.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(167, 139, 219, 0.2);
}
.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--accent-soft);
  overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 封面素材来源杂(截屏/实拍/logo 图),统一压一层淡紫蒙层拉齐观感 */
.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(167, 139, 219, 0.22), rgba(216, 180, 254, 0.08));
  pointer-events: none;
}
.video-play { z-index: 1; }
.video-thumb-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 2rem;
}
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(125, 95, 199, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(43, 39, 52, 0.3);
}
.video-play::before {
  content: "";
  margin-left: 3px;
  border-left: 12px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
.video-meta { display: block; padding: 10px 12px; }
.video-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.video-sub { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 4px; }

/* ---------- 时间线 ---------- */
.timeline {
  border-left: 2px solid var(--line);
  padding-left: 24px;
  /* 居中窄栏,避免右侧大片空白 */
  max-width: 520px;
  margin: 0 auto;
}
.tl-item { position: relative; padding: 8px 0 16px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(167, 139, 219, 0.16);
}
.tl-item.show::before { background: #cfc3ea; }
.tl-date { font-size: 0.82rem; color: var(--muted); }
.tl-title { font-weight: 600; }
.tl-note { font-size: 0.85rem; color: var(--muted); }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 40px 20px 60px;
}
footer a { color: var(--muted); }
/* 数据订阅链接:工程向内容收成一行更小的字 */
.data-links { font-size: 0.72rem; opacity: 0.75; letter-spacing: 0.03em; }
.data-links a { font-family: "Comfortaa", sans-serif; }
.dl-sep { margin: 0 6px; color: var(--line); }
.disclaimer {
  max-width: 640px;
  margin: 0 auto 18px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  line-height: 1.7;
}
.disclaimer strong { color: var(--text); }
.disclaimer p { margin-top: 6px; }

/* ---------- 编辑页 ---------- */
.edit-page { padding-bottom: 260px; }
.edit-header { max-width: 980px; margin: 0 auto; padding: 32px 20px 0; }
.edit-page main { max-width: 980px; }
.edit-page section { margin: 32px 0; }

.add-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}
.add-form input[type="text"], .add-form input[type="date"],
.edit-row input[type="text"], .edit-row input[type="date"] {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.88rem;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
}
.add-form button, .diff-actions button {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text);
}
.add-form button, button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.diff-actions button:disabled { opacity: 0.4; cursor: default; }
.absent-label { color: var(--muted); font-size: 0.85rem; }

.edit-rows { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.edit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.edit-row:last-child { border-bottom: none; }
.member-checks { display: inline-flex; flex-wrap: wrap; gap: 8px; color: var(--muted); }
.field { display: inline-flex; align-items: center; gap: 4px; }
.sl-chip {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 1px 4px 1px 10px;
  font-size: 0.8rem;
  white-space: nowrap;
}
.sl-remove {
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 4px;
}
.sl-remove:hover { color: #c0392b; }
.sl-select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.8rem;
  padding: 2px 6px;
}
.edit-row textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.86rem;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
  width: 420px;
  max-width: 80vw;
  resize: vertical;
}
.field-label { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.check, .add-form label { white-space: nowrap; font-size: 0.85rem; cursor: pointer; }
button.del {
  margin-left: auto;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.95rem;
  opacity: 0.6;
}
button.del:hover { opacity: 1; }

.diff-panel {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--card);
  border-top: 2px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  max-height: 240px;
  display: flex;
  flex-direction: column;
}
.diff-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
}
.diff-status { color: var(--muted); font-size: 0.85rem; }
.diff-actions { margin-left: auto; display: flex; gap: 8px; }
.diff-list { overflow-y: auto; padding: 10px 20px; font-size: 0.88rem; color: var(--muted); }
.diff-item { padding: 6px 0; border-bottom: 1px dashed var(--line); color: var(--text); }
.diff-error { color: #c0392b; font-size: 0.86rem; padding: 3px 0; }
.diff-undo {
  margin-left: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 6px;
  font-size: 0.75rem;
  padding: 0 8px;
  cursor: pointer;
}
.diff-undo:hover { color: var(--accent-deep); border-color: var(--accent); }
.diff-item:last-child { border-bottom: none; }
.diff-detail { color: var(--muted); font-size: 0.84rem; padding-left: 46px; }
.diff-badge {
  display: inline-block;
  border-radius: 6px;
  font-size: 0.75rem;
  padding: 1px 8px;
  color: #fff;
  margin-right: 4px;
}
.diff-badge.add { background: #27ae60; }
.diff-badge.mod { background: #e67e22; }
.diff-badge.del { background: #e74c3c; }

/* ---------- 手机竖屏(≤700px) ---------- */
@media (max-width: 700px) {
  /* Hero:横构图照片竖屏 cover 会裁到只剩中间一人——改为按原始比例完整显示,
     首屏 = 完整五人横幅 + 标语 + NEXT LIVE,不再强行撑满一屏 */
  .hero-full {
    height: calc(100vw * 1411 / 2000);
    min-height: 0;
  }
  .hero-photo { object-position: center; }
  .hero-full::after { height: 22%; }

  /* 顶栏收紧:隐藏英文小字和微博图标,六个链接一行放齐 */
  .topnav { height: 52px; padding: 0 12px; gap: 10px; }
  .nav-logo { font-size: 1.2rem; flex-shrink: 0; }
  .nav-links { gap: 11px; overflow-x: auto; scrollbar-width: none;
    position: static; transform: none; margin: 0 auto; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 4px 0; }
  .nav-links .zh { font-size: 0.86rem; letter-spacing: 0.02em; white-space: nowrap; }
  .nav-links .en { display: none; }
  main section { scroll-margin-top: 62px; }

  /* 影像:手机一屏一张多露一点,手指横滑,箭头收起 */
  .videos { grid-auto-columns: 82%; }
  .vid-nav { display: none; }

  /* 歌曲:披露信息换到歌名下方一行,歌名不再被右栏挤成竖条断行;
     左缩进 36px = 序号宽 22px + 间距 14px,与歌名左缘对齐 */
  .song-row { flex-wrap: wrap; row-gap: 2px; }
  .song-stats {
    margin-left: 0;
    flex-basis: 100%;
    padding-left: 36px;
    font-size: 0.78rem;
  }

  /* 日历:格子里只留场次号,场地名太长必然截断,悬停/详情看列表 */
  .cal-head { padding: 10px 10px; gap: 8px; }
  .cal-cell { min-height: 58px; padding: 3px 3px; }
  /* 手机格子只有 ~55px 宽,单行截断只剩一两个字——
     改为最多折两行(line-clamp),场地名/里程碑基本能完整显示 */
  .cal-chip {
    font-size: 0.6rem;
    padding: 1px 3px;
    border-radius: 4px;
    /* 只在汉字之间折行,数字/拉丁串(100、MAO 等)保持同一行不拆开 */
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
  }
  .cal-day { font-size: 0.72rem; }

  /* 成员弹窗:改上下结构,照片在上、资料在下整体滚动 */
  .modal-mask { padding: 10px; }
  .modal { height: 92vh; }
  .modal-body { display: block; overflow-y: auto; padding: 0; height: 100%; }
  .modal-photo {
    width: 100%;
    max-width: none;
    height: 46vh;
    aspect-ratio: auto;
    border-radius: 0;
    object-position: center 18%;
  }
  .modal-info { overflow: visible; padding: 16px 18px 24px; }
  /* 资料行改可换行,防止「代表物」标签被挤成竖排 */
  .modal-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; }
  .modal-nav {
    position: fixed;
    top: 50%;
    z-index: 101;
    width: 38px;
    height: 38px;
    margin: 0;
  }
  .modal-nav.prev { left: 4px; }
  .modal-nav.next { right: 4px; }

  /* 信息区:字号收一档,NEXT LIVE 改竖排 */
  .hero-info { padding-top: 14px; }
  .hero-info h1 { font-size: 1.26rem; letter-spacing: 0.04em; white-space: nowrap; }
  .tagline { font-size: 0.78rem; letter-spacing: 0.08em; text-indent: 0.08em; }
  /* 窄屏眉题必然折行:隐藏末个「·」,让「粉丝应援站」独占一行,
     分隔符不再孤悬行尾(nth-last-child(2) = 末段前的那个分隔符) */
  .tagline .tg-sep:nth-last-child(2) { display: none; }
  .tagline .tg-seg:last-child { display: block; margin-top: 2px; }
  .sub { font-size: 0.92rem; }
  /* 换行后竖线会变成行首孤儿——手机端隐藏竖线,靠间距分隔 */
  .facts { gap: 6px 16px; }
  .f-sep { display: none; }
  .fact-unit { gap: 0; }
  .next-show { padding: 16px 18px 18px; }
  .next-flex { flex-direction: column; gap: 12px; text-align: center; }
  .next-datebox {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
  }
  .next-venuebox { text-align: center; }
  .stat { padding: 2px 16px; }
}
