/* ===== ICCAD 2026 Workshop — stylesheet ===== */
:root {
  --navy: #0d2b4e;
  --navy-light: #14457d;
  --accent: #2f80ed;
  --ink: #1b1f24;
  --muted: #5c6773;
  --line: #e3e8ef;
  --bg-alt: #f5f8fc;
  --max: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: #fff;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(13, 43, 78, 0.92);
  backdrop-filter: blur(6px);
}
.nav__brand { color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: .5px; }
.nav__brand:hover { text-decoration: none; }
.nav__links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: #dce6f5; font-size: .95rem; }
.nav__links a:hover { color: #fff; text-decoration: none; }
.nav__toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
}
.hero__content { max-width: var(--max); margin: 0 auto; padding: 84px 24px 96px; text-align: center; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; color: #9db8de; margin: 0 0 12px; }
.hero__title { font-size: 3rem; margin: 0 0 12px; font-weight: 800; }
.hero__subtitle { font-size: 1.35rem; color: #cfe0f5; margin: 0 0 24px; font-weight: 400; }
.hero__meta { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; color: #bcd0ee; margin: 0 0 32px; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 8px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: .95rem;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #1c6fe0; text-decoration: none; transform: translateY(-2px); }
.btn--ghost { background: transparent; border: 1.5px solid #6f97cf; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
/* 正文行宽控制，提升可读性与留白（仅作用于 section 直属段落，如 About / 提示语） */
.section > .container > p { max-width: 72ch; margin: 0 0 18px; }
.section > .container > p:last-child { margin-bottom: 0; }

/* General Information：左对齐（全站统一学术风），仅加大行高/字色 */
#about .container > p { line-height: 1.85; color: #2b333d; }
.section__title {
  font-size: 1.9rem; margin: 0 0 28px; color: var(--navy);
  position: relative; padding-bottom: 12px;
}
.section__title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 3px; background: var(--accent); border-radius: 2px;
}
.subhead { font-size: 1.15rem; color: var(--navy-light); margin: 34px 0 16px; }
.chair { font-weight: 400; font-size: .9rem; color: var(--muted); }

/* ===== Topics ===== */
.topics { columns: 2; gap: 32px; padding-left: 20px; margin: 0; }
.topics li { margin: 0 0 10px; break-inside: avoid; }

/* ===== Cards (speakers) —— 左对齐 ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 20px; transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 8px 24px rgba(13,43,78,.1); transform: translateY(-3px); }
.card h4 { margin: 0 0 4px; color: var(--navy); font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ===== Program —— 左对齐（时间列 + 正文） ===== */
.schedule { display: flex; flex-direction: column; gap: 10px; }
.slot {
  display: flex; gap: 22px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: 8px; padding: 14px 20px;
}
.slot--keynote { border-left-color: #e2a93b; background: #fffaf0; }
.slot--break { border-left-color: var(--muted); background: #fafbfc; color: var(--muted); padding: 12px 20px; }
.slot--break .slot__body { font-style: italic; }
.slot__time {
  font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy);
  width: 118px; min-width: 118px; flex-shrink: 0; line-height: 1.5;
}
.slot__body { flex: 1; }
.slot__body p { margin: 0; }
.slot__talk { color: var(--muted); font-size: .92rem; margin-top: 2px !important; }
.tag {
  display: inline-block; background: #e2a93b; color: #fff; font-size: .72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 2px 8px; border-radius: 4px; margin: 0 0 6px;
}

/* ===== Committee ===== */
.committee { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; }
.committee--single { display: block; max-width: 480px; }
.committee__group--wide { grid-column: 1 / -1; }
.committee ul { list-style: none; padding: 0; margin: 0; }
.committee li { padding: 5px 0; border-bottom: 1px dashed var(--line); color: var(--ink); }
.committee__tpc { columns: 2; gap: 40px; }
.committee__tpc li { break-inside: avoid; }

/* ===== Footer ===== */
.footer { background: var(--navy); color: #cfe0f5; padding: 36px 0; text-align: center; }
.footer p { margin: 4px 0; }
.footer__muted { color: #7e9bc4; font-size: .85rem; }
.footer a { color: #acc6ec; }

/* ===== Title FX (方案4 描边双色 + 全大写高亮) ===== */
.hero__title--fx {
  font-family: "Righteous", "Sora", sans-serif;
  line-height: 1.32;
  font-weight: 400;
}
.hero__title--fx .hl {
  color: #ffd14d;
  -webkit-text-stroke: 1.5px #fff;
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 rgba(47, 128, 237, .55);
  text-transform: uppercase;
  font-size: 1.12em;
  letter-spacing: .5px;
}

/* 副标题：同款方案4 描边双色（整行金填充+白描边+投影） */
.hero__subtitle--fx {
  font-family: "Righteous", "Sora", sans-serif;
  color: #ffd14d;
  -webkit-text-stroke: 1px #fff;
  paint-order: stroke fill;
  text-shadow: 2px 2px 0 rgba(47, 128, 237, .5);
}

/* ===== Speaker card photos —— 左对齐 ===== */
.card--speaker { text-align: left; }
.card__photo {
  width: 84px; height: 84px; border-radius: 50%;
  object-fit: cover; background: #e6edf6; margin: 0 0 10px; display: block;
  border: 2px solid var(--line);
}

/* ===== Clickable program slots（左对齐 + 右侧箭头） ===== */
.program__hint { color: var(--muted); font-size: .9rem; margin: 0 0 16px; }
button.slot {
  width: 100%; text-align: left; font: inherit; cursor: pointer;
}
.slot--link { transition: box-shadow .15s ease, transform .15s ease; }
.slot--link:hover { box-shadow: 0 6px 18px rgba(13, 43, 78, .12); transform: translateY(-2px); }
.slot--link::after {
  content: "›"; margin-left: auto; align-self: center;
  color: var(--accent); font-size: 1.4rem; font-weight: 700;
}

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8, 22, 42, .6); }
.modal__dialog {
  position: relative; z-index: 1; background: #fff; border-radius: 14px;
  max-width: 440px; width: calc(100% - 40px); padding: 30px 28px; text-align: center;
  box-shadow: 0 20px 60px rgba(8, 22, 42, .35);
}
.modal__close {
  position: absolute; top: 10px; right: 14px; border: 0; background: none;
  font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.modal__photo {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
  background: #e6edf6; margin: 0 auto 14px; display: block; border: 2px solid var(--line);
}
.modal__time { color: var(--accent); font-weight: 600; margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.modal__name { color: var(--navy); margin: 0 0 2px; font-size: 1.3rem; }
.modal__role { color: var(--muted); margin: 0 0 14px; font-size: .9rem; }
.modal__talk { font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.modal__abstract { color: var(--muted); font-size: .92rem; margin: 0; }

/* ===== Responsive ===== */
/* 平板 */
@media (max-width: 860px) {
  .committee { grid-template-columns: 1fr; gap: 0 0; }
  .topics { columns: 2; }
}
/* 手机（竖屏主断点） */
@media (max-width: 720px) {
  .nav { padding: 12px 18px; }
  .nav__links {
    display: none; position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; gap: 0; background: var(--navy); padding: 8px 0;
    box-shadow: 0 10px 24px rgba(8,22,42,.25);
  }
  .nav__links.open { display: flex; }
  .nav__links li { padding: 0 20px; }
  .nav__links a { display: block; padding: 12px 0; }
  .nav__toggle { display: block; }

  .hero__content { padding: 58px 20px 66px; }
  .hero__title { font-size: 1.95rem; line-height: 1.3; }
  .hero__subtitle { font-size: 1.05rem; }
  .hero__eyebrow { font-size: .72rem; }

  .section { padding: 56px 0; }
  .section__title { font-size: 1.55rem; margin-bottom: 22px; }
  .subhead { margin-top: 26px; }

  .topics, .committee__tpc { columns: auto; }
  .cards { grid-template-columns: 1fr 1fr; }

  .slot { gap: 14px; padding: 12px 16px; }
  .slot__time { width: 96px; min-width: 96px; }
}
/* 小屏手机 */
@media (max-width: 480px) {
  .hero__title { font-size: 1.65rem; }
  .hero__title--fx .hl { font-size: 1.05em; }
  .hero__actions { flex-direction: column; gap: 10px; }
  .btn { width: 100%; }

  .cards { grid-template-columns: 1fr; }
  .card__photo { width: 72px; height: 72px; }

  /* 节目行：窄屏改为时间在上、正文在下，箭头移到右上角 */
  .slot { flex-direction: column; gap: 4px; }
  .slot__time { width: auto; min-width: 0; }
  .slot--link { position: relative; }
  .slot--link::after { position: absolute; right: 16px; top: 14px; }

  .modal__dialog { padding: 26px 20px; }
}
