/* =================================================================
   广州漫威网络科技有限公司 · 指挥中心 UI 风格
   v2 — 字体放大 + 对比度优化
   ================================================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #050809;
  color: #e8f0e8;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 16px;
}

a { color: #4ade80; text-decoration: none; transition: 0.2s; }
a:hover { color: #86efac; }
em { font-style: normal; color: #4ade80; }

/* ====== Topbar ====== */
#topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: #0f1a14; border-bottom: 2px solid #2a5a3a;
  padding: 8px 24px; min-height: 56px; gap: 16px;
  flex-shrink: 0; z-index: 100;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.tb-logo { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; box-shadow: 0 0 0 2px #2a5a3a; }
#topbar h1 { font-size: 22px; color: #4ade80; letter-spacing: 1px; white-space: nowrap; }
#topbar h1 .green { color: #a0e8a0; }
.tb-tag { font-size: 13px; color: #8aaa8a; border: 1px solid #2a5a3a; border-radius: 6px; padding: 3px 10px; }
.topbar-center { display: flex; gap: 20px; }
.hud-block { text-align: center; }
.hud-lbl { display: block; font-size: 12px; color: #6b9a6b; text-transform: uppercase; letter-spacing: 0.5px; }
.hud-val { display: block; font-size: 20px; font-weight: 700; color: #e0f0e0; }
.hud-block.highlight .hud-val { color: #fbbf24; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 12px #4ade80; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.tb-cta { background: linear-gradient(135deg, #166534, #15803d); color: #bbf7d0; border: 1px solid #2a5a3a; padding: 7px 18px; border-radius: 6px; font-size: 15px; font-weight: 700; cursor: pointer; transition: 0.2s; font-family: inherit; }
.tb-cta:hover { background: #1a6a38; color: #dcfce7; transform: translateY(-1px); }
.tb-phone { color: #8aaa8a; font-size: 14px; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 4px; white-space: nowrap; transition: 0.2s; }
.tb-phone:hover { color: #4ade80; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
.hamburger span { display: block; width: 26px; height: 3px; background: #8aaa8a; border-radius: 2px; transition: 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ====== Tab Nav ====== */
#tab-nav { display: flex; gap: 4px; background: #0c1510; border-bottom: 1px solid #1a3a2a; padding: 0 16px; flex-shrink: 0; }
#tab-nav button { background: none; border: none; color: #6b9a6b; font-size: 16px; padding: 12px 22px; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; font-family: inherit; white-space: nowrap; font-weight: 500; }
#tab-nav button:hover { color: #a0d0a0; background: rgba(74,222,128,0.04); }
#tab-nav button.active { color: #4ade80; border-bottom-color: #4ade80; background: rgba(74,222,128,0.06); }

/* ====== Tab Content ====== */
.tab-content { display: none; flex: 1; overflow: hidden; flex-direction: column; }
.tab-content.active { display: flex; }

/* ====== Hero Dashboard ====== */
#hero-dash { display: flex; gap: 32px; padding: 28px 32px; flex: 1; overflow-y: auto; align-items: center; }
.hero-left { flex: 1; }
.hero-badge { display: inline-block; background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.2); color: #fbbf24; font-size: 14px; font-weight: 700; padding: 6px 16px; border-radius: 6px; margin-bottom: 16px; }
.hero-title { font-size: clamp(38px, 5vw, 56px); font-weight: 900; line-height: 1.15; color: #f0f8f0; margin-bottom: 12px; letter-spacing: -0.5px; }
.hero-title em { color: #4ade80; }
.hero-sub { font-size: 18px; color: #8aaa8a; margin-bottom: 28px; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 6px; font-size: 17px; font-weight: 700; cursor: pointer; transition: all 0.2s; border: none; font-family: inherit; text-decoration: none; }
.btn.primary { background: linear-gradient(135deg, #166534, #15803d); color: #bbf7d0; border: 1px solid #2a5a3a; box-shadow: 0 2px 12px rgba(74,222,128,0.12); }
.btn.primary:hover { background: #1a7a3a; color: #dcfce7; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(74,222,128,0.2); }
.btn.outline { background: rgba(74,222,128,0.04); color: #c8e0c8; border: 1.5px solid #2a5a3a; }
.btn.outline:hover { border-color: #4ade80; color: #4ade80; background: rgba(74,222,128,0.08); }
.hero-right { width: 400px; flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; }
.hero-card { background: #0f1a14; border: 1px solid #2a5a3a; border-radius: 10px; padding: 20px; box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.hc-label { font-size: 30px; font-weight: 900; color: #4ade80; letter-spacing: 4px; }
.hc-val { font-size: 18px; color: #f0f8f0; margin-bottom: 12px; font-weight: 600; }
.hc-bar { height: 8px; background: #0a0e0f; border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.hc-fill { height: 100%; background: linear-gradient(90deg, #166534, #4ade80); border-radius: 4px; }
.hc-sub { font-size: 13px; color: #8aaa8a; }
.stats-row { display: flex; gap: 10px; }
.stat-chip { flex: 1; text-align: center; background: #0f1a14; border: 1px solid #2a5a3a; border-radius: 8px; padding: 12px 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.sc-num { display: block; font-size: 22px; font-weight: 700; color: #e0f0e0; }
.sc-lbl { display: block; font-size: 12px; color: #8aaa8a; margin-top: 3px; }
.partner-strip { text-align: center; font-size: 14px; color: #8aaa8a; padding: 12px; background: #0f1a14; border: 1px solid #2a5a3a; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.partner-strip .dot { color: #2a5a3a; margin: 0 6px; }

/* ====== Quick Grid ====== */
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 0 32px 24px; }
.q-card { background: #0f1a14; border: 1px solid #2a5a3a; border-radius: 8px; padding: 16px 10px; text-align: center; transition: 0.2s; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.q-card:hover { border-color: #4ade80; transform: translateY(-3px); box-shadow: 0 4px 16px rgba(74,222,128,0.12); }
.q-icon { font-size: 34px; margin-bottom: 8px; display: block; text-shadow: 0 0 20px rgba(74,222,128,0.2); }
.q-name { font-size: 16px; color: #e0f0e0; font-weight: 600; margin-bottom: 8px; }
.q-bar { height: 4px; background: #0a0e0f; border-radius: 2px; overflow: hidden; }
.q-fill { height: 100%; background: #4ade80; border-radius: 2px; }

/* ====== Services Tab ====== */
#main { display: flex; flex: 1; overflow: hidden; }
#agents-panel { width: 260px; background: #0f1a14; border-right: 2px solid #1a3a2a; overflow-y: auto; padding: 16px; flex-shrink: 0; }
#agents-panel h3 { font-size: 16px; color: #4ade80; margin-bottom: 12px; border-bottom: 1px solid #2a5a3a; padding-bottom: 8px; }
.agent-card { background: #0a120e; border: 1px solid #1a3a2a; border-radius: 8px; padding: 14px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s; }
.agent-card:hover { border-color: #4ade80; transform: translateX(3px); }
.agent-card.active { border-color: #4ade80; box-shadow: 0 0 16px rgba(74,222,128,0.12); background: #0f1f14; }
.agent-card .name-row { display: flex; align-items: center; gap: 10px; }
.agent-card .avatar { font-size: 24px; }
.agent-card .name { font-size: 16px; font-weight: 700; color: #e0f0e0; }
.agent-card .dept { font-size: 13px; color: #8aaa8a; margin-top: 4px; }
.agent-card .tools { font-size: 12px; color: #5a8a6a; margin-top: 3px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; margin-left: auto; flex-shrink: 0; }
.status-dot.online { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.status-dot.standby { background: #6b9a6b; }
.status-dot.working { background: #facc15; box-shadow: 0 0 8px #facc15; animation: pulse 0.8s infinite; }
#center { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
#timeline { flex: 1; overflow-y: auto; padding: 20px 24px; background: #080c0a; }
.msg { display: flex; gap: 14px; margin-bottom: 14px; animation: slideIn 0.3s; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.msg .avatar { font-size: 28px; min-width: 36px; }
.msg .body { flex: 1; }
.msg .header { font-size: 14px; color: #6b9a6b; margin-bottom: 4px; }
.msg .header .from { color: #4ade80; font-weight: 700; }
.msg .text { font-size: 16px; background: #0f1a14; padding: 12px 16px; border-radius: 8px; border-left: 3px solid #2a5a3a; line-height: 1.7; color: #d0e0d0; }
.msg.broadcast .text { border-left-color: #4ade80; background: #0c1f14; }
.msg.assign .text { border-left-color: #facc15; background: #0f1a0e; }
.msg.reply .text { border-left-color: #60a5fa; background: #0e141f; }
.msg.complete .text { border-left-color: #4ade80; background: #0c1f14; }
.layer-tag { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 3px; margin-right: 4px; background: #1a3a2a; color: #8aaa8a; }
.layer-tag.S { background: #14532d; color: #4ade80; }
.layer-tag.A { background: #1e3a5f; color: #93c5fd; }
.layer-tag.B { background: #422006; color: #fcd34d; }

/* ====== Cases Tab ====== */
.cases-dash { padding: 28px 32px; overflow-y: auto; flex: 1; }
.cases-hd { margin-bottom: 24px; }
.cases-hd h2 { font-size: 30px; color: #f0f8f0; margin-bottom: 8px; }
.cases-hd p { font-size: 16px; color: #8aaa8a; }
.section-badge { display: inline-block; background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.18); color: #4ade80; font-size: 14px; font-weight: 700; padding: 6px 16px; border-radius: 6px; margin-bottom: 14px; }
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.case-card { background: #0f1a14; border: 1px solid #2a5a3a; border-radius: 10px; padding: 20px; transition: 0.2s; box-shadow: 0 4px 16px rgba(0,0,0,0.25); }
.case-card:hover { border-color: #4ade80; transform: translateY(-3px); box-shadow: 0 6px 24px rgba(74,222,128,0.1); }
.cc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.cc-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; flex-shrink: 0; background: #166534; color: #4ade80; box-shadow: 0 0 12px rgba(74,222,128,0.08); }
.cc-name { font-size: 20px; font-weight: 700; color: #f0f8f0; flex: 1; }
.cc-score { font-size: 14px; font-weight: 900; color: #4ade80; background: #0a120e; border: 1px solid #2a5a3a; padding: 3px 10px; border-radius: 6px; }
.cc-sub { font-size: 13px; color: #8aaa8a; margin-bottom: 8px; }
.cc-tags { display: flex; gap: 6px; margin-bottom: 10px; }
.cc-tags span { background: #0a120e; border: 1px solid #2a5a3a; color: #8aaa8a; font-size: 13px; padding: 2px 10px; border-radius: 4px; }
.cc-body { font-size: 15px; color: #b8d0b8; line-height: 1.7; margin-bottom: 14px; }
.cc-results { display: flex; gap: 20px; padding-top: 12px; border-top: 1px solid #1a3a2a; }
.cc-results span { font-size: 14px; color: #8aaa8a; }
.cc-results span:first-child { color: #4ade80; font-weight: 700; }

/* ====== About Tab ====== */
.about-dash { display: flex; gap: 32px; padding: 28px 32px; overflow-y: auto; flex: 1; align-items: start; }
.about-main { flex: 1; }
.about-main h2 { font-size: 30px; color: #f0f8f0; margin-bottom: 16px; }
.about-text-block p { font-size: 17px; color: #b8d0b8; line-height: 1.9; margin-bottom: 14px; }
.about-text-block strong { color: #f0f8f0; }
.about-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.am-card { text-align: center; padding: 16px 10px; background: #0f1a14; border: 1px solid #2a5a3a; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.am-num { display: block; font-size: 26px; font-weight: 700; color: #e0f0e0; margin-bottom: 4px; }
.am-lbl { font-size: 13px; color: #8aaa8a; }
.about-side { width: 380px; flex-shrink: 0; }
.chamber-card { background: #0f1a14; border: 1px solid #2a5a3a; border-radius: 10px; padding: 20px; box-shadow: 0 4px 16px rgba(0,0,0,0.25); }
.chamber-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #1a3a2a; }
.chamber-top img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; border: 2px solid #2a5a3a; }
.chamber-top h4 { font-size: 18px; color: #f0f8f0; }
.chamber-top p { font-size: 14px; color: #8aaa8a; }
.chamber-card > p { font-size: 15px; color: #b8d0b8; line-height: 1.8; margin-bottom: 14px; }
.chamber-badge { display: inline-block; font-size: 14px; font-weight: 700; color: #4ade80; background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.18); padding: 5px 14px; border-radius: 6px; }

/* ====== Contact Tab ====== */
.contact-dash { display: flex; gap: 32px; padding: 28px 32px; overflow-y: auto; flex: 1; align-items: start; }
.contact-main { flex: 1; max-width: 660px; }
.contact-main h2 { font-size: 30px; color: #f0f8f0; margin-bottom: 8px; }
.contact-form { background: #0f1a14; border: 1px solid #2a5a3a; border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 4px 16px rgba(0,0,0,0.25); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea { background: #0a120e; border: 1.5px solid #2a5a3a; color: #e8f0e8; padding: 14px 16px; border-radius: 6px; font-size: 17px; font-family: inherit; transition: 0.2s; outline: none; width: 100%; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,0.12); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #5a7a5a; }
.contact-form select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%236b9a6b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; }
.contact-form textarea { resize: vertical; min-height: 90px; }
.form-feedback { text-align: center; padding: 12px 16px; border-radius: 6px; font-size: 16px; font-weight: 600; display: none; }
.form-feedback.success { display: block; background: rgba(74,222,128,0.08); color: #4ade80; border: 1px solid rgba(74,222,128,0.18); }
.form-feedback.error { display: block; background: rgba(248,113,113,0.08); color: #f87171; border: 1px solid rgba(248,113,113,0.18); }
.form-note { font-size: 14px; color: #5a7a5a; text-align: center; }
.contact-side { width: 340px; display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.ci-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: #0f1a14; border: 1px solid #2a5a3a; border-radius: 8px; transition: 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.ci-card:hover { border-color: #4ade80; }
.ci-card.highlight { border-color: #2a5a3a; background: rgba(74,222,128,0.04); }
.ci-card span:first-child { font-size: 28px; text-shadow: 0 0 16px rgba(74,222,128,0.1); }
.ci-card h4 { font-size: 16px; color: #f0f8f0; margin-bottom: 3px; }
.ci-card p { font-size: 15px; color: #8aaa8a; }
.ci-card a { color: #8aaa8a; }
.ci-card a:hover { color: #4ade80; }

/* ====== Footer ====== */
footer { background: #0a120e; border-top: 1px solid #1a3a2a; padding: 14px 24px; flex-shrink: 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #5a7a5a; gap: 12px; flex-wrap: wrap; }
.ft-slogan { color: #3a5a3a; }

/* ====== Toast ====== */
#toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: #0f1a14; border: 1px solid #2a5a3a; color: #e8f0e8; padding: 14px 28px; border-radius: 8px; font-size: 16px; font-weight: 600; opacity: 0; transition: all 0.3s; pointer-events: none; z-index: 999; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(-8px); }

/* ====== Responsive ====== */
@media (max-width: 900px) { .hero-right { width: 340px; } .quick-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .topbar-center { display: none; } #hero-dash { flex-direction: column; } .hero-right { width: 100%; } #agents-panel { width: 200px; } .about-dash { flex-direction: column; } .about-side { width: 100%; } .contact-dash { flex-direction: column; } .contact-side { width: 100%; } .cases-grid { grid-template-columns: 1fr; } .about-metrics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { body { overflow-y: auto; overflow-x: hidden; } #topbar { flex-wrap: wrap; padding: 8px 12px; min-height: 48px; gap: 8px; } #topbar h1 { font-size: 18px; } .tb-tag { display: none; } .tb-cta { font-size: 13px; padding: 6px 12px; } #tab-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: #0c1510; border-top: 2px solid #2a5a3a; display: flex; justify-content: space-around; padding: 6px 0; } #tab-nav button { font-size: 12px; padding: 10px 8px; flex: 1; text-align: center; min-height: 48px; } body { padding-bottom: 60px; } .tab-content { overflow-y: auto; } #hero-dash { flex-direction: column; padding: 20px 16px; } .hero-right { width: 100%; } .hero-title { font-size: 30px; } .hero-sub { font-size: 16px; } .hero-actions { flex-direction: column; } .btn { width: 100%; justify-content: center; } .quick-grid { grid-template-columns: repeat(3, 1fr); padding: 0 16px 16px; gap: 8px; } #main { flex-direction: column; } #agents-panel { width: 100%; border-right: none; border-bottom: 2px solid #1a3a2a; max-height: 200px; overflow-y: auto; padding: 12px; } #timeline { padding: 14px; } .msg .text { font-size: 14px; padding: 10px 14px; } .cases-dash { padding: 20px 16px; } .cases-hd h2 { font-size: 24px; } .about-dash { padding: 20px 16px; flex-direction: column; } .about-side { width: 100%; } .about-metrics { grid-template-columns: repeat(2, 1fr); } .contact-dash { padding: 20px 16px; flex-direction: column; } .contact-side { width: 100%; } .form-row { grid-template-columns: 1fr; } .footer-inner { flex-direction: column; text-align: center; } .hamburger { display: flex; } .stats-row { gap: 6px; } .stat-chip { padding: 10px 4px; } .sc-num { font-size: 18px; } }
