/* OIL 官网 — 白底。
   配色只用 OIL 标准标志的灰和手册里的黑、白、浅灰,不加别的颜色。
   字用细体,大圆是手册每页都有的那两个圆。不引用任何外部字体或脚本。 */

:root {
  --bg: #fff;
  --ink: #111;
  --text: #555;
  --muted: #8c8c8c;
  --line: #e4e4e4;
  --logo: #848484;      /* OIL 标准标志灰 */
  --circle-1: #f1f1f1;
  --circle-2: #d9d9d9;
  --sans: "Helvetica Neue", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  --gutter: clamp(18px, 4.5vw, 64px);
  --top: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 300 17px/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[data-lang="zh"] [lang="en"],
html[data-lang="en"] [lang="zh"] { display: none !important; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd, ul, blockquote, address { margin: 0; padding: 0; }
ul { list-style: none; }
address { font-style: normal; }
b { font-weight: 400; color: var(--ink); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
::selection { background: var(--ink); color: #fff; }

/* 手册里的两个圆 */
.decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.decor i { position: absolute; border-radius: 50%; }
.decor i:nth-child(1) { width: min(62vw, 880px); aspect-ratio: 1; right: -12vw; top: -14vw; background: var(--circle-1); }
.decor i:nth-child(2) { width: min(26vw, 360px); aspect-ratio: 1; left: -7vw; bottom: -9vw; background: var(--circle-2); opacity: .7; }

/* ---------- 顶栏 ---------- */

.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  height: var(--top); padding: 0 var(--gutter);
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top--home { position: absolute; inset: 0 0 auto 0; justify-content: flex-end; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.top__logo { color: var(--logo); display: block; margin-right: auto; padding: 8px 0; }
.top__logo svg { height: 40px; width: auto; display: block; }

.nav { display: flex; gap: clamp(14px, 2vw, 30px); height: 100%; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item__head { font-size: 14px; font-weight: 400; color: var(--ink); white-space: nowrap; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav__item:hover .nav__item__head, .nav__item__head[aria-current] { border-color: var(--ink); }
.nav__item__list {
  position: absolute; top: 100%; left: -18px; min-width: 220px; padding: 12px 18px 16px;
  background: #fff; border: 1px solid var(--line); border-top: 0;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__item:hover .nav__item__list, .nav__item:focus-within .nav__item__list { opacity: 1; visibility: visible; transform: none; }
.nav__item:last-child .nav__item__list { left: auto; right: -18px; }
.nav__item__list a { display: block; padding: 7px 0; font-size: 14px; color: var(--text); white-space: nowrap; }
.nav__item__list a:hover { color: var(--ink); }

.lang { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.lang button { padding: 12px 6px; }
.lang button:hover { color: var(--ink); }
html[data-lang="zh"] .lang [data-set-lang="zh"],
html[data-lang="en"] .lang [data-set-lang="en"] { color: var(--ink); font-weight: 400; }

.burger { display: none; font-size: 14px; font-weight: 400; color: var(--ink); padding: 12px 0 12px 8px; }
.drawer { position: fixed; inset: var(--top) 0 0 0; z-index: 29; overflow-y: auto; background: #fff; padding: 12px var(--gutter) 48px; }
.drawer__group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.drawer__group__head { display: block; font-size: 20px; font-weight: 400; color: var(--ink); padding: 6px 0; }
.drawer__group__list a { display: block; padding: 9px 0; color: var(--text); }

/* ---------- 首页:大标志 + 六个下拉菜单 ---------- */

.home { min-height: 100svh; display: flex; flex-direction: column; padding: clamp(72px, 10vh, 120px) var(--gutter) 40px; }
.home__logo { display: block; margin: 0 auto; height: min(54svh, 560px); width: auto; color: var(--logo); flex: none; }
.menus { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px clamp(16px, 2.4vw, 40px); margin-top: clamp(40px, 8vh, 88px); }
.menu__head { display: inline-flex; align-items: baseline; gap: 8px; font-size: clamp(15px, 1.45vw, 21px); font-weight: 500; color: var(--ink); white-space: nowrap; padding: 6px 0; }
.menu__head::after { content: ""; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.menu__list { margin-top: 10px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
.menu__list a { display: block; padding: 6px 0; font-size: 16px; color: var(--text); }
.menu__list a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.menu.is-open .menu__list, .menu:focus-within .menu__list { opacity: 1; visibility: visible; transform: none; }
.menu.is-open .menu__head::after { transform: translateY(1px) rotate(225deg); }
@media (hover: hover) {
  .menu:hover .menu__list { opacity: 1; visibility: visible; transform: none; }
  .menu:hover .menu__head::after { transform: translateY(1px) rotate(225deg); }
}

/* ---------- 内页 ---------- */

.is-inner main { max-width: 1280px; margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--gutter) 0; }
.page__head h1, .profile h1 { font-weight: 300; font-size: clamp(34px, 5.6vw, 68px); line-height: 1.15; color: var(--ink); letter-spacing: -.01em; }
.kicker { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.kicker a { border-bottom: 1px solid var(--line); }
.block { margin-top: clamp(64px, 9vw, 128px); }
.block > h2 { font-weight: 400; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; color: var(--ink); padding-bottom: 18px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }

.prose { max-width: 44em; }
.prose--wide { max-width: 52em; margin-top: 36px; }
.prose p + p, .prose p + blockquote, .prose blockquote + p { margin-top: 1.3em; }
.prose a, .links a, .social a, .contact a, .profile__ids a { color: var(--ink); border-bottom: 1px solid var(--ink); }
.prose a:hover, .links a:hover, .social a:hover, .contact a:hover, .profile__ids a:hover { color: var(--muted); border-color: var(--muted); }
.lead { font-size: clamp(20px, 2.3vw, 28px); line-height: 1.65; color: var(--text); }
blockquote { font-size: clamp(19px, 2vw, 25px); line-height: 1.65; color: var(--ink); }
blockquote cite { display: block; margin-top: 14px; font-style: normal; font-size: 14px; color: var(--muted); }

figure { background: var(--circle-1); }
figure img { width: 100%; }
figcaption { background: #fff; padding-top: 10px; font-size: 14px; color: var(--muted); }
.grid { display: grid; gap: clamp(8px, 1.2vw, 16px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photos { margin-top: 44px; }
.photos img { aspect-ratio: 3 / 2; object-fit: cover; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.shots--one { grid-template-columns: 1fr; }
.shots figure, .slide { background: none; box-shadow: 0 4px 22px rgba(0, 0, 0, .12); }
.slide { margin-top: 20px; }
.slide + .slide { margin-top: 28px; }
.years { color: var(--muted); font-size: 15px; }

.rooms { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.rooms__diagram { background: none; }
.rooms__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); }
.rooms__list img { aspect-ratio: 3 / 2; object-fit: cover; }

.links { margin-top: 36px; }
.links li { padding: 14px 0; border-bottom: 1px solid var(--line); line-height: 1.55; }
.links li span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.links--tight { margin-top: 12px; }
.links--tight li { padding: 10px 0; }

.posters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); }
.posters img { aspect-ratio: 166 / 234; object-fit: cover; }
.openm { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(8px, 1.2vw, 16px); }
.openm__main { grid-row: span 2; }
.openm img { height: 100%; object-fit: cover; }

/* 成员 */
.crew { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(12px, 1.8vw, 26px); }
.member img { aspect-ratio: 1; object-fit: cover; object-position: 50% 25%; transition: opacity .2s; }
.member:hover img { opacity: .85; }
.member h3 { margin: 12px 0 0; font-weight: 400; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.member:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.member__city { font-size: 13px; color: var(--muted); }
.member__tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 13px; line-height: 1.7; color: var(--muted); }

.profile__grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; margin-top: 8px; }
.profile h1 { font-size: clamp(32px, 4.6vw, 56px); margin-bottom: 28px; }
.profile h1 small { font-size: .38em; font-weight: 300; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.profile__side img { aspect-ratio: 1; object-fit: cover; object-position: 50% 25%; }
.profile__ids { margin-top: 16px; font-size: 15px; }
.profile__ids li { padding: 3px 0; overflow-wrap: anywhere; }
.profile__h { margin-top: 44px; font-size: 14px; font-weight: 400; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(56px, 8vw, 104px); padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.pager a { padding: 10px 0; }
.pager a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 活动 ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chips button { min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--text); background: #fff; }
.chips button:hover { border-color: var(--muted); }
.chips button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

.cal__month { display: flex; justify-content: space-between; align-items: baseline; padding: 30px 0 10px; border-bottom: 1px solid var(--ink); font-size: 14px; font-weight: 400; color: var(--ink); }
.cal__month span { color: var(--muted); font-weight: 300; }
.ev { display: grid; grid-template-columns: 4.6rem 4.4rem 1fr auto; align-items: baseline; gap: 0 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ev__day { font-weight: 200; font-size: clamp(30px, 3.8vw, 46px); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.ev__day small { font-size: .5em; color: var(--muted); }
.ev__dow { font-size: 14px; color: var(--muted); }
.ev__title { font-size: clamp(17px, 1.8vw, 22px); line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.ev__rooms { font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; }
.tag { display: inline-block; vertical-align: .18em; margin-left: 10px; padding: 2px 7px; border: 1px solid var(--muted); border-radius: 2px; font-size: 11px; line-height: 1.4; color: var(--text); white-space: nowrap; }
.tag--now { background: var(--ink); border-color: var(--ink); color: #fff; }
.cal--past .ev { padding: 11px 0; grid-template-columns: 3.4rem 4.4rem 1fr auto; }
.cal--past .ev__day { font-size: clamp(20px, 2.2vw, 26px); color: var(--muted); }
.cal--past .ev__title { font-size: clamp(15px, 1.4vw, 17px); color: var(--text); }
.cal__empty { padding: 40px 0; color: var(--muted); }
.cal__note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.more { display: block; width: 100%; margin-top: 24px; min-height: 52px; border: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--ink); }
.more:hover { border-color: var(--ink); }
.artists { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.7; color: var(--ink); }
.artists span:not(:last-child)::after { content: "/"; margin: 0 .6em; color: var(--circle-2); }

/* ---------- 联系 ---------- */

.contact div { display: grid; grid-template-columns: 7rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact dt { color: var(--muted); font-size: 14px; padding-top: .35em; }
.contact dd { font-size: clamp(18px, 2vw, 24px); color: var(--ink); overflow-wrap: anywhere; }
.social { width: 100%; border-collapse: collapse; margin-top: 12px; }
.social th { text-align: left; font-weight: 400; font-size: 13px; color: var(--muted); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ink); }
.social td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.social td:nth-child(2) { color: var(--ink); }
.social td:nth-child(3) { color: var(--muted); font-size: 14px; white-space: nowrap; }
.social td:last-child, .social th:last-child { text-align: right; padding-right: 0; color: var(--ink); font-variant-numeric: tabular-nums; }

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

.foot { display: flex; align-items: flex-end; gap: 20px; margin-top: clamp(80px, 12vw, 160px); padding: 28px var(--gutter) 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.is-home .foot { margin-top: 0; border: 0; }
.foot__logo { height: 36px; width: auto; color: var(--logo); display: block; }
.foot address { margin-right: auto; }
.foot p { white-space: nowrap; }

/* ---------- 窄屏 ---------- */

@media (max-width: 1100px) {
  .crew { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .menus { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .menu__list { opacity: 1; visibility: visible; transform: none; }
  .menu__head::after { display: none; }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: block; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .split, .rooms, .profile__grid { grid-template-columns: 1fr; }
  .rooms__diagram { max-width: 280px; }
  .crew { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .posters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .profile__side { max-width: 320px; }
  .ev, .cal--past .ev { grid-template-columns: 3rem 1fr; gap: 2px 14px; }
  .ev__day { grid-row: span 3; }
  .ev__rooms { text-align: left; white-space: normal; }
}
/* 手机:首页的六个菜单变成可以点开的手风琴 */
@media (max-width: 600px) {
  :root { --top: 56px; }
  .top__logo svg { height: 34px; }
  .home { padding-top: 76px; }
  .home__logo { height: min(40svh, 340px); }
  .menus { grid-template-columns: 1fr; gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
  .menu { border-bottom: 1px solid var(--line); }
  .menu__head { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 56px; font-size: 19px; }
  .menu__head::after { display: block; width: 8px; height: 8px; margin-right: 4px; }
  .menu__list { display: none; margin: 0 0 14px; }
  .menu.is-open .menu__list { display: block; }
  .menu__list a { padding: 10px 0; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rooms__list { grid-template-columns: 1fr; }
  .crew { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .openm { grid-template-columns: 1fr; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips button { flex: none; }
  .social thead { display: none; }
  .social tr { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .social td { border: 0; padding: 0; }
  .social td:nth-child(1) { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
  .social td:nth-child(3) { display: none; }
  .contact div { grid-template-columns: 1fr; gap: 2px; }
  .foot { flex-wrap: wrap; }
  .pager a:nth-child(2) { display: none; }
}
