:root {
  color-scheme: dark;
  --bg: #06101f;
  --card: rgba(12, 27, 49, .78);
  --card-border: rgba(151, 189, 255, .14);
  --text: #f5f8ff;
  --muted: #95a5bf;
  --accent: #5f7cff;
  --accent-2: #55d7ff;
  --success: #42d69b;
  --warning: #ffbf69;
  --danger: #ff6f83;
  --surface: rgba(255,255,255,.055);
  --shadow: 0 28px 90px rgba(0,0,0,.42);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(77, 112, 255, .2), transparent 34%),
    radial-gradient(circle at 84% 84%, rgba(60, 211, 255, .13), transparent 34%),
    linear-gradient(145deg, #040b16 0%, #09172b 48%, #06101f 100%);
  overflow-x: hidden;
}
button, input { font: inherit; }
button { cursor: pointer; }
.ambient { position: fixed; width: 320px; height: 320px; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: .35; }
.ambient-one { background: #536eff; top: -120px; left: -100px; }
.ambient-two { background: #24c6dc; right: -130px; bottom: -140px; }
.page-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; }
.app-card {
  width: min(100%, 540px);
  padding: 34px;
  border: 1px solid var(--card-border);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.brand-row { display: flex; align-items: center; gap: 16px; }
.brand-mark { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 14px 30px rgba(78, 111, 255, .3); }
.brand-mark svg { width: 34px; height: 34px; fill: white; }
.eyebrow { margin: 0 0 4px; color: #7f9cff; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(25px, 5vw, 32px); letter-spacing: -.03em; }
.subtitle { margin: 18px 0 26px; color: var(--muted); font-size: 14px; line-height: 1.8; }
label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 700; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 16px; color: #6f85aa; font-weight: 900; }
input { width: 100%; height: 54px; border: 1px solid rgba(145, 175, 224, .16); border-radius: 15px; outline: none; color: var(--text); background: rgba(4, 13, 28, .62); transition: .2s ease; }
#roomId { padding: 0 48px 0 39px; }
input:focus { border-color: rgba(99, 126, 255, .72); box-shadow: 0 0 0 4px rgba(95, 124, 255, .12); }
input::placeholder { color: #63728a; }
.icon-button { position: absolute; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 10px; color: #9aabc3; background: transparent; font-size: 22px; }
.icon-button:hover { color: white; background: var(--surface); }
.input-hint { margin: 8px 2px 18px; color: #6f819d; font-size: 12px; }
.primary-button, .secondary-button, .ghost-button { border: 0; border-radius: 14px; font-weight: 800; transition: transform .16s ease, filter .16s ease, opacity .16s ease; }
.primary-button { width: 100%; height: 54px; color: white; background: linear-gradient(135deg, #586fff, #4fbce8); box-shadow: 0 14px 32px rgba(77, 107, 255, .25); }
.primary-button:hover:not(:disabled), .secondary-button:hover, .ghost-button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.primary-button:disabled { cursor: not-allowed; opacity: .68; }
.button-spinner { display: none; width: 17px; height: 17px; margin-left: 9px; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; vertical-align: -3px; animation: spin .75s linear infinite; }
.primary-button.loading .button-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-panel { margin-top: 22px; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 9px; color: #b7c5da; font-size: 13px; }
.progress-track { height: 9px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); }
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 20px rgba(78, 164, 255, .5); transition: width .35s ease; }
.status-card { display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: center; margin-top: 20px; padding: 15px; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; background: var(--surface); }
.status-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #a9b9d0; background: rgba(255,255,255,.07); font-weight: 900; }
.status-card strong { display: block; margin-bottom: 4px; font-size: 14px; }
.status-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.status-success .status-icon { color: #071c15; background: var(--success); }
.status-warning .status-icon { color: #291800; background: var(--warning); }
.status-error .status-icon { color: #2c0710; background: var(--danger); }
.result-panel { margin-top: 20px; padding: 18px; border: 1px solid rgba(90, 222, 180, .18); border-radius: 18px; background: rgba(42, 192, 142, .055); }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.result-label { display: block; color: #6f819d; font-size: 11px; margin-bottom: 4px; }
.result-heading strong { font-size: 14px; }
.expire-badge { flex: none; padding: 6px 9px; border-radius: 999px; color: #7ee5bd; background: rgba(66, 214, 155, .1); font-size: 11px; }
.url-box { position: relative; }
#resultUrl { height: 49px; padding: 0 75px 0 13px; color: #bcd0ff; font-size: 13px; }
.copy-inline { position: absolute; right: 7px; top: 7px; height: 35px; padding: 0 13px; border: 0; border-radius: 10px; color: #dbe4ff; background: rgba(95, 124, 255, .18); font-weight: 700; }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; }
.secondary-button, .ghost-button { height: 46px; }
.secondary-button { color: #07121f; background: linear-gradient(135deg, #64e2be, #68c6ef); }
.ghost-button { color: #d8e2f4; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); }
footer { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 22px; color: #657691; font-size: 11px; }
.security-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 10; max-width: calc(100% - 36px); padding: 12px 18px; border-radius: 12px; color: white; background: rgba(13, 24, 42, .94); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 16px 50px rgba(0,0,0,.35); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
[hidden] { display: none !important; }
@media (max-width: 520px) {
  .page-shell { padding: 16px 12px; align-items: start; }
  .app-card { padding: 24px 18px; border-radius: 22px; }
  .brand-mark { width: 50px; height: 50px; border-radius: 15px; }
  .action-row { grid-template-columns: 1fr; }
  .result-heading { align-items: flex-start; }
}
.tutorial-area {
    display: flex;
    justify-content: center;
    margin-top:8px;
    transform:translateY(-12px);
}

.tutorial-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-width: 180px;
    height: 48px;
    padding: 0 26px;

    color: #dce8ff;
    font-size: 15px;
    font-weight: 600;

    background: rgba(19, 42, 70, 0.55);
    border: 1px solid rgba(112, 158, 255, 0.28);
    border-radius: 14px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.tutorial-btn:hover {
    transform: translateY(-2px);
    color: #ffffff;
    border-color: rgba(100, 174, 255, 0.6);
    background: rgba(45, 94, 155, 0.55);

    box-shadow:
        0 14px 32px rgba(24, 96, 180, 0.2),
        0 0 18px rgba(70, 143, 255, 0.12);
}

.tutorial-btn:active {
    transform: translateY(0);
}

.tutorial-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    color: #ffffff;
    font-size: 14px;
    font-weight: 700;

    background: linear-gradient(135deg, #5879ff, #50b8eb);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(71, 137, 255, 0.28);
}