/* 湾大考务网 — 统一样式（PHP 5.6 站点） */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    font-size: 14px; line-height: 1.7; color: #1f2937; background: #eef2f7;
}
a { color: #1a6fb5; text-decoration: none; }
a:hover { color: #0d4d85; text-decoration: underline; }
img { border: 0; vertical-align: middle; }
h1, h2, h3, h4 { margin: 0 0 12px; font-weight: 600; color: #10243c; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
p { margin: 0 0 10px; }

/* ---------- 布局 ---------- */
.wrap { width: 1120px; margin: 0 auto; }
.topbar { background: #0f2c4a; color: #c8d7e6; font-size: 12px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { color: #c8d7e6; }
.topbar a:hover { color: #fff; }

.header { background: #fff; border-bottom: 3px solid #1a6fb5; box-shadow: 0 1px 4px rgba(16,36,60,.06); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.logo { display: flex; align-items: center; gap: 14px; }
.logo img { height: 56px; }
.logo .txt strong { display: block; font-size: 24px; letter-spacing: 2px; color: #0f2c4a; line-height: 1.2; }
.logo .txt span { font-size: 12px; color: #7b8aa0; letter-spacing: 1px; }
.header .tel { text-align: right; font-size: 12px; color: #7b8aa0; }
.header .tel b { display: block; font-size: 20px; color: #1a6fb5; letter-spacing: .5px; }

.nav { background: #1a6fb5; }
.nav .wrap { display: flex; }
.nav a { display: block; padding: 0 26px; height: 46px; line-height: 46px; color: #eaf3fb; font-size: 15px; }
.nav a:hover, .nav a.on { background: #0d4d85; color: #fff; text-decoration: none; }

.main { padding: 22px 0 40px; }
.footer { background: #0f2c4a; color: #93a7bd; font-size: 12px; padding: 22px 0; text-align: center; line-height: 2; }
.footer a { color: #93a7bd; }

/* ---------- 卡片 ---------- */
.card { background: #fff; border: 1px solid #dde5ef; border-radius: 4px; margin-bottom: 18px; }
.card-hd { border-bottom: 1px solid #e7edf5; padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; background: #f8fafd; }
.card-hd h2, .card-hd h3 { margin: 0; font-size: 16px; position: relative; padding-left: 11px; }
.card-hd h2:before, .card-hd h3:before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; background: #1a6fb5; border-radius: 2px; }
.card-bd { padding: 18px; }
.card-bd.tight { padding: 0; }

.grid { display: flex; gap: 18px; flex-wrap: wrap; }
.grid > .col { flex: 1; min-width: 0; }

/* ---------- 模块入口 ---------- */
.mods { display: flex; gap: 18px; }
.mod {
    flex: 1; background: #fff; border: 1px solid #dde5ef; border-radius: 6px; padding: 24px 22px;
    position: relative; overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.mod:hover { box-shadow: 0 6px 22px rgba(16,36,60,.12); transform: translateY(-2px); text-decoration: none; }
.mod:before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #1a6fb5; }
.mod .tag { display: inline-block; font-size: 11px; letter-spacing: 1px; padding: 2px 8px; border-radius: 10px; background: #eaf3fb; color: #1a6fb5; }
.mod h3 { margin: 12px 0 6px; font-size: 19px; color: #10243c; }
.mod p { color: #6b7a90; font-size: 13px; min-height: 44px; margin-bottom: 14px; }
.mod .go { color: #1a6fb5; font-size: 13px; }
.mod .ico { position: absolute; right: 16px; bottom: 8px; font-size: 64px; color: #eef4fb; font-weight: 700; line-height: 1; }

/* ---------- 表单 ---------- */
.form-row { margin-bottom: 16px; display: flex; align-items: flex-start; }
.form-row > label { width: 130px; flex: 0 0 130px; text-align: right; padding-right: 14px; padding-top: 8px; color: #4b5b70; font-size: 14px; }
.form-row > label .req { color: #d9363e; }
.form-row .ctl { flex: 1; min-width: 0; }
.form-row .tip { font-size: 12px; color: #8a97a8; margin-top: 5px; }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=number], select, textarea {
    font-family: inherit; font-size: 14px; color: #1f2937; padding: 8px 10px;
    border: 1px solid #cfd9e6; border-radius: 3px; background: #fff; outline: none; width: 100%; max-width: 380px;
}
textarea { max-width: 100%; min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #1a6fb5; box-shadow: 0 0 0 3px rgba(26,111,181,.12); }
input[readonly] { background: #f4f7fb; color: #7b8aa0; }
input.small { max-width: 120px; }
.radio-group label, .check-group label { display: inline-block; margin: 0 16px 6px 0; font-size: 14px; color: #37475c; cursor: pointer; }
.radio-group input, .check-group input { margin-right: 5px; vertical-align: -2px; }

.btn {
    display: inline-block; padding: 9px 22px; font-size: 14px; font-family: inherit; cursor: pointer;
    border: 1px solid #1a6fb5; background: #1a6fb5; color: #fff; border-radius: 3px; line-height: 1.4;
}
.btn:hover { background: #0d4d85; border-color: #0d4d85; color: #fff; text-decoration: none; }
.btn.gray { background: #f4f7fb; border-color: #cfd9e6; color: #4b5b70; }
.btn.gray:hover { background: #e8eef7; color: #1f2937; }
.btn.green { background: #0f8a6a; border-color: #0f8a6a; }
.btn.green:hover { background: #0b7156; }
.btn.red { background: #d9363e; border-color: #d9363e; }
.btn.red:hover { background: #b52a31; }
.btn.sm { padding: 5px 12px; font-size: 13px; }
.btn.lg { padding: 11px 34px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- 表格 ---------- */
table.tb { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
table.tb th, table.tb td { border: 1px solid #e3eaf3; padding: 9px 10px; text-align: left; vertical-align: middle; }
table.tb th { background: #f5f8fc; color: #3d4f66; font-weight: 600; white-space: nowrap; }
table.tb tbody tr:hover { background: #fafcfe; }
table.tb td.c, table.tb th.c { text-align: center; }
table.tb td input[type=text] { max-width: 92px; padding: 4px 6px; }
.table-scroll { overflow-x: auto; }

/* ---------- 提示 ---------- */
.alert { padding: 11px 16px; border-radius: 3px; margin-bottom: 16px; font-size: 13px; }
.alert.info { background: #eef6fd; border: 1px solid #cfe4f7; color: #1a5f9e; }
.alert.ok { background: #eefaf4; border: 1px solid #c6ebd9; color: #0b7156; }
.alert.err { background: #fdf0f0; border: 1px solid #f7cccc; color: #b52a31; }
.alert.warn { background: #fffaf0; border: 1px solid #f7e2b8; color: #96660a; }

.badge { display: inline-block; padding: 1px 8px; border-radius: 9px; font-size: 12px; background: #eef2f7; color: #5b6b80; }
.badge.ok { background: #e7f7f0; color: #0b7156; }
.badge.no { background: #fdecec; color: #b52a31; }

/* ---------- 分页 ---------- */
.pager { padding: 14px 18px; text-align: right; border-top: 1px solid #eef2f7; font-size: 13px; }
.pager a, .pager span { display: inline-block; min-width: 30px; height: 28px; line-height: 26px; padding: 0 8px; margin-left: 4px; text-align: center; border: 1px solid #dde5ef; border-radius: 3px; background: #fff; color: #4b5b70; }
.pager a:hover { border-color: #1a6fb5; color: #1a6fb5; text-decoration: none; }
.pager span.cur { background: #1a6fb5; border-color: #1a6fb5; color: #fff; }
.pager span.dots { border: 0; background: none; }
.pager span.info { border: 0; background: none; color: #8a97a8; margin-left: 12px; }

/* ---------- 搜索条 ---------- */
.searchbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 18px; background: #f8fafd; border-bottom: 1px solid #e7edf5; }
.searchbar input[type=text], .searchbar select { max-width: 180px; padding: 6px 9px; }
.searchbar label { font-size: 13px; color: #4b5b70; }

/* ---------- 登录页 ---------- */
.login-page { min-height: 100vh; background: #0f2c4a url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="900"><rect width="1600" height="900" fill="%230f2c4a"/><circle cx="1300" cy="160" r="360" fill="%231a6fb5" opacity="0.35"/><circle cx="200" cy="760" r="300" fill="%230d4d85" opacity="0.5"/></svg>') center/cover no-repeat; display: flex; align-items: center; justify-content: center; padding: 30px; }
.login-box { width: 900px; max-width: 100%; background: #fff; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.35); display: flex; overflow: hidden; }
.login-side { width: 360px; background: #10243c; color: #cfe0f0; padding: 44px 36px; }
.login-side h2 { color: #fff; font-size: 24px; letter-spacing: 1px; margin-bottom: 8px; }
.login-side .sub { color: #7fa3c4; font-size: 13px; letter-spacing: 1px; margin-bottom: 30px; }
.login-side ul { list-style: none; padding: 0; margin: 0; font-size: 13px; line-height: 2.4; color: #a8c3da; }
.login-side ul li:before { content: "▪"; color: #1a6fb5; margin-right: 8px; }
.login-form { flex: 1; padding: 44px 46px; }
.login-form h1 { font-size: 22px; margin-bottom: 6px; }
.login-form .hint { color: #8a97a8; font-size: 13px; margin-bottom: 26px; }
.login-form .form-row > label { width: 84px; flex: 0 0 84px; }
.login-form input[type=text], .login-form input[type=password] { max-width: none; padding: 11px 12px; }
.login-form .btn { width: 100%; padding: 12px; font-size: 15px; letter-spacing: 2px; }
.exam-tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.exam-tabs a { flex: 1; text-align: center; padding: 9px 4px; border: 1px solid #dde5ef; border-radius: 3px; color: #4b5b70; font-size: 13px; }
.exam-tabs a.on { background: #1a6fb5; border-color: #1a6fb5; color: #fff; font-weight: 600; }
.exam-tabs a:hover { text-decoration: none; border-color: #1a6fb5; }

/* ---------- 用户中心 ---------- */
.uc-head { background: #fff; border: 1px solid #dde5ef; border-radius: 4px; padding: 20px 22px; display: flex; gap: 22px; align-items: center; margin-bottom: 18px; }
.uc-head .meta { flex: 1; }
.uc-head .meta h2 { margin: 0 0 4px; font-size: 20px; }
.uc-head .meta .line { color: #6b7a90; font-size: 13px; }
.uc-stats { display: flex; gap: 26px; }
.uc-stats div { text-align: center; }
.uc-stats b { display: block; font-size: 22px; color: #1a6fb5; line-height: 1.3; }
.uc-stats span { font-size: 12px; color: #8a97a8; }
.uc-nav { display: flex; gap: 4px; border-bottom: 1px solid #dde5ef; background: #f8fafd; padding: 0 10px; }
.uc-nav a { padding: 11px 18px; font-size: 14px; color: #4b5b70; border-bottom: 2px solid transparent; }
.uc-nav a.on { color: #1a6fb5; border-bottom-color: #1a6fb5; font-weight: 600; }
.uc-nav a:hover { text-decoration: none; color: #1a6fb5; }

/* ---------- 管理后台 ---------- */
.admin-body { background: #f0f3f8; }
.admin-top { height: 56px; background: #10243c; color: #cfe0f0; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
.admin-top .brand { font-size: 17px; letter-spacing: 1px; color: #fff; }
.admin-top .brand span { font-size: 12px; color: #7fa3c4; margin-left: 10px; letter-spacing: 0; }
.admin-top .u { font-size: 13px; color: #a8c3da; }
.admin-top .u a { color: #cfe0f0; margin-left: 14px; }
.admin-left { position: fixed; top: 56px; bottom: 0; left: 0; width: 208px; background: #16324f; overflow-y: auto; padding: 10px 0 30px; }
.admin-left a { display: block; padding: 10px 20px 10px 24px; color: #b9cde0; font-size: 14px; border-left: 3px solid transparent; }
.admin-left a:hover { background: #1b3d61; color: #fff; text-decoration: none; }
.admin-left a.on { background: #1a6fb5; color: #fff; border-left-color: #7fc4ff; }
/* 一级菜单（可折叠标题） */
.admin-left .home-link { border-bottom: 1px solid #1e3f61; }
.admin-left .nav-grp { border-top: 1px solid #1e3f61; }
.admin-left .nav-grp:first-of-type { border-top: 0; }
.admin-left .grp { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px 13px 21px; font-size: 14px; color: #dbe8f5; border-left: 3px solid transparent; cursor: pointer; letter-spacing: 0; }
.admin-left .grp:hover { background: #1b3d61; color: #fff; }
.admin-left .grp .t { display: block; }
.admin-left .grp .arw { flex: 0 0 auto; width: 6px; height: 6px; margin: -4px 4px 0 10px; border-right: 1.5px solid #7fa3c4; border-bottom: 1.5px solid #7fa3c4; transform: rotate(45deg); transition: transform .18s ease, margin .18s ease; }
.admin-left .nav-grp.open .grp { color: #fff; }
.admin-left .nav-grp.open .grp .arw { transform: rotate(-135deg); margin-top: 4px; }
.admin-left .nav-grp.open > .grp { background: #1b3d61; }
/* 二级菜单 */
.admin-left .sub { padding: 2px 0 6px; }
.admin-left .sub a { padding: 9px 18px 9px 36px; font-size: 13px; }
/* 有 JS 时才折叠；无 JS 时二级菜单全部展开，保证可用 */
.js .admin-left .sub { display: none; }
.js .admin-left .nav-grp.open .sub { display: block; }
.admin-main { margin: 56px 0 0 208px; padding: 20px 24px 50px; }
.crumb { font-size: 12px; color: #8a97a8; margin-bottom: 14px; }
.crumb a { color: #8a97a8; }

/* ---------- 准考证（打印） ---------- */
.ticket { background: #fff; border: 1px solid #cfd9e6; padding: 26px 30px; max-width: 820px; margin: 0 auto; }
.ticket h1 { text-align: center; font-size: 24px; letter-spacing: 3px; margin-bottom: 4px; }
.ticket .sub { text-align: center; font-size: 13px; color: #6b7a90; margin-bottom: 18px; letter-spacing: 1px; }
.ticket table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ticket table th, .ticket table td { border: 1px solid #a9b7c9; padding: 9px 10px; }
.ticket table th { background: #f5f8fc; width: 96px; text-align: center; font-weight: 600; }
.ticket .notice { margin-top: 16px; font-size: 12px; color: #4b5b70; line-height: 1.9; }
.ticket .notice b { display: block; margin-bottom: 4px; color: #10243c; }
.ticket .photo-cell { text-align: center; width: 130px; }

@media print {
    body { background: #fff; }
    .no-print, .topbar, .header, .nav, .footer, .uc-nav { display: none !important; }
    .main { padding: 0; }
    .ticket { border: 0; max-width: none; padding: 0; }
    .wrap { width: auto; }
}

@media (max-width: 1160px) {
    .wrap { width: auto; padding: 0 16px; }
    .mods { flex-direction: column; }
    .login-box { flex-direction: column; }
    .login-side { width: 100%; padding: 26px; }
    .admin-left { position: static; width: auto; }
    .admin-main { margin: 0; }
    .admin-top { position: static; }
}
