/* ISASTE 学会站 — 离线预览样式
   单一文件，无依赖，无 CDN，file:// 直接打开可用。
   设计取向：国际组织（留白、克制）+ 学术协会（真实信息密度）。 */

:root {
  --brand: #1B3D8F;
  --brand-mid: #2A5CAA;
  --gold: #C9A227;
  --ink: #1F2937;
  --ink-2: #5B6472;
  --rule: #E5E9F0;
  --rule-soft: #EEF1F6;
  --paper: #F6F8FC;
  --chip: #EEF3FB;
  --radius: 8px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- 顶部 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(180%) blur(8px);
}

.site-head__in {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand img { height: 38px; width: auto; }
.brand__txt { display: flex; flex-direction: column; gap: 2px; }
.brand__name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  color: var(--brand);
}
.brand__sub {
  font-size: 8.5px;
  line-height: 1.25;
  letter-spacing: .02em;
  color: #7C879B;
  max-width: 292px;
}
@media (max-width: 1180px) { .brand__sub { display: none; } }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--ink);
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover { text-decoration: none; color: var(--brand); }

.nav a[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
  border-bottom-color: var(--brand);
}

/* 导航里的按钮不要继承导航链接的深色 */
.nav a.btn { color: #fff; border-bottom: 0; }
.nav a.btn--ghost { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-mid); text-decoration: none; }

.btn--ghost { border-color: var(--rule); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

.btn--sm { height: 34px; padding: 0 14px; font-size: 13.5px; font-weight: 500; }

/* 导航里的号召按钮：胶囊形太像营销位，改成方角 + 字距，
   高度和导航文字基线对齐，hover 只加深底色，不加阴影。 */
.nav .btn--cta {
  height: 38px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
}
.nav .btn--cta:hover { background: #16336F; border-color: #16336F; color: #fff; text-decoration: none; }

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--paper { background: var(--paper); }

.eyebrow {
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
}

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }

.h1 { font-size: 56px; font-weight: 800; max-width: 20ch; }
.h2 { font-size: 38px; font-weight: 800; }
.h3 { font-size: 22px; font-weight: 650; }

.lede { font-size: 18px; color: var(--ink-2); max-width: 62ch; margin: 18px 0 0; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }

.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

/* ---------- Hero ---------- */
.hero { padding: 84px 0 64px; }
.hero .h1 { font-size: 52px; max-width: 24ch; }
.hero__actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

/* ---------- 数字条 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.stat { padding: 28px 0; text-align: center; }
.stat + .stat { border-left: 1px solid var(--rule); }
.stat__num { font-size: 34px; font-weight: 800; color: var(--brand); line-height: 1; }
.stat__label {
  margin-top: 8px;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
}

/* ---------- 三支柱 ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.pillar h3 { font-size: 19px; margin-bottom: 10px; }
.pillar p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.pillar__bar { width: 32px; height: 2px; background: var(--gold); margin-bottom: 18px; }

/* ---------- 会议卡 ---------- */
.conf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.conf-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
}

.conf-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.conf-card__code {
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}

.badge {
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  white-space: nowrap;
}

.badge--soon { color: var(--brand); border-color: #C7D6F2; background: #F2F6FD; }
.badge--ended { color: #7A8496; }

.conf-card h3 { font-size: 20px; margin: 0; }
.conf-card__full { font-size: 14.5px; color: var(--ink-2); }

.conf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
  color: var(--ink-2);
}

.conf-meta span { display: inline-flex; align-items: center; gap: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  font-size: 12.5px;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--chip);
  color: var(--brand);
  border: 1px solid #DCE6F6;
  white-space: nowrap;
}

.chip--more { background: #fff; color: var(--ink-2); border-color: var(--rule); }

.conf-card__actions { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }

/* ---------- 编委卡 ---------- */
/* 一人一行：编委是要被逐行读的，两列并排会让人横着扫 */
.people { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }

.person {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 24px;
  background: #fff;
}

.person__avatar {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--chip);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .02em;
  user-select: none;
}

.person__avatar img { width: 100%; height: 100%; object-fit: cover; }

.person__body { min-width: 0; flex: 1; }

/* 一人一行之后卡片变宽，右边会空出一大片。
   把「姓名/头衔/学科」放左列，「单位/方向/ORCID/邮箱」放右列，
   一行里读两段，比让文字拉满 1100px 好读。 */
@media (min-width: 861px) {
  .person { position: relative; }
  /* Website 固定到卡片右上角：否则它夹在姓名和头衔后面，
     列一变窄就换行，两行卡片高度对不齐。 */
  .person__site { position: absolute; top: 24px; right: 24px; }
  .person__body {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    column-gap: 48px;
    align-items: start;
    padding-right: 96px;
  }
  .person__head { grid-column: 1; grid-row: 1; }
  .person__tag { grid-column: 1; grid-row: 2; justify-self: start; }
  .person__orgs { grid-column: 2; grid-row: 1; margin-top: 2px; }
  .person__interests { grid-column: 2; grid-row: 2; margin-top: 0; }
  .person__body > .orcid { grid-column: 2; grid-row: 3; }
  .person__field { grid-column: 2; grid-row: 4; }
}

.person__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* 姓名 + 头衔作为一个整体：整体换行，但不会和 Website 按钮抢行，
   否则按钮一换行，下面那条分隔线就跟相邻卡片对不齐。 */
.person__id {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1 1 auto;
}

.person__name { font-size: 22px; font-weight: 650; line-height: 1.3; }
.person__role { font-size: 15px; color: var(--ink-2); }
.person__site { flex: 0 0 auto; margin-left: auto; }

.person__rule { height: 1px; background: var(--rule-soft); margin: 14px 0; }

.person__field { font-size: 15px; color: var(--ink-2); }
.person__field + .person__field { margin-top: 6px; }
.person__label { color: #7A8496; }

.person__orgs { margin: 12px 0 0; padding: 0; list-style: none; font-size: 15px; }
.person__orgs li { display: flex; gap: 8px; color: var(--ink-2); }
.person__orgs li + li { margin-top: 4px; }
.person__orgs .idx { color: #9AA4B5; font-variant-numeric: tabular-nums; min-width: 14px; }

.person__interests { margin-top: 10px; font-size: 15px; color: var(--ink-2); }

.person__tag {
  display: inline-block;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 5px;
  background: var(--chip);
  color: var(--brand);
  margin-top: 12px;
}

.orcid {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #4C6B3C;
  margin-top: 10px;
}

.orcid svg { flex: 0 0 14px; }

/* ---------- Board 预览 ---------- */
.faces { display: flex; gap: 32px; flex-wrap: wrap; }
.face { text-align: center; width: 132px; }
.face__avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--chip); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; overflow: hidden;
}
.face__avatar img { width: 100%; height: 100%; object-fit: cover; }
.face__name { font-size: 15px; font-weight: 600; line-height: 1.35; }
.face__role { font-size: 13px; color: var(--ink-2); }

/* ---------- 首页头像圆卡（Board preview） ---------- */
.board-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 15px;
  padding: 11px 13px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27, 61, 143, .12);
}
.field .hint { font-size: 12.5px; color: #8A93A3; }

.member-cols { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 48px; align-items: start; }

.tier { border-top: 1px solid var(--rule); padding: 20px 0; }
.tier:first-of-type { border-top: 0; padding-top: 0; }
.tier h3 { font-size: 17px; margin-bottom: 6px; }
.tier p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ---------- 关于 ---------- */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.focus-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.focus h3 { font-size: 17px; margin-bottom: 8px; }
.focus p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ---------- 时间线（代替活动照片） ---------- */
.timeline { border-left: 1px solid var(--rule); margin-left: 6px; }

.tl-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  padding: 0 0 30px 26px;
  position: relative;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
}

.tl-item:last-child { padding-bottom: 0; }

.tl-date {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  padding-top: 2px;
}

.tl-title { font-size: 18px; font-weight: 650; margin-bottom: 4px; }
.tl-body p { margin: 0; font-size: 15px; color: var(--ink-2); max-width: 68ch; }

/* ---------- 治理文档 ---------- */
.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--rule);
}

.doc-nav a {
  font-size: 14px;
  padding: 7px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-2);
}

.doc-nav a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

.doc { max-width: 78ch; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--rule-soft); }
.doc:last-of-type { border-bottom: 0; }

.doc__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.doc__head h2 { font-size: 24px; }
.doc__meta { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #8A93A3; font-weight: 600; }
.doc p { margin: 0 0 12px; color: var(--ink-2); font-size: 16px; }

/* 英文长段落两端对齐。
   两个前提缺一不可：① 行宽够（>=900px 才开，手机上两头对齐会拉出大洞）
   ② 必须允许断词（hyphens），否则长单词会被硬挤到下一行，行内空隙反而更大。
   只作用于正文段落与 lede，标题、卡片、列表、按钮一律保持左对齐。 */
@media (min-width: 900px) {
  .doc > p,
  .lede,
  .prose > p {
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 7 3 3;
  }
}
.doc__link { margin-top: 4px; }
.doc__link a { font-size: 14.5px; font-weight: 600; }

@media (max-width: 860px) {
  .tl-item { grid-template-columns: 1fr; gap: 4px; padding-left: 22px; }
}

/* 学科范围：不用数字，只说话术上不承诺、不吹的硬内容 */
.scope {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 26px 0;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
}
.scope__label {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8A93A3;
}
.scope__text {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 78ch;
}
@media (max-width: 860px) {
  .scope { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .scope__text { font-size: 15.5px; }
}

/* ---------- 空态 ---------- */
.empty {
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  color: var(--ink-2);
  background: #FCFDFF;
}
.empty h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }

/* ---------- CTA 条 ---------- */
.cta {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 56px 0;
}
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: 30px; }
.cta p { margin: 8px 0 0; color: var(--ink-2); }

/* ---------- 页脚 ---------- */
.site-foot { padding: 64px 0 32px; }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}
.foot-brand img { height: 40px; margin-bottom: 16px; }
.foot-brand p { font-size: 14.5px; color: var(--ink-2); max-width: 34ch; margin: 0; }
.foot h4 {
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8A93A3;
  margin: 0 0 14px;
  font-weight: 700;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 8px; }
.foot a { color: var(--ink-2); font-size: 14.5px; }
.foot a:hover { color: var(--brand); }
.foot-bar {
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #8A93A3;
  letter-spacing: .04em;
}

.doc-list { margin: 0 0 16px 20px; padding: 0; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.doc-list li { margin-bottom: 6px; }

.note {
  font-size: 13px;
  color: #8A93A3;
  margin-top: 28px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .pillars { gap: 32px; }
  .board-preview { grid-template-columns: repeat(2, 1fr); }
  .member-cols { grid-template-columns: 1fr; gap: 32px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .site-head__in { height: 64px; gap: 16px; }
  .nav { gap: 18px; }
  .nav a { font-size: 14px; }
  .nav .btn { display: none; }
  .hero { padding: 56px 0 40px; }
  .h1, .hero .h1 { font-size: 34px; }
  .h2 { font-size: 27px; }
  .lede { font-size: 16.5px; }
  .section { padding: 56px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .pillars, .conf-grid, .people, .focus-grid, .form-grid, .board-preview { grid-template-columns: 1fr; }
  .person { gap: 16px; padding: 20px; }
  .person__avatar { flex-basis: 72px; width: 72px; height: 72px; font-size: 24px; }
  .person__name { font-size: 19px; }
  .person__site { margin-left: 0; }
  .head-row { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 28px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta__in { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  /* 窄屏放不下「标 + 字标 + 导航」一行：拆两行，导航单独一行可横滑 */
  .site-head__in { flex-wrap: wrap; height: auto; padding: 10px 0 8px; row-gap: 6px; }
  .brand { flex: 1 1 100%; }
  .brand img { height: 32px; }
  .brand__name { font-size: 17px; }
  .nav {
    margin-left: 0;
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 13.5px; }
  .person { flex-direction: column; }
  .person__avatar { flex-basis: 72px; }
}

/* ==========================================================================
   Admin compatibility layer (.proto-*)
   The admin pages (admin_pages/*.html) still carry their original class
   names. Only colour, type and spacing are re-pointed at the new tokens
   here — no form markup or field is changed.
   ========================================================================== */

.proto-admin-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 6px;
}

.proto-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.proto-input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.proto-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27, 61, 143, .12);
}

.proto-table-th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8A93A3;
  background: var(--paper);
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
}

.proto-table-td {
  vertical-align: top;
  font-size: 14.5px;
  color: var(--ink);
  padding: 12px;
  border-bottom: 1px solid var(--rule-soft);
}

/* ==========================================================================
   Site additions on top of the preview design system
   ========================================================================== */

/* Hero headline: preview sizes it 52px / 24ch on desktop. */
@media (min-width: 861px) {
  .hero .h1 { font-size: 52px; max-width: 24ch; }
}

/* Inner-page headline: 44px on desktop, one step down with the rest of the
   type scale on phones (the preview's inner pages use the same ramp). */
.page-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0;
}
@media (max-width: 860px) {
  .page-title { font-size: 34px; }
}

/* Phones: when the header collapses to two rows, keep the .wrap gutter
   (.site-head__in's own padding would otherwise sit flush to the viewport). */
@media (max-width: 560px) {
  .site-head__in { padding-left: 20px; padding-right: 20px; }
}

