/* ==========================================================================
   科酷 OkcolMeet · 设计系统
   视觉语言参考腾讯视频：深色底 + 暖橙渐变 + 大圆角 + 微光晕
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #07070A;
  --bg-2: #0B0B10;
  --surface: #131319;
  --surface-2: #1A1A22;
  --surface-3: #232330;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);

  --text: #F5F6F8;
  --text-2: #A6ABB7;
  --text-3: #6C7180;

  --brand: #FF6A1A;
  --brand-2: #FFB02E;
  --brand-soft: rgba(255, 106, 26, .13);
  --grad: linear-gradient(135deg, #FF9E33 0%, #FF5A00 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 158, 51, .18), rgba(255, 90, 0, .06));

  --ok: #26C281;
  --warn: #F0A020;
  --danger: #FF3B30;
  --danger-soft: rgba(255, 59, 48, .14);

  --r-xs: 8px;
  --r-s: 12px;
  --r-m: 16px;
  --r-l: 22px;
  --r-xl: 30px;

  --shadow-s: 0 6px 18px -8px rgba(0, 0, 0, .8);
  --shadow-m: 0 18px 44px -20px rgba(0, 0, 0, .9);
  --shadow-l: 0 40px 90px -40px rgba(0, 0, 0, 1);
  --glow: 0 14px 36px -14px rgba(255, 106, 26, .55);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }

::selection { background: rgba(255, 106, 26, .32); }

/* 滚动条 */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 99px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .26); }

/* ---------- 图标 ---------- */
.i {
  width: 20px; height: 20px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.85;
  stroke-linecap: round; stroke-linejoin: round;
}
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }
.i-fill { fill: currentColor; stroke: none; }

/* ---------- 布局 ---------- */
.container { width: min(1220px, calc(100% - 48px)); margin-inline: auto; }
.row { display: flex; align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.spacer { flex: 1 1 auto; }
.hide { display: none !important; }

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 28px;
  height: 66px; padding: 0 28px;
  background: rgba(7, 7, 10, .72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}
.nav.fixed { position: fixed; left: 0; right: 0; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .3px; }
.brand-mark {
  position: relative;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--grad);
  box-shadow: var(--glow);
}
.brand-mark .i { width: 17px; height: 17px; color: #fff; }
.brand-name { display: block; font-size: 18px; line-height: 1.2; white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--brand-2); }
.brand-sub { display: block; font-size: 11px; line-height: 1.2; color: var(--text-3); letter-spacing: 1.6px; font-weight: 500; }

/* 图标 + 文字行（弹窗、信息卡通用） */
.pmeta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.pmeta > .i { flex: 0 0 auto; color: var(--text-3); }
.pmeta b { color: var(--text); font-weight: 600; }
.pmeta > span { min-width: 0; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px; border-radius: 10px;
  color: var(--text-2); font-size: 14.5px; font-weight: 500;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-link.on { color: var(--text); background: rgba(255, 255, 255, .08); }

/* 返回科酷网（嵌在 okcol.com/meeting/ 下的入口） */
.nav-kk {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 6px 11px 6px 9px; border-radius: 9px;
  font-size: 12.5px; color: var(--text-3); border: 1px solid var(--line);
  transition: color .18s, border-color .18s, background .18s;
}
.nav-kk .i { width: 13px; height: 13px; }
.nav-kk:hover { color: var(--text); border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); }

/* 科酷网入口并进主菜单：与「预约会议 / 我的会议 / 会议纪要」同一行、同一字号基线 */
.nav-kk-link { display: inline-flex; align-items: center; gap: 5px; color: var(--text-3); }
.nav-kk-link .i { width: 13px; height: 13px; opacity: .8; }
.nav-kk-link:hover { color: var(--text); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px;
  border-radius: 12px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  transition: transform .18s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
  user-select: none;
}
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:active { transform: none; }

.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { box-shadow: 0 18px 44px -14px rgba(255, 106, 26, .7); filter: brightness(1.05); }

.btn-ghost { background: rgba(255, 255, 255, .05); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }

.btn-soft { background: var(--brand-soft); color: var(--brand-2); border-color: rgba(255, 106, 26, .28); }
.btn-soft:hover { background: rgba(255, 106, 26, .2); }

.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 14px 34px -16px rgba(255, 59, 48, .8); }
.btn-danger:hover { filter: brightness(1.06); }

.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 30px; font-size: 16px; border-radius: 16px; }
.btn-block { width: 100%; }

.btn-icon {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  color: var(--text-2); border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-icon:hover { background: rgba(255, 255, 255, .08); color: var(--text); }

/* ---------- 卡片 / 徽标 ---------- */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-m);
}

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 12px; border-radius: 99px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .2px;
  background: rgba(255, 255, 255, .07); color: var(--text-2);
  border: 1px solid var(--line);
}
.pill-brand { background: var(--brand-soft); color: var(--brand-2); border-color: rgba(255, 106, 26, .3); }
.pill-ok { background: rgba(38, 194, 129, .12); color: var(--ok); border-color: rgba(38, 194, 129, .28); }
.pill-live { background: rgba(255, 59, 48, .14); color: #FF6B62; border-color: rgba(255, 59, 48, .3); }
.pill .dot { width: 6px; height: 6px; border-radius: 99px; background: currentColor; }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 13.5px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.label .req { color: var(--brand); }
.hint { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }

.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 14px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line-2);
  border-radius: 12px; color: var(--text); font-size: 14.5px;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.textarea { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 255, 255, .22); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: rgba(255, 106, 26, .7);
  background: rgba(255, 106, 26, .05);
  box-shadow: 0 0 0 3px rgba(255, 106, 26, .12);
}
.input.err, .select.err { border-color: rgba(255, 59, 48, .8); box-shadow: 0 0 0 3px rgba(255, 59, 48, .1); }
.select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A6ABB7' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}
.select option { background: #1A1A22; color: var(--text); }

/* 开关 */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  position: relative; width: 42px; height: 24px; border-radius: 99px;
  background: rgba(255, 255, 255, .14); transition: background .22s var(--ease);
}
.switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 99px; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
  transition: transform .22s var(--ease);
}
.switch input:checked + .switch-track { background: var(--grad); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch-text { font-size: 13.5px; color: var(--text-2); }

/* 复选 */
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13.5px; color: var(--text-2); }
.check input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }

/* ---------- 弹窗 ---------- */
.mask {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(3, 3, 5, .74);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .24s var(--ease), visibility .24s;
}
.mask.on { opacity: 1; visibility: visible; }
.mask.align-top { align-items: flex-start; padding-top: 8vh; }

.dialog {
  position: relative; width: min(520px, 100%);
  background: linear-gradient(180deg, #1A1A22, #121218);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-l), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  padding: 30px;
  transform: translateY(14px) scale(.97); opacity: 0;
  transition: transform .28s var(--ease), opacity .28s var(--ease);
  max-height: 88vh; overflow: auto;
}
.mask.on .dialog { transform: none; opacity: 1; }
.dialog-wide { width: min(640px, 100%); }
.dialog-close { position: absolute; top: 16px; right: 16px; }
.dialog-title { font-size: 21px; font-weight: 700; letter-spacing: -.2px; }
.dialog-desc { margin-top: 8px; font-size: 13.5px; color: var(--text-2); line-height: 1.65; }
.dialog-actions { display: flex; gap: 12px; margin-top: 26px; }
.dialog-actions .btn { flex: 1; }

/* ---------- Toast ---------- */
.toast-wrap {
  position: fixed; left: 50%; bottom: 42px; z-index: 400;
  transform: translateX(-50%);
  display: flex; flex-direction: column-reverse; align-items: center; gap: 10px;
  pointer-events: none; width: max-content; max-width: calc(100% - 40px);
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 13px;
  background: rgba(30, 30, 38, .96); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-m); color: var(--text); font-size: 13.5px; font-weight: 500;
  animation: toastIn .3s var(--ease); pointer-events: auto;
  max-width: 100%;
}
.toast.out { animation: toastOut .26s var(--ease) forwards; }
.toast .i { color: var(--ok); }
.toast.warn .i { color: var(--warn); }
.toast.err .i { color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(.96); } }

/* ---------- 结果 / 分享块（弹窗通用） ---------- */
.done-hero { display: flex; align-items: center; gap: 14px; }
.done-ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px;
  background: rgba(38, 194, 129, .14); color: var(--ok); border: 1px solid rgba(38, 194, 129, .3);
  flex: 0 0 auto;
}
.done-ico .i { width: 22px; height: 22px; }
.link-box {
  display: flex; align-items: center; gap: 10px;
  margin-top: 20px; padding: 8px 8px 8px 14px; border-radius: 13px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2);
}
.link-box input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  font-size: 13px; color: var(--text-2); text-overflow: ellipsis;
}
.done-info {
  margin-top: 16px; display: grid; gap: 10px; padding: 16px;
  border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
}
.done-info .pmeta { font-size: 12.5px; }
.share-row { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.share-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px;
  border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2);
  font-size: 12.5px; color: var(--text-2); transition: background .2s, color .2s, border-color .2s;
}
.share-chip:hover { background: rgba(255, 255, 255, .1); color: var(--text); border-color: rgba(255, 255, 255, .24); }
.share-chip .i { width: 14px; height: 14px; }

/* ---------- 空态 ---------- */.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 52px 20px; text-align: center; color: var(--text-3);
}
.empty-ico {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text-3);
}
.empty-ico .i { width: 26px; height: 26px; }
.empty-title { font-size: 14.5px; color: var(--text-2); font-weight: 600; }
.empty-sub { font-size: 12.5px; }

/* ---------- 入场动画 ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(.9); opacity: 0; } 60% { transform: scale(1.02); } 100% { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseSoft { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.anim-up { animation: fadeUp .6s var(--ease) both; }
.d1 { animation-delay: .06s; } .d2 { animation-delay: .12s; } .d3 { animation-delay: .18s; } .d4 { animation-delay: .24s; }

/* ---------- 桌面/移动 ---------- */
/* 品牌名变长（科酷 OkcolMeet）后，中等宽度先收一点字号，避免换行 */
@media (max-width: 1120px) {
  .brand-name { font-size: 16.5px; }
  .brand-sub { letter-spacing: 1.2px; }
  .nav-link { padding: 8px 11px; font-size: 14px; }
}
@media (max-width: 960px) {
  .brand-name { font-size: 15.5px; }
  .nav { gap: 10px; }
  .nav-link { padding: 8px 9px; font-size: 13.5px; }
}
@media (max-width: 860px) {
  .container { width: calc(100% - 32px); }
  .nav { height: 58px; padding: 0 16px; gap: 14px; }
  .nav-links { display: none; }
  .nav-kk { display: none; }
  .brand-name { font-size: 16px; }
  .brand-sub { display: none; }
  .nav .btn { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 10px; }
  .dialog { padding: 24px 20px; border-radius: 24px; }
  .dialog-title { font-size: 19px; }
  .toast-wrap { bottom: 96px; }
}
