/* ============================================================
   工单系统 · Pro 冷金主题（对齐 saas.umsyv.cn）
   深色外壳 + 浅色工作区
   ============================================================ */

:root {
  /* 深色品牌层 */
  --bg: #0a0d14;
  --bg-2: #070910;
  --card: #121723;
  --card-2: #171d2c;
  --text: #eef1f7;
  --muted: #9aa3b6;
  --muted-2: #66708a;
  --gold: #f0c14b;
  --gold-2: #d99f3c;
  --gold-soft: rgba(240, 193, 75, .1);
  --green: #34d399;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .045);
  --ink: #241c05; /* 金色按钮上的深色文字（暖深棕，对齐 Pro） */
  --r-sm: 11px;
  --r-md: 15px;
  --r-lg: 20px;

  /* 浅色工作区 */
  --ws-bg: #f4f6fa;
  --ws-card: #ffffff;
  --ws-text: #1f2430;
  --ws-muted: #6b7280;
  --ws-line: #e7eaf1;
  --ws-soft: #f0f2f7;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--ws-bg);
  color: var(--ws-text);
  -webkit-font-smoothing: antialiased;
}
body.page-dark { background: var(--bg); color: var(--text); }
a { text-decoration: none; }

/* ============================================================
   深色外壳（登录后导航栏）
   ============================================================ */
.app-navbar {
  background: linear-gradient(180deg, #0d1120, #0a0d14);
  border-bottom: 1px solid var(--line);
}
.app-navbar .navbar-brand {
  color: var(--text);
  font-weight: 700;
  letter-spacing: .5px;
}
.app-navbar .brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px; margin-right: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--ink); font-size: 15px;
}
.app-navbar .nav-link { color: var(--muted); font-weight: 500; }
.app-navbar .nav-link:hover { color: var(--gold); }
.app-navbar .nav-link.active { color: var(--gold); }
.app-navbar .user-chip { color: var(--muted); }

/* ============================================================
   浅色工作区
   ============================================================ */
.card {
  background: var(--ws-card);
  border: 1px solid var(--ws-line);
  border-radius: var(--r-md);
}
.page-title { font-weight: 700; color: var(--ws-text); }
.text-muted { color: var(--ws-muted) !important; }
a.text-decoration-none:hover { text-decoration: underline !important; }

/* 金色按钮 */
.btn-primary {
  background: linear-gradient(135deg, #fbeec2, #e0a94a 70%, #cf9333);
  border: none; color: var(--ink); font-weight: 700; border-radius: var(--r-sm);
  box-shadow: 0 12px 26px -14px rgba(240, 193, 75, .85);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: linear-gradient(135deg, #fbeec2, #e0a94a 70%, #cf9333);
  color: var(--ink); filter: brightness(1.03);
  box-shadow: 0 14px 30px -14px rgba(240, 193, 75, .95);
}
.btn-outline-primary {
  border: 1px solid var(--gold-2); color: #c8860f; border-radius: var(--r-sm); font-weight: 600;
}
.btn-outline-primary:hover { background: var(--gold-soft); color: #b17c10; }
.btn-outline-secondary, .btn-outline-danger { border-radius: var(--r-sm); }

/* 表单 */
.form-control, .form-select {
  border-radius: var(--r-sm);
  border-color: var(--ws-line);
  background: var(--ws-card);
  color: var(--ws-text);
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 193, 75, .18);
}
.form-label { color: var(--ws-text); font-weight: 500; }

/* 表格 */
.table { color: var(--ws-text); }
.table thead th {
  color: var(--ws-muted); font-weight: 600; font-size: .85rem;
  border-bottom-color: var(--ws-line);
}
.table td { border-bottom-color: var(--ws-line); }
.table-hover tbody tr:hover { background: var(--ws-soft); }
.table a { color: #c8860f; font-weight: 500; }
.table a:hover { text-decoration: underline; }

/* 徽章：状态 / 优先级 */
.badge { font-weight: 600; padding: .42em .68em; border-radius: 8px; }
.badge.st-pending  { background: var(--gold-soft); color: #b17c10; }
.badge.st-progress { background: rgba(56, 189, 248, .14); color: #0ea5e9; }
.badge.st-resolved { background: rgba(52, 211, 153, .16); color: #0f9d6e; }
.badge.st-closed   { background: rgba(148, 163, 184, .16); color: #64748b; }
.badge.pr-low      { background: rgba(148, 163, 184, .16); color: #64748b; }
.badge.pr-medium   { background: rgba(56, 189, 248, .14); color: #0ea5e9; }
.badge.pr-high     { background: var(--gold-soft); color: #b17c10; }
.badge.pr-urgent   { background: rgba(248, 113, 113, .16); color: #dc2626; }

/* 提示框 */
.alert { border-radius: var(--r-sm); border: 1px solid var(--ws-line); }

/* 筛选 pills */
.nav-pills .nav-link { color: var(--ws-muted); border-radius: 999px; }
.nav-pills .nav-link.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--ink);
}

/* 回复：管理员左侧金色条 */
.card.admin-reply { border-left: 4px solid var(--gold); }

/* 长文本保留换行 */
.pre-wrap { white-space: pre-wrap; word-break: break-word; }

/* 看板统计卡（浅色） */
.ws-stat {
  background: var(--ws-card); border: 1px solid var(--ws-line); border-radius: var(--r-md);
  padding: 1.15rem 1.4rem; display: flex; align-items: center; gap: 1rem;
}
.ws-stat .ico {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.ws-stat .num { font-size: 1.6rem; font-weight: 800; line-height: 1; color: var(--ws-text); }
.ws-stat .lbl { color: var(--ws-muted); font-size: .85rem; margin-top: .15rem; }
.ws-stat.gold  .ico { background: var(--gold-soft); color: #b17c10; }
.ws-stat.blue  .ico { background: rgba(56, 189, 248, .14); color: #0ea5e9; }
.ws-stat.green .ico { background: rgba(52, 211, 153, .16); color: #0f9d6e; }
.ws-stat.gray  .ico { background: rgba(148, 163, 184, .16); color: #64748b; }

/* ============================================================
   深色页（登录 / 注册 / 安装 / 落地页）
   ============================================================ */
.page-dark a { color: var(--gold); }
/* 按钮覆盖：金色按钮用深色文字、幽灵按钮用浅色文字，避免金底金字看不清 */
.page-dark a.btn-gold { color: var(--ink); }
.page-dark a.btn-ghost { color: var(--text); }
.page-dark a.btn-gold:hover { color: var(--ink); }
.page-dark a.btn-ghost:hover { color: var(--gold); }
.page-dark a.landing-logo { color: var(--text); }
.page-dark .text-muted { color: var(--muted) !important; }

.auth-bg {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 50% -10%, #131a2b, var(--bg)) fixed;
  padding: 2rem 1rem;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--text);
  padding: 2.2rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}
.auth-card .brand-icon {
  width: 52px; height: 52px; margin: 0 auto 1rem; border-radius: 15px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.auth-card h4 { color: var(--text); font-weight: 700; text-align: center; margin-bottom: .25rem; }
.auth-subtitle {
  text-align: center; color: var(--muted); font-size: .72rem;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 1.5rem;
}
.auth-card .form-control, .auth-card .form-select {
  background: #0b0f1a; border: 1px solid var(--line); color: var(--text);
}
.auth-card .form-control:focus { border-color: var(--gold); box-shadow: none; }
.auth-card .form-control::placeholder { color: rgba(238, 241, 247, .5); opacity: 1; }
.auth-card .form-label { color: var(--muted); }
.auth-card .btn-login {
  width: 100%; border: none; border-radius: var(--r-sm);
  background: linear-gradient(135deg, #fbeec2, #e0a94a 70%, #cf9333);
  color: var(--ink); font-weight: 700; padding: .75rem; font-size: 1rem;
  box-shadow: 0 12px 26px -14px rgba(240, 193, 75, .85);
}
.auth-card .btn-login:hover { filter: brightness(1.03); color: var(--ink); }
.auth-card p { color: var(--muted); }
.auth-card .alert { border: none; }

/* 输入图标 */
.input-group-icon { position: relative; }
.input-group-icon > i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 16px; pointer-events: none;
}
.input-group-icon .form-control { padding-left: 42px; }

/* ============================================================
   落地页
   ============================================================ */
.landing-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 13, 20, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.landing-nav .nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.landing-logo { display: flex; align-items: center; color: var(--text); font-weight: 700; }
.landing-logo .mark {
  width: 30px; height: 30px; border-radius: 9px; margin-right: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
.landing-nav .links a { color: var(--muted); margin-left: 1.4rem; font-weight: 500; }
.landing-nav .links a:hover { color: var(--gold); }

.landing-hero { padding: 5rem 0 3rem; text-align: center; }
.landing-hero .eyebrow { color: var(--gold); letter-spacing: 4px; font-size: .78rem; text-transform: uppercase; }
.landing-hero h1 { color: var(--text); font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); margin: .6rem 0 1rem; }
.landing-hero .lead { color: var(--muted); max-width: 640px; margin: 0 auto 2rem; font-size: 1.05rem; }

.btn-gold {
  background: linear-gradient(135deg, #fbeec2, #e0a94a 70%, #cf9333);
  color: var(--ink); border: none; font-weight: 700; border-radius: var(--r-sm);
  padding: .8rem 1.6rem; font-size: 1rem; display: inline-block;
  box-shadow: 0 12px 26px -14px rgba(240, 193, 75, .85);
}
.btn-gold:hover { filter: brightness(1.03); color: var(--ink); box-shadow: 0 14px 30px -14px rgba(240, 193, 75, .95); }
.btn-ghost {
  border: 1px solid var(--line); color: var(--text); padding: .8rem 1.6rem;
  border-radius: var(--r-sm); font-size: 1rem; display: inline-block;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.landing-section { padding: 3.5rem 0; }
.landing-section .sec-eyebrow { color: var(--gold); letter-spacing: 3px; font-size: .75rem; text-transform: uppercase; }
.landing-section h2 { color: var(--text); font-weight: 700; margin: .4rem 0 .5rem; }
.landing-section .sec-sub { color: var(--muted); max-width: 560px; }

.feature-card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.5rem; height: 100%;
}
.feature-card .fi {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 1rem;
  background: var(--gold-soft); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.feature-card h3 { color: var(--text); font-size: 1.05rem; font-weight: 700; }
.feature-card p { color: var(--muted); margin: 0; font-size: .92rem; }

.step-card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.5rem; height: 100%; text-align: center;
}
.step-card .step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold); font-weight: 800; margin-bottom: .8rem;
}
.step-card h3 { color: var(--text); font-size: 1rem; font-weight: 700; }
.step-card p { color: var(--muted); margin: 0; font-size: .9rem; }

.landing-cta {
  margin: 2rem 0 4rem; padding: 3rem 2rem; text-align: center;
  background: linear-gradient(135deg, rgba(240, 193, 75, .12), rgba(217, 159, 60, .04));
  border: 1px solid rgba(240, 193, 75, .25); border-radius: var(--r-lg);
}
.landing-cta h2 { color: var(--text); font-weight: 700; }
.landing-cta p { color: var(--muted); }
.landing-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding: 2rem 0; text-align: center; }

/* ============================================================
   设计感增强：渐变文字、环境光晕、卡片悬停
   ============================================================ */
.grad-text {
  background: linear-gradient(120deg, #fbeec2, #e0a94a 55%, #cf9333);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.orb {
  position: absolute; border-radius: 50%; filter: blur(90px);
  pointer-events: none; z-index: 0;
}
.orb-1 { width: 460px; height: 460px; background: rgba(240, 193, 75, .16); top: -140px; left: 50%; transform: translateX(-65%); }
.orb-2 { width: 380px; height: 380px; background: rgba(56, 189, 248, .10); top: 80px; right: -100px; }
.orb-3 { width: 300px; height: 300px; background: rgba(240, 193, 75, .12); bottom: -120px; left: -100px; }

.landing-hero { position: relative; overflow: hidden; }
.landing-hero .container { position: relative; z-index: 1; }
.auth-bg .orb { position: fixed; }
.auth-card { position: relative; z-index: 1; }

.feature-card, .step-card { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.feature-card:hover, .step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 193, 75, .35);
  box-shadow: 0 22px 44px -22px rgba(240, 193, 75, .28);
}
