:root {
    color-scheme: light;
    --ink: #17233b;
    --muted: #758198;
    --blue: #3168ee;
    --blue-soft: #eef3ff;
    --line: #e7ebf3;
    --font: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-family: var(--font);
    color: var(--ink);
    background: #f7f9fc;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
}
button,
input,
a {
    -webkit-tap-highlight-color: transparent;
}
button,
input {
    font: inherit;
}
button,
a {
    touch-action: manipulation;
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: wait;
    opacity: 0.6;
}
[hidden] {
    display: none !important;
}
a {
    color: inherit;
    text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid #a9c4ff;
    outline-offset: 4px;
}
.icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.site-shell {
    max-width: 1120px;
    margin: auto;
    padding: 0 36px;
}
.home-header {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.home-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -1px;
}
.home-brand img {
    width: 38px;
    height: 38px;
}
.header-note {
    display: flex;
    gap: 7px;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
}
.header-note .icon {
    width: 16px;
    height: 16px;
    color: #5d79aa;
}
.home-main {
    padding: 36px 0 0;
}
.intro {
    text-align: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #466fae;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
}
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #49b88a;
}
.intro h1 {
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -2px;
    line-height: 1.3;
    margin: 17px 0 14px;
    font-weight: 760;
}
.intro h1 span {
    color: var(--blue);
}
.intro > p {
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
    color: var(--muted);
}
.meeting-workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 38px;
    align-items: stretch;
}
.meeting-card {
    padding: 30px;
    border-radius: 24px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(34, 62, 108, 0.035);
    min-width: 0;
}
.action-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 5px;
    gap: 6px;
    border-radius: 13px;
    background: #f3f5fa;
    margin-bottom: 28px;
}
.action-tabs button {
    height: 46px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.action-tabs .icon {
    width: 18px;
    height: 18px;
}
.action-tabs button[aria-selected='true'] {
    background: white;
    color: var(--blue);
    box-shadow: 0 2px 7px #233d7510;
}
.action-panel h2 {
    font-size: 21px;
    margin: 0 0 10px;
    letter-spacing: -0.4px;
}
.panel-description {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
    margin: 0 0 26px;
}
.flow-steps {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0 26px;
    color: #97a3b8;
}
.flow-steps > .icon {
    width: 15px;
    height: 15px;
}
.flow-step {
    flex: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 9px;
    font-size: 12px;
    color: #61718c;
    white-space: nowrap;
}
.step-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--blue-soft);
    color: var(--blue);
}
.primary-button,
.secondary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 650;
}
.primary-button {
    background: var(--blue);
    color: white;
    box-shadow: 0 6px 14px #3168ee20;
}
.primary-button:hover {
    background: #265bdd;
}
.secondary-button {
    background: #f1f5fe;
    color: var(--blue);
    border-color: #e5ebfa;
}
.helper-text {
    display: flex;
    justify-content: center;
    gap: 5px;
    align-items: center;
    font-size: 11px;
    color: #97a2b5;
    margin: 15px 0 0;
    line-height: 1.6;
}
.helper-text .icon {
    width: 13px;
    height: 13px;
}
.field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}
.meeting-input {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    color: var(--ink);
    background: #fbfcff;
    border: 1px solid #e0e6ef;
    border-radius: 11px;
    font-size: 16px;
}
.meeting-input::placeholder {
    color: #a0a9ba;
    font-size: 13px;
}
.meeting-input:focus {
    border-color: var(--blue);
    outline: 3px solid var(--blue-soft);
    outline-offset: 0;
}
.meeting-input[aria-invalid='true'] {
    border-color: #d95c64;
}
.field-error {
    color: #ce525b;
    font-size: 12px;
    min-height: 23px;
    margin: 8px 0 12px;
    line-height: 1.6;
}
.room-preview {
    border-radius: 24px;
    background: #eef3ff;
    border: 1px solid #e5ebfa;
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.preview-kicker {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6581b5;
    font-size: 10px;
    font-weight: 650;
    margin: 0 0 14px;
}
.preview-heading {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 22px;
    letter-spacing: -0.4px;
}
.mini-meeting {
    border-radius: 15px;
    background: white;
    padding: 14px;
    box-shadow: 0 12px 30px #365d9c0d;
    transform: rotate(-2deg);
}
.mini-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #63738d;
    margin-bottom: 12px;
}
.mini-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    color: #4a9b80;
}
.mini-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}
.mini-tile {
    min-height: 83px;
    border-radius: 9px;
    position: relative;
    display: grid;
    place-items: center;
    background: #eff3fb;
}
.mini-tile:nth-child(2) {
    background: #f0f5ef;
}
.mini-tile:nth-child(3) {
    background: #f9f3eb;
}
.mini-tile:nth-child(4) {
    background: #f1eef8;
}
.mini-avatar {
    width: 39px;
    height: 39px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #d4e2fc;
    color: #6483b7;
    font-size: 18px;
    font-weight: 600;
}
.mini-tile:nth-child(2) .mini-avatar {
    background: #dcebd9;
    color: #6d8e66;
}
.mini-tile:nth-child(3) .mini-avatar {
    background: #f0e1ca;
    color: #ad8954;
}
.mini-tile:nth-child(4) .mini-avatar {
    background: #e3dcf3;
    color: #8b75b5;
}
.mini-tile small {
    position: absolute;
    bottom: 7px;
    left: 9px;
    font-size: 9px;
    color: #728096;
}
.mini-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding-top: 12px;
}
.mini-controls span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f3f5f9;
    color: #61718c;
}
.mini-controls .icon {
    width: 13px;
    height: 13px;
}
.mini-controls span:last-child {
    background: #feedef;
    color: #ce6771;
    width: 40px;
}
.preview-note {
    margin: 20px 0 0;
    color: #7f91ac;
    font-size: 11px;
    text-align: center;
}
.recent-room {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 15px;
    margin-top: 20px;
    background: white;
}
.recent-copy {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.recent-copy > .icon {
    color: #8e9ab0;
}
.recent-copy p {
    margin: 0 0 5px;
    font-size: 12px;
    color: var(--muted);
}
.recent-copy code {
    font-size: 12px;
    display: block;
    max-width: 380px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.recent-room a {
    color: var(--blue);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    padding: 10px 0 10px 12px;
}
.capabilities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 35px 0;
}
.capability {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.capability > .icon {
    color: #7a96c3;
    width: 21px;
    margin-top: 1px;
}
.capability h3 {
    font-size: 13px;
    margin: 0 0 7px;
    font-weight: 600;
}
.capability p {
    margin: 0;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.7;
}
.local-note,
.wechat-note {
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.8;
    margin: 16px 0;
}
.local-note {
    background: #fff9ec;
    color: #967446;
    border: 1px solid #f2e9d5;
}
.wechat-note {
    color: #5e779e;
    background: #eef3ff;
}
.home-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0 28px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: #94a0b5;
    gap: 12px;
}
.home-footer a {
    color: #7e8ba3;
}
.invitation-dialog {
    border: 0;
    border-radius: 24px;
    padding: 30px;
    color: var(--ink);
    width: min(420px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    box-shadow: 0 24px 100px #162d6340;
}
.invitation-dialog::backdrop {
    background: #17233b66;
    backdrop-filter: blur(5px);
}
.dialog-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.dialog-heading h2 {
    margin: 0;
    font-size: 22px;
}
.dialog-close {
    border: 0;
    background: #f4f6fa;
    color: #8590a4;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.dialog-subtitle {
    margin: 12px 0 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}
.invitation-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}
.invitation-qr canvas {
    width: 192px;
    height: 192px;
}
.invitation-qr p {
    margin: 0;
    font-size: 11px;
    color: var(--muted);
}
.invitation-room {
    font-family: ui-monospace, monospace;
    font-size: 12px;
    letter-spacing: 0.5px;
    overflow-wrap: anywhere;
    text-align: center;
    margin-bottom: 18px;
}
.invitation-link {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8faff;
    font-size: 12px;
    color: #64738d;
    margin: 0 0 10px;
}
.dialog-actions {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}
.home-toast {
    position: fixed;
    z-index: 10000;
    bottom: calc(24px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translate(-50%, 8px);
    width: max-content;
    max-width: calc(100% - 32px);
    background: #263654;
    color: white;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.2s,
        transform 0.2s;
}
.home-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
@media (max-width: 680px) {
    .site-shell {
        padding: 0 22px;
    }
    .home-header {
        height: 80px;
    }
    .home-brand {
        font-size: 20px;
    }
    .home-brand img {
        width: 33px;
        height: 33px;
    }
    .header-note {
        font-size: 11px;
    }
    .home-main {
        padding-top: 24px;
    }
    .intro h1 {
        font-size: 32px;
        margin: 15px 0 12px;
        letter-spacing: -1.4px;
    }
    .intro > p {
        font-size: 13px;
    }
    .eyebrow {
        font-size: 10px;
    }
    .meeting-workspace {
        grid-template-columns: 1fr;
        margin-top: 28px;
        gap: 0;
    }
    .meeting-card {
        border-radius: 20px;
        padding: 24px;
    }
    .room-preview {
        display: none;
    }
    .action-tabs {
        margin-bottom: 24px;
    }
    .action-panel h2 {
        font-size: 20px;
    }
    .panel-description {
        margin-bottom: 20px;
        font-size: 13px;
    }
    .flow-steps {
        padding: 12px 0 23px;
    }
    .capabilities {
        gap: 16px;
        margin: 26px 0;
    }
    .capability {
        flex-direction: column;
        align-items: center;
        gap: 9px;
        text-align: center;
    }
    .capability h3 {
        font-size: 12px;
    }
    .capability p {
        font-size: 10px;
    }
    .recent-room {
        padding: 15px;
    }
    .recent-copy code {
        max-width: 180px;
        font-size: 10px;
    }
    .recent-room a {
        font-size: 11px;
    }
    .home-footer {
        font-size: 10px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }
    .invitation-dialog {
        padding: 24px;
        border-radius: 20px;
    }
}
@media (max-width: 360px) {
    .site-shell {
        padding: 0 16px;
    }
    .meeting-card {
        padding: 20px;
    }
    .intro h1 {
        font-size: 29px;
    }
    .header-note {
        font-size: 10px;
    }
    .recent-copy code {
        max-width: 140px;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
    .mini-meeting {
        transform: none;
    }
}
.invitation-qr canvas {
    display: block;
    flex-shrink: 0;
    margin-inline: auto;
    background: #fff;
}

.invitation-qr-frame {
    display: grid;
    place-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

/* 登录入口延续首页的浅色卡片，账号名称过长时仍保留退出操作。 */
.header-actions,
.account-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.header-actions {
    margin-left: 20px;
    gap: 24px;
}
.header-login {
    border: 1px solid #dce5f9;
    border-radius: 11px;
    padding: 10px 22px;
    background: #fff;
    color: var(--blue);
    font-size: 13px;
    font-weight: 650;
}
.header-login:hover {
    background: var(--blue-soft);
}
.account-avatar {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 11px;
    background: #e8efff;
    color: var(--blue);
    font-size: 13px;
    font-weight: 650;
    flex-shrink: 0;
}
.account-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}
.text-button {
    padding: 4px 0;
    border: 0;
    background: none;
    color: var(--blue);
    font: inherit;
    white-space: nowrap;
}
.text-button:hover {
    text-decoration: underline;
}
.account-menu .text-button {
    font-size: 12px;
    color: var(--muted);
}
.creation-access {
    display: flex;
    gap: 11px;
    align-items: center;
    margin: 0 0 20px;
    padding: 14px;
    background: #f7f9fd;
    border: 1px solid #edf0f7;
    border-radius: 12px;
}
.access-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    background: #eaf0fc;
    border-radius: 10px;
    color: #6381b5;
}
.access-icon .icon {
    width: 18px;
    height: 18px;
}
.creation-access strong {
    display: block;
    color: #526580;
    font-size: 12px;
    font-weight: 650;
}
.creation-access p {
    margin: 5px 0 0;
    font-size: 11px;
    line-height: 1.6;
    color: #7c8aa1;
}
.creation-access.is-authenticated {
    background: #f1faf6;
    border-color: #e3f1e9;
}
.is-authenticated .access-icon {
    color: #3f9575;
    background: #e0f1e8;
}
.login-dialog {
    padding: 32px;
    background: linear-gradient(155deg, #f1f5ff 0, #fff 38%);
}
.login-emblem {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid #dbe6ff;
    border-radius: 16px;
    background: #e8efff;
    color: var(--blue);
}
.login-emblem .icon {
    width: 25px;
    height: 25px;
}
.login-kicker {
    font-size: 11px;
    color: #6b83b1;
    letter-spacing: 1px;
    margin: 24px 0 10px;
}
.login-dialog h2 {
    font-size: 23px;
    letter-spacing: -0.5px;
    margin: 0;
}
.login-dialog .dialog-subtitle {
    margin-bottom: 26px;
}
.password-label {
    margin-top: 20px;
}
.password-field {
    position: relative;
}
.password-field input {
    padding-right: 68px;
}
.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #6b7f9e;
    padding: 8px 0;
}
.login-guest {
    border-top: 1px solid var(--line);
    margin-top: 24px;
    padding-top: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}
@media (max-width: 680px) {
    .header-actions {
        gap: 12px;
    }
    .header-actions .header-note {
        display: none;
    }
    .header-login {
        padding: 9px 18px;
    }
    .account-menu {
        gap: 8px;
    }
    .account-name {
        max-width: 92px;
    }
    .helper-text {
        flex-wrap: wrap;
    }
    .login-dialog {
        padding: 26px;
    }
    .login-dialog h2 {
        font-size: 21px;
    }
}
