/* ============================================================
   圆梦引擎 Dreamart Engine — AI 驱动一站式短剧出海与品牌增长平台
   共享设计系统 / Prototype Design Tokens
   ============================================================ */

:root {
  --bg:        #08080B;
  --bg-soft:   #0D0D11;
  --surface:   #121217;
  --surface-2: #191920;
  --surface-3: #22222C;
  --border:    #26262F;
  --border-hi: #34343F;

  --text:      #ECECEF;
  --text-2:    #A9A9B6;
  --muted:     #6E6E7C;

  --brand:     #3B82F6;
  --brand-2:   #8B5CF6;
  --brand-dim: rgba(59, 130, 246, 0.14);
  --accent:    #2DD4A7;
  --accent-dim:rgba(45, 212, 167, 0.13);
  --warn:      #F5A524;
  --warn-dim:  rgba(245, 165, 36, 0.13);
  --danger:    #F0466E;
  --danger-dim:rgba(240, 70, 110, 0.13);
  --cyan:      #38BDF8;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.34);
  --shadow-lg: 0 24px 70px -18px rgba(0,0,0,.72);

  --nav-h: 62px;
  --maxw: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

::selection { background: rgba(59,130,246,.36); }

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #2A2A34; border-radius: 20px; border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #3A3A46; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-wide { max-width: 1560px; margin: 0 auto; padding: 0 28px; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.028em; line-height: 1.18; }
h1 { font-size: 54px; }
h2 { font-size: 32px; }
h3 { font-size: 19px; }
h4 { font-size: 15px; }
p  { margin: 0; }
a  { color: inherit; text-decoration: none; }

.mono {
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.t2 { color: var(--text-2); }
.tm { color: var(--muted); }
.grad {
  background: linear-gradient(96deg, #93C5FD 0%, var(--brand) 42%, var(--brand-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  background: rgba(8,8,11,.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-in {
  height: 100%; max-width: 1560px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 30px;
}
.logo { display: flex; flex-direction: row; align-items: center; gap: 10px; font-weight: 600; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: grid; place-items: center; overflow: hidden;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.18; }
.logo-text > span:first-child {
  font-size: 15px; letter-spacing: -0.01em;
  background: linear-gradient(96deg, #93C5FD 0%, var(--brand) 42%, var(--brand-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-en { font-size: 10.5px; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 3px; margin-left: 8px; }
.nav-links a {
  padding: 7px 13px; border-radius: var(--r-sm); font-size: 13.5px;
  color: var(--text-2); transition: .16s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.on { color: var(--text); background: var(--surface-3); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 17px; border-radius: 9px; font-size: 13.5px; font-weight: 500;
  border: 1px solid var(--border-hi); background: var(--surface-2); color: var(--text);
  cursor: pointer; transition: .16s; white-space: nowrap; font-family: inherit;
}
.btn:hover { background: var(--surface-3); border-color: #43434F; }
.btn-primary {
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-2) 100%);
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 18px -3px rgba(59,130,246,.5);
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: 11px; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 7px; }
.btn:disabled { opacity: .42; cursor: not-allowed; }

/* ---------- surfaces ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px;
}
.card-hover { transition: .2s; }
.card-hover:hover {
  border-color: var(--border-hi); transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
}
.panel-head {
  padding: 15px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.panel-body { padding: 20px; }

/* ---------- chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3.5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
  white-space: nowrap;
}
.chip-brand  { background: var(--brand-dim);  border-color: rgba(59,130,246,.32); color: #A5C8FF; }
.chip-accent { background: var(--accent-dim); border-color: rgba(45,212,167,.3);  color: #6EE7C4; }
.chip-warn   { background: var(--warn-dim);   border-color: rgba(245,165,36,.3);  color: #F6C56B; }
.chip-danger { background: var(--danger-dim); border-color: rgba(240,70,110,.3);  color: #F98BA5; }

.dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--muted); }
.dot-live { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.45} }

/* ---------- forms ---------- */
.input, .select, .textarea {
  width: 100%; padding: 9px 12px; font-size: 13.5px; font-family: inherit;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 9px; color: var(--text); outline: none; transition: .16s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-dim);
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.textarea { resize: vertical; min-height: 84px; line-height: 1.65; }
.select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E6E7C' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; padding-right: 32px;
}
.label { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-2); margin-bottom: 7px; }
.field { margin-bottom: 17px; }

/* ---------- tabs ---------- */
.tabs { display: inline-flex; gap: 3px; padding: 3px; background: var(--surface-2);
        border: 1px solid var(--border); border-radius: 11px; }
.tab {
  padding: 7px 15px; border-radius: 8px; font-size: 13px; font-weight: 500;
  color: var(--text-2); cursor: pointer; transition: .16s; border: none;
  background: transparent; font-family: inherit; white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.on { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.3); }

/* ---------- table ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.2px; }
.tbl th {
  text-align: left; padding: 10px 14px; font-size: 11.5px; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: .07em;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.tbl td { padding: 13px 14px; border-bottom: 1px solid rgba(38,38,47,.6); vertical-align: middle; }
.tbl tbody tr:hover { background: rgba(255,255,255,.018); }
.tbl tbody tr:last-child td { border-bottom: none; }

/* ---------- misc ---------- */
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.row { display: flex; align-items: center; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

.stat-v { font-size: 27px; font-weight: 600; letter-spacing: -.03em; }
.stat-l { font-size: 12px; color: var(--muted); }

.bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

.glow {
  position: absolute; border-radius: 50%; filter: blur(110px);
  pointer-events: none; z-index: 0;
}

.note {
  border-left: 2px solid var(--warn); background: var(--warn-dim);
  padding: 12px 15px; border-radius: 0 10px 10px 0; font-size: 13px; color: #EBD3A3;
}
.note-danger { border-left-color: var(--danger); background: var(--danger-dim); color: #F7B7C6; }
.note-ok { border-left-color: var(--accent); background: var(--accent-dim); color: #A5E9D3; }
.note-info { border-left-color: var(--brand); background: var(--brand-dim); color: #B9D3FF; }

.icon { width: 16px; height: 16px; stroke-width: 1.9; flex: none; }
.icon-sm { width: 13px; height: 13px; stroke-width: 2; flex: none; }
.icon-lg { width: 20px; height: 20px; stroke-width: 1.8; flex: none; }

.thumb {
  aspect-ratio: 9/16; border-radius: 10px; overflow: hidden; position: relative;
  background: linear-gradient(150deg, #1E1B33, #2A1B3D 50%, #16161F);
  border: 1px solid var(--border); flex: none;
}
.thumb::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(59,130,246,.28), transparent 62%);
}

.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid;
  place-items: center; font-size: 11.5px; font-weight: 600; color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
}

/* platform logos on home strip */
.plat-logo {
  width: 28px; height: 28px; border-radius: 7px; flex: none;
  display: grid; place-items: center;
}
.plat-logo svg { width: 16px; height: 16px; }

footer.ft { border-top: 1px solid var(--border); padding: 46px 0 40px; margin-top: 90px; }
.ft-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px 30px; }
.ft .logo { margin-bottom: 14px; }
.ft-grid h5 { font-size: 13px; letter-spacing: .04em; color: var(--text); margin: 2px 0 16px; font-weight: 600; }
.ft-grid > div a:not(.logo) { display: block; color: var(--muted); font-size: 13.5px; padding: 5px 0; line-height: 1.5; transition: color .15s; }
.ft-grid a:hover { color: var(--brand); }

@media (max-width: 980px) {
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
}
@media (max-width: 560px) {
  .ft-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  h1 { font-size: 36px; } h2 { font-size: 25px; }
  .g2, .g4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .wrap, .wrap-wide, .nav-in { padding: 0 18px; }
}
