:root {
    color-scheme: light;
    --ink: #111827;
    --muted: #52616f;
    --line: rgba(17, 24, 39, 0.12);
    --paper: #f4f8fd;
    --white: #ffffff;
    --blue: #094fd1;
    --blue-deep: #073178;
    --accent: #f05d3d;
    --mint: #2dbf9a;
    --shadow: 0 24px 80px rgba(7, 49, 120, 0.18);
    --section-width: 1280px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 clamp(20px, 5vw, 72px);
    color: var(--white);
    background: rgba(3, 15, 36, 0.34);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px);
}

.brand,
.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-logo {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-wordmark {
    font-size: 19px;
    font-weight: 900;
    line-height: 0.95;
}

.brand-cn {
    color: #00d166;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--white);
    color: var(--blue);
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 14px;
    font-weight: 700;
}

.top-nav a {
    opacity: 0.88;
}

.top-nav a:hover {
    opacity: 1;
}

.nav-cta {
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 8px;
}

.hero {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    color: var(--white);
    background: #061632;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 11, 27, 0.78), rgba(5, 28, 78, 0.48) 48%, rgba(3, 10, 25, 0.78)),
        url("/assets/openclaw-hero-bg.png") center / cover no-repeat;
    transform: scale(1.04);
    animation: backgroundDrift 18s ease-in-out infinite alternate;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 28%;
    background: linear-gradient(0deg, var(--paper), rgba(248, 250, 252, 0));
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(440px, 520px);
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
    width: min(1280px, calc(100% - 40px));
    min-height: 100svh;
    margin: 0 auto;
    padding: 90px 0 48px;
}

.hero-copy {
    max-width: 700px;
    animation: riseIn 680ms ease both;
}

.eyebrow,
.form-kicker {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 700px;
    margin: 0;
    font-size: clamp(40px, 5.8vw, 74px);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero-lede {
    max-width: 560px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.55;
}

.hero-actions,
.toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary,
.button.submit {
    color: var(--white);
    background: var(--accent);
    box-shadow: 0 18px 42px rgba(240, 93, 61, 0.32);
}

.button.ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.button.ghost.dark {
    color: var(--blue-deep);
    background: var(--white);
    border-color: var(--line);
}

.registration-panel,
.admin-card {
    display: grid;
    gap: 9px;
    padding: 20px 22px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    box-shadow: var(--shadow);
    animation: riseIn 760ms 120ms ease both;
}

.registration-panel h2,
.admin-card h2 {
    margin: 0;
    font-size: 26px;
}

label,
fieldset {
    display: grid;
    gap: 8px;
    margin: 0;
    color: #233143;
    font-size: 13px;
    font-weight: 800;
}

.legal-copy {
    margin: 0;
    color: #5b6978;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
}

.legal-copy a {
    color: var(--blue);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

input,
select,
textarea {
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    color: var(--ink);
    background: #f7f9fc;
    border: 1px solid rgba(17, 24, 39, 0.16);
    border-radius: 8px;
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(9, 79, 209, 0.12);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

fieldset {
    grid-template-columns: 1fr 1fr;
    padding: 10px 12px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 8px;
}

legend {
    padding: 0 6px;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.35;
}

.check input {
    width: 16px;
    min-height: 16px;
    margin-top: 2px;
    accent-color: var(--blue);
}

.hidden-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-message {
    min-height: 20px;
    margin: 0;
    color: var(--blue-deep);
    font-size: 13px;
    font-weight: 800;
}

.form-message.error {
    color: #c53424;
}

.stats-band {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    width: min(var(--section-width), calc(100% - 40px));
    margin: -34px auto 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(7, 49, 120, 0.14);
}

.stats-band div {
    display: grid;
    gap: 6px;
    padding: 24px;
    background: var(--white);
}

.stats-band strong {
    font-size: clamp(22px, 3vw, 34px);
}

.stats-band span {
    color: var(--muted);
    font-size: 14px;
}

.content-section,
.split-section,
.final-cta {
    width: min(var(--section-width), calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(64px, 8vw, 96px) 0;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.intro-section {
    padding: clamp(52px, 7vw, 82px) 0 clamp(36px, 5vw, 58px);
}

.intro-section + #highlights {
    padding-top: clamp(48px, 6vw, 76px);
}

.content-section.is-visible,
.split-section.is-visible,
.final-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-heading {
    max-width: 660px;
    margin-bottom: 34px;
}

.section-heading h2,
.final-cta h2 {
    margin: 0;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
}

.markdown-flow {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.85;
}

.markdown-flow h1,
.markdown-flow h2,
.markdown-flow h3 {
    color: var(--ink);
}

.markdown-flow ul {
    display: grid;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.markdown-flow li,
.learning-list li {
    position: relative;
    padding-left: 28px;
}

.markdown-flow li::before,
.learning-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--mint);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}

.feature-item {
    min-height: 240px;
    padding: 26px;
    background: var(--white);
    transition: transform 180ms ease, background 180ms ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    background: #fbfdff;
}

.feature-item h3,
.speaker-item h3,
.faq-item h3 {
    margin: 0 0 14px;
    font-size: 22px;
}

.feature-item p,
.speaker-item p,
.faq-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.split-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(32px, 8vw, 96px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.learning-list ul {
    display: grid;
    gap: 18px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sticky-heading {
    position: sticky;
    top: 108px;
    align-self: start;
}

.learning-list {
    display: grid;
    gap: 18px;
    padding: 0;
    margin: 0;
    list-style: none;
    color: var(--ink);
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 800;
}

.speaker-section {
    width: 100%;
    max-width: none;
    padding: clamp(72px, 9vw, 112px) max(20px, calc((100vw - var(--section-width)) / 2));
    background: #081b3d;
    color: var(--white);
}

.speaker-section .section-heading h2 {
    color: var(--white);
}

.speaker-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.speaker-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    padding: 0;
    min-height: 100%;
    color: var(--ink);
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.speaker-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 86px rgba(0, 0, 0, 0.3);
}

.speaker-photo-wrap {
    aspect-ratio: 1 / 1.08;
    overflow: hidden;
    background: linear-gradient(180deg, #eef6ff, #dcecff);
}

.speaker-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

.speaker-card-body {
    padding: 24px;
    min-height: 214px;
}

.speaker-role {
    color: var(--blue);
    margin: 0 0 10px;
    font-weight: 900;
}

.details-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 40px;
}

.event-info {
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}

.event-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    padding: 18px 20px;
    background: var(--white);
}

.event-row strong {
    color: var(--muted);
}

.package-block {
    padding: 28px;
    color: rgba(255, 255, 255, 0.86);
    background: var(--blue-deep);
    border-radius: 8px;
}

.package-block h1,
.package-block h2,
.package-block h3 {
    color: var(--white);
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.faq-item {
    padding-top: 22px;
    border-top: 3px solid var(--accent);
}

.final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    max-width: none;
    color: var(--white);
    background:
        linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
        url("/assets/openclaw-hero-bg.png") center / cover no-repeat;
    border-radius: 0;
    padding: clamp(76px, 10vw, 128px) max(20px, calc((100vw - var(--section-width)) / 2));
}

.final-cta .button.primary {
    min-width: 190px;
    min-height: 62px;
    padding: 0 30px;
    font-size: 18px;
}

.final-cta p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
}

.admin-page {
    min-height: 100svh;
    background:
        linear-gradient(90deg, rgba(248, 250, 252, 0.96), rgba(248, 250, 252, 0.82)),
        url("/assets/openclaw-hero-bg.png") center / cover fixed;
}

.admin-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
}

.admin-login {
    display: grid;
    gap: 26px;
    max-width: 460px;
    margin: 12vh auto 0;
}

.admin-brand .brand-mark {
    background: var(--blue);
    color: var(--white);
}

.admin-brand h1,
.admin-toolbar h1 {
    margin: 0;
}

.admin-brand p {
    margin: 4px 0 0;
    color: var(--muted);
}

.admin-workspace {
    display: grid;
    gap: 22px;
}

.admin-toolbar,
.admin-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.admin-controls label {
    width: min(420px, 100%);
}

.admin-count {
    color: var(--muted);
    font-weight: 800;
}

.table-wrap {
    overflow: auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(7, 49, 120, 0.1);
}

table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

th {
    position: sticky;
    top: 0;
    color: #344256;
    background: #f3f7fb;
    font-size: 12px;
}

td {
    color: var(--muted);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

@keyframes backgroundDrift {
    from {
        transform: scale(1.04) translate3d(-10px, 0, 0);
    }
    to {
        transform: scale(1.1) translate3d(18px, -12px, 0);
    }
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 1ms !important;
        transition-duration: 1ms !important;
    }
}

@media (max-width: 980px) {
    .top-nav {
        display: none;
    }

    .hero-content,
    .split-section,
    .details-layout {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding-top: 104px;
    }

    .registration-panel {
        max-width: 560px;
    }

    .stats-band,
    .feature-grid,
    .faq-list,
    .speaker-list {
        grid-template-columns: 1fr;
    }

    .speaker-item {
        grid-template-columns: 1fr;
    }

    .sticky-heading {
        position: static;
    }
}

@media (max-width: 640px) {
    .site-header {
        height: 64px;
        padding: 0 16px;
    }

    .hero-content,
    .content-section,
    .split-section,
    .final-cta,
    .stats-band {
        width: calc(100% - 28px);
    }

    .hero h1 {
        font-size: clamp(36px, 11vw, 50px);
    }

    .form-grid,
    .event-row,
    .final-cta,
    .admin-toolbar,
    .admin-controls {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .registration-panel,
    .admin-card {
        padding: 20px;
    }

    .hero-actions,
    .toolbar-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}
