* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: #f5f9f8;
  color: #222;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page-shell { flex: 1 0 auto; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 20px; height: 20px; display: block; }

/* 全站备案页脚（管局要求首页底部悬挂 ICP 备案号并链接工信部官网） */
.site-footer {
  flex-shrink: 0;
  text-align: center;
  padding: 9px 12px;
  font-size: 12px;
  color: #6b7280;
  background: #f5f9f8;
  border-top: 1px solid #e5e7eb;
}
.site-footer a { color: #6b7280; }
.site-footer a:hover { color: #2563eb; text-decoration: underline; }
.footer-sep { margin: 0 8px; color: #cbd5e1; }

/* 登录/注册卡片 */
.auth-wrap {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 38px);
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 80% 12%, rgba(255,255,255,.20), transparent 45%),
    linear-gradient(135deg, #15927f 0%, #0f766e 55%, #11695f 100%);
  padding: 20px;
}
.auth-garden { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.auth-garden svg { width: 100%; height: 100%; display: block; }
.auth-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  padding: 36px 34px 30px;
}
.auth-logo {
  width: 56px; height: 56px; margin: 0 auto 12px;
  display: grid; place-items: center; border-radius: 16px;
  color: #fff; background: linear-gradient(135deg, #0f766e, #0d5f59);
  box-shadow: 0 8px 18px rgba(15,118,110,.25);
}
.auth-logo .ico { width: 34px; height: 34px; }
.auth-title { text-align: center; font-size: 22px; font-weight: 700; color: #0f766e; }
.auth-sub { text-align: center; color: #888; font-size: 13px; margin: 6px 0 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; font-weight: 600; }
.field input {
  width: 100%; padding: 11px 12px; font-size: 14px;
  border: 1px solid #d7dce3; border-radius: 8px; outline: none;
}
.field input:focus { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15,118,110,.12); }
.btn {
  display: inline-block; width: 100%; padding: 11px; font-size: 15px; font-weight: 600;
  color: #fff; background: #0f766e; border: none; border-radius: 8px; cursor: pointer;
}
.btn:hover { background: #0d655e; }
.btn-sm { width: auto; padding: 5px 12px; font-size: 13px; }
.btn-gray { background: #6b7280; }
.btn-gray:hover { background: #555c66; }
.btn-red { background: #dc2626; }
.btn-red:hover { background: #b91c1c; }
.btn-blue { background: #2563eb; }
.btn-blue:hover { background: #1d4ed8; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 13px; color: #666; }
.msg { padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.msg-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.msg-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

/* 门户顶部栏 */
.topbar {
  background: rgba(255,255,255,.97); border-bottom: 1px solid #e7ecf0;
  padding: 13px 30px; min-height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  width: 38px; height: 38px; flex: none; border-radius: 11px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #0f766e, #0d5f59);
  box-shadow: 0 5px 13px rgba(15,118,110,.24);
}
.brand-mark .ico { width: 23px; height: 23px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { font-size: 16px; font-weight: 700; color: #123b38; letter-spacing: .3px; white-space: nowrap; }
.brand-copy small { font-size: 11px; color: #8a98a5; letter-spacing: 1.5px; }
.user { display: flex; align-items: center; gap: 11px; font-size: 13px; color: #475569; white-space: nowrap; }
.user-avatar {
  width: 31px; height: 31px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
  color: #0f766e; background: #e4f2ef;
}
.user-name em {
  font-style: normal; font-size: 11px; margin-left: 6px;
  padding: 1px 7px; border-radius: 9px; color: #4338ca; background: #eef2ff;
}
.user-links a { color: #64748b; }
.user-links a:hover { color: #0f766e; }
.user-links a + a { margin-left: 11px; padding-left: 11px; border-left: 1px solid #dce3e9; }

/* 门户主体 */
.container { max-width: 1120px; margin: 0 auto; padding: 30px 24px 46px; }
.hero {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px;
  min-height: 212px; padding: 36px 42px; overflow: hidden; border-radius: 18px; color: #fff;
  background:
    radial-gradient(circle at 82% 8%, rgba(255,255,255,.20), transparent 46%),
    linear-gradient(118deg, #1ea995 0%, #15907f 52%, #137c76 100%);
  box-shadow: 0 14px 32px rgba(21,144,127,.20);
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 65%);
}
.hero-bg-art {
  position: absolute; left: -6px; bottom: -10px; width: 400px;
  z-index: 0; pointer-events: none;
}
.hero-bg-art svg { width: 100%; height: auto; display: block; }
.hero-text, .hero-art { position: relative; z-index: 1; }
.hero-eyebrow { font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,.68); margin-bottom: 9px; }
.hero h1 { font-size: 28px; line-height: 1.35; letter-spacing: .5px; margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,60,55,.16); }
.hero p { font-size: 14px; color: rgba(255,255,255,.90); max-width: 560px; }
.hero-tip {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 22px;
  padding: 7px 14px; border: 1px solid rgba(255,255,255,.36); border-radius: 20px;
  background: rgba(255,255,255,.15); font-size: 12px; color: #fff;
}
.tip-dot { width: 6px; height: 6px; border-radius: 50%; background: #5eead4; box-shadow: 0 0 0 4px rgba(94,234,212,.16); }
.hero-art { width: 280px; flex: none; }
.hero-art svg { width: 100%; height: auto; display: block; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 33px 2px 15px; }
.section-head h2 { font-size: 19px; color: #173b39; display: flex; align-items: center; gap: 7px; }
.section-ico { width: 17px; height: 17px; color: #0f766e; }
.section-head p { font-size: 12px; color: #8794a1; margin-top: 3px; }
.section-count { font-size: 12px; color: #94a3b8; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 22px;
}
.app-entry {
  position: relative; display: flex; flex-direction: column; min-height: 212px;
  padding: 22px; border-radius: 16px; border: 1px solid #e7ecf0; background: #fff;
  box-shadow: 0 2px 8px rgba(15,42,42,.03); color: inherit; text-decoration: none;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.app-entry:hover {
  transform: translateY(-4px); border-color: #9dc7c2; text-decoration: none;
  box-shadow: 0 14px 30px rgba(13,94,89,.13);
}
.app-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 15px; }
.app-icon .ico { width: 23px; height: 23px; }
.app-icon-data { background: #e6f4f1; color: #0f766e; }
.app-icon-bid { background: #eef2ff; color: #4f46e5; }
.app-icon-visa { background: #fff4e8; color: #c2410c; }
.app-icon-settle { background: #ecfdf3; color: #15803d; }
.app-badge {
  position: absolute; top: 19px; right: 18px; font-size: 11px; padding: 2px 9px;
  border-radius: 20px; color: #047857; background: #ecfdf5; border: 1px solid #c6f0dc;
}
.app-entry h3 { font-size: 15px; line-height: 1.45; color: #173b39; margin-bottom: 8px; }
.app-entry p { font-size: 12.5px; color: #7c8b98; line-height: 1.7; flex: 1; }
.entry-go { margin-top: 14px; color: #0f766e; font-size: 13px; font-weight: 600; }
.entry-go span { display: inline-block; transition: transform .15s; }
.app-entry:hover .entry-go span { transform: translateX(4px); }

/* 表格 */
.panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 22px; }
.panel h2 { font-size: 18px; margin-bottom: 16px; color: #111827; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 9px 10px; border-bottom: 1px solid #eef0f3; text-align: left; vertical-align: middle; }
th { background: #f8fafc; color: #475569; font-weight: 600; }
.actions form { display: inline; margin-right: 4px; }
.tag { padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.tag-active { background: #ecfdf5; color: #047857; }
.tag-pending { background: #fffbeb; color: #b45309; }
.tag-disabled { background: #f3f4f6; color: #6b7280; }
.tag-admin { background: #eef2ff; color: #4338ca; }
.form-inline { display: flex; gap: 6px; align-items: center; }
.form-inline input { width: 110px; padding: 5px 8px; border: 1px solid #d7dce3; border-radius: 6px; font-size: 12px; }
.form-box { max-width: 480px; }
.flash-area { margin-bottom: 14px; }

@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-art { width: 220px; }
}
@media (max-width: 700px) {
  .topbar { padding: 12px 16px; }
  .user-name { display: none; }
  .hero { padding: 28px 24px; }
  .hero h1 { font-size: 22px; }
  .hero-art { display: none; }
}
@media (max-width: 480px) {
  .container { padding: 20px 14px 36px; }
  .card-grid { grid-template-columns: 1fr; }
  .app-entry { min-height: 0; }
  .user-links a + a { margin-left: 8px; padding-left: 8px; }
}
