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

:root {
  --brand: #1a3a6b;
  --brand-light: #2c5590;
  --accent: #e6a817;
  --bg: #f5f6f8;
  --card: #fff;
  --line: #e8ecf1;
  --text: #333;
  --muted: #6b7480;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.8; color: var(--text); background: var(--bg);
}

/* 顶部导航 */
.navbar {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; height: 64px; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.logo-img { width: 34px; height: 34px; border-radius: 8px; display: block; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px; background: var(--brand);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  color: #444; text-decoration: none; padding: 8px 14px; border-radius: 6px; font-size: 15px;
}
.nav-links a:hover, .nav-links a.active { background: #eaf3ff; color: var(--brand); }
.nav-actions { margin-left: auto; display: flex; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 6px;
  font-size: 14px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-light); }
.btn-ghost { border-color: var(--line); color: var(--brand); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* 通用容器 */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { font-size: 26px; color: var(--brand); margin-bottom: 8px; }
.section-title p { color: var(--muted); font-size: 15px; }

/* 首屏 */
.hero {
  /* 背景基调对齐 Logo 底色 #375d7b，使 Logo 图块自然融入 */
  background: linear-gradient(135deg, #2c4a64 0%, #375d7b 52%, #2e5170 100%);
  color: #fff; padding: 72px 0 64px;
}
.hero h1 { font-size: 34px; margin-bottom: 16px; line-height: 1.4; }
.hero p { font-size: 16px; opacity: .9; margin-bottom: 28px; max-width: 720px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-primary { background: #fff; color: var(--brand); }
.hero .btn-primary:hover { background: #eaf3ff; }
.hero .btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.hero .btn-ghost:hover { border-color: #fff; }

/* 首屏 Logo 与欢迎询问窗口 */
.hero-logo { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 30px; }
.hero-logo img {
  width: 96px; height: 96px; border-radius: 22px; display: block;
  box-shadow: 0 4px 14px rgba(15,30,50,.18);
}
.hero-logo .lg-name { font-size: 22px; font-weight: 700; letter-spacing: 3px; }
.welcome-card {
  max-width: 660px; margin: 0 auto; background: #fff; border-radius: 14px;
  padding: 22px 26px; display: flex; gap: 16px; align-items: flex-start;
  box-shadow: 0 12px 32px rgba(8,20,50,.30); text-align: left; color: var(--text);
}
.wc-avatar {
  width: 46px; height: 46px; border-radius: 12px; background: #375d7b; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex: none;
}
.wc-body { flex: 1; min-width: 0; }
.wc-text { font-size: 15px; line-height: 1.7; }
.wc-text b { color: var(--brand); }
.wc-sub { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.wc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.wc-actions .btn-primary { background: var(--brand); color: #fff; }
.wc-actions .btn-primary:hover { background: var(--brand-light); }
.wc-actions .btn-ghost { border-color: var(--line); color: var(--brand); background: #fff; }
.wc-actions .btn-ghost:hover { border-color: var(--brand); }
.wc-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.wc-chips a {
  font-size: 13px; color: var(--muted); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px;
}
.wc-chips a:hover { color: var(--brand); border-color: var(--brand); background: #eaf3ff; }

/* 欢迎窗口 · 模块平台提示（对话框下方） */
.wc-modules {
  margin-top: 14px; padding: 12px 14px;
  border: 1px dashed var(--line); border-radius: 10px; background: #f7fafc;
}
.wc-modules .wm-title {
  font-size: 12px; color: var(--muted); letter-spacing: .5px; margin-bottom: 8px;
}
.wc-modules .wm-list { list-style: none; margin: 0; padding: 0; }
.wc-modules .wm-list li {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink); padding: 3px 0;
}
.wc-modules .wm-list li b { font-weight: 600; }
.wc-modules .wm-list li span {
  font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; background: #fff;
}
.wc-modules .wm-list li.wm-more { color: var(--muted); }

/* 进入业务系统前的确认弹框（各系统账号独立，先说明去向） */
.goapp-mask {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(16, 28, 40, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.goapp-box {
  max-width: 420px; width: 100%;
  background: #fff; border-radius: 12px; padding: 22px 24px 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
  animation: goapp-in .16s ease-out;
}
@keyframes goapp-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.goapp-title { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.goapp-text { font-size: 13px; line-height: 1.9; color: var(--muted); }
.goapp-text b { color: var(--text); }
.goapp-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.goapp-actions .btn { margin: 0; }

/* 欢迎窗口 · AI 对话区 */
.wc-chat {
  margin-top: 14px; max-height: 200px; overflow-y: auto; padding: 4px 2px;
  display: flex; flex-direction: column; gap: 10px;
}
.wc-chat:empty { display: none; }
.wc-msg { max-width: 88%; font-size: 14px; line-height: 1.7; padding: 8px 12px; border-radius: 10px; }
.wc-msg-ai { background: #f2f6fb; color: var(--text); border-top-left-radius: 2px; align-self: flex-start; }
.wc-msg-user { background: var(--brand); color: #fff; border-top-right-radius: 2px; align-self: flex-end; }
.wc-mode {
  display: inline-block; margin-left: 8px; font-size: 11px; color: #fff;
  background: #7c5cd6; border-radius: 999px; padding: 1px 8px; vertical-align: 1px;
}
.wc-mode-reg { background: var(--accent); }
.wc-msg-reg { background: #fff8e6; border: 1px solid #f2dfae; }
.wc-dot {
  display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%;
  background: #9db6d8; animation: wcBlink 1.2s infinite;
}
.wc-dot:nth-child(2) { animation-delay: .2s; }
.wc-dot:nth-child(3) { animation-delay: .4s; }
@keyframes wcBlink { 0%, 70%, 100% { opacity: .25; } 35% { opacity: 1; } }
.wc-msg-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.wc-act {
  font-size: 13px; color: var(--brand); text-decoration: none;
  border: 1px solid var(--brand); border-radius: 999px; padding: 2px 12px; background: #fff;
}
.wc-act:hover { background: var(--brand); color: #fff; }
.wc-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.wc-quick a {
  font-size: 13px; color: var(--brand); text-decoration: none;
  background: #eaf3ff; border-radius: 999px; padding: 3px 12px;
}
.wc-quick a:hover { background: #d8e7fa; }
.wc-input { display: flex; gap: 8px; margin-top: 12px; }
.wc-input input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; font-size: 14px; outline: none; font-family: inherit;
}
.wc-input input:focus { border-color: var(--brand-light); }
@media (max-width: 640px) {
  .welcome-card { flex-direction: column; }
  .hero-logo .lg-name { font-size: 18px; letter-spacing: 2px; }
}

/* 应用入口卡片 */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.app-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 22px;
  display: flex; flex-direction: column; gap: 10px; transition: .2s;
}
.app-card:hover { box-shadow: 0 6px 20px rgba(26,58,107,.12); border-color: #c9d8ee; transform: translateY(-2px); }
.app-head { display: flex; align-items: center; gap: 12px; }
.app-icon {
  width: 44px; height: 44px; border-radius: 10px; background: #eaf3ff; color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.app-name { font-size: 16px; font-weight: 700; color: #22303f; }
.app-sub { font-size: 12px; color: var(--muted); }
.app-desc { font-size: 14px; color: #5a6470; line-height: 1.7; flex: 1; }
.app-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.badge { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 12px; }
.badge-online { background: #e6f7ed; color: #1a7a3a; }
.badge-plan { background: #fff3e6; color: #b85c00; }
.app-card.is-planning { opacity: .82; }

/* 数据看板 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px; text-align: center; }
.stat-value { font-size: 30px; font-weight: 700; color: var(--brand); }
.stat-unit { font-size: 14px; color: var(--muted); margin-left: 2px; }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* 服务卡片 */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.svc-card h3 { font-size: 17px; color: var(--brand); margin-bottom: 10px; }
.svc-card p { font-size: 14px; color: #5a6470; }
.svc-card ul { margin: 12px 0 0 18px; font-size: 14px; color: #5a6470; }

/* 客户墙 */
.cust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cust-item {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px;
  font-size: 14px; color: #4a5460;
}
.cust-item .region { display: block; font-size: 12px; color: var(--accent); margin-bottom: 4px; }

/* 页脚 */
.footer { background: #16202e; color: #9aa7b5; padding: 40px 0; font-size: 14px; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 32px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer a { color: #9aa7b5; text-decoration: none; display: block; margin-bottom: 6px; }
.footer a:hover { color: #fff; }
.footer-bottom { max-width: 1180px; margin: 24px auto 0; padding: 16px 24px 0; border-top: 1px solid #26303e; font-size: 13px; }

/* 提示条 */
.notice {
  background: #fff8e6; border-left: 4px solid var(--accent); padding: 12px 16px;
  font-size: 14px; color: #7a5c12; border-radius: 0 6px 6px 0;
}

@media (max-width: 768px) {
  .nav-inner { height: auto; padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
  .nav-actions { margin-left: 0; }
  .hero h1 { font-size: 25px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 40px 0; }
}
