﻿* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Arial, "Microsoft YaHei", sans-serif; background: #08131f; color: #d9e6f2; }
body { min-height: 100vh; }
[hidden] { display: none !important; }
.login-view { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top, #15354a 0, #08131f 42%, #050b12 100%); }
.login-box { width: min(420px, 100%); padding: 28px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(8,19,31,.92); box-shadow: 0 18px 60px rgba(0,0,0,.32); }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 8px; background: #0fb7c9; color: #041018; font-weight: 800; font-size: 26px; margin-bottom: 18px; }
.brand-mark.small { width: 34px; height: 34px; margin: 0; font-size: 20px; }
.login-box h1 { margin: 0 0 8px; font-size: 26px; letter-spacing: 0; }
.login-box p { margin: 0 0 18px; color: #8fa5b8; }
.login-box input { width: 100%; height: 46px; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; background: #0d1b2a; color: #eef7ff; padding: 0 14px; font-size: 17px; outline: none; }
.login-box input:focus { border-color: #22c7d8; }
.login-box button, .add-bar button, .ghost-btn { height: 44px; border: 0; border-radius: 6px; background: #14bacb; color: #041018; font-weight: 700; cursor: pointer; }
.login-box button { width: 100%; margin-top: 14px; font-size: 16px; }
.login-message { min-height: 22px; margin-top: 12px; color: #ffb66b; font-size: 14px; }
.login-message.ok { color: #7ee09a; }
.app { width: min(980px, 100%); margin: 0 auto; padding: 18px 14px 36px; }
.topbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0 18px; }
.brand-row { display: flex; align-items: center; gap: 10px; }
.topbar h1 { margin: 0; font-size: 24px; }
.topbar p { margin: 7px 0 0; color: #90a8ba; }
.ghost-btn { width: 64px; background: rgba(255,255,255,.08); color: #d9e6f2; border: 1px solid rgba(255,255,255,.12); }
.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.metric, .rule, .list .item { border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: #0c1a28; }
.metric { padding: 14px; min-height: 82px; }
.metric span { display: block; color: #8da4b8; font-size: 13px; }
.metric strong { display: block; margin-top: 8px; font-size: 22px; }
.rule { display: flex; align-items: center; gap: 10px; padding: 13px 14px; margin: 12px 0; color: #c7d8e6; }
.rule p { margin: 0; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #21d0a5; box-shadow: 0 0 0 6px rgba(33,208,165,.12); flex: 0 0 auto; }
.add-bar { display: grid; grid-template-columns: 1fr 112px; gap: 10px; margin: 12px 0 18px; }
.add-bar input { height: 44px; border-radius: 6px; border: 1px solid rgba(255,255,255,.14); background: #0d1b2a; color: #eef7ff; padding: 0 12px; font-size: 16px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 8px; color: #93a9bb; }
.section-title h2 { margin: 0; color: #e3edf6; font-size: 18px; }
.list { display: grid; gap: 8px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px; color: inherit; text-decoration: none; }
.item-main { min-width: 0; }
.item-title { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.code { color: #8fa5b8; font-weight: 500; }
.reason { margin: 6px 0 0; color: #8fa5b8; font-size: 13px; line-height: 1.45; }
.badge { align-self: start; padding: 4px 8px; border-radius: 999px; background: rgba(20,186,203,.16); color: #57d5e2; font-size: 12px; }
.remove-btn { align-self: center; height: 34px; padding: 0 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; background: rgba(255,255,255,.06); color: #d9e6f2; }
.empty { padding: 14px; color: #8198aa; border: 1px dashed rgba(255,255,255,.16); border-radius: 8px; }
@media (max-width: 720px) {
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar h1 { font-size: 21px; }
}

.card.score-hot {
  border-color: rgba(255, 92, 122, .82);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .28), 0 0 24px rgba(255, 92, 122, .16), inset 0 1px 0 rgba(255,255,255,.06);
}
.card.score-near {
  border-color: rgba(255, 191, 77, .78);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .28), 0 0 22px rgba(255, 191, 77, .12), inset 0 1px 0 rgba(255,255,255,.06);
}
.card.score-watch { border-color: rgba(216, 230, 243, .34); }
.badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.score-pill {
  border: 1px solid rgba(216, 230, 243, .38);
  border-radius: 999px;
  padding: 5px 8px;
  color: #f2f6fa;
  background: rgba(216, 230, 243, .08);
  font: 900 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.score-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  margin-top: 10px;
  background: rgba(255,255,255,.06);
}
.score-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8a5c, var(--red));
}
.score-near .score-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8a5c, var(--red));
}
.score-reason { margin: 6px 0 0; color: #d4e8f7; font-size: 12px; line-height: 1.4; }

.card.score-watch .score-bar i { background: linear-gradient(90deg, #9aa8b6, #e2e8ef); }
.card.score-watch .score-pill { color: #eef3f7; border-color: rgba(226, 232, 239, .42); background: rgba(226, 232, 239, .08); }

.card.score-hot .score-pill {
  color: #fff4f6;
  border-color: rgba(255, 92, 122, .72);
  background: rgba(255, 92, 122, .18);
  box-shadow: 0 0 14px rgba(255, 92, 122, .18);
}
.card.score-near .score-pill {
  color: #fff1c9;
  border-color: rgba(255, 191, 77, .78);
  background: rgba(255, 191, 77, .18);
  box-shadow: 0 0 14px rgba(255, 191, 77, .16);
}
.card.score-watch {
  background: rgba(11, 23, 40, .74);
}
.card.score-watch .score-pill {
  color: #eef3f7;
  border-color: rgba(226, 232, 239, .42);
  background: rgba(226, 232, 239, .08);
  box-shadow: none;
}

body.modal-open { overflow: hidden; }
.risk-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 8, 16, .72);
  backdrop-filter: blur(10px);
}
.risk-modal[hidden] { display: none; }
.risk-dialog {
  position: relative;
  overflow: hidden;
  width: min(430px, 100%);
  border: 1px solid rgba(255, 191, 77, .52);
  border-radius: 18px;
  padding: 26px 22px 22px;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 191, 77, .18), transparent 34%),
    linear-gradient(145deg, rgba(15, 31, 52, .98), rgba(5, 14, 26, .98));
  box-shadow: 0 26px 70px rgba(0, 0, 0, .56), inset 0 1px 0 rgba(255,255,255,.12), inset 0 -1px 0 rgba(255,191,77,.12);
  text-align: center;
  transform: translateZ(0);
}
.risk-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.10) 18%, transparent 36%);
  opacity: .42;
}
.risk-dialog h2 {
  position: relative;
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}
.risk-dialog p {
  position: relative;
  margin: 9px 0;
  color: #dce8f3;
  font-size: 15px;
  line-height: 1.68;
}
.risk-dialog .risk-lead {
  color: #fff3cd;
  font-size: 17px;
  font-weight: 800;
}
.risk-dialog button {
  position: relative;
  width: 100%;
  min-height: 54px;
  margin-top: 22px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(255, 191, 77, .20), inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.risk-dialog button:active {
  transform: translateY(2px) scale(.99);
  box-shadow: 0 8px 18px rgba(255, 191, 77, .16), inset 0 2px 4px rgba(0,0,0,.18);
  filter: brightness(.96);
}

.card.score-hot .score-pill {
  animation: strengthPulse 1.8s ease-in-out infinite;
}
@keyframes strengthPulse {
  0%, 100% {
    transform: translateZ(0) scale(1);
    box-shadow: 0 0 10px rgba(255, 92, 122, .16), inset 0 0 0 1px rgba(255, 191, 77, .10);
  }
  50% {
    transform: translateZ(0) scale(1.035);
    box-shadow: 0 0 20px rgba(255, 92, 122, .32), 0 0 12px rgba(255, 191, 77, .20), inset 0 0 0 1px rgba(255, 191, 77, .22);
  }
}
@media (prefers-reduced-motion: reduce) {
  .card.score-hot .score-pill { animation: none; }
}


/* stock-card-shell-v1 */
.list { gap: 12px; }
.card {
  position: relative;
  overflow: hidden;
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid rgba(226, 232, 239, .30);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(18, 32, 52, .97), rgba(7, 15, 28, .97));
  box-shadow: 0 14px 34px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
}
.card + .card { margin-top: 12px; }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #ffcf70, #f15a54); opacity: .88; }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,.09), transparent 32%), radial-gradient(circle at 86% 14%, rgba(255,207,112,.16), transparent 34%); opacity: .9; }
.card > * { position: relative; z-index: 1; }
.card.score-hot { border-color: rgba(255,191,77,.62); box-shadow: 0 16px 38px rgba(0,0,0,.38), 0 0 0 1px rgba(255,191,77,.12), inset 0 1px 0 rgba(255,255,255,.1); }
.card.score-near { border-color: rgba(255,122,96,.48); }
.card.score-watch { border-color: rgba(226,232,239,.34); }
@media (max-width: 640px) { .list { gap: 12px; } .card { margin-bottom: 12px; padding: 13px 12px; border-radius: 13px; } }

/* stock-card-white-strip-fix-v1 */
.card::after { display: none; }

/* red-accent-v1 */
:root {
  --accent: #f15a54;
  --accent-strong: #ff6b5f;
  --accent-soft: rgba(241, 90, 84, .16);
  --accent-line: rgba(255, 122, 96, .46);
}
a, .link, .muted a,
.value.hot, .metric.hot, .stat.hot,
.score-pill, .tag, .badge,
.card .name, .card .code,
.brand-mark {
  color: #ffcf70;
}
button, .primary-btn, #loginBtn, #riskAccept {
  background: linear-gradient(135deg, #ff7a60, #f15a54) !important;
  color: #12090a !important;
  border-color: rgba(255, 191, 77, .42) !important;
  box-shadow: 0 12px 28px rgba(241, 90, 84, .24), inset 0 1px 0 rgba(255,255,255,.18) !important;
}
button:hover, .primary-btn:hover, #loginBtn:hover, #riskAccept:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 34px rgba(241, 90, 84, .32), inset 0 1px 0 rgba(255,255,255,.22) !important;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(255, 122, 96, .72) !important;
  box-shadow: 0 0 0 3px rgba(241, 90, 84, .18) !important;
  outline: none;
}
.score-bar, .progress, .bar-fill, .score-fill {
  background: linear-gradient(90deg, #f15a54, #ffcf70) !important;
}
.score-pill, .tag, .badge {
  border-color: rgba(255, 122, 96, .44) !important;
  background: rgba(241, 90, 84, .12) !important;
  box-shadow: none !important;
}
.brand-mark {
  background: linear-gradient(145deg, #ffcf70, #f15a54) !important;
  color: #07101d !important;
  text-shadow: none !important;
}
[style*="#22c7d8"], [style*="#14bacb"] {
  color: #ffcf70 !important;
}

.support-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.support-card {
  min-height: 72px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 12px 14px;
  background: #0c1a28;
  color: inherit;
  text-align: left;
}
.support-card span {
  display: block;
  color: #8da4b8;
  font-size: 13px;
}
.support-card strong {
  display: block;
  margin-top: 8px;
  color: #e3edf6;
  font-size: 15px;
  line-height: 1.35;
}
@media (max-width: 640px) {
  .support-strip { grid-template-columns: 1fr; }
}

/* stock-card-text-red-v1 */
.card .name{color:#ff8a76!important}
.card .code{color:rgba(255,207,112,.82)!important}
.card .cell span{color:rgba(255,185,170,.72)!important}
.card .cell strong{color:#ff6b5f!important}
.card .score-pill,.card .badge{color:#ffd0b8!important}
.card .score-bar i{background:linear-gradient(90deg,#f15a54,#ffcf70)!important}

