/* 水母报告助手 —— 系统界面样式（纯 CSS，适配桌面与手机，字体偏大） */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: #f2f4f8;
    color: #23262f;
    font-size: 16px;
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
}
a { color: #1b62d6; text-decoration: none; }
a:hover { text-decoration: underline; }

/* 布局 */
.layout { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { background: linear-gradient(135deg, #123a8c 0%, #1b62d6 100%); color: #fff; box-shadow: 0 2px 12px rgba(20,50,110,.18); }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.logo { font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.nav a { color: rgba(255,255,255,.88); padding: 8px 16px; border-radius: 8px; font-size: 17px; }
.nav a:hover { background: rgba(255,255,255,.14); text-decoration: none; }
.nav a.on { background: #fff; color: #123a8c; font-weight: 700; }
.nav a.quit { background: rgba(255,255,255,.12); }
.user { font-size: 16px; color: #fff; opacity: .95; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; font-size: 13px; }
.tag-admin { background: #ffb020; color: #4a2b00; }
.tag-member { background: #25c28b; color: #fff; }

.main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 26px 20px 40px; }
.main-wide { max-width: 900px; }
.foot { text-align: center; color: #8b93a7; font-size: 14px; padding: 18px 10px 26px; }

/* 卡片 */
.card { background: #fff; border-radius: 14px; box-shadow: 0 4px 18px rgba(23,43,77,.06); padding: 24px; margin-bottom: 22px; }
.card h2 { margin: 0 0 16px; font-size: 21px; font-weight: 700; color: #16233d; }
.card h3 { margin: 22px 0 12px; font-size: 18px; color: #16233d; }
.muted { color: #828b9f; font-size: 15px; }

/* 表单 */
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 17px; font-weight: 600; margin-bottom: 8px; color: #2a3446; }
.input, select.input, textarea.input {
    width: 100%; padding: 13px 14px; font-size: 18px; border: 1px solid #d7dce8; border-radius: 10px;
    background: #fbfcfe; color: #23262f; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: #1b62d6; box-shadow: 0 0 0 3px rgba(27,98,214,.12); background: #fff; }
textarea.input { min-height: 96px; resize: vertical; }
.btn {
    display: inline-block; padding: 12px 26px; font-size: 18px; font-weight: 600; border: none; border-radius: 10px;
    background: #1b62d6; color: #fff; cursor: pointer; transition: background .15s, transform .05s;
}
.btn:hover { background: #1550b3; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 34px; font-size: 20px; width: 100%; }
.btn-gray { background: #8b93a7; }
.btn-gray:hover { background: #6f778a; }
.btn-green { background: #25c28b; }
.btn-green:hover { background: #1aa678; }
.btn-red { background: #e0483b; }
.btn-red:hover { background: #c23a2f; }
.btn-sm { padding: 7px 14px; font-size: 15px; border-radius: 8px; }
.btn:disabled, .btn.disabled { background: #c3c9d6; cursor: not-allowed; }

/* 验证码：强制不换行，手机端完整可见 */
.captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.captcha-row .input { flex: 1 1 auto; min-width: 0; }
.captcha-row img { flex: 0 0 auto; height: 52px; width: 132px; border-radius: 10px; border: 1px solid #d7dce8; cursor: pointer; background: #fff; }
.captcha-tip { font-size: 14px; color: #828b9f; margin-top: 6px; }

/* 登录/注册 */
.auth-box { max-width: 460px; margin: 4vh auto 0; }
.auth-title { text-align: center; font-size: 28px; font-weight: 700; color: #16233d; margin-bottom: 6px; }
.auth-sub { text-align: center; color: #828b9f; font-size: 16px; margin-bottom: 22px; }
.auth-link { text-align: center; margin-top: 16px; font-size: 16px; }

/* 表格 */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.grid { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 640px; }
table.grid th, table.grid td { padding: 12px 12px; border-bottom: 1px solid #eef1f7; text-align: left; vertical-align: middle; }
table.grid th { background: #f5f8fe; color: #46506a; font-weight: 600; white-space: nowrap; }
table.grid tbody tr:hover { background: #fafcff; }
table.grid td.nowrap { white-space: nowrap; }
.cell-company { font-weight: 600; color: #16233d; }
.ops { white-space: nowrap; }
.ops .btn { margin-right: 6px; margin-bottom: 4px; }

/* 状态 */
.status { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 15px; font-weight: 600; }
.status-on { background: #e6f8f1; color: #0f9c6c; }
.status-off { background: #fdecea; color: #d33a2c; }
.status-warn { background: #fff5e0; color: #b8801a; }

/* 提示 */
.msg { padding: 13px 16px; border-radius: 10px; font-size: 16px; margin-bottom: 18px; }
.msg-ok { background: #e9f9f2; color: #0f9c6c; border: 1px solid #bdebd8; }
.msg-err { background: #fdecea; color: #c0392b; border: 1px solid #f6c9c4; }
.msg-info { background: #eef4ff; color: #1b62d6; border: 1px solid #cddffe; }

/* 统计卡片 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { background: #fff; border-radius: 14px; padding: 18px 20px; box-shadow: 0 4px 18px rgba(23,43,77,.06); }
.stat .num { font-size: 30px; font-weight: 700; color: #1b62d6; line-height: 1.3; }
.stat .lb { color: #828b9f; font-size: 15px; }

/* 工具栏 */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.toolbar .grow { flex: 1; }
.toolbar form { display: flex; gap: 8px; flex-wrap: wrap; }

/* 空状态 */
.empty { text-align: center; padding: 46px 10px; color: #8b93a7; font-size: 17px; }
.empty .big { font-size: 46px; display: block; margin-bottom: 10px; color: #c9cfdd; }

/* 分享文本域 */
.copy-box { display: flex; gap: 8px; flex-wrap: nowrap; }
.copy-box .input { flex: 1; font-size: 15px; }

/* 分页 */
.pager { margin-top: 16px; text-align: center; font-size: 15px; color: #6f778a; }
.pager a { padding: 6px 12px; border: 1px solid #d7dce8; border-radius: 8px; margin: 0 3px; background: #fff; }

/* 自适应 */
@media (max-width: 860px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .topbar-inner { padding: 12px 14px; }
    .logo { font-size: 20px; width: 100%; }
    .nav a { padding: 8px 12px; font-size: 16px; }
    .main { padding: 16px 12px 30px; }
    .card { padding: 18px 16px; border-radius: 12px; }
    body { font-size: 16px; }
}
@media (max-width: 520px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .stat .num { font-size: 26px; }
    .btn { padding: 11px 18px; font-size: 17px; }
    .auth-box { margin-top: 2vh; }
    .captcha-row img { width: 118px; height: 48px; }
}
