/* ============================================================
   detail.css — third-level pages (event detail / 报名, tech item,
   post thread, auth). Direction A neumorphism. Loaded after pages.css.
   ============================================================ */

.dview { position: relative; z-index: 1; padding-top: 30px; }
/* beat `.ka a { color: inherit }` (0,1,1) for these anchor utilities */
.ka .back { color: var(--ink-soft); }
.ka .link-chip { color: var(--ink-soft); }
.back { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); cursor: pointer; padding: 9px 16px 9px 13px; border-radius: 999px; margin-bottom: 28px; transition: color .2s, box-shadow .28s, transform .2s;
  box-shadow: calc(3px*var(--soft)) calc(3px*var(--soft)) calc(8px*var(--soft)) var(--d-sh), calc(-3px*var(--soft)) calc(-3px*var(--soft)) calc(8px*var(--soft)) var(--l-sh); }
.back:hover { color: var(--accent); transform: translateX(-2px); }
.back svg { width: 14px; height: 14px; transform: rotate(180deg); }

.dcols { display: grid; grid-template-columns: 1fr 360px; gap: 34px; align-items: start; }
.dmain { min-width: 0; }
.dside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 22px; }

/* detail header block */
.dhead { margin-bottom: 30px; }
.dhead .meta-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.dhead h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px,3.4vw,40px); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 18px; color: var(--ink); text-wrap: balance; }
.dhead .facts { display: flex; gap: 26px; flex-wrap: wrap; }
.dfact { display: flex; flex-direction: column; gap: 5px; }
.dfact .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.dfact .v { font-size: 15px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.dfact .v .pin { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* generic content panel */
.panel { border-radius: 24px; padding: 30px 32px; }
.panel + .panel { margin-top: 22px; }
.panel h2 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0 0 18px; color: var(--ink); }
.panel h2.with-rule { display: flex; align-items: center; gap: 14px; }
.panel h2.with-rule::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.panel p { font-size: 15px; line-height: 1.8; color: var(--ink-soft); margin: 0 0 14px; text-wrap: pretty; }
.panel p:last-child { margin-bottom: 0; }

/* agenda list */
.agenda { display: flex; flex-direction: column; gap: 2px; }
.agenda-row { display: grid; grid-template-columns: 88px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.agenda-row:last-child { border-bottom: none; }
.agenda-row .t { font-family: var(--font-mono); font-size: 13.5px; color: var(--accent); }
.agenda-row .c { font-size: 14.5px; color: var(--ink); font-weight: 500; }
.agenda-row .c span { display: block; font-weight: 400; font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* speakers / people chips */
.people { display: flex; flex-wrap: wrap; gap: 14px; }
.person { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 16px;
  box-shadow: inset calc(2px*var(--soft)) calc(2px*var(--soft)) calc(6px*var(--soft)) var(--d-sh), inset calc(-2px*var(--soft)) calc(-2px*var(--soft)) calc(6px*var(--soft)) var(--l-sh); }
.person .nm { font-size: 14px; font-weight: 600; color: var(--ink); }
.person .ro { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }

/* tag list */
.taglist { display: flex; flex-wrap: wrap; gap: 9px; }
.taglist .ptag { font-family: var(--font-mono); font-size: 12px; color: var(--accent); padding: 6px 12px; border-radius: 999px;
  box-shadow: inset calc(2px*var(--soft)) calc(2px*var(--soft)) calc(5px*var(--soft)) var(--d-sh), inset calc(-2px*var(--soft)) calc(-2px*var(--soft)) calc(5px*var(--soft)) var(--l-sh); }

/* ---- forms (registration / auth) ---- */
.fld { margin-bottom: 16px; }
.fld > label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-soft); margin-bottom: 9px; }
.input { width: 100%; border: none; outline: none; background: var(--bg); font-family: var(--font-sans); font-size: 15px; color: var(--ink); padding: 14px 16px; border-radius: 13px;
  box-shadow: inset calc(3px*var(--soft)) calc(3px*var(--soft)) calc(7px*var(--soft)) var(--d-sh), inset calc(-3px*var(--soft)) calc(-3px*var(--soft)) calc(7px*var(--soft)) var(--l-sh); }
.input::placeholder { color: var(--ink-faint); }
.input:focus { box-shadow: inset calc(3px*var(--soft)) calc(3px*var(--soft)) calc(7px*var(--soft)) var(--d-sh), inset calc(-3px*var(--soft)) calc(-3px*var(--soft)) calc(7px*var(--soft)) var(--l-sh), 0 0 0 2px var(--accent-glow); }
select.input { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%238b93a4' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.seg { display: flex; gap: 10px; flex-wrap: wrap; }
.seg .opt { font-size: 13.5px; font-weight: 500; color: var(--ink-soft); padding: 10px 16px; border-radius: 999px; cursor: pointer; transition: color .2s, box-shadow .25s;
  box-shadow: calc(2px*var(--soft)) calc(2px*var(--soft)) calc(6px*var(--soft)) var(--d-sh), calc(-2px*var(--soft)) calc(-2px*var(--soft)) calc(6px*var(--soft)) var(--l-sh); }
.seg .opt.on { color: var(--accent-ink); background: var(--accent); box-shadow: calc(2px*var(--soft)) calc(2px*var(--soft)) calc(7px*var(--soft)) var(--accent-glow); }
.btn-full { width: 100%; justify-content: center; }
.fld-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
textarea.input.ta { min-height: 110px; resize: vertical; line-height: 1.6; font-family: var(--font-sans); }
.form-slot { display: block; width: 100%; height: 180px; }
.tips { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.tips li { position: relative; padding-left: 20px; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.tips li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.reg-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 0 0 4px; color: var(--ink); }
.reg-card .price { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); margin-bottom: 20px; }
.reg-meta { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--hair); }
.reg-meta .r { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; }
.reg-meta .r .k { color: var(--ink-faint); font-family: var(--font-mono); font-size: 12px; }
.reg-meta .r .v { color: var(--ink); font-weight: 500; }

/* success state */
.done-card { text-align: center; padding: 16px 4px 6px; }
.done-card .check { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; color: var(--accent);
  box-shadow: calc(4px*var(--soft)) calc(4px*var(--soft)) calc(10px*var(--soft)) var(--d-sh), calc(-4px*var(--soft)) calc(-4px*var(--soft)) calc(10px*var(--soft)) var(--l-sh); }
.done-card .check svg { width: 28px; height: 28px; }
.done-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0 0 10px; color: var(--ink); }
.done-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 22px; }

/* ---- tech item detail (run panel) ---- */
.item-hero { display: flex; align-items: flex-start; gap: 22px; margin-bottom: 26px; }
.item-hero .thumb-lg { width: 72px; height: 72px; border-radius: 20px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: #fff; }
.item-hero .ttl { flex: 1; min-width: 0; }
.item-hero h1 { font-family: var(--font-display); font-size: clamp(26px,3vw,36px); font-weight: 600; letter-spacing: -.02em; margin: 0 0 10px; color: var(--ink); line-height: 1.2; }
.item-hero .by { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.item-hero .by b { color: var(--ink-soft); font-weight: 500; }
.item-stats { display: flex; gap: 26px; margin: 4px 0 0; }
.item-stat { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 7px; }
.item-stat svg { width: 14px; height: 14px; }
.item-stat b { color: var(--ink); font-weight: 600; }

/* link chips under title (HF / GitHub / arXiv) */
.link-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.link-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-soft); padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: color .2s, transform .2s, box-shadow .25s;
  box-shadow: calc(2px*var(--soft)) calc(2px*var(--soft)) calc(6px*var(--soft)) var(--d-sh), calc(-2px*var(--soft)) calc(-2px*var(--soft)) calc(6px*var(--soft)) var(--l-sh); }
.link-chip:hover { color: var(--accent); transform: translateY(-1px); }
.link-chip svg { width: 15px; height: 15px; }

/* detail tab bar */
.dtabs { display: flex; gap: 6px; padding: 6px; border-radius: 999px; margin-bottom: 26px; width: fit-content;
  box-shadow: inset calc(3px*var(--soft)) calc(3px*var(--soft)) calc(7px*var(--soft)) var(--d-sh), inset calc(-3px*var(--soft)) calc(-3px*var(--soft)) calc(7px*var(--soft)) var(--l-sh); }
.dtabs button { border: none; cursor: pointer; font-family: var(--font-sans); font-size: 14px; font-weight: 600; padding: 10px 24px; border-radius: 999px; background: transparent; color: var(--ink-soft); transition: color .2s, box-shadow .25s; }
.dtabs button.on { color: var(--accent); background: var(--bg);
  box-shadow: calc(3px*var(--soft)) calc(3px*var(--soft)) calc(8px*var(--soft)) var(--d-sh), calc(-3px*var(--soft)) calc(-3px*var(--soft)) calc(8px*var(--soft)) var(--l-sh); }

/* cover / media image slots */
.cover-slot { display: block; width: 100%; height: 300px; }
.media-slot { display: block; width: 100%; height: 240px; }
/* Card cover only appears once an image has been dropped (data-filled) */
.card-cover { display: block; width: 100%; height: 300px; margin-bottom: 22px; }
.card-cover:not([data-filled]) { display: none; }
.hf-emoji { font-size: 16px; line-height: 1; }

/* README (markdown, user-editable) */
.readme-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.readme-bar h2 { font-family: var(--font-mono); font-size: 15px; }
.readme-edit { font-size: 13px; font-weight: 600; color: var(--accent); cursor: pointer; }
.readme-hint { font-size: 13px; color: var(--ink-faint); font-style: italic; }

/* file list */
.filelist { display: flex; flex-direction: column; }
.frow { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; padding: 14px 4px; border-bottom: 1px solid var(--hair); }
.frow:last-child { border-bottom: none; }
.frow .fn { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-mono); font-size: 14px; color: var(--ink); }
.frow .fn svg { width: 17px; height: 17px; color: var(--ink-faint); }
.frow .fs { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); }
.frow .fd { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); white-space: nowrap; }

/* dropzone */
.dropzone { border-radius: 18px; padding: 40px 24px; text-align: center; color: var(--ink-faint); cursor: pointer; transition: color .2s, box-shadow .25s;
  box-shadow: inset calc(3px*var(--soft)) calc(3px*var(--soft)) calc(8px*var(--soft)) var(--d-sh), inset calc(-3px*var(--soft)) calc(-3px*var(--soft)) calc(8px*var(--soft)) var(--l-sh); }
.dropzone:hover { color: var(--accent); }
.dropzone .dz-t { font-size: 15px; font-weight: 600; color: var(--ink); margin: 12px 0 6px; }
.dropzone .dz-s { font-family: var(--font-mono); font-size: 12px; }

/* meta stats row */
.meta-stats { display: flex; gap: 22px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hair); }

.run { }
.run .io { display: flex; flex-direction: column; gap: 14px; }
.run textarea { width: 100%; min-height: 110px; resize: vertical; border: none; outline: none; background: var(--bg); font-family: var(--font-sans); font-size: 14.5px; line-height: 1.6; color: var(--ink); padding: 16px; border-radius: 14px;
  box-shadow: inset calc(3px*var(--soft)) calc(3px*var(--soft)) calc(7px*var(--soft)) var(--d-sh), inset calc(-3px*var(--soft)) calc(-3px*var(--soft)) calc(7px*var(--soft)) var(--l-sh); }
.run textarea::placeholder { color: var(--ink-faint); }
.run .out { border-radius: 14px; padding: 18px; min-height: 80px; font-size: 14.5px; line-height: 1.7; color: var(--ink); white-space: pre-wrap;
  box-shadow: inset calc(3px*var(--soft)) calc(3px*var(--soft)) calc(7px*var(--soft)) var(--d-sh), inset calc(-3px*var(--soft)) calc(-3px*var(--soft)) calc(7px*var(--soft)) var(--l-sh); }
.run .out .ph { color: var(--ink-faint); }
.run .out .cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.run .runbar { display: flex; align-items: center; gap: 14px; }
.run .runbar .hint { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); margin-left: auto; }

.meta-card .mrow { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 13.5px; }
.meta-card .mrow:last-child { border-bottom: none; }
.meta-card .mrow .k { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.meta-card .mrow .v { color: var(--ink); font-weight: 500; }

/* related list */
.rel { display: flex; flex-direction: column; gap: 4px; }
.rel a { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.rel a:last-child { border-bottom: none; }
.rel .sq { width: 36px; height: 36px; border-radius: 11px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: #fff; }
.rel .nm { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel .ty { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); margin-top: 2px; }

/* ---- post thread ---- */
.thread-post .phead { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.thread-post .phead .n { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.thread-post .phead .h { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.thread-post .phead .kind { margin-left: auto; font-family: var(--font-mono); font-size: 11px; padding: 6px 12px; border-radius: 999px; color: var(--accent);
  box-shadow: inset calc(2px*var(--soft)) calc(2px*var(--soft)) calc(5px*var(--soft)) var(--d-sh), inset calc(-2px*var(--soft)) calc(-2px*var(--soft)) calc(5px*var(--soft)) var(--l-sh); }
.thread-post h1 { font-family: var(--font-display); font-size: clamp(24px,3vw,32px); font-weight: 600; line-height: 1.3; margin: 0 0 18px; color: var(--ink); }
.thread-post .body { font-size: 15.5px; line-height: 1.85; color: var(--ink-soft); margin: 0 0 22px; }
.thread-post .pfoot { display: flex; align-items: center; gap: 10px; padding-top: 20px; border-top: 1px solid var(--hair); }
.thread-post .pfoot .met { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); padding: 9px 15px; border-radius: 999px; transition: color .2s, box-shadow .25s; }
.thread-post .pfoot .met:hover { color: var(--accent); box-shadow: inset calc(2px*var(--soft)) calc(2px*var(--soft)) calc(5px*var(--soft)) var(--d-sh), inset calc(-2px*var(--soft)) calc(-2px*var(--soft)) calc(5px*var(--soft)) var(--l-sh); }
.thread-post .pfoot .met.share { margin-left: auto; }
.thread-post .pfoot .met svg { width: 15px; height: 15px; }

.comments h2 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 0 0 20px; color: var(--ink); }
.cmt { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.cmt:last-child { border-bottom: none; }
.cmt .cbody { flex: 1; min-width: 0; }
.cmt .chead { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.cmt .chead .n { font-size: 14px; font-weight: 600; color: var(--ink); }
.cmt .chead .t { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); }
.cmt .ctext { font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }
.cmt .clike { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); margin-top: 9px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.cmt .clike:hover { color: var(--accent); }
.cmt .clike svg { width: 13px; height: 13px; }

.reply { display: flex; gap: 14px; align-items: flex-start; }
.reply .field { flex: 1; }

/* ---- auth ---- */
.auth-stage { min-height: calc(100vh - 220px); display: flex; align-items: center; justify-content: center; padding: 40px 0 70px; position: relative; z-index: 1; }
.auth-card { width: 100%; max-width: 440px; border-radius: 28px; padding: 40px; }
.auth-card .brand { display: flex; justify-content: center; margin-bottom: 10px; }
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head h1 { font-family: var(--font-display); font-size: 25px; font-weight: 600; margin: 14px 0 8px; color: var(--ink); }
.auth-head p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.auth-tabs { display: flex; gap: 6px; padding: 6px; border-radius: 999px; margin-bottom: 26px;
  box-shadow: inset calc(3px*var(--soft)) calc(3px*var(--soft)) calc(7px*var(--soft)) var(--d-sh), inset calc(-3px*var(--soft)) calc(-3px*var(--soft)) calc(7px*var(--soft)) var(--l-sh); }
.auth-tabs button { flex: 1; border: none; cursor: pointer; font-family: var(--font-sans); font-size: 14.5px; font-weight: 600; padding: 11px; border-radius: 999px; background: transparent; color: var(--ink-soft); transition: color .2s, box-shadow .25s; }
.auth-tabs button.on { color: var(--accent); background: var(--bg);
  box-shadow: calc(3px*var(--soft)) calc(3px*var(--soft)) calc(8px*var(--soft)) var(--d-sh), calc(-3px*var(--soft)) calc(-3px*var(--soft)) calc(8px*var(--soft)) var(--l-sh); }
.auth-foot { text-align: center; margin-top: 22px; font-size: 13px; color: var(--ink-faint); }
.auth-foot a { color: var(--accent); font-weight: 600; cursor: pointer; }
.oauth { display: flex; gap: 12px; margin-top: 18px; }
.oauth .ob { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px; border-radius: 13px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); cursor: pointer; transition: color .2s, transform .2s;
  box-shadow: calc(3px*var(--soft)) calc(3px*var(--soft)) calc(8px*var(--soft)) var(--d-sh), calc(-3px*var(--soft)) calc(-3px*var(--soft)) calc(8px*var(--soft)) var(--l-sh); }
.oauth .ob:hover { color: var(--ink); transform: translateY(-1px); }
.oauth .ob svg { width: 17px; height: 17px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); letter-spacing: .1em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.agree { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 20px; cursor: pointer; }
.agree .box { width: 18px; height: 18px; border-radius: 6px; flex: 0 0 auto; margin-top: 1px; display: flex; align-items: center; justify-content: center; color: var(--accent-ink); transition: background .2s;
  box-shadow: inset calc(2px*var(--soft)) calc(2px*var(--soft)) calc(4px*var(--soft)) var(--d-sh), inset calc(-2px*var(--soft)) calc(-2px*var(--soft)) calc(4px*var(--soft)) var(--l-sh); }
.agree .box.on { background: var(--accent); box-shadow: none; }
.agree .box svg { width: 12px; height: 12px; opacity: 0; }
.agree .box.on svg { opacity: 1; }
.agree a { color: var(--accent); }

/* ============================================================
   Event detail — open hero on aurora + frosted glass panels
   (no speakers / agenda; intro + register only)
   Loaded before unify.css; high-specificity .ka rules also
   appended at end of unify.css to win cascade.
   ============================================================ */
.event-detail {
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
  background: transparent !important;
  isolation: isolate;
}

/* Soft local wash so title sits in the same light field as site aurora */
.event-page-glow {
  position: absolute;
  left: -12%;
  right: -8%;
  top: -40px;
  height: 420px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 70% at 18% 30%,
      color-mix(in oklch, var(--accent) 22%, transparent),
      transparent 72%),
    radial-gradient(ellipse 45% 55% at 88% 18%,
      color-mix(in oklch, #38bdf8 14%, transparent),
      transparent 70%);
  opacity: .85;
  filter: blur(2px);
}
.event-detail > *:not(.event-page-glow) {
  position: relative;
  z-index: 1;
}

/* Open hero — title floats on background, not inside a card */
.event-open-hero {
  margin: 4px 0 28px;
  max-width: 1040px;
}
.event-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.event-open-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.2;
  letter-spacing: -.025em;
  margin: 0 0 26px;
  color: var(--ink);
  /* 让长标题先占满可用宽度再自然换行，不再过早折行 */
  max-width: 100%;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  word-break: normal;
}
.event-mode-chip {
  color: var(--accent);
  font-weight: 600;
}

.event-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
}
.event-fact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 15px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--ah-card, rgba(255,255,255,.7)) 48%, transparent);
  border: 1px solid color-mix(in srgb, var(--ah-line, var(--line)) 65%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.event-fact .ef-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: color-mix(in oklch, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent) 22%, transparent);
}
.event-fact .ef-icon svg { width: 16px; height: 16px; }
.event-fact .k {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.event-fact .v {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  word-break: break-word;
}

.event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.event-main { min-width: 0; }
.event-side {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Frosted glass — translucent so aurora / technet show through */
.event-glass {
  position: relative;
  border-radius: 26px;
  background: color-mix(in srgb, var(--ah-card, rgba(255,255,255,.72)) 58%, transparent);
  border: 1px solid color-mix(in srgb, var(--ah-line, var(--line)) 78%, transparent);
  box-shadow:
    0 18px 48px -28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(22px) saturate(1.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.55);
  overflow: hidden;
}
:root[data-theme="dark"] .event-glass {
  background: color-mix(in srgb, var(--ah-card, rgba(28,28,30,.72)) 62%, transparent);
  box-shadow:
    0 20px 52px -24px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.event-shell { padding: 0; }
.event-empty {
  padding: 36px 32px;
  max-width: 520px;
}
.event-empty p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.event-intro {
  padding: 30px 34px 32px;
  background: transparent;
  border: none;
  box-shadow: none;
}
.event-intro h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 14px;
}
.event-intro h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--ah-line, var(--hair)) 80%, transparent);
}
.event-desc {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
  white-space: pre-wrap;
}
.event-desc-muted { color: var(--ink-faint); }

.event-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--ah-line, var(--hair)) 75%, transparent);
}
.event-prize {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 14px;
  min-width: 180px;
  background: color-mix(in srgb, var(--ah-card, var(--surface)) 36%, transparent);
  border: 1px solid color-mix(in srgb, var(--ah-line, var(--line)) 70%, transparent);
}
.event-prize .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.event-prize .v {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.event-source-btn { margin-left: auto; }

/* Secondary text link — quiet, sits under intro divider, not a button */
.event-source-line {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--ah-line, var(--hair)) 60%, transparent);
}
.ka .event-source-link,
.event-source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-faint);
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--ink-faint) 50%, transparent);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.ka .event-source-link:hover,
.event-source-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.event-source-link svg { flex: 0 0 auto; }

/* Disabled registration button — grey, non-interactive */
.btn.event-reg-disabled,
.event-reg-disabled {
  background: color-mix(in srgb, var(--ink-faint) 22%, var(--surface)) !important;
  color: var(--ink-faint) !important;
  border: 1px solid color-mix(in srgb, var(--ink-faint) 28%, transparent) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: none;
  opacity: 1;
}
:root[data-theme="dark"] .btn.event-reg-disabled,
:root[data-theme="dark"] .event-reg-disabled {
  background: color-mix(in srgb, #ffffff 10%, transparent) !important;
  color: color-mix(in srgb, #ffffff 42%, transparent) !important;
  border-color: color-mix(in srgb, #ffffff 14%, transparent) !important;
}

/* Agenda & guests — share the intro's typographic rhythm */
.event-agenda,
.event-guests {
  padding: 4px 34px 30px;
  background: transparent;
  border: none;
  box-shadow: none;
}
.event-agenda h2,
.event-guests h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 14px;
}
.event-agenda h2::after,
.event-guests h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--ah-line, var(--hair)) 80%, transparent);
}

.agenda-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.agenda-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ah-line, var(--hair)) 65%, transparent);
}
.agenda-item:last-child { border-bottom: none; }
.agenda-time {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--accent);
}
.agenda-title {
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
}

.guest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.guest-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ah-card, var(--surface)) 36%, transparent);
  border: 1px solid color-mix(in srgb, var(--ah-line, var(--line)) 70%, transparent);
}
.guest-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.guest-title {
  font-size: 12px;
  color: var(--ink-faint);
}

/* Registration — same glass family */
.event-reg-card {
  padding: 28px 26px 26px;
}
.event-reg-head h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--ink);
}
.event-reg-card .price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.event-reg-card .reg-meta {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--ah-line, var(--hair)) 75%, transparent);
}
.event-reg-card .done-card .check {
  background: color-mix(in oklch, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent) 22%, transparent);
  box-shadow: none;
}

@media (max-width: 940px) {
  .dcols { grid-template-columns: 1fr; }
  .dside { position: static; }
  .event-layout { grid-template-columns: 1fr; }
  .event-side { position: static; }
  .event-facts { grid-template-columns: 1fr; max-width: none; }
  .event-source-btn { margin-left: 0; }
}
@media (max-width: 620px) {
  .panel { padding: 24px 22px; }
  .auth-card { padding: 30px 22px; }
  .item-hero { gap: 16px; }
  .item-hero .thumb-lg { width: 58px; height: 58px; }
  .event-open-hero h1 { font-size: clamp(26px, 7.2vw, 34px); margin-bottom: 20px; }
  .event-intro { padding: 24px 22px 26px; }
  .event-reg-card { padding: 22px 20px; }
  .event-page-glow { height: 320px; }
}

/* ---- 技术广场详情：与活动详情一致的「浮于背景」处理 ---- */
.demo-detail { position: relative; isolation: isolate; padding-top: 34px; }
.demo-detail > *:not(.event-page-glow) { position: relative; z-index: 1; }
.demo-detail .item-hero { margin-top: 6px; }
/* 标题大模块浮于背景，不再是白卡（覆盖 unify.css 的 .ka .item-hero !important） */
.ka .demo-detail .item-hero,
.demo-detail .item-hero {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
}
/* 面板改用玻璃质感（.panel .event-glass），内部沿用 .panel 的内距/排版 */
.demo-detail .panel.event-glass { padding: 30px 32px; }
.demo-detail .dtabs {
  background: color-mix(in srgb, var(--ah-card, rgba(255,255,255,.6)) 46%, transparent);
  border: 1px solid color-mix(in srgb, var(--ah-line, var(--line)) 60%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
:root[data-theme="dark"] .demo-detail .dtabs {
  background: color-mix(in srgb, var(--ah-card, rgba(28,28,30,.6)) 52%, transparent);
}
/* 空态（收录条目无本地文件） */
.demo-empty { text-align: center; padding: 30px 26px 34px; }
.demo-empty .de-ic {
  width: 52px; height: 52px; border-radius: 15px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  background: color-mix(in oklch, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent) 22%, transparent);
}
.demo-empty h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.demo-empty p { max-width: 420px; margin: 0 auto 18px; }
/* README 内的外链行 */
.readme-source { margin-top: 6px; }
.readme-source a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--accent);
  padding: 9px 15px; border-radius: 999px; text-decoration: none;
  background: color-mix(in oklch, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent) 22%, transparent);
}
.readme-source a:hover { background: color-mix(in oklch, var(--accent) 16%, transparent); }
