:root {
    /* Mathematical Aesthetic - Low Profile, Elegant */
    --primary-hue: 210;
    /* Blue-Grey range */
    --bg-color: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --primary-color: #2c3e50;
    /* Deep Slate - Rigorous */
    --accent-color: #4b6584;
    /* Muted Steel Blue - Understated */
    --highlight-color: #778ca3;
    /* Soft Grey Blue */
    --line-color: #dfe6e9;

    --header-bg: rgba(255, 255, 255, 0.98);
    --nav-height: 60px;

    /* Fonts */
    --font-serif: 'Cormorant Garamond', "Times New Roman", serif;
    --font-sans: 'Lato', Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    counter-reset: h2-counter;
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--bg-color);
    background-image:
        linear-gradient(rgba(44, 62, 80, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(44, 62, 80, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    /* Graph paper effect */
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--header-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 0.1px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.1;
    white-space: nowrap;
}

/* Final schedule layout overrides */
.schedule {
    width: 100%;
    margin-left: 0;
    transform: none;
}

.schedule-panel {
    padding: 0;
    background: transparent;
    border-bottom: none;
}

.conference-schedule {
    width: 100%;
    table-layout: fixed;
}

.schedule-period-col {
    width: 11%;
}

.schedule-time-col {
    width: 13%;
}

.schedule-content-col {
    width: 63%;
}

.schedule-location-col {
    width: 13%;
}

.conference-schedule .location-cell {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

@media (min-width: 769px) {
    .schedule-period-col {
        width: 12%;
    }

    .schedule-content-col {
        width: 62%;
    }

    .conference-schedule .period-cell {
        padding-left: 4px;
        padding-right: 4px;
        text-align: center;
        vertical-align: middle;
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .schedule-panel {
        padding: 0;
        background: transparent;
    }

    .conference-schedule,
    .conference-schedule tbody,
    .conference-schedule tr,
    .conference-schedule th,
    .conference-schedule td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    .conference-schedule {
        border: none;
        background: transparent;
    }

    .conference-schedule colgroup,
    .conference-schedule .schedule-head-row {
        display: none;
    }

    .conference-schedule .schedule-day-row {
        margin: 0 0 10px;
        padding: 0;
        border: none;
        background: transparent;
    }

    .conference-schedule .schedule-day-row th {
        display: block;
        padding: 0;
        border: none;
        background: transparent;
        color: var(--primary-color);
        text-align: left;
        font-size: 1rem;
    }

    .conference-schedule tr:not(.schedule-day-row):not(.schedule-head-row) {
        margin: 0 0 10px;
        padding: 0;
        border: 1px solid var(--line-color);
        border-radius: 4px;
        background: #fff;
        overflow: hidden;
    }

    .conference-schedule td {
        position: static;
        display: block;
        min-height: 0;
        padding: 10px 14px;
        border: none;
        border-bottom: 1px solid #d8d8d8;
        white-space: normal !important;
        text-align: left;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .conference-schedule td:last-child {
        border-bottom: none;
    }

    .conference-schedule td::before {
        position: static;
        display: block;
        width: auto;
        padding: 0;
        margin-bottom: 4px;
        color: var(--text-muted);
        font-weight: 700;
        white-space: nowrap;
        content: attr(data-label) "：";
    }

    html[lang="en"] .conference-schedule td::before {
        content: attr(data-label) ": ";
    }

    html[lang="en"] .conference-schedule .period-cell::before {
        content: "Session: ";
    }

    html[lang="en"] .conference-schedule .time-cell::before {
        content: "Time: ";
    }

    html[lang="en"] .conference-schedule td[data-label="内容"]::before {
        content: "Program: ";
    }

    html[lang="en"] .conference-schedule .location-cell::before {
        content: "Location: ";
    }

    .conference-schedule .period-cell,
    .conference-schedule .location-cell {
        text-align: left;
    }

    .conference-schedule .location-cell .lang-zh {
        max-width: none;
    }

    .conference-schedule td[data-label="时段"]:empty,
    .conference-schedule td[data-label="地点"]:empty,
    .conference-schedule td[data-label="内容"]:empty {
        display: none;
    }
}

.nav-logo-mark {
    display: block;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 22px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link.highlighted {
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color);
}

.nav-link.highlighted::after {
    display: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}


.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* --- Dropdown Menu --- */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: rgba(44, 62, 80, 0.05);
    color: var(--primary-color);
}

/* Mobile Dropdown Override */
@media (max-width: 768px) {
    .nav-item-dropdown {
        width: 100%;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.02);
        display: none;
        /* Hidden by default on mobile, toggled via JS */
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 5px 0;
    }

    .dropdown-menu.show {
        display: block;
    }

    .nav-item-dropdown:hover .dropdown-menu {
        /* Disable hover on mobile */
        display: none;
    }

    .nav-item-dropdown:hover .dropdown-menu.show {
        display: block;
    }

    .dropdown-toggle::after {
        content: ' ▼';
        font-size: 0.7em;
        margin-left: 5px;
    }
}

/* Language Button */
.lang-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 12px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 600;
}


.lang-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* --- Breadcrumb --- */
.breadcrumb-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 25px;
    box-sizing: border-box;
}

.breadcrumb {
    padding: 10px 0;
    margin-bottom: 10px;
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--text-muted);
    text-align: left;
}

.breadcrumb a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: var(--line-color);
}

.breadcrumb .current {
    color: var(--text-muted);
    font-weight: 400;
}

/* --- Header --- */
.main-header {
    margin-top: var(--nav-height);
    padding: 100px 20px 34px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(44, 62, 80, 0.02) 0%, transparent 70%);
    position: relative;
}

.hero-title-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.hero-itcs-logo {
    display: inline-block;
    width: clamp(58px, 6vw, 84px);
    height: auto;
    flex: 0 0 auto;
}

h1#home {
    font-family: var(--font-serif);
    font-size: 4rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.1;
}

.subtitle {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-top: 15px;
    font-style: italic;
    font-weight: 400;
}

.subtitle .anniv-number,
.subtitle .anniv-suffix {
    font-family: inherit;
    font-style: inherit;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

.subtitle .anniv-number {
    font-size: 1em;
    font-weight: 400;
}

.subtitle .anniv-suffix {
    font-size: 0.78em;
    margin-left: 1px;
}

.photo-marquee {
    width: min(1160px, calc(100vw - 40px));
    margin: 34px auto 0;
    overflow: hidden;
    border-top: 1px solid var(--line-color);
    border-bottom: 1px solid var(--line-color);
    padding: 14px 0;
    position: relative;
}

.photo-marquee::before,
.photo-marquee::after {
    content: '';
    position: absolute;
    top: 14px;
    bottom: 14px;
    width: 74px;
    z-index: 2;
    pointer-events: none;
}

.photo-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
}

.photo-marquee::after {
    right: 0;
    background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0));
}

.photo-marquee-track {
    display: flex;
    width: max-content;
    gap: 16px;
    will-change: transform;
}

.photo-marquee figure {
    width: auto;
    height: clamp(230px, 26vw, 360px);
    margin: 0;
    position: relative;
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid rgba(44, 62, 80, 0.16);
    overflow: hidden;
    cursor: zoom-in;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.photo-marquee figure:hover,
.photo-marquee figure:focus-visible {
    border-color: var(--accent-color);
    box-shadow: 0 8px 22px rgba(44, 62, 80, 0.16);
    outline: none;
}

.photo-marquee img {
    display: block;
    width: auto;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.photo-marquee figcaption {
    position: absolute;
    right: 10px;
    bottom: 8px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
}

.photo-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 38px;
    height: 38px;
    transform: translateY(-50%);
    border: 1px solid rgba(44, 62, 80, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.58);
    color: var(--primary-color);
    font-size: 1.8rem;
    line-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 3px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.12);
    opacity: 0.68;
    transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.photo-nav:hover,
.photo-nav:focus-visible {
    background: rgba(255, 255, 255, 0.96);
    border-color: var(--accent-color);
    opacity: 1;
    outline: none;
}

.photo-nav-prev {
    left: 12px;
}

.photo-nav-next {
    right: 12px;
}

body.lightbox-open {
    overflow: hidden;
}

.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 34px;
    background: rgba(18, 27, 34, 0.82);
    backdrop-filter: blur(4px);
}

.photo-lightbox.show {
    display: flex;
}

.photo-lightbox figure {
    width: min(1120px, 94vw);
    max-height: 88vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.photo-lightbox img {
    display: block;
    max-width: 100%;
    max-height: calc(88vh - 44px);
    object-fit: contain;
    background: #fff;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

.photo-lightbox figcaption {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.photo-lightbox-close {
    position: fixed;
    top: 18px;
    right: 20px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.subtitle-cn {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--text-muted);
    /* Corrected variable name */
    margin-top: 10px;
    letter-spacing: 4px;
    opacity: 0.8;
}

/* --- Content Structure --- */
.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 25px 40px;
    background: #fff;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.02);
    /* Soft shadow for content card feel */
}

h2 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-color);
    position: relative;
    font-weight: 600;
    display: flex;
    align-items: center;
}

h2::before {
    counter-increment: h2-counter;
    content: counter(h2-counter, lower-greek);
    margin-right: 15px;
    color: var(--line-color);
    font-size: 0.8em;
    font-weight: 300;
}

p {
    margin-bottom: 1.6em;
    text-align: justify;
    color: var(--text-main);
    font-weight: 300;
}

.event-meta {
    text-align: left;
}

html[lang="en"] p,
html[lang="en"] .info-list li,
html[lang="en"] .poster-content li {
    font-weight: 350;
}

/* --- Schedule Components --- */
.day {
    background: #fff;
    border: 1px solid var(--line-color);
    padding: 18px 24px;
    margin-bottom: 12px;
    cursor: pointer;
    border-radius: 4px;
    /* Slightly sharper corners */
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.day::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--line-color);
    transition: background 0.2s ease;
}

.day:hover {
    background: #fdfdfd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.day:hover::before {
    background: var(--accent-color);
}

.day .icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    /* Smaller icon */
    height: 20px;
    margin-right: 15px;
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.day .icon.rotated {
    transform: rotate(90deg);
    color: var(--primary-color);
}

.details-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        margin-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafbfc;
    /* Very light grey */
    border-bottom: 1px solid var(--line-color);
    /* Close border */
    margin-bottom: 0;
    padding: 20px;
    /* Constant padding on all sides */
    box-sizing: border-box;
    opacity: 0;
}

.details-content.show {
    max-height: none;
    /* Allows full expansion after animation */
    /* Padding is already set in base class */
    margin-bottom: 10px;
    opacity: 1;
}

/* --- Tables --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border: 1px solid var(--line-color);
}

th,
td {
    padding: 12px 20px;
    border: 1px solid var(--line-color);
    text-align: left;
    font-size: 0.95rem;
}

/* Specific Column Widths */
th:nth-child(2),
td:nth-child(2) {
    /* Speaker */
    width: 15%;
    min-width: 100px;
    white-space: nowrap;
}

.schedule td:nth-child(2) {
    white-space: normal;
}

th:nth-child(4),
td:nth-child(4) {
    /* Host */
    width: 12%;
    min-width: 80px;
    white-space: nowrap;
}

th {
    background-color: transparent;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--line-color);
}

tr:first-child th {
    border-top: none;
}

.time-cell {
    font-family: var(--font-sans);
    /* Use sans for numbers for better readability */
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 0.9em;
    width: 140px;
}

.schedule {
    width: min(1120px, calc(100vw - 48px));
    margin-left: 50%;
    transform: translateX(-50%);
}

.conference-schedule {
    table-layout: fixed;
    border: 1px solid #8f8f8f;
    font-size: 0.92rem;
    line-height: 1.32;
}

.conference-schedule th,
.conference-schedule td {
    border: 1px solid #8f8f8f;
    padding: 8px 10px;
    vertical-align: middle;
    color: var(--text-main);
}

.conference-schedule th {
    background: #fff;
    color: #111;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    text-align: center;
}

.conference-schedule .schedule-title-row th {
    font-size: 1.35rem;
    line-height: 1.2;
    padding: 8px 10px;
}

.conference-schedule .schedule-day-row th {
    text-align: left;
    background: #fff;
    font-size: 0.98rem;
}

.schedule-period-col {
    width: 7%;
}

.schedule-time-col {
    width: 12%;
}

.schedule-content-col {
    width: 70%;
}

.schedule-location-col {
    width: 11%;
}

.conference-schedule .period-cell,
.conference-schedule .location-cell {
    text-align: center;
    font-weight: 600;
}

.conference-schedule .time-cell {
    width: auto;
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 500;
    white-space: nowrap;
}

.conference-schedule .break-row td,
.conference-schedule .meal-row td {
    background: #f5f5f5;
}

.keynote-label {
    white-space: nowrap;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
        border-bottom: 1px solid var(--line-color);
        transform: translateY(-150%);
        transition: transform 0.4s ease-in-out;
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-logo {
        font-size: 0.88rem;
        gap: 6px;
        letter-spacing: 0;
    }

    .nav-logo-mark {
        width: 24px;
        height: 24px;
    }

    .main-header {
        padding: 60px 20px 34px;
    }

    .hero-title-row {
        gap: 12px;
    }

    .hero-itcs-logo {
        width: 48px;
    }

    h1#home {
        font-size: 2.0rem;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 1.2rem;
        margin-top: 10px;
    }

    .content {
        padding: 20px;
        box-shadow: none;
        background: transparent;
    }

    h2 {
        font-size: 1.6rem;
        margin-top: 30px;
    }

    .details-content {
        padding: 8px;
    }

    table {
        border: none;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    th {
        display: none;
    }

    tr {
        margin-bottom: 15px;
        border: 1px solid var(--line-color);
        background: #fff;
        border-radius: 4px;
        padding: 10px;
    }

    td {
        border: none;
        padding: 8px 10px;
        position: relative;
        padding-left: 50%;
        width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        box-sizing: border-box;
    }

    td::before {
        position: absolute;
        top: 8px;
        left: 10px;
        width: 42%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        color: var(--text-muted);
        font-size: 0.85em;
    }

    /* Labeling needed for mobile table views */
    td:nth-of-type(1)::before {
        content: "时间：";
    }

    td:nth-of-type(2)::before {
        content: "报告人：";
    }

    td:nth-of-type(3)::before {
        content: "报告内容：";
    }

    td:nth-of-type(4)::before {
        content: "主持人：";
    }

    td[colspan],
    td[colspan]+td {
        padding-left: 10px;
        text-align: center;
    }

    td[colspan]::before,
    td[colspan]+td::before {
        content: "";
    }

    .time-cell {
        color: var(--accent-color);
    }

    .schedule {
        width: 100%;
        margin-left: 0;
        transform: none;
    }

    .conference-schedule {
        border: none;
        font-size: 0.95rem;
    }

    .conference-schedule colgroup {
        display: none;
    }

    .conference-schedule .schedule-title-row,
    .conference-schedule .schedule-day-row,
    .conference-schedule .schedule-head-row {
        display: block;
        border: none;
        padding: 0;
        margin: 20px 0 10px;
        background: transparent;
    }

    .conference-schedule .schedule-title-row th,
    .conference-schedule .schedule-day-row th {
        display: block;
        border: none;
        padding: 0;
        text-align: left;
        background: transparent;
    }

    .conference-schedule .schedule-title-row th {
        text-align: center;
        font-size: 1.25rem;
        margin-bottom: 14px;
    }

    .conference-schedule .schedule-day-row th {
        color: var(--primary-color);
        font-size: 1rem;
    }

    .conference-schedule .schedule-head-row {
        display: none;
    }

    .conference-schedule tr {
        margin-bottom: 10px;
    }

    .conference-schedule td {
        min-height: 32px;
    }

    .conference-schedule td::before {
        content: attr(data-label) "：";
    }

    html[lang="en"] .conference-schedule td::before {
        content: attr(data-label) ": ";
    }

    .conference-schedule td[data-label="时段"]:empty {
        display: none;
    }

    .conference-schedule td[data-label="地点"]:empty,
    .conference-schedule td[data-label="内容"]:empty {
        display: none;
    }
}

#background h2 {
    margin-top: 14px;
}

html[lang="en"] .lang-zh,
html[lang="zh"] .lang-en {
    display: none;
}

.mobile-only {
    display: none;
}

.venue-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0 8px;
}

.venue-gallery figure {
    margin: 0;
    border: 1px solid var(--line-color);
    background: #fff;
}

.venue-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.venue-gallery figcaption {
    padding: 10px 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
}

.speaker-card {
    border: 1px solid var(--line-color);
    border-left: 4px solid var(--accent-color);
    padding: 22px 24px;
    margin: 24px 0;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.speaker-panel {
    padding: 0;
    background: transparent;
    border-bottom: none;
}

.speaker-day-toggle {
    margin-top: 18px;
}

.speaker-card:hover,
.speaker-card:focus-visible {
    border-color: var(--highlight-color);
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.12);
    outline: none;
}

.speaker-card::after {
    content: '+';
    position: absolute;
    top: 18px;
    right: 20px;
    color: var(--accent-color);
    font-size: 1.6rem;
    line-height: 1;
}

.speaker-card.expanded::after {
    content: '−';
}

.speaker-card:not(.expanded)> :not(h3):not(.speaker-time):not(.speaker-title) {
    display: none;
}

.speaker-day-title {
    margin-top: 34px;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 600;
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 8px;
}

.speaker-card h3 {
    margin-top: 0;
    margin-bottom: 4px;
}

.speaker-card h4 {
    margin-top: 18px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.speaker-affiliation {
    margin-top: 0;
    color: var(--text-muted);
}

.speaker-bio-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    margin-bottom: 8px;
}

.speaker-bio-heading h4 {
    margin: 0;
}

.speaker-homepage {
    margin: 0;
    flex: 0 0 auto;
}

.speaker-homepage-link {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
}

.speaker-homepage-link:hover,
.speaker-homepage-link:focus-visible {
    background: var(--accent-color);
    color: #fff;
    outline: none;
}

.speaker-time {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 400;
}

.speaker-title {
    color: var(--primary-color);
    margin-bottom: 0;
    padding-right: 28px;
}

.info-list h3,
.poster-content h3 {
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.info-list ul,
.poster-content ul {
    margin: 0 0 1.4em 0;
    padding-left: 1.4em;
}

.info-list li,
.poster-content li {
    margin-bottom: 0.35em;
    font-weight: 300;
}

.poster-link {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.poster-link:hover {
    background: var(--primary-color);
    color: #fff;
}

.organization-content {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.organization-text {
    flex: 1 1 auto;
    min-width: 0;
}

.organization-qr {
    flex: 0 0 auto;
    margin: 0;
    text-align: right;
}

.organization-qr img {
    display: block;
    width: min(180px, 48vw);
    height: auto;
    margin: 0;
}

@media (max-width: 768px) {
    html[lang="en"] td:nth-of-type(1)::before {
        content: "Time: ";
    }

    html[lang="en"] td:nth-of-type(2)::before {
        content: "Speaker: ";
    }

    html[lang="en"] td:nth-of-type(3)::before {
        content: "Topic: ";
    }

    html[lang="en"] td:nth-of-type(4)::before {
        content: "Host: ";
    }

    html[lang="en"] td[colspan]::before,
    html[lang="en"] td[colspan]+td::before {
        content: "";
    }

    .conference-schedule td::before {
        content: attr(data-label) "：";
    }

    html[lang="en"] .conference-schedule td::before {
        content: "Program: ";
    }

    html[lang="en"] .conference-schedule .period-cell::before {
        content: "Session: ";
    }

    html[lang="en"] .conference-schedule .time-cell::before {
        content: "Time: ";
    }

    html[lang="en"] .conference-schedule .location-cell::before {
        content: "Location: ";
    }

    .photo-marquee {
        width: min(100%, calc(100vw - 24px));
        margin-top: 24px;
    }

    .photo-marquee-track {
        gap: 12px;
    }

    .photo-marquee figure {
        height: 225px;
    }

    .photo-nav {
        width: 34px;
        height: 34px;
        font-size: 1.7rem;
    }

    .organization-content {
        display: block;
    }

    .organization-qr {
        margin: 28px auto 0;
        text-align: center;
    }

    .organization-qr img {
        margin: 0 auto;
    }

    .venue-gallery {
        grid-template-columns: 1fr;
    }

    .speaker-card {
        padding: 18px 16px;
    }

    .speaker-card::after {
        top: 14px;
        right: 14px;
    }

    .photo-lightbox {
        padding: 18px;
    }

    .photo-lightbox-close {
        top: 12px;
        right: 12px;
    }
}

/* Final schedule pass: keep the agenda aligned with the content column. */
.schedule {
    width: 100%;
    margin-left: 0;
    transform: none;
}

.schedule-panel {
    padding: 0;
    background: transparent;
    border-bottom: none;
}

.conference-schedule {
    width: 100%;
    table-layout: fixed;
}

.schedule-period-col {
    width: 11%;
}

.schedule-time-col {
    width: 13%;
}

.schedule-content-col {
    width: 63%;
}

.schedule-location-col {
    width: 13%;
}

.conference-schedule .location-cell {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

@media (max-width: 768px) {
    .schedule-panel {
        padding: 0;
        background: transparent;
    }

    .conference-schedule,
    .conference-schedule tbody,
    .conference-schedule tr,
    .conference-schedule th,
    .conference-schedule td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    .conference-schedule {
        border: none;
        background: transparent;
    }

    .conference-schedule colgroup,
    .conference-schedule .schedule-head-row {
        display: none;
    }

    .conference-schedule .schedule-day-row {
        margin: 0 0 10px;
        padding: 0;
        border: none;
        background: transparent;
    }

    .conference-schedule .schedule-day-row th {
        display: block;
        padding: 0;
        border: none;
        background: transparent;
        color: var(--primary-color);
        text-align: left;
        font-size: 1rem;
    }

    .conference-schedule tr:not(.schedule-day-row):not(.schedule-head-row) {
        margin: 0 0 10px;
        padding: 0;
        border: 1px solid var(--line-color);
        border-radius: 4px;
        background: #fff;
        overflow: hidden;
    }

    .conference-schedule td {
        position: static;
        display: block;
        min-height: 0;
        padding: 10px 14px;
        border: none;
        border-bottom: 1px solid #d8d8d8;
        white-space: normal !important;
        text-align: left;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .conference-schedule td:last-child {
        border-bottom: none;
    }

    .conference-schedule td::before {
        position: static;
        display: block;
        width: auto;
        padding: 0;
        margin-bottom: 4px;
        color: var(--text-muted);
        font-weight: 700;
        white-space: nowrap;
        content: attr(data-label) "：";
    }

    html[lang="en"] .conference-schedule td::before {
        content: attr(data-label) ": ";
    }

    html[lang="en"] .conference-schedule .period-cell::before {
        content: "Session: ";
    }

    html[lang="en"] .conference-schedule .time-cell::before {
        content: "Time: ";
    }

    html[lang="en"] .conference-schedule td[data-label="内容"]::before {
        content: "Program: ";
    }

    html[lang="en"] .conference-schedule .location-cell::before {
        content: "Location: ";
    }

    .conference-schedule .period-cell,
    .conference-schedule .location-cell {
        text-align: left;
    }

    .conference-schedule .location-cell span {
        max-width: none;
    }

    .conference-schedule td[data-label="时段"]:empty,
    .conference-schedule td[data-label="地点"]:empty,
    .conference-schedule td[data-label="内容"]:empty {
        display: none;
    }

    .conference-schedule .opening-extra {
        display: none !important;
    }

    .conference-schedule .desktop-only {
        display: none;
    }

    .conference-schedule .mobile-only {
        display: inline;
    }
}
