/* ==========================================================
   汉豪大学学报 - 全站样式
   主题：深蓝学术风（参照期刊官网版式）
   ========================================================== */
:root {
  --primary: #16437e;
  --primary-dark: #0d2f5c;
  --primary-light: #2b6cb8;
  --accent: #e8f1fb;
  --bg: #f4f7fb;
  --border: #dde6f2;
  --text: #333;
  --text-light: #66788f;
  --red: #c0392b;
  --green: #1e8e5a;
  --orange: #d97a08;
  --shadow: 0 2px 8px rgba(13, 47, 92, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
a { color: var(--text); text-decoration: none; }
ul { list-style: none; }
.container { width: 1100px; max-width: 96%; margin: 0 auto; }

/* ---------- 顶部 ---------- */
.top-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 18px 0;
}
.top-header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo-cn { font-size: 34px; font-weight: bold; letter-spacing: 6px; }
.logo-en { font-size: 12px; letter-spacing: 3px; opacity: .8; margin-top: 4px; }
.search-box { display: flex; }
.search-box input {
  width: 260px; height: 36px; border: none; padding: 0 12px;
  border-radius: 3px 0 0 3px; outline: none;
}
.search-box button {
  height: 36px; padding: 0 22px; border: none; cursor: pointer;
  background: #fff; color: var(--primary); font-weight: bold;
  border-radius: 0 3px 3px 0;
}

/* ---------- 导航 ---------- */
.main-nav { background: #fff; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.main-nav ul { display: flex; }
.main-nav li a {
  display: block; padding: 14px 26px; font-size: 15px; font-weight: bold;
  border-bottom: 3px solid transparent;
}
.main-nav li:hover a, .main-nav li.active a {
  color: var(--primary); border-bottom-color: var(--primary);
}

/* ---------- 布局 ---------- */
.main-body { display: flex; gap: 16px; margin: 16px auto 30px; align-items: flex-start; }
.col-main { flex: 1; min-width: 0; }
.col-side { width: 300px; flex-shrink: 0; }

/* ---------- 横幅 ---------- */
.hero-banner {
  position: relative; height: 220px; border-radius: 6px; overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.12), transparent 50%),
    radial-gradient(ellipse at 20% 90%, rgba(43,108,184,.5), transparent 60%),
    linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 60%, #2a5fa3 100%);
  display: flex; align-items: center; padding: 0 50px;
}
.hero-text h1 { color: #fff; font-size: 34px; line-height: 1.5; letter-spacing: 3px; text-shadow: 0 2px 6px rgba(0,0,0,.3); }
.hero-btn {
  display: inline-block; margin-top: 18px; background: #fff; color: var(--primary);
  padding: 9px 30px; border-radius: 20px; font-weight: bold;
}
.hero-btn:hover { background: var(--accent); }
.hero-mask {
  position: absolute; right: 30px; top: 0; bottom: 0; width: 230px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  border-left: 1px dashed rgba(255,255,255,.3);
}
.mask-line {
  writing-mode: vertical-lr; letter-spacing: 14px; color: rgba(255,255,255,.85);
  font-size: 20px; font-weight: bold;
}

/* ---------- 文章区 ---------- */
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 22px 0 10px; border-bottom: 2px solid var(--primary); padding-bottom: 8px;
}
.section-head h2 { font-size: 20px; color: var(--primary); }
.section-head a { color: var(--text-light); font-size: 13px; }

.article-group { background: #fff; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 14px; overflow: hidden; }
.article-group-head {
  background: linear-gradient(90deg, var(--accent), #fff);
  padding: 10px 16px; display: flex; justify-content: space-between; align-items: center;
  border-left: 4px solid var(--primary);
}
.article-group-head h3 { font-size: 16px; color: var(--primary-dark); }
.article-group-head .more { color: var(--primary-light); font-size: 13px; }
.article-group table { width: 100%; border-collapse: collapse; }
.article-group td { padding: 9px 16px; border-top: 1px dashed var(--border); font-size: 13px; }
.article-group tr:first-child td { border-top: none; }
.article-group a.t { display: inline-block; max-width: 560px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.article-group a.t:hover { color: var(--primary); }
.article-group .au { color: var(--text-light); white-space: nowrap; }

/* ---------- 右列卡片 ---------- */
.side-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 14px; overflow: hidden; }
.side-card-title {
  background: var(--primary); color: #fff; padding: 10px 14px;
  font-size: 15px; font-weight: bold; letter-spacing: 1px;
}
.ji-body { padding: 12px 14px; font-size: 13px; color: #444; line-height: 1.9; }
.ji-name { font-size: 17px; font-weight: bold; color: var(--primary-dark); margin-bottom: 4px; }

.sys-links { padding: 12px; }
.sys-btn {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-weight: bold; text-align: left;
  padding: 13px 16px; border-radius: 4px; margin-bottom: 10px;
  transition: transform .15s, box-shadow .15s;
}
.sys-btn:last-child { margin-bottom: 0; }
.sys-btn:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.sys-btn .ico { font-size: 16px; }

.notice-list { padding: 8px 14px; }
.notice-list li { padding: 7px 0; border-bottom: 1px dashed var(--border); line-height: 1.6; }
.notice-list li:last-child { border-bottom: none; }
.notice-list a { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.notice-list a:hover { color: var(--primary); }
.notice-list .tag {
  background: var(--red); color: #fff; font-size: 11px; padding: 1px 6px;
  border-radius: 3px; margin-right: 6px; vertical-align: 1px;
}
.notice-list li:nth-child(n+2) .tag { background: var(--primary-light); }

.download-list { padding: 8px 14px; }
.download-list li { padding: 7px 0; border-bottom: 1px dashed var(--border); }
.download-list li:last-child { border-bottom: none; }
.download-list a { color: #445; }
.download-list a:hover { color: var(--primary); }

/* ---------- 友链 / 页脚 ---------- */
.friend-links {
  background: #fff; border-top: 1px solid var(--border); padding: 14px 0;
  color: var(--text-light); font-size: 13px;
}
.friend-links span { margin: 0 10px; color: var(--border); }
.friend-links a:hover { color: var(--primary); }

.footer { background: var(--primary-dark); color: rgba(255,255,255,.85); padding: 20px 0; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-left p { line-height: 2; }
.footer-qr { text-align: center; }
.footer-qr .qr {
  width: 74px; height: 74px; background:
    conic-gradient(#fff 25%, transparent 0 50%, #fff 0 75%, transparent 0);
  background-size: 18px 18px; background-color: #fff;
  border-radius: 4px; margin-bottom: 6px; opacity: .9;
}

/* ---------- 系统页（投稿/审稿/编辑） ---------- */
.sys-page { min-height: 100vh; background: var(--bg); }
.sys-topbar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 0;
}
.sys-topbar .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.sys-topbar .title { font-size: 20px; font-weight: bold; letter-spacing: 2px; }
.sys-topbar .back { color: #fff; font-size: 13px; opacity: .9; }
.sys-topbar .back:hover { opacity: 1; text-decoration: underline; }

.login-wrap { max-width: 400px; margin: 70px auto; background: #fff; border-radius: 8px; box-shadow: var(--shadow); padding: 34px 36px; }
.login-wrap h2 { text-align: center; color: var(--primary-dark); margin-bottom: 6px; font-size: 22px; }
.login-wrap .sub { text-align: center; color: var(--text-light); font-size: 12px; margin-bottom: 24px; }
.login-wrap label { display: block; margin: 14px 0 6px; font-size: 13px; color: #555; }
.login-wrap input, .login-wrap select, .login-wrap textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 4px;
  padding: 10px 12px; font-size: 14px; outline: none; background: #fff;
}
.login-wrap input:focus, .login-wrap select:focus, .login-wrap textarea:focus { border-color: var(--primary-light); }
.login-btn {
  width: 100%; margin-top: 22px; padding: 12px; border: none; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 15px; font-weight: bold; border-radius: 4px;
}
.login-btn:hover { background: var(--primary-dark); }
.login-tip { margin-top: 14px; font-size: 12px; color: var(--text-light); text-align: center; line-height: 1.8; }
.login-tip a { color: var(--primary); cursor: pointer; }
.err { color: var(--red); font-size: 12px; margin-top: 10px; min-height: 16px; text-align: center; }

.dash { padding: 24px 0 40px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dash-head h2 { color: var(--primary-dark); font-size: 22px; }
.dash-head .user { color: var(--text-light); font-size: 13px; }
.dash-head .user b { color: var(--primary); }

.card { background: #fff; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 18px; }
.card-h { padding: 12px 18px; border-bottom: 1px solid var(--border); font-weight: bold; color: var(--primary-dark); display: flex; justify-content: space-between; align-items: center; }
.card-b { padding: 16px 18px; }

table.list { width: 100%; border-collapse: collapse; font-size: 13px; }
table.list th { background: var(--accent); color: var(--primary-dark); padding: 10px 8px; text-align: left; white-space: nowrap; }
table.list td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.list tr:hover td { background: #fafcff; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; color: #fff; white-space: nowrap; }
.b-wait   { background: var(--orange); }
.b-review { background: var(--primary-light); }
.b-revise { background: var(--red); }
.b-accept { background: var(--green); }
.b-type   { background: #6b5bb5; }
.b-done   { background: #7f8c9b; }

.btn {
  display: inline-block; border: none; cursor: pointer; border-radius: 4px;
  padding: 8px 18px; font-size: 13px; background: var(--primary); color: #fff;
}
.btn:hover { background: var(--primary-dark); }
.btn.ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn.sm { padding: 5px 12px; font-size: 12px; }
.btn.warn { background: var(--red); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-size: 13px; color: #555; margin-bottom: 5px; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 4px; padding: 9px 11px; font-size: 13px; outline: none;
}
.form-grid textarea { resize: vertical; }
.empty { text-align: center; color: var(--text-light); padding: 30px 0; }

/* ---------- 检索结果高亮 ---------- */
mark { background: #ffe28a; padding: 0 2px; border-radius: 2px; }

/* ---------- 顶部右侧：搜索 + 管理员入口 ---------- */
.top-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.admin-entry {
  color: rgba(255,255,255,.75); font-size: 12px;
  border: 1px solid rgba(255,255,255,.35); padding: 2px 10px; border-radius: 12px;
}
.admin-entry:hover { color: #fff; border-color: #fff; }

/* ---------- 注册向导（参照期刊注册页版式） ---------- */
.reg-layout {
  max-width: 960px; margin: 40px auto; background: #fff; border-radius: 8px;
  box-shadow: var(--shadow); display: flex; overflow: hidden; min-height: 480px;
}
.reg-side {
  width: 210px; flex-shrink: 0; background: linear-gradient(180deg, #eef4fb, #f8fbff);
  border-right: 1px solid var(--border); padding: 22px 0;
}
.reg-side-title { font-size: 16px; font-weight: bold; color: var(--primary-dark); padding: 0 20px 14px; border-bottom: 1px solid var(--border); }
.steps { margin-top: 10px; }
.steps li {
  padding: 12px 20px; font-size: 13px; color: #66788f; cursor: default;
  border-left: 3px solid transparent;
}
.steps li.active { background: #dbe8f7; color: var(--primary-dark); font-weight: bold; border-left-color: var(--primary); }
.steps li.done { color: var(--green); }
.steps li.done::before { content: "✔ "; }

.reg-main { flex: 1; padding: 26px 34px; }
.reg-title { font-size: 16px; font-weight: bold; color: var(--primary-dark); margin-bottom: 22px; }
.reg-title .req-note { font-weight: normal; font-size: 12px; color: #889; }
.reg-title .req-note i, .reg-row label i { color: var(--red); font-style: normal; }

.reg-row { display: flex; align-items: center; margin-bottom: 16px; }
.reg-row > label { width: 120px; text-align: right; padding-right: 12px; font-size: 13px; color: #555; flex-shrink: 0; }
.reg-row input[type="text"], .reg-row input[type="tel"], .reg-row input[type="email"],
.reg-row input[type="password"], .reg-row select {
  border: 1px solid var(--border); border-radius: 3px; padding: 9px 11px; font-size: 13px; outline: none; width: 260px;
}
.reg-row input:focus, .reg-row select:focus { border-color: var(--primary-light); }
.reg-row .reg-tip { margin-left: 12px; font-size: 12px; color: #99a6b8; }
.phone-prefix {
  background: var(--accent); border: 1px solid var(--border); border-right: none;
  border-radius: 3px 0 0 3px; padding: 9px 10px; font-size: 13px; color: #555;
}
.phone-input { border-radius: 0 3px 3px 0 !important; }
.math-captcha {
  margin-left: 12px; min-width: 96px; text-align: center; font-size: 17px; font-weight: bold;
  font-style: italic; color: #1c4587; background: repeating-linear-gradient(45deg, #fdfdfd, #fdfdfd 4px, #f1f4f8 4px, #f1f4f8 8px);
  border: 1px dashed #b9c8dd; border-radius: 3px; padding: 8px 10px; cursor: pointer; user-select: none;
}
.sms-btn {
  margin-left: 12px; border: 1px solid var(--primary); color: var(--primary); background: #fff;
  padding: 9px 14px; border-radius: 3px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.sms-btn:disabled { border-color: var(--border); color: #a9b6c6; cursor: not-allowed; }
.sms-btn:not(:disabled):hover { background: var(--accent); }
.reg-row.agreement { margin-top: 4px; }
.reg-row.agreement label { width: auto; padding: 0; font-size: 13px; color: #555; }
.reg-row.agreement a { color: var(--primary); cursor: pointer; }
.reg-actions { margin-top: 26px; display: flex; gap: 14px; padding-left: 120px; }
.reg-actions .btn { min-width: 110px; padding: 10px 0; }
.reg-success { padding: 10px 0 0 0; font-size: 14px; line-height: 2.2; }
.reg-success b { color: var(--primary); font-size: 16px; }

/* ---------- 管理后台选项卡 ---------- */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.atab {
  border: 1px solid var(--border); background: #fff; color: #555;
  padding: 10px 22px; border-radius: 4px 4px 0 0; cursor: pointer; font-size: 14px;
}
.atab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- 作者中心（仿期刊采编系统版式） ---------- */
.au-topbar { background: #dce6f2; border-bottom: 1px solid #c3d3e8; font-size: 13px; color: #33465e; }
.au-topbar-inner { display: flex; justify-content: space-between; padding: 8px 0; flex-wrap: wrap; gap: 6px; }
.au-topbar b { color: var(--primary-dark); }
.au-topbar a { color: #1c5aa8; cursor: pointer; }
.au-topbar .sep { color: #8aa; margin: 0 2px; }
.au-fb { background: #4a7ebb; color: #fff !important; padding: 2px 10px; border-radius: 2px; margin-left: 8px; }
.au-lang { background: #7f9db9; color: #fff !important; padding: 2px 10px; border-radius: 2px; margin-left: 8px; }

.au-tabs { background: #eef3f9; border-bottom: 2px solid #4a7ebb; }
.au-tabs .container span {
  display: inline-block; padding: 11px 30px; font-size: 15px; font-weight: bold;
  color: #33465e; cursor: pointer;
}
.au-tabs .container span.active { background: #4a7ebb; color: #fff; }

.au-body { display: flex; gap: 14px; margin-top: 14px; align-items: flex-start; padding-bottom: 40px; }
.au-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.au-right { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.au-card.full { width: 100%; }

.au-card { background: #fff; border: 1px solid #d5e0ee; border-radius: 4px; }
.au-card.solid { border: 1px solid #b8cde5; }
.au-card-body { display: flex; padding: 14px 16px; gap: 14px; }
.au-card-body.center { display: block; text-align: center; padding: 18px 16px; }
.au-card-head {
  background: linear-gradient(180deg, #5b8ec9, #3f6ea8); color: #fff;
  font-size: 15px; font-weight: bold; padding: 10px 14px; display: flex; align-items: center; gap: 8px;
}
.au-card-head.plain { background: linear-gradient(180deg, #f2f6fb, #e2ebf5); color: #33465e; border-bottom: 1px solid #d5e0ee; }
.au-card-head .hd-ico { font-size: 16px; }
.au-card-head .hd-tag { margin-left: auto; font-size: 12px; font-weight: normal; opacity: .85; }

.au-icon {
  width: 62px; flex-shrink: 0; font-size: 34px; text-align: center; padding-top: 6px;
}
.au-icon.q { font-size: 40px; }
.au-list-block { flex: 1; }
.au-block-title { font-size: 14px; font-weight: bold; color: #1c5aa8; margin-bottom: 8px; }

.au-count-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.au-count-table td { padding: 9px 12px; border-top: 1px solid #e8eef6; }
.au-count-table tr:first-child td { border-top: none; }
.au-count-table td.cnt { text-align: right; color: #567; white-space: nowrap; width: 70px; }
.au-count-table .cnt span { color: #c0392b; font-weight: bold; }
.au-count-table a { cursor: pointer; }
.au-count-table a:hover { color: #1c5aa8; text-decoration: underline; }

.tip-card .tip-title { position: absolute; }
.tip-card { position: relative; }
.tip-card .au-icon { display: block; }
.tip-content { flex: 1; font-size: 13px; color: #44576e; line-height: 1.9; position: relative; }
.tip-content p { margin-bottom: 6px; }
.tip-content .dot { color: #c0392b; font-style: normal; margin-right: 4px; }
.hide-tip { position: absolute; right: 0; top: -4px; color: #1c5aa8; font-size: 12px; cursor: pointer; }

.au-submit-btn {
  display: block; width: 100%; margin-bottom: 12px; padding: 12px 0;
  border: 1px solid #b8cde5; background: linear-gradient(180deg, #fff, #eaf1f9);
  color: #2a5a94; font-size: 15px; font-weight: bold; border-radius: 3px; cursor: pointer;
}
.au-submit-btn:last-child { margin-bottom: 0; }
.au-submit-btn:hover { background: linear-gradient(180deg, #f4f9ff, #dcebf9); border-color: #7ea6d4; }

.au-notice { font-size: 12px; }
.au-notice li { display: flex; gap: 8px; padding: 5px 0; border-bottom: 1px dashed #e8eef6; }
.au-notice li:last-child { border-bottom: none; }
.au-notice a { color: #c0392b; cursor: pointer; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-notice .d { color: #889; white-space: nowrap; }
.muted { font-size: 12px; color: #8896a8; margin-bottom: 10px; line-height: 1.7; }

.msg-area { font-size: 12px; color: #44576e; line-height: 1.8; min-height: 30px; }
.msg-item { padding: 6px 8px; border-bottom: 1px dashed #e8eef6; cursor: pointer; }
.msg-item:hover { background: #f4f8fd; }
.full-msg { font-size: 13px; }
.write-msg { display: inline-block; margin-top: 10px; color: #1c5aa8; font-size: 13px; cursor: pointer; }
.write-msg:hover { text-decoration: underline; }

.center-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cf-item { padding: 6px 16px; font-size: 13px; border: 1px solid #d5e0ee; border-radius: 3px; cursor: pointer; background: #fff; }
.cf-item.on { background: #4a7ebb; border-color: #4a7ebb; color: #fff; }

/* ---------- 弹层 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(20, 40, 70, .45); z-index: 300;
  overflow-y: auto;
}
.modal-box {
  background: #fff; max-width: 640px; margin: 60px auto; border-radius: 6px; overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}
.modal-head {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff;
  padding: 12px 18px; display: flex; justify-content: space-between; align-items: center;
}
.modal-close { color: #fff; cursor: pointer; font-size: 16px; }
.modal-body { padding: 18px 22px; }

.nav-steps { display: flex; gap: 6px; margin-bottom: 18px; }
.nav-steps span {
  flex: 1; text-align: center; font-size: 13px; padding: 8px 0;
  background: #eef3f9; color: #8896a8; border-radius: 3px;
}
.nav-steps span.on { background: var(--primary); color: #fff; }

.cat-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-item {
  padding: 10px 22px; border: 1px solid #d5e0ee; border-radius: 3px;
  font-size: 14px; cursor: pointer; background: #fff;
}
.cat-item:hover { border-color: #7ea6d4; }
.cat-item.on { background: var(--primary); border-color: var(--primary); color: #fff; }

@media (max-width: 920px) {
  .au-body { flex-direction: column; }
  .au-right { width: 100%; }
  .au-card-body { flex-direction: column; }
  .au-icon { width: auto; text-align: left; }
  .reg-layout { flex-direction: column; }
  .reg-side { width: 100%; padding: 12px 0; }
  .reg-row { flex-wrap: wrap; }
  .reg-row > label { text-align: left; width: 100%; padding: 0 0 4px; }
  .reg-actions { padding-left: 0; }
  .top-right { align-items: center; }
}

@media (max-width: 920px) {
  .main-body { flex-direction: column; }
  .col-side { width: 100%; }
  .top-header-inner { flex-direction: column; gap: 12px; }
  .main-nav ul { flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-banner { padding: 0 24px; }
  .hero-mask { display: none; }
}
