/* ============================================================
   内部系统入口 —— 门户页样式
   与 IT 问题知识库保持同一套设计语言（同一组色值与圆角）
   ============================================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-deep: #1e3a8a;
  --primary-light: #eff6ff;
  --bg: #f4f6fa;
  --card: #ffffff;
  --text: #1f2937;
  --text-2: #6b7280;
  --border: #e5e7eb;
  --success: #16a34a;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius: 12px;
}

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

[hidden] { display: none !important; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ---------------- 顶栏 ---------------- */
.top {
  background: linear-gradient(120deg, var(--primary-deep), var(--primary));
  color: #fff;
  box-shadow: 0 2px 10px rgba(30, 58, 138, 0.18);
}
.top-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; font-size: 24px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.brand h1 { font-size: 19px; font-weight: 800; letter-spacing: 0.5px; }
.brand p { font-size: 12.5px; opacity: 0.82; margin-top: 3px; }
.top-right .net {
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  white-space: nowrap;
}

/* ---------------- 主体 ---------------- */
.main {
  flex: 1;
  max-width: 1120px; width: 100%; margin: 0 auto;
  padding: 34px 32px 20px;
}

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 20px;
}
.section-head h2 { font-size: 15.5px; font-weight: 800; color: #334155; }
.section-desc { font-size: 12.5px; color: var(--text-2); margin-top: 5px; }

.filter-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 9px 13px; min-width: 240px;
  box-shadow: var(--shadow); transition: 0.15s;
}
.filter-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.filter-box span { font-size: 14px; opacity: 0.7; }
.filter-box input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 13.5px; color: var(--text); font-family: inherit;
}
.filter-box input::placeholder { color: #a8b0bd; }

/* ---------------- 系统卡片 ---------------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 18px;
}

.app-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 15px; padding: 22px 20px 18px;
  box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
  min-height: 196px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.app-card.live { cursor: pointer; }
.app-card.live:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #bfdbfe;
}
.app-card.live:active { transform: translateY(-1px); }
.app-card.soon { background: #fbfcfe; }

.card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 15px;
}
.card-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; font-size: 23px;
  background: var(--primary-light);
}
.app-card.soon .card-icon { background: #f1f3f7; filter: grayscale(0.4); }

.card-status {
  font-size: 11px; font-weight: 700; padding: 3.5px 9px; border-radius: 999px;
}
.card-status.on { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.card-status.off { background: #f8fafc; color: #94a3b8; border: 1px solid #e8edf3; }

.app-card h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 7px; }
.app-card p {
  font-size: 12.5px; line-height: 1.72; color: var(--text-2); flex: 1;
}

.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 15px;
}
.card-go { font-size: 13px; font-weight: 700; color: var(--primary); }
.app-card.soon .card-go { color: #b6bfcc; }
.app-card.live:hover .card-go { color: var(--primary-dark); }
.card-tag {
  font-size: 11px; color: #93a0b3;
  background: #f6f8fb; border: 1px solid #eef2f7;
  padding: 2.5px 8px; border-radius: 6px; white-space: nowrap;
}

/* ---------------- 空状态 / 提示 ---------------- */
.empty { text-align: center; padding: 54px 0; color: var(--text-2); }
.empty-icon { font-size: 34px; margin-bottom: 10px; opacity: 0.6; }
.empty p { font-size: 13.5px; }

.tip {
  margin-top: 26px; padding: 14px 18px;
  border-radius: var(--radius);
  background: #f8fafc; border: 1px dashed #cbd5e1;
  font-size: 12.5px; line-height: 1.9; color: #64748b;
}
.tip b { color: #475569; }
.tip code {
  background: #eef2f7; padding: 1.5px 6px; border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11.5px; color: #334155;
}

/* ---------------- 页脚 ---------------- */
.foot {
  max-width: 1120px; width: 100%; margin: 0 auto;
  padding: 18px 32px 26px;
  font-size: 12px; color: #a3adbb;
  display: flex; align-items: center; gap: 7px;
}
.foot .dot { opacity: 0.6; }
.foot-sep { flex: 1 1 auto; }
.foot .icp {
  color: #a3adbb; text-decoration: none;
  padding: 2px 4px; border-radius: 4px;
  transition: color .15s;
}
.foot .icp:hover { color: #5b6b82; text-decoration: underline; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 720px) {
  .top-inner { padding: 16px 20px; }
  .main { padding: 24px 20px 16px; }
  .foot { padding: 14px 20px 22px; flex-wrap: wrap; row-gap: 6px; }
  .foot-sep { display: none; }
  .foot .icp { width: 100%; padding-left: 0; }
  .section-head { align-items: stretch; }
  .filter-box { min-width: 0; width: 100%; }
  .app-grid { grid-template-columns: 1fr; }
  .brand h1 { font-size: 17px; }
  .top-right .net { font-size: 11.5px; }
}
