/* 简流 RemoteHost · 公共样式
   设计 Token 取自现有官网 jianliu-home（styles.css / atlas.css），不另定品牌色。 */
:root {
  color-scheme: dark;
  --bg: #061324;            /* jianliu-home --bg */
  --bg2: #0a1d35;           /* jianliu-home --bg2 */
  --atlas: #071827;         /* atlas.css --atlas */
  --surface: #0b2139;
  --surface-2: #0e2744;
  --text: #f1f7ff;          /* --text */
  --muted: #a2b4cc;         /* --muted */
  --muted-2: #7896b2;       /* .email-note */
  --cyan: #16d8fa;          /* --cyan */
  --mint: #6fe0d1;          /* atlas.css --mint */
  --line: rgba(111, 170, 225, .18);   /* --line */
  --line-strong: rgba(111, 170, 225, .32);
  --btn-grad: linear-gradient(110deg, #0cdae8, #129aff);  /* .primary */
  --btn-ink: #04162b;
  --secondary-border: #2782c4;  /* .secondary */
  --secondary-bg: #061d35;
  --footer: #05101e;
  --warn: #e8b45a;
  --danger: #f08a7a;
  --radius: 12px;          /* 官网按钮 / 卡片圆角 */
  --font: "Segoe UI", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin-top: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
.container { width: min(1200px, calc(100% - 96px)); margin: auto; }
.hidden { display: none !important; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: #fff; color: #000; padding: 12px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- 顶栏（沿用官网 .header / .logo / .nav-cta） ---------- */
.header { height: 72px; position: sticky; top: 0; z-index: 100; background: rgba(5, 17, 33, .91); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
.nav { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-size: 21px; letter-spacing: .015em; font-weight: 800; white-space: nowrap; }
.logo img { width: 38px; height: 38px; object-fit: contain; }
.logo b { font-size: 19px; margin-left: 3px; }
.product-tag { font-size: 13px; font-weight: 600; color: var(--mint); border-left: 1px solid var(--line-strong); padding-left: 12px; margin-left: 2px; letter-spacing: .04em; }
.nav nav { display: flex; gap: 30px; margin-left: auto; }
.nav nav a { color: #d5e2f1; font-size: 15px; position: relative; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--mint); transition: right .35s cubic-bezier(.16, 1, .3, 1); }
.nav nav a:hover::after, .nav nav a.active::after { right: 0; }
.nav-cta { border: 1px solid #00c9ff; padding: 9px 18px; border-radius: var(--radius); font-weight: 600; font-size: 14px; white-space: nowrap; }
.nav-cta:hover { background: #063c5a; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-link { color: #d5e2f1; font-size: 14px; }
.nav-link:hover { color: var(--cyan); }

/* ---------- 按钮（沿用官网 .btn .primary .secondary） ---------- */
.btn {
  min-height: 44px; padding: 0 20px; border-radius: var(--radius); display: inline-flex; gap: 10px; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; border: 1px solid transparent; cursor: pointer; background: transparent; transition: background .2s, border-color .2s, opacity .2s; white-space: nowrap;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--btn-grad); color: var(--btn-ink); }
.btn.primary:hover:not(:disabled) { opacity: .9; }
.btn.secondary { border-color: var(--secondary-border); background: var(--secondary-bg); }
.btn.secondary:hover:not(:disabled) { border-color: var(--cyan); }
.btn.ghost { border-color: var(--line-strong); }
.btn.ghost:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan); }
.btn.danger { border-color: rgba(240, 138, 122, .45); color: var(--danger); }
.btn.danger:hover:not(:disabled) { background: rgba(240, 138, 122, .08); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
.link { color: var(--cyan); background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
.link:hover { text-decoration: underline; }

.kicker { font-size: 12px; letter-spacing: .13em; color: var(--cyan); font-weight: 700; }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .label { font-size: 13px; font-weight: 600; color: #d5e2f1; }
.field small, .hint { color: var(--muted-2); font-size: 12px; }
.input {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--atlas); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 90px; resize: vertical; }
select.input { appearance: auto; }
.input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(22, 216, 250, .14); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--cyan); flex: none; }
.form-error { min-height: 20px; color: var(--danger); font-size: 13px; margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }

/* ---------- 状态标签：文字 + 克制颜色 ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.ok { color: var(--mint); border-color: rgba(111, 224, 209, .4); }
.tag.info { color: var(--cyan); border-color: rgba(22, 216, 250, .4); }
.tag.warn { color: var(--warn); border-color: rgba(232, 180, 90, .45); }
.tag.danger { color: var(--danger); border-color: rgba(240, 138, 122, .45); }

/* ---------- 卡片 / 提示 ---------- */
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.notice { border: 1px solid var(--line-strong); background: rgba(22, 216, 250, .05); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; color: #cfe0f0; }
.notice.warn { border-color: rgba(232, 180, 90, .45); background: rgba(232, 180, 90, .06); color: #f1d9a8; }
.notice.danger { border-color: rgba(240, 138, 122, .45); background: rgba(240, 138, 122, .06); color: #f6c4bb; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 16px; }
.empty h3 { color: var(--text); margin-bottom: 6px; font-size: 17px; }
.loading { color: var(--muted); padding: 30px; text-align: center; }
.pre { white-space: pre-wrap; word-break: break-word; }

/* ---------- 提示条 / 对话框 ---------- */
.toast-wrap { position: fixed; z-index: 1000; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.toast { min-width: 240px; max-width: 380px; padding: 12px 16px; border-radius: 12px; background: #0e2744; border: 1px solid var(--line-strong); border-left: 3px solid var(--mint); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); font-size: 14px; }
.toast.error { border-left-color: var(--danger); }
.modal-back { position: fixed; inset: 0; z-index: 900; background: rgba(2, 8, 16, .66); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--bg2); border: 1px solid var(--line-strong); border-radius: 18px; padding: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.modal.wide { width: min(720px, 100%); }
.modal h3 { font-size: 18px; margin-bottom: 6px; }
.modal .desc { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.modal-body { display: grid; gap: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* ---------- 页脚（沿用官网 .footer） ---------- */
.footer { background: var(--footer); padding: 26px 0; border-top: 1px solid var(--line); }
.footer-layout { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #89a5c1; font-size: 12px; flex-wrap: wrap; }
.footer .logo { font-size: 17px; color: #fff; }
.footer .logo img { width: 30px; height: 30px; }
.footer .logo b { font-size: 15px; }
.footer a:hover { color: var(--cyan); }

@media (max-width: 800px) {
  .container { width: calc(100% - 36px); }
  .header { height: 62px; }
  .nav nav { display: none; }
  .logo { font-size: 18px; } .logo b { font-size: 16px; } .logo img { width: 32px; height: 32px; }
  .product-tag { display: none; }
  .nav-actions { margin-left: auto; }
  .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
