/* ============ 一半石榴场馆管理系统 - 全局样式 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #0e7490;        /* 主色：深青 */
  --primary-dark: #155e75;
  --accent: #10b981;         /* 点缀：运动绿 */
  --accent-dark: #059669;
  --bg: #f6f8fa;
  --card-bg: #ffffff;
  --text: #1f2937;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --danger: #dc2626;
  --warning: #d97706;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }
.muted { color: var(--text-light); font-size: 14px; }
.req { color: var(--danger); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; border: 1px solid transparent; border-radius: 8px;
  padding: 9px 18px; font-size: 14px; cursor: pointer; transition: all .2s;
  background: none; color: var(--text); text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: rgba(14,116,144,.08); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-danger { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #fef2f2; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-lg { padding: 13px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn.disabled { opacity: .6; cursor: not-allowed; pointer-events: none; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  min-width: 36px; height: 36px; padding: 0 7px; font-size: 12px; border-radius: 9px; color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.brand-name { font-size: 17px; font-weight: 700; }
.main-nav { display: flex; gap: 22px; flex: 1; justify-content: center; }
.main-nav a { color: var(--text); font-size: 14.5px; }
.main-nav a:hover { color: var(--primary); }

/* ---------- 首屏 ---------- */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 55%, var(--primary) 100%);
  color: #fff; text-align: center; padding: 96px 20px 84px;
}
.hero-title { font-size: 44px; font-weight: 800; letter-spacing: 2px; }
.hero-slogan { font-size: 22px; margin: 14px 0 10px; color: #99f6e4; font-weight: 600; }
.hero-subtitle { max-width: 720px; margin: 0 auto 30px; color: #cbd5e1; font-size: 15.5px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- 公告条 ---------- */
.announce-strip { background: #fff; border-bottom: 1px solid var(--border); }
.announce-inner { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.announce-label {
  flex-shrink: 0; background: var(--accent); color: #fff; font-size: 13px;
  padding: 3px 12px; border-radius: 999px; font-weight: 600;
}
.announce-list { display: flex; gap: 28px; overflow-x: auto; white-space: nowrap; font-size: 14px; }
.announce-list a { color: var(--text); }

/* ---------- 公告详情（内容可见） ---------- */
.announce-cards { display: flex; flex-direction: column; gap: 12px; max-width: 860px; margin: 0 auto; }
.announce-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow);
}
.ann-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.ann-card-title { font-size: 16px; font-weight: 700; color: var(--text); }
.ann-card-time { font-size: 12.5px; color: var(--text-light); }
.ann-card-content { font-size: 14.5px; color: #374151; line-height: 1.7; }

/* ---------- 品牌图片图标 ---------- */
.brand-img { height: 32px; width: auto; border-radius: 6px; display: block; }

/* ---------- 后台：站点图片上传 / 日志工具栏 ---------- */
.asset-form { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.asset-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.asset-label { flex-shrink: 0; min-width: 90px; font-weight: 600; color: var(--text); }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }

/* ---------- 通用段落 ---------- */
.section { padding: 64px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 38px; }
.section-title { font-size: 28px; font-weight: 800; }
.section-subtitle { color: var(--text-light); margin-top: 8px; font-size: 14.5px; }

.intro-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 38px; box-shadow: var(--shadow);
}
.intro-text { font-size: 15px; color: #374151; line-height: 1.8; }
.intro-text p { margin: 6px 0; }
.intro-text h2 { font-size: 20px; margin: 16px 0 8px; color: var(--primary-dark); }
.intro-text h3 { margin: 14px 0 6px; color: var(--primary-dark); }
.intro-text ul, .intro-text ol { margin: 8px 0 8px 24px; }
.intro-text li { margin: 4px 0; }
.intro-text blockquote {
  margin: 10px 0; padding: 4px 14px; border-left: 3px solid var(--primary);
  color: var(--text-light); background: #f8fafc; border-radius: 0 6px 6px 0;
}

/* ---------- 卡片网格 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
}
.card h3 { font-size: 17px; }
.card .version-badge {
  display: inline-block; background: rgba(14,116,144,.1); color: var(--primary-dark);
  padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
}
.card .meta { color: var(--text-light); font-size: 13px; }
.card .notes { font-size: 13.5px; color: #374151; flex: 1; white-space: pre-line; }
.card .card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }

/* ---------- 表单行（登录/编辑弹窗共用） ---------- */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; background: #fff; color: var(--text); font-family: inherit;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,116,144,.12);
}

/* ---------- 页脚 ---------- */
.site-footer { background: #0f172a; color: #94a3b8; padding: 44px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-info p { margin-bottom: 6px; font-size: 14px; }
.footer-info p:first-child { color: #fff; font-size: 17px; font-weight: 700; }
.footer-copy { font-size: 13px; align-self: flex-end; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  display: none; position: fixed; inset: 0; z-index: 100; background: rgba(15,23,42,.55);
  align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 430px;
  padding: 28px 30px; box-shadow: 0 24px 60px rgba(0,0,0,.25); position: relative;
}
.modal-lg { max-width: 1000px; }
.modal h3 { font-size: 19px; margin-bottom: 18px; }
.modal-close {
  position: absolute; top: 12px; right: 16px; border: none; background: none;
  font-size: 26px; color: var(--text-light); cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text); }

/* ---------- 后台管理 ---------- */
.admin-head { display: flex; justify-content: space-between; align-items: center; }
.admin-head-actions { display: flex; align-items: center; gap: 12px; }
.admin-user { font-size: 14px; color: var(--text-light); }
.admin-tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.admin-tab {
  border: none; background: none; padding: 9px 15px; font-size: 14px; cursor: pointer;
  color: var(--text-light); border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.admin-tab.active { color: var(--primary); font-weight: 700; border-bottom-color: var(--primary); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-panel h4 { margin: 16px 0 10px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat-card {
  background: linear-gradient(135deg, #f0fdfa, #ecfeff); border: 1px solid #ccfbf1;
  border-radius: 12px; padding: 16px 18px;
}
.stat-card .num { font-size: 26px; font-weight: 800; color: var(--primary-dark); }
.stat-card .label { font-size: 13px; color: var(--text-light); }

.table-wrap { overflow-x: auto; margin-top: 8px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th, .data-table td {
  border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top;
}
.data-table th { background: #f8fafc; font-weight: 700; white-space: nowrap; }
.data-table tr:hover td { background: #f8fafc; }
.data-table .ops { white-space: nowrap; }
.data-table .ops button { margin-right: 6px; }

.admin-form {
  background: #f8fafc; border: 1px dashed var(--border); border-radius: 10px;
  padding: 16px; margin-bottom: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.admin-form input, .admin-form select, .admin-form textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; font-size: 13.5px;
  font-family: inherit; background: #fff;
}
.admin-form textarea { resize: vertical; }
.checkbox-line { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.checkbox-line input { width: auto; }
.software-form { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.filter-row { margin-bottom: 12px; }
.filter-row select { padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.settings-grid .full { grid-column: 1 / -1; }
.settings-grid label { font-size: 13.5px; font-weight: 600; display: block; margin-bottom: 5px; }
.settings-grid input, .settings-grid textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13.5px; font-family: inherit;
}
.settings-grid textarea { resize: vertical; }

/* ---------- 软件介绍：文档编辑入口（站点设置内） ---------- */
.rte-entry {
  display: flex; align-items: center; gap: 12px;
  background: #f8fafc; border: 1px dashed var(--border); border-radius: 10px;
  padding: 12px 14px;
}
.rte-entry-summary { flex: 1; font-size: 13px; color: var(--text-light); line-height: 1.6; min-width: 0; }

/* ---------- 独立文档编辑窗口 ---------- */
#rteModal .modal { max-width: 880px; }
.rte-modal-editor { min-height: 320px; max-height: 55vh; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }

/* ---------- 富文本编辑器（文档式编辑软件介绍） ---------- */
.rte-wrap { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.rte-toolbar {
  display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 8px;
  background: #f8fafc; border-bottom: 1px solid var(--border);
}
.rte-btn {
  border: none; background: transparent; border-radius: 6px; padding: 4px 9px;
  font-size: 13px; cursor: pointer; color: var(--text); min-width: 28px;
}
.rte-btn:hover { background: rgba(14,116,144,.1); }
.rte-btn.active { background: var(--primary); color: #fff; }
.rte-sep { width: 1px; background: var(--border); margin: 4px 5px; display: inline-block; }
.rte-editor {
  min-height: 260px; max-height: 520px; overflow-y: auto; padding: 14px 18px;
  font-size: 14.5px; line-height: 1.7; color: var(--text); outline: none;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}
.rte-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,116,144,.12); }
.rte-editor h2 { font-size: 20px; margin: 10px 0 8px; color: var(--primary-dark); }
.rte-editor h3 { font-size: 17px; margin: 8px 0 6px; color: var(--primary-dark); }
.rte-editor p { margin: 6px 0; }
.rte-editor ul, .rte-editor ol { margin: 6px 0 6px 22px; }
.rte-editor li { margin: 3px 0; }
.rte-editor a { color: var(--primary); text-decoration: underline; }
.rte-editor blockquote {
  margin: 8px 0; padding: 4px 14px; border-left: 3px solid var(--primary);
  color: var(--text-light); background: #f8fafc; border-radius: 0 6px 6px 0;
}

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 74px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #111827; color: #fff; font-size: 14px; padding: 12px 18px;
  border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: slideIn .25s ease;
  max-width: 360px;
}
.toast.error { background: var(--danger); }
.toast.success { background: var(--accent-dark); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

.empty-tip { grid-column: 1 / -1; text-align: center; color: var(--text-light); padding: 30px 0; }

/* ---------- 独立后台页 ---------- */
.admin-page { background: #eef2f7; min-height: 100vh; }
.admin-header { background: #0f172a; color: #fff; padding: 14px 0; position: sticky; top: 0; z-index: 50; }
.admin-header .brand-name { color: #fff; }
.admin-header-inner { display: flex; align-items: center; justify-content: space-between; }
.login-card {
  max-width: 400px; margin: 90px auto 0; background: #fff; border-radius: 14px;
  padding: 30px 32px; box-shadow: 0 12px 34px rgba(15,23,42,.1);
}
.login-card h3 { font-size: 20px; margin-bottom: 6px; }
.admin-shell { margin-top: 26px; padding-bottom: 60px; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .hero-title { font-size: 32px; }
  .booking-wrap { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

/* ===================== 增强功能 UI（v8） ===================== */
/* 登录验证码 / 动态口令行 */
.captcha-line { display: flex; align-items: center; gap: 10px; }
.captcha-line img {
  width: 120px; height: 44px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); flex-shrink: 0;
}
.captcha-line input { flex: 1; min-width: 0; }

/* 数据统计图表（纯 CSS 柱状图） */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.chart-box {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow);
}
.chart-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.bar-chart { height: 170px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.bar-col { flex: 1; min-width: 8px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.bar { width: 70%; max-width: 26px; border-radius: 4px 4px 0 0; min-height: 2px; transition: height .3s; }
.bar-label { font-size: 9.5px; color: var(--text-light); transform: rotate(-35deg); white-space: nowrap; margin-top: 2px; }

/* 磁盘预警条 */
.stat-warn {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px;
  padding: 10px 14px; margin: 12px 0; font-size: 13.5px; color: #7f1d1d; line-height: 1.6;
}

/* 公告表单扩展（置顶 / 定时发布 / 定时下架） */
.ann-extra {
  display: grid; grid-template-columns: auto auto 1fr 1fr; gap: 10px;
  align-items: center; grid-column: 1 / -1;
}
.ann-extra input[type=datetime-local] { width: 100%; }

/* 用户角色下拉 */
.role-select { width: auto; min-width: 84px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; font-size: 12.5px; background: #fff; }

/* 站点设置：颜色选择 */
.color-line { display: flex; align-items: center; gap: 8px; }
.color-line input[type=color] { width: 46px; height: 34px; padding: 2px; border: 1px solid var(--border); border-radius: 6px; background: #fff; cursor: pointer; }

/* 账号安全：TOTP 密钥展示 */
.totp-secret {
  background: #f8fafc; border: 1px dashed var(--border); border-radius: 8px;
  padding: 10px 12px; font-size: 12.5px; color: var(--text); line-height: 1.7;
  white-space: pre-wrap;
}

/* 日志分页容器 */
.log-pager { display: flex; align-items: center; gap: 6px; }

/* Toast 警告 */
.toast.warn { background: var(--warning); }

/* 移动端：图表与公告扩展单列 */
@media (max-width: 760px) {
  .chart-grid { grid-template-columns: 1fr; }
  .ann-extra { grid-template-columns: 1fr; }
  .admin-header-inner { flex-wrap: wrap; row-gap: 6px; }
}

/* ===================== 后台登录页 · 科技风（v9） ===================== */
/* 仅登录视图激活时启用深色科技背景；进入管理面板后自动恢复浅色主题 */
.admin-page.login-mode {
  background: #050b14;
  min-height: 100vh;
}
.admin-page.login-mode .admin-header {
  background: rgba(8, 15, 30, .82);
  border-bottom: 1px solid rgba(34, 211, 238, .16);
  backdrop-filter: blur(10px);
}
.admin-page.login-mode .admin-header .btn-outline {
  border-color: rgba(103, 232, 249, .35);
  color: #a5f3fc;
}

/* 登录容器与动态背景层 */
.login-wrap {
  position: relative;
  min-height: calc(100vh - 62px);
  display: flex; align-items: center; justify-content: center;
  padding: 44px 20px 64px;
}
.login-tech-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

/* 流动网格（透视淡化） */
.tech-grid {
  position: absolute; inset: -80% -30%;
  background-image:
    linear-gradient(rgba(34, 211, 238, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, .09) 1px, transparent 1px);
  background-size: 46px 46px;
  animation: gridPan 26s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.95) 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.95) 0%, transparent 72%);
}
@keyframes gridPan { from { transform: translate3d(0,0,0); } to { transform: translate3d(0,46px,0); } }

/* 霓虹光晕 */
.tech-orb { position: absolute; border-radius: 50%; filter: blur(92px); opacity: .5; animation: orbFloat 9s ease-in-out infinite; }
.orb-1 { width: 440px; height: 440px; left: -130px; top: -120px; background: radial-gradient(circle, rgba(14,116,144,.9), transparent 70%); }
.orb-2 { width: 400px; height: 400px; right: -110px; bottom: -130px; background: radial-gradient(circle, rgba(16,185,129,.65), transparent 70%); animation-delay: -4.5s; }
@keyframes orbFloat { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-26px) scale(1.06); } }

/* 扫描光带 */
.tech-scan {
  position: absolute; left: 0; right: 0; height: 150px; top: -150px;
  background: linear-gradient(180deg, transparent, rgba(34,211,238,.13), transparent);
  animation: scanMove 7.5s linear infinite;
}
@keyframes scanMove { 0% { top: -150px; } 100% { top: 110%; } }

/* 玻璃拟态登录卡片 */
.login-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 424px; margin: 0;
  background: rgba(13, 23, 42, .72);
  border: 1px solid rgba(34, 211, 238, .28);
  border-radius: 18px;
  padding: 36px 38px 28px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, .55),
    0 0 46px rgba(34, 211, 238, .14),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #e2e8f0;
  overflow: hidden;
}
.login-card::before {
  content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .9), transparent);
}
.login-card::after {
  content: ""; position: absolute; width: 66px; height: 66px; top: 0; left: 0;
  border-top: 2px solid rgba(34, 211, 238, .8); border-left: 2px solid rgba(34, 211, 238, .8);
  border-top-left-radius: 17px; pointer-events: none;
}

.login-card-head { text-align: center; margin-bottom: 26px; }
.login-emblem {
  width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 17px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, rgba(14, 116, 144, .95), rgba(16, 185, 129, .9));
  box-shadow: 0 0 28px rgba(34, 211, 238, .45), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.login-emblem svg { width: 32px; height: 32px; }
.login-card h3 {
  font-size: 21px; font-weight: 800; letter-spacing: 3px; margin: 0 0 6px;
  background: linear-gradient(90deg, #67e8f9, #34d399);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.login-sub { font-size: 12.5px; color: #64748b; letter-spacing: 1px; }

.login-card .form-row { margin-bottom: 16px; }
.login-card label { display: block; font-size: 12.5px; color: #94a3b8; margin-bottom: 7px; letter-spacing: .5px; }

.input-tech { position: relative; display: flex; align-items: center; }
.input-tech svg {
  position: absolute; left: 13px; width: 17px; height: 17px; color: #38bdf8;
  pointer-events: none; opacity: .85;
}
.login-card input[type=text],
.login-card input[type=password] {
  width: 100%; padding: 11px 14px 11px 40px;
  background: rgba(8, 15, 30, .7);
  border: 1px solid rgba(51, 65, 85, .9);
  border-radius: 10px; color: #e2e8f0; font-size: 14.5px;
  outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.login-card input::placeholder { color: #475569; }
.login-card input:focus {
  border-color: rgba(34, 211, 238, .8);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .14), 0 0 18px rgba(34, 211, 238, .18);
  background: rgba(10, 20, 40, .85);
}
.login-card input:-webkit-autofill,
.login-card input:-webkit-autofill:hover,
.login-card input:-webkit-autofill:focus {
  -webkit-text-fill-color: #e2e8f0;
  -webkit-box-shadow: 0 0 0 1000px #0a1428 inset;
  transition: background-color 6000s ease-in-out 0s;
}

/* 验证码 / 动态口令 */
.login-card .captcha-line { display: flex; align-items: center; gap: 10px; }
.login-card .captcha-line img {
  width: 126px; height: 46px; flex-shrink: 0; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(51, 65, 85, .9); background: #eef2f7;
  box-shadow: 0 0 12px rgba(34, 211, 238, .18);
}
.login-card .captcha-line input,
.login-card #loginTotp { padding-left: 14px; }

/* 登录按钮 */
.login-card .btn-primary {
  background: linear-gradient(135deg, #0e7490, #0d9488);
  border: 1px solid rgba(34, 211, 238, .45);
  padding: 12px 18px; font-size: 15px; letter-spacing: 6px; border-radius: 10px;
  box-shadow: 0 6px 22px rgba(13, 148, 136, .35);
  margin-top: 6px; transition: all .2s;
}
.login-card .btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0891b2, #10a38f);
  box-shadow: 0 8px 30px rgba(34, 211, 238, .5);
  transform: translateY(-1px);
}
.login-card .btn-primary:active:not(:disabled) { transform: translateY(0); }
.login-card .btn-primary:disabled { opacity: .55; }

/* 底部安全说明 */
.login-sec {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  margin-top: 22px; font-size: 11.5px; color: #475569; letter-spacing: .5px;
}
.login-sec i { color: #0e7490; font-style: normal; }

@media (max-width: 480px) {
  .login-card { padding: 28px 22px 22px; }
  .login-wrap { padding: 30px 16px 50px; }
}

/* ===================== 前台：联系我们表单 ===================== */
.contact-wrap { max-width: 660px; margin: 0 auto; }
.contact-form {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 30px; box-shadow: var(--shadow);
}
.contact-row label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 10px 13px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 14.5px; font-family: inherit; color: var(--text); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, .12);
}
.contact-form textarea { resize: vertical; }
.contact-form .btn-primary { align-self: flex-start; padding: 10px 26px; letter-spacing: 2px; }
.contact-tip { min-height: 20px; margin: 0; font-size: 13.5px; }
@media (max-width: 480px) {
  .contact-form { padding: 20px 18px; }
}
