:root {
    --rg-blue: var(--rg-primary, #3159ad);
    --rg-blue-dark: var(--rg-primary-dark, #24478f);
    --rg-blue-soft: var(--rg-primary-soft, #edf3ff);
    --rg-ink: var(--rg-text, #142542);
    --rg-line: var(--rg-border, #e2e8f1);
    --rg-bg: var(--rg-page, #f3f6fa);
    --rg-card: var(--rg-surface, #ffffff);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
    color: var(--rg-ink);
    background: var(--rg-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Microsoft YaHei", Arial, sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.event-topbar {
    height: 58px;
    background: #fff;
    border-bottom: 1px solid var(--rg-line);
}
.event-topbar-inner {
    width: min(1280px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 26px;
}
.event-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}
.event-auth button {
    padding: 4px 0;
    color: #28364e;
    background: transparent;
    border: 0;
}
.event-user {
    display: none;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    cursor: pointer;
}
.event-user img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--rg-line);
}
.event-user-name {
    max-width: 120px;
    overflow: hidden;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.event-nav {
    display: flex;
    align-self: stretch;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.event-nav a {
    position: relative;
    height: 100%;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 600;
}
.event-nav a:hover { color: var(--rg-blue); }
.event-nav a.active::after {
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    height: 3px;
    content: "";
    background: #3975ff;
    border-radius: 3px 3px 0 0;
}

.event-brandbar { background: var(--rg-blue); }
.event-brandbar-inner {
    width: min(1280px, calc(100% - 40px));
    min-height: 92px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 310px minmax(320px, 720px) auto;
    align-items: center;
    gap: 36px;
}
.event-membership-trigger {
    min-width: 142px;
    height: 42px;
    padding: 0 16px;
    color: #24478f;
    background: #fff;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 7px;
    box-shadow: 0 5px 18px rgba(20, 42, 89, .16);
    font-weight: 750;
    white-space: nowrap;
}
.event-membership-trigger:hover { background: #f1f6ff; }
.event-brand {
    display: flex;
    align-items: center;
    gap: 17px;
}
.event-brand img:first-child { width: 115px; }
.event-brand-divider { width: 1px; height: 48px; background: rgba(255,255,255,.32); }
.event-brand-copy {
    color: #fff;
    font-weight: 650;
    line-height: 1.35;
    white-space: nowrap;
}
.event-search {
    display: flex;
    height: 46px;
    overflow: hidden;
    background: #fff;
    border-radius: 6px;
}
.event-search input {
    min-width: 0;
    flex: 1;
    padding: 0 18px;
    color: var(--rg-ink);
    border: 0;
    outline: 0;
}
.event-search button {
    width: 120px;
    color: #fff;
    background: var(--rg-blue-dark);
    border: 2px solid #fff;
    border-radius: 6px;
    font-weight: 650;
}

.event-shell {
    width: min(1280px, calc(100% - 40px));
    margin: 22px auto 50px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 22px;
}
.event-filter, .event-results, .event-detail-card {
    background: var(--rg-card);
    border: 1px solid var(--rg-line);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(29, 53, 93, .04);
}
.event-filter { position: sticky; top: 14px; overflow: hidden; }

.event-results { min-width: 0; overflow: hidden; }
.event-total { color: #8a96a8; font-size: 13px; white-space: nowrap; }
.event-list { min-height: 430px; }
.event-item:last-child { border-bottom: 0; }
.event-item h2 {
    margin: 0;
    color: #122746;
    font-size: 19px;
    line-height: 1.45;
}
.event-item h2 a:hover { color: var(--rg-blue); }
.event-summary {
    margin: 8px 0 10px;
    display: -webkit-box;
    overflow: hidden;
    color: #66758a;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 17px;
    color: #93a0b2;
    font-size: 13px;
}
.event-arrow {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    color: var(--rg-blue);
    background: var(--rg-blue-soft);
    border-radius: 50%;
    font-size: 20px;
}
.event-state {
    min-height: 430px;
    padding: 70px 25px;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: var(--rg-muted);
    text-align: center;
}
.event-state strong { margin-bottom: 7px; color: #42516a; font-size: 18px; }
.event-state button {
    margin-top: 16px;
    padding: 9px 17px;
    color: #fff;
    background: var(--rg-blue);
    border: 0;
    border-radius: 6px;
}
.event-loader {
    width: 34px;
    height: 34px;
    margin-bottom: 18px;
    border: 3px solid #e4ebf7;
    border-top-color: var(--rg-blue);
    border-radius: 50%;
    animation: rg-spin .8s linear infinite;
}
@keyframes rg-spin { to { transform: rotate(360deg); } }
.event-pagination {
    min-height: 68px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid var(--rg-line);
}
.event-pagination button {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    color: #536177;
    background: #fff;
    border: 1px solid #dce3ed;
    border-radius: 6px;
}
.event-pagination button.active { color: #fff; background: var(--rg-blue); border-color: var(--rg-blue); }
.event-pagination button:disabled { cursor: not-allowed; opacity: .45; }

.event-detail-shell {
    width: min(1420px, calc(100% - 40px));
    margin: 22px auto 45px;
}
.event-detail-card { overflow: hidden; }
.event-detail-head {
    padding: 25px 28px 20px;
    border-bottom: 1px solid var(--rg-line);
}
.event-detail-back { color: var(--rg-blue); font-size: 13px; }
.event-detail-title-row {
    margin: 12px 0 9px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}
.event-detail-head h1 {
    min-width: 0;
    margin: 0;
    font-size: 24px;
    line-height: 1.4;
}
.event-detail-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.event-detail-action {
    min-width: 104px;
    height: 42px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--rg-blue);
    background: #fff;
    border: 1px solid #b9caea;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.event-detail-action:hover {
    color: #fff;
    background: var(--rg-blue);
    border-color: var(--rg-blue);
}
.event-detail-action svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}
.event-detail-action.rg-favorite-active {
    color: #9a6810 !important;
    background: #fff8e5;
    border-color: #e9c665;
}
.event-detail-action.rg-favorite-active svg {
    fill: #ffd46a;
}
.event-detail-action:disabled { cursor: wait; opacity: .6; }
.event-detail-page .rg-share-mobile-trigger { display: none; }
.event-participants {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 26px;
    color: #65748a;
    font-size: 14px;
}
.event-translation-status {
    width: fit-content;
    margin-top: 11px;
    padding: 7px 11px;
    color: #315dae;
    background: #edf3ff;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
}
.event-translation-status.success {
    color: #267350;
    background: #edf9f3;
}
.event-translation-status.warning {
    color: #8a6519;
    background: #fff8e8;
}
.event-detail-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    min-height: 650px;
}
.event-watermark {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 2;
    max-width: calc(100% - 36px);
    color: rgba(49, 89, 173, .22);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    pointer-events: none;
    user-select: none;
}
.event-detail-grid .event-pane {
    position: relative;
    z-index: 1;
}
.event-pane { min-width: 0; padding: 22px 25px; }
.event-pane + .event-pane { border-left: 1px solid var(--rg-line); }
.event-pane-title {
    margin: 0 0 18px;
    color: #33445d;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.event-tabs {
    margin-bottom: 18px;
    display: flex;
    gap: 8px;
}
.event-tabs button {
    padding: 8px 18px;
    color: #536177;
    background: #f6f8fb;
    border: 1px solid #e0e6ef;
    border-radius: 6px;
}
.event-tabs button.active { color: var(--rg-blue); background: var(--rg-blue-soft); border-color: #aac0ee; }
.event-block { margin-bottom: 22px; }
.event-speaker {
    margin-bottom: 7px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.event-speaker strong { color: #263851; }
.event-speaker span {
    padding: 3px 8px;
    color: #1975a2;
    background: #dff4ff;
}
.event-original, .event-translation, .event-summary-text {
    margin: 0;
    color: #26364c;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.65;
}
.event-translation {
    margin-top: 10px;
    padding: 12px 13px;
    background: #f5f7fa;
    border-radius: 6px;
}
.event-detail-error { min-height: 500px; }

.event-membership-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 29, 54, .58);
    backdrop-filter: blur(3px);
}
.event-membership-card {
    position: relative;
    width: min(520px, 100%);
    padding: 32px;
    color: var(--rg-ink);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(10, 25, 52, .28);
}
.event-membership-close {
    position: absolute;
    top: 13px;
    right: 17px;
    padding: 0;
    color: #6e7b8e;
    background: transparent;
    border: 0;
    font-size: 30px;
    line-height: 1;
}
.event-membership-kicker {
    color: var(--rg-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
}
.event-membership-card h2 { margin: 7px 0 5px; font-size: 26px; }
.event-membership-message { margin: 0; color: #68778d; line-height: 1.6; }
.event-membership-price {
    margin: 22px 0 15px;
    display: flex;
    align-items: baseline;
    gap: 7px;
}
.event-membership-price strong { color: #24478f; font-size: 44px; line-height: 1; }
.event-membership-price span { color: #728097; }
.event-membership-card ul {
    margin: 0 0 20px;
    padding: 17px 18px 17px 38px;
    color: #3e4e65;
    background: #f5f8fd;
    border-radius: 11px;
    line-height: 1.85;
}
.event-membership-usage {
    margin-bottom: 14px;
    padding: 11px 13px;
    color: #2856a8;
    background: #edf3ff;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
}
.event-membership-buy {
    width: 100%;
    height: 48px;
    color: #fff;
    background: var(--rg-blue);
    border: 0;
    border-radius: 8px;
    font-weight: 750;
}
.event-membership-buy:disabled { cursor: not-allowed; opacity: .58; }
.event-membership-safe {
    margin: 12px 0 0;
    color: #8995a7;
    font-size: 12px;
    text-align: center;
}

@media print {
    body * { visibility: hidden !important; }
    body::after {
        position: fixed;
        inset: 0;
        display: grid;
        place-items: center;
        visibility: visible !important;
        content: "ReportGem 会议纪要仅支持在线查看";
        color: #263851;
        font-size: 22px;
    }
}

@media (max-width: 980px) {
    .event-topbar { height: auto; }
    .event-topbar-inner { padding: 10px 0; align-items: flex-start; }
    .event-auth, .event-user { margin-top: 6px; }
    .event-nav { overflow-x: auto; }
    .event-nav a { height: 42px; }
    .event-brandbar-inner { grid-template-columns: 230px minmax(260px, 1fr) auto; gap: 20px; }
    .event-shell { grid-template-columns: 220px minmax(0, 1fr); }
    .event-arrow { display: none; }
}

@media (max-width: 760px) {
    .event-topbar-inner, .event-brandbar-inner, .event-shell, .event-detail-shell {
        width: calc(100% - 24px);
    }
    .event-topbar-inner { flex-direction: column; gap: 4px; }
    .event-auth { order: 2; }
    .event-nav { width: 100%; order: 1; }
    .event-nav a { padding: 0 10px; font-size: 13px; }
    .event-brandbar-inner { padding: 15px 0 18px; grid-template-columns: 1fr; gap: 12px; }
    .event-brand { justify-content: center; }
    .event-brand img:first-child { width: 96px; }
    .event-brand-divider, .event-brand-copy { display: none; }
    .event-search { height: 42px; }
    .event-search button { width: 84px; }
    .event-membership-trigger { width: 100%; }
    .event-shell { margin-top: 12px; grid-template-columns: 1fr; }
    .event-filter { position: static; }
    .event-item h2 { font-size: 16px; }
    .event-summary { font-size: 13px; }
    .event-detail-shell { margin-top: 12px; }
    .event-detail-head { padding: 20px 17px 17px; }
    .event-detail-head h1 { font-size: 20px; }
    .event-detail-title-row { flex-direction: column; gap: 14px; }
    .event-detail-actions { width: 100%; }
    .event-detail-action { min-width: 0; flex: 1 1 0; }
    .event-detail-grid { grid-template-columns: 1fr; }
    .event-pane { padding: 19px 17px; }
    .event-pane + .event-pane { border-top: 1px solid var(--rg-line); border-left: 0; }
}
