:root {
  --primary: #16a34a;
  --danger: #d43f3a;
  --bg: #f6f8fa;
  --text: #222;
}
* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif; color: var(--text); background: #fff; margin: 0; line-height: 1.6; }
.container { max-width: 1280px; margin: 32px auto; padding: 0 24px; }
h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: 0.5px; }
.subtitle { color: #555; margin-bottom: 18px; }
.form { background: var(--bg); padding: 18px; border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { margin-bottom: 12px; }
label { display: block; font-size: 14px; margin-bottom: 6px; color: #333; }
/* 统一后台文本框样式 */
.form input[type="text"], .form input[type="email"], .form input[type="number"], .form input[type="url"], .form input[type="password"], .form textarea,
input[type="text"], input[type="email"], input[type="number"], input[type="url"], input[type="password"], input[type="file"], textarea {
  width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.form input:focus, .form textarea:focus, .auth-card input:focus {
  outline: none; border-color: #a7f3d0; box-shadow: 0 0 0 3px rgba(16,185,129,0.25);
}
.form input:hover, .form textarea:hover, .auth-card input:hover { border-color: #cbd5e1; }
/* 登录页输入框统一 */
.auth-card input[type="text"], .auth-card input[type="password"] {
  width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 10px; font-size: 14px; background: #fff;
}
textarea { resize: vertical; }
.form select, select { width: 100%; padding: 10px 36px 10px 12px; border: 1px solid #ddd; border-radius: 10px; font-size: 14px; background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%); appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 20 20"><path fill="%239ca3af" d="M5.5 7l4.5 5 4.5-5z"/></svg>'); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; transition: border-color .2s ease, box-shadow .2s ease; }
.form select:focus, select:focus { outline: none; border-color: #a7f3d0; box-shadow: 0 0 0 3px rgba(16,185,129,0.25); }
.form select:hover, select:hover { border-color: #cbd5e1; }
.form .field label { font-weight: 600; }
.hint { font-size: 12px; color: #666; margin-top: 6px; }
.tabs { display: flex; gap: 8px; margin: 10px 0; }
.tab { border: 1px solid #ddd; background: #fff; padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.tab.active { background: #eef2ff; border-color: #c7d2fe; color: #1e40af; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.actions { display: flex; gap: 8px; margin-top: 16px; }
.primary, .secondary { display: inline-block; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.primary { background: var(--primary); color: #fff; }
.secondary { background: #e5e7eb; color: #111827; }
.flash-group { margin: 10px 0; }
.flash { padding: 10px; border-radius: 8px; }
.flash.error { background: #fee2e2; color: #991b1b; }
.flash.success { background: #dcfce7; color: #166534; }
.summary { background: var(--bg); padding: 14px; border-radius: 12px; margin: 16px 0; }
.score-value { font-weight: bold; color: var(--danger); }
.sentence { padding: 8px; border-bottom: 1px solid #eee; }
.sentence.flag { background: #fff7f5; }
.text { margin-bottom: 6px; }
.details { color: #666; font-size: 14px; }
.meta { color: #555; margin: 8px 0 16px; }
.info { margin-top: 0px; }
.info h2 { margin-bottom: 8px; }
.info ol { margin: 0; padding-left: 20px; }
/* 结果页提醒横幅 */
.banner { background: #fef3c7; color: #7c2d12; border: 1px solid #fcd34d; border-radius: 12px; padding: 10px 12px; margin: 12px 0 16px; }

/* 提交进度弹层 */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.35); display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal .panel { background: #fff; border-radius: 16px; padding: 18px; width: 92%; max-width: 420px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.progress { height: 8px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.progress .bar { height: 100%; background: var(--primary); width: 28%; animation: indeterminate 1.2s infinite ease-in-out; }
@keyframes indeterminate {
  0% { margin-left: -25%; width: 25%; }
  50% { margin-left: 60%; width: 30%; }
  100% { margin-left: 110%; width: 25%; }
}
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

/* 顶部导航 */
.top-nav { position: sticky; top: 0; background: #fff; border-bottom: 1px solid #eee; z-index: 10; }
.nav-inner { display: flex; align-items: center; gap: 12px; padding: 12px 24px; }
.nav-item { display: inline-block; padding: 8px 12px; color: #111827; text-decoration: none; border-radius: 8px; }
.nav-item:hover { background: #f3f4f6; }
.nav-item.active { background: #eef2ff; color: #1e40af; }
.nav-item.hot { position: relative; }
.nav-item.hot::after { content: 'HOT'; position: absolute; top: -6px; right: -10px; background: #ef4444; color: #fff; font-size: 10px; padding: 2px 4px; border-radius: 6px; }
/* 左侧导航内联 HOT 徽标 */
.badge-hot { display: inline-block; margin-left: 6px; background: #ef4444; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 6px; vertical-align: middle; }
/* 顶部品牌 */
.brand { font-weight: 800; color: #111827; margin-right: 8px; padding: 6px 8px; border-radius: 8px; font-size: 22px; letter-spacing: 0.6px; display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #16a34a 0%, #22c55e 60%); box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35); }
.top-nav { box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
/* 左侧导航宽度统一 */
.side-nav { width: 220px; flex: 0 0 220px; }

/* 列表表格优化 */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.table thead th { text-align: left; background: #f8fafc; color: #374151; font-weight: 600; padding: 10px 12px; border-bottom: 1px solid #e5e7eb; }
.table tbody td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; color: #111827; }
.table tbody tr:hover { background: #f9fafb; }
.list-table td:first-child { max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-table td:nth-child(2) { font-weight: 600; color: var(--danger); }
.list-table td a { color: var(--primary); text-decoration: none; }
.list-table td a:hover { text-decoration: underline; }

/* 登录页优化 */
.auth-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%); }
.auth-card { width: 92%; max-width: 440px; background: #fff; border: 1px solid #eef2f7; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); padding: 20px; }
.auth-header { text-align: center; margin-bottom: 12px; }
.auth-title { font-size: 22px; font-weight: 700; margin: 0; }
.auth-subtitle { color: #64748b; font-size: 13px; margin-top: 4px; }
.auth-actions { display: flex; gap: 8px; margin-top: 14px; }
/* 文件上传美化 */
.file-upload { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.file-input { position:absolute; left:-9999px; width:1px; height:1px; }
.file-btn { display:inline-block; padding:10px 14px; border-radius:10px; background:#1f2937; color:#fff; text-decoration:none; cursor:pointer; box-shadow:0 1px 2px rgba(0,0,0,0.1); }
.file-btn:hover { background:#111827; }
.file-btn:focus { outline:none; box-shadow:0 0 0 3px rgba(31,41,55,0.25); }
.file-name { color:#374151; font-size:14px; }