/* ============================================================
   全球华人青少年竞赛活动 · 官网样式
   视觉规范来源：品牌 VI（PPT 设计稿）
   - 探索蓝 #001E45（主色/深色背景）
   - 阳光黄 #F8DE00（强调色）
   - 青春蓝 #37BEF0（辅助亮色）
   - 生命绿 #00AA71（成功/点缀）
   - 磐石灰 #7C8FA1（次要文字/装饰）
   ============================================================ */
:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #16283c;
  --muted: #667d90;
  --border: #e3e8ef;
  --accent: #f8de00;
  --accent-soft: rgba(248, 222, 0, .16);
  --accent-dark: #001e45;
  --blue: #37bef0;
  --green: #00aa71;
  --slate: #7c8fa1;
  --header-bg: #001e45;
  --header-text: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Malgun Gothic', 'Leelawadee UI', Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 10% -8%, rgba(55, 190, 240, .10), transparent 42%),
    radial-gradient(circle at 92% 2%, rgba(248, 222, 0, .09), transparent 36%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: relative;
  background:
    radial-gradient(circle at 88% -30%, rgba(55, 190, 240, .18), transparent 45%),
    radial-gradient(circle at -4% 118%, rgba(248, 222, 0, .14), transparent 40%),
    var(--header-bg);
}
.site-header > .container { position: relative; z-index: 1; }

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0;
}
.brand {
  text-decoration: none;
  color: var(--header-text);
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo { height: 44px; width: auto; display: block; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name { font-size: 21px; font-weight: 700; color: #ffffff; letter-spacing: .3px; }
.brand-tagline { font-size: 12px; color: rgba(255, 255, 255, .72); }

/* ---------- 语言下拉菜单 ---------- */
.lang-switcher { position: relative; }
.lang-dropdown { position: relative; }
.lang-current {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  user-select: none;
}
.lang-current::-webkit-details-marker { display: none; }
.lang-current:hover { border-color: var(--accent); }
.caret { color: rgba(255, 255, 255, .75); font-size: 12px; transition: transform .15s ease; }
.lang-dropdown[open] .caret { transform: rotate(180deg); }
.lang-dropdown[open] .lang-menu { display: flex; }

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 30, 69, .18);
  padding: 6px;
  min-width: 190px;
  z-index: 50;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 13.5px;
}
.lang-option:hover { background: var(--accent-soft); }
.lang-option.active { background: var(--accent-soft); font-weight: 600; color: var(--accent-dark); }

.flag { width: 22px; height: 16px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 0.5px rgba(0,0,0,.08); }

/* ---------- 头部右侧（语言选择 + 用户入口） ---------- */
.header-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.user-nav { display: flex; align-items: center; gap: 8px; }
.user-link {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  white-space: nowrap;
}
.user-link:hover { border-color: var(--accent); background: rgba(248, 222, 0, .14); }
.user-link-primary { background: var(--accent); color: var(--accent-dark); border-color: var(--accent); }
.user-link-primary:hover { filter: brightness(1.05); background: var(--accent); }
.user-link-out { color: rgba(255, 255, 255, .8); }

/* 用户下拉菜单 */
.user-dropdown { position: relative; display: inline-block; }
.user-dropdown-toggle { cursor: pointer; }
.user-dropdown:hover .user-dropdown-menu,
.user-dropdown:focus-within .user-dropdown-menu { display: block; }
.user-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e4e3dd;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
  min-width: 150px;
  z-index: 200;
  overflow: hidden;
}
.user-dropdown-item {
  display: block;
  padding: 11px 18px;
  color: #1A1B1C;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.user-dropdown-item:hover { background: #f0f4fa; color: var(--accent-dark); }
.user-dropdown-divider { height: 1px; background: #e4e3dd; margin: 4px 0; }

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 0 14px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin-top: 4px;
}
.nav-link {
  text-decoration: none;
  color: rgba(255, 255, 255, .82);
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover { color: var(--accent-dark); background: var(--accent); }
.nav-link.active { color: var(--accent-dark); background: var(--accent); }

/* ---------- 栏目快捷入口 ---------- */
.col-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 4px 0 28px; }
.col-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.col-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 30, 69, .08); }
.col-card-name { font-size: 16px; font-weight: 700; color: var(--accent-dark); }
.col-card-go { font-size: 12.5px; color: var(--muted); }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 14px; }
.section-head h2 { font-size: 21px; margin: 0; }

.empty-tip { color: var(--muted); padding: 24px 0; text-align: center; }

/* ---------- main ---------- */
main.container { padding-top: 24px; padding-bottom: 40px; min-height: 60vh; }

.hero h1 { font-size: 28px; margin: 0 0 4px; }
.hero-sub { color: var(--muted); margin: 0 0 20px; font-size: 14px; }

.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
/* 支持库人物肖像：1:1正方形，顶部对齐 */
.library-grid .card-image { aspect-ratio: 1 / 1; }
.library-grid .card-image img { object-position: top; }

/* 支持库"全部"页面：按子栏目分组 */
.library-group { margin-bottom: 24px; }
.library-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.library-group-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0;
}
.library-group-more {
  font-size: 13px;
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
}
.library-group-more:hover { text-decoration: underline; }
.library-group-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.library-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid #e4e3dd;
  border-radius: 8px;
  padding: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.library-item:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.library-item-img {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  display: block;
}
.library-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.library-item-info { flex: 1; min-width: 0; }
.library-item-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.3;
}
.library-item-title a { color: #1A1B1C; text-decoration: none; }
.library-item-title a:hover { color: var(--accent-dark); }
.library-item-desc {
  font-size: 11px;
  color: #666;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 1024px) {
  .library-group-items { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .library-group-items { grid-template-columns: 1fr; }
}

/* 首页：最新动态 2 列 + 文件通知列表 + 支持库列表 */
.home-latest { margin: 16px 0 18px; }
.home-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: auto auto;
  gap: 12px;
  align-items: start;
}
.news-col { grid-row: 1 / 3; min-width: 0; }
.notice-panel { grid-row: 1; }
.support-panel { grid-row: 2; }
.home-title {
  font-size: 21px;
  margin: 0 0 14px;
  color: var(--accent-dark);
  display: inline-block;
  padding-left: 12px;
  border-left: 5px solid var(--accent);
  line-height: 1.3;
}
.home-news-grid { grid-template-columns: repeat(2, 1fr); }
.notice-panel, .support-panel {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 18px 12px;
}
.support-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--accent-dark);
  background: rgba(0, 122, 204, 0.08);
  border-radius: 4px;
  padding: 1px 6px;
  margin-right: 6px;
  flex-shrink: 0;
}
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.notice-item:last-child { border-bottom: none; }
.notice-link {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.notice-link::before {
  content: "▸";
  color: var(--accent);
  margin-right: 7px;
  font-size: 13px;
  flex-shrink: 0;
  line-height: 1;
}
.notice-link:hover { color: var(--accent-dark); text-decoration: underline; }
.notice-date { flex-shrink: 0; font-size: 12px; color: var(--muted); }
.notice-more { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--accent-dark); text-decoration: none; font-weight: 600; }
.notice-more:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .home-body { grid-template-columns: 1fr; grid-template-rows: auto; }
  .news-col, .notice-panel, .support-panel { grid-row: auto; }
  .home-news-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 20px 18px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.news-card:hover { border-color: var(--accent); box-shadow: 0 8px 22px rgba(0, 30, 69, .08); }
.card-image { display: block; margin: 0 -20px 6px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--border); }
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.news-card:hover .card-image img { transform: scale(1.03); }

.card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.badge { background: linear-gradient(135deg, #37bef0, #1f9fd6); color: #fff; padding: 2px 10px; border-radius: 999px; font-weight: 700; }

.card-title { font-size: 18px; margin: 0; line-height: 1.4; }
.card-title a { text-decoration: none; color: var(--text); }
.card-title a:hover { color: var(--accent-dark); }

.card-summary { font-size: 14px; color: #4b5563; margin: 0; }
.card-link { font-size: 14px; font-weight: 700; color: var(--accent-dark); text-decoration: none; margin-top: auto; }
.card-link:hover { color: var(--green); }

/* ---------- article ---------- */
.article { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 0 0 28px; max-width: 820px; overflow: hidden; }
.article-inner { padding: 0 30px; }
.article-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; margin-bottom: 18px; }
.article-title { font-size: 26px; line-height: 1.35; margin: 10px 0; color: var(--accent-dark); }
.article-summary { font-size: 15px; color: #4b5563; border-left: 4px solid var(--accent); padding-left: 14px; }
.article-body p { font-size: 15.5px; line-height: 1.8; margin: 0 0 16px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 60px 20px; }
.notfound h1 { font-size: 30px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: var(--header-bg);
  padding: 20px 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .75);
}
.site-footer .container { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center; }
.footer-note { width: 100%; margin: 0; text-align: center; line-height: 1.7; }
.footer-visits { width: 100%; margin: 2px 0 0; text-align: center; font-size: 12px; color: #999; line-height: 1.4; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .header-top { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 24px; }
  .article { padding: 0 0 20px; }
  .article-inner { padding: 0 20px; }
  .brand-logo { height: 36px; }
}

/* ---------- 后台管理 ---------- */
.admin-shell { max-width: 1000px; margin: 0 auto; padding: 32px 20px 60px; min-height: 90vh; }
.admin-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.admin-header h1 { font-size: 24px; margin: 0 0 4px; color: var(--accent-dark); }
.admin-sub { color: var(--muted); font-size: 13px; margin: 0; }
.admin-header-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.admin-stat-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; text-align: center; }
.admin-stat-label { font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.admin-stat-value { font-size: 24px; font-weight: 700; color: var(--accent-dark); }
.admin-section { margin-bottom: 16px; }
.admin-section h2 { font-size: 16px; margin: 0; color: #1f2937; cursor: pointer; user-select: none; display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.admin-section h2 .arrow { display: inline-block; width: 16px; text-align: center; transition: transform 0.2s; font-size: 12px; color: #9ca3af; }
.admin-section.collapsed h2 .arrow { transform: rotate(-90deg); }
.admin-section .section-body { overflow: hidden; transition: max-height 0.3s ease; }
.admin-section.collapsed .section-body { display: none; }
.admin-empty { color: #9ca3af; font-size: 14px; padding: 16px; text-align: center; }
.admin-note {
  background: var(--accent-soft);
  border: 1px solid rgba(248, 222, 0, .4);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #5b4d00;
  margin: 0 0 18px;
}
.admin-error {
  background: #fde8e8; border: 1px solid #f3b4b4; color: #b91c1c;
  padding: 10px 14px; border-radius: 10px; font-size: 13.5px; margin: 0 0 16px;
}
.admin-btn {
  display: inline-block;
  border: 1px solid var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.admin-btn:hover { filter: brightness(1.15); }
.admin-btn-ghost { background: #fff; color: var(--accent-dark); }
.admin-btn-sm { padding: 5px 12px; font-size: 12.5px; border-radius: 8px; }
.admin-btn-danger { background: #e11d48; border-color: #e11d48; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.admin-table th, .admin-table td { text-align: left; padding: 4px 14px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.admin-table th { background: #f7f8fb; font-size: 12.5px; color: var(--muted); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .admin-title { font-weight: 600; max-width: 380px; }
.admin-actions { display: flex; gap: 8px; align-items: center; }
.admin-actions form { margin: 0; }

/* 登录页 */
.admin-login-box {
  max-width: 420px;
  margin: 8vh auto 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 34px;
  box-shadow: 0 10px 30px rgba(0, 30, 69, .08);
}
.admin-login-box h1 { font-size: 22px; margin: 0 0 4px; color: var(--accent-dark); }
.admin-form { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px 26px; max-width: 720px; }
.admin-form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.admin-form-row .admin-field { flex: 1 1 240px; }
.admin-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.admin-field span { font-size: 13px; font-weight: 600; color: #374151; }
.admin-field input[type="text"],
.admin-field input[type="password"],
.admin-field select,
.admin-field textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  width: 100%;
}
.admin-field input:focus, .admin-field select:focus, .admin-field textarea:focus {
  outline: 2px solid rgba(55, 190, 240, .45);
  border-color: var(--blue);
}
.admin-form-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.admin-hint { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* ---------- 后台图片上传 ---------- */
.image-upload-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.image-upload-row .upload-btn { cursor: pointer; }
.image-upload-row .upload-or { color: var(--muted); font-size: 13px; }
.image-upload-row input[type="text"] { flex: 1; min-width: 220px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; font-family: inherit; }
.image-upload-row input[type="text"]:focus { outline: 2px solid rgba(55, 190, 240, .45); border-color: var(--blue); }
.image-preview { margin-top: 12px; display: flex; align-items: flex-start; gap: 14px; }
.image-preview img { max-width: 260px; max-height: 160px; border-radius: 10px; border: 1px solid var(--border); object-fit: cover; }
.image-preview .remove-img { margin-top: 0; display: flex; align-items: center; gap: 6px; }

/* ---------- 后台多语言翻译面板 ---------- */
.admin-success {
  background: #e6f7ef; border: 1px solid #b9e8d4; color: var(--green);
  padding: 10px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; margin: 0 0 16px;
}
.admin-translate-panel { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px 26px; margin-top: 24px; max-width: 720px; }
.admin-translate-panel h2 { margin: 0 0 4px; font-size: 18px; color: var(--accent-dark); }
.admin-translate-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.admin-progress { margin: 12px 0 4px; }
.admin-progress-bar { height: 8px; background: #eef1f5; border-radius: 999px; overflow: hidden; }
.admin-progress-fill { height: 100%; width: 0; background: var(--green); border-radius: 999px; transition: width .3s; }
.admin-progress .admin-hint { margin-top: 6px; }
.admin-lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; margin-top: 14px; }
.admin-lang-card {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: 13px;
  background: #fff;
}
.admin-lang-card[data-status="done"] { background: #f4fbf8; }
.admin-lang-card[data-status="failed"] { background: #fff7f7; }
.admin-lang-flag { display: flex; align-items: center; gap: 6px; font-weight: 600; min-width: 0; }
.admin-lang-flag img { width: 20px; height: auto; flex: none; }
.admin-lang-badge { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; margin-left: auto; white-space: nowrap; }
.badge-done { background: #dcfce7; color: #15803d; }
.badge-pending { background: #fef9c3; color: #a16207; }
.badge-failed { background: #fee2e2; color: #b91c1c; }
.badge-ok { background: #dcfce7; color: #15803d; }
.badge-warn { background: #fef9c3; color: #a16207; }
.admin-lang-warn { font-size: 12px; color: #a16207; margin-top: 3px; }
.admin-btn:disabled { opacity: .55; cursor: not-allowed; filter: none; }

/* ---------- 前台用户系统 ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 36px 0 50px; }
.auth-box {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 34px;
  box-shadow: 0 10px 30px rgba(0, 30, 69, .08);
}
.auth-box h1 { font-size: 22px; margin: 0 0 6px; color: var(--accent-dark); }
.auth-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.auth-field span { font-size: 13px; font-weight: 600; color: #374151; }
.auth-field input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  width: 100%;
}
.auth-field input:focus { outline: 2px solid rgba(55, 190, 240, .45); border-color: var(--blue); }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-switch { font-size: 13.5px; color: var(--muted); margin-top: 16px; }
.auth-switch .card-link { margin-left: 4px; }
/* 注册：邮箱 + 发送验证码 */
.email-row { display: flex; gap: 8px; align-items: stretch; }
.email-row input { flex: 1; min-width: 0; }
.send-code-btn { white-space: nowrap; }
.auth-field-tip { font-size: 12.5px; color: #c0392b; min-height: 16px; }
.auth-field-tip.ok { color: var(--green); }
.auth-userline { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.auth-info { border-top: 1px solid var(--border); margin: 6px 0 20px; }
.auth-info-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.auth-info-row span { color: var(--muted); }
.auth-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 用户中心面包屑 */
.user-breadcrumb { margin-bottom: 12px; }
.user-breadcrumb a {
  color: var(--accent-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  padding: 4px 0;
}
.user-breadcrumb a:hover { text-decoration: underline; color: var(--accent); }

/* 用户中心功能菜单 */
.user-menu { margin: 20px 0; display: flex; flex-direction: column; gap: 8px; }
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #f8f9fb;
  border: 1px solid #e4e3dd;
  border-radius: 10px;
  text-decoration: none;
  color: #1A1B1C;
  transition: background .15s, border-color .15s;
}
.user-menu-item:hover { background: #eef3fa; border-color: var(--accent); }
.user-menu-icon { font-size: 22px; flex-shrink: 0; }
.user-menu-text { flex: 1; min-width: 0; }
.user-menu-title { display: block; font-size: 15px; font-weight: 600; color: #1A1B1C; }
.user-menu-desc { display: block; font-size: 12px; color: #6B7280; margin-top: 2px; }
.user-menu-arrow { font-size: 20px; color: #999; flex-shrink: 0; }
.user-menu-count {
  background: var(--accent);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* 用户中心左右两栏 */
.user-center-page { padding: 20px 0 40px; }
.user-center-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.user-center-left { display: flex; flex-direction: column; gap: 16px; }
.user-profile-card {
  background: linear-gradient(135deg, var(--accent-dark), #1a3a6e);
  color: #fff;
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
}
.user-avatar {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
  margin: 0 auto 12px;
}
.user-profile-name { font-size: 20px; margin: 0 0 4px; color: #fff; }
.user-profile-email { font-size: 13px; color: rgba(255,255,255,.8); margin: 0 0 4px; }
.user-profile-since { font-size: 12px; color: rgba(255,255,255,.6); margin: 0; }
.user-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.user-stat-card {
  background: #fff;
  border: 1px solid #e4e3dd;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: border-color .15s, box-shadow .15s;
}
.user-stat-card:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.user-stat-num { font-size: 28px; font-weight: 700; color: var(--accent-dark); }
.user-stat-label { font-size: 13px; color: #6B7280; margin-top: 2px; }
.user-stat-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 6px;
}
.user-stat-badge.warn { background: #fff3e0; color: #e65100; }
.user-center-right { background: #fff; border: 1px solid #e4e3dd; border-radius: 14px; padding: 24px; }
.user-center-title { font-size: 18px; margin: 0 0 16px; color: var(--accent-dark); }
.user-center-actions { display: flex; gap: 10px; margin-top: 20px; }

@media (max-width: 700px) {
  .user-center-grid { grid-template-columns: 1fr; }
}

/* 文件下载列表 */
.files-list { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #e4e3dd;
  border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.file-item:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.file-icon { font-size: 24px; flex-shrink: 0; }
.file-info { flex: 1; min-width: 0; }
.file-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file-title { font-size: 14px; font-weight: 600; color: #1A1B1C; }
.file-meta-inline { font-size: 12px; color: #999; flex-shrink: 0; }
.file-desc { font-size: 12px; color: #6B7280; margin-top: 2px; }
.file-download-btn {
  background: var(--accent);
  color: var(--accent-dark);
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  flex-shrink: 0;
}
.file-download-btn:hover { filter: brightness(1.05); }

/* 报名-辅导教师输入 */
.sel-teacher-wrap {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding-left: 4px;
}
.sel-teacher-label { font-size: 12px; color: #666; white-space: nowrap; }
.sel-teacher-input {
  flex: 1;
  padding: 5px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
}
.sel-teacher-input:focus { outline: none; border-color: var(--accent); }
.mysignup-teacher { color: #666; font-size: 12px; }

/* 首页底部三栏 */
.home-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.home-bottom-col {
  background: #fff;
  border: 1px solid #e4e3dd;
  border-radius: 12px;
  padding: 20px;
  min-width: 0;
  overflow: hidden;
}
.home-bottom-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.home-bottom-list { list-style: none; margin: 0; padding: 0; }
.home-bottom-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed #eee;
}
.home-bottom-item:last-child { border-bottom: none; }
.home-bottom-link {
  color: #26394f;
  text-decoration: none;
  font-size: 13.5px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.home-bottom-link::before {
  content: "▸";
  color: var(--accent);
  margin-right: 7px;
  font-size: 13px;
  flex-shrink: 0;
  line-height: 1;
}
.home-bottom-link:hover { color: var(--accent-dark); }
.home-bottom-date { font-size: 11.5px; color: #999; flex-shrink: 0; margin-left: 8px; }
.home-bottom-more {
  display: block;
  text-align: right;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--accent-dark);
  text-decoration: none;
}
.home-bottom-more:hover { text-decoration: underline; }

/* 专家评委：第一个左图右文，后面名字每行四个 */
.expert-featured {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}
.expert-featured-img {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
}
.expert-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.expert-featured-info { flex: 1; min-width: 0; }
.expert-featured-title {
  font-size: 14px;
  font-weight: 600;
  color: #26394f;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}
.expert-featured-title:hover { color: var(--accent-dark); }
.expert-featured-desc {
  font-size: 12px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}
.expert-featured-second {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 10px;
}

.expert-name-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 8px;
}
.expert-name-item { margin: 0; }
.expert-name-link {
  font-size: 12px;
  color: #333;
  text-decoration: none;
  display: block;
  text-align: center;
  padding: 4px 2px;
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.expert-name-link:hover { background: #f0f4f8; color: var(--accent-dark); }

@media (max-width: 768px) {
  .home-bottom { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* 通栏广告 */
.banner-ad {
  position: relative;
  margin: 14px 0 0;
  border-radius: 12px;
  overflow: hidden;
}
.banner-ad-image { padding: 0; background: none; }
.banner-ad-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
/* 动态文字通栏广告 */
.banner-ad-dynamic {
  padding: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.banner-ad-dynamic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(80,0,0,0.55) 0%, rgba(120,20,20,0.35) 50%, rgba(80,0,0,0.55) 100%);
}
.banner-ad-dynamic-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 10px 20px;
}
.banner-ad-dynamic-line1 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 20px rgba(255,215,0,0.3);
  letter-spacing: 1px;
  animation: bannerLine1In 1.2s ease-out forwards, bannerGlow 3s ease-in-out 1.5s infinite;
  opacity: 0;
}
.banner-ad-dynamic-line2 {
  font-size: 20px;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 15px rgba(255,215,0,0.5);
  letter-spacing: 2px;
  margin-top: 4px;
  animation: bannerLine2In 1.2s ease-out 0.5s forwards, bannerFloat 4s ease-in-out 2s infinite;
  opacity: 0;
}
@keyframes bannerLine1In {
  0% { opacity: 0; transform: translateX(-40px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes bannerLine2In {
  0% { opacity: 0; transform: translateX(40px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes bannerGlow {
  0%, 100% { text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 20px rgba(255,215,0,0.3); }
  50% { text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 35px rgba(255,215,0,0.7); }
}
@keyframes bannerFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@media (max-width: 768px) {
  .banner-ad-dynamic-line1 { font-size: 15px; }
  .banner-ad-dynamic-line2 { font-size: 14px; }
}
.banner-ad-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a3a6e 0%, #2d5aa0 40%, #4a90d9 100%);
}
.banner-ad-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(248,222,0,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.banner-ad-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 36px;
  gap: 20px;
}
.banner-ad-text { flex: 1; min-width: 0; }
.banner-ad-title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.banner-ad-desc {
  font-size: 12px;
  color: rgba(255,255,255,.75);
  margin: 3px 0 0;
  line-height: 1.3;
}
.banner-ad-visual {
  flex-shrink: 0;
  text-align: center;
}
.banner-ad-medal {
  font-size: 40px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.2));
}

@media (max-width: 600px) {
  .banner-ad-content { padding: 12px 20px; }
  .banner-ad-title { font-size: 15px; }
  .banner-ad-visual { display: none; }
}

/* ---------- 证书查询 ---------- */
.certificate-page { max-width: 640px; margin: 0 auto; padding: 16px 0 40px; }
.certificate-title { font-size: 26px; margin: 0 0 6px; color: var(--accent-dark); }
.certificate-desc { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.certificate-form { display: flex; gap: 10px; flex-wrap: wrap; }
.certificate-input {
  flex: 1 1 260px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
}
.certificate-input:focus { outline: 2px solid rgba(55, 190, 240, .45); border-color: var(--blue); }
.certificate-hint { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.certificate-result { margin-top: 28px; }
.certificate-result h2 { font-size: 18px; margin: 0 0 12px; }
.certificate-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 4px 22px; }
.certificate-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.certificate-row:last-child { border-bottom: none; }
.certificate-row span { color: var(--muted); }
.certificate-none { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px; color: var(--muted); font-size: 14px; }

/* ---------- 我要报名 ---------- */
.signup-form { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px 26px; }
.signup-deadline { text-align: right; font-size: 13px; color: var(--muted); margin: -6px 0 14px; }
.signup-deadline strong { color: var(--accent-dark); font-weight: 700; }
.signup-closed {
  background: #fff7f7; border: 1px solid #f3c1c1; color: #c0392b;
  border-radius: 12px; padding: 18px 20px; font-size: 15px; font-weight: 600; text-align: center;
}
.signup-success {
  background: #e7f6ec; border: 1px solid #b7e3c4; color: #1c7c3a;
  padding: 20px 24px; border-radius: 14px; font-size: 15px; font-weight: 600;
}

/* ---------- 导航下拉（二级栏目） ---------- */
.nav-drop { position: relative; }
.nav-drop-toggle { display: inline-flex; align-items: center; gap: 4px; }
.caret-sm { font-size: 10px; color: rgba(255, 255, 255, .7); transition: transform .15s ease; }
.nav-drop:hover .caret-sm, .nav-drop:focus-within .caret-sm { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  display: none;
  min-width: 168px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 30, 69, .16);
  padding: 6px;
  z-index: 60;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-drop-item {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 13.5px;
  white-space: nowrap;
}
.nav-drop-item:hover { background: var(--accent-soft); }
.nav-drop-item.active { background: var(--accent-soft); font-weight: 600; color: var(--accent-dark); }

/* ---------- 栏目二级导航条 ---------- */
.sub-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; }
.sub-nav-link {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
}
.sub-nav-link:hover { color: var(--accent-dark); border-color: var(--accent); }
.sub-nav-link.active { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); }

/* ---------- 首页：横条广告 ---------- */
.promo-banner {
  position: relative;
  margin: 0 0 14px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(115deg, #001e45 0%, #0a2f5e 45%, #2a7fb8 100%);
  color: #fff;
}
.promo-banner::before {
  content: '';
  position: absolute;
  right: -50px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(248, 222, 0, .16);
  pointer-events: none;
}
.promo-banner::after {
  content: '';
  position: absolute;
  left: -40px;
  bottom: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(55, 190, 240, .20);
  pointer-events: none;
}
.promo-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 26px; }
.promo-title { margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: .3px; }
.promo-sub { margin: 0; font-size: 14px; opacity: .92; }
.promo-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  transition: transform .15s ease;
}
.promo-btn:hover { transform: translateY(-2px); }

/* ---------- 首页：2027 竞赛活动倒计时 ---------- */
.countdown {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 6px solid var(--accent);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
}
.countdown-label {
  flex: 0 0 auto;
  background: var(--accent-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  white-space: nowrap;
}
.countdown-items {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.countdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.countdown-item-label {
  font-size: 13px;
  font-weight: 600;
  color: #666;
}
.countdown-days {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}
.countdown-days b {
  color: var(--accent-dark);
  font-size: 17px;
  font-weight: 800;
  margin: 0 2px;
}

/* ---------- 首页：头条轮播 ---------- */
.carousel { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 4px; background: var(--border); }
.carousel-slides { position: relative; }
.carousel-slide {
  display: none;
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  text-decoration: none;
  color: #fff;
}
.carousel-slide.active { display: block; }
.carousel-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 26px 20px;
  background: linear-gradient(to top, rgba(0, 30, 69, .85) 0%, rgba(0, 30, 69, .3) 60%, transparent 100%);
}
.carousel-title { font-size: 22px; margin: 8px 0 4px; line-height: 1.35; }
.carousel-summary { font-size: 14px; margin: 0; opacity: .92; max-width: 640px; }
.carousel-dots { position: absolute; right: 18px; bottom: 14px; display: flex; gap: 8px; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255, 255, 255, .5);
  padding: 0;
  transition: background .15s ease, transform .15s ease;
}
.dot:hover { transform: scale(1.2); }
.dot.active { background: var(--accent); transform: scale(1.2); }

@media (max-width: 640px) {
  .carousel-slide { aspect-ratio: 4 / 3; }
  .carousel-title { font-size: 17px; }
  .carousel-summary { display: none; }
  .promo-inner { padding: 18px 18px; }
  .promo-title { font-size: 18px; }
}

/* ---------- 竞赛项目（后台三级树） ---------- */
.badge-lv1 { background: linear-gradient(135deg, var(--accent-dark), #2956a8); color: #fff; }
.badge-lv2 { background: linear-gradient(135deg, var(--accent), #7ad6f5); color: #001E45; }
.badge-lv3 { background: #eef3fa; color: #3d5a7d; border: 1px solid #d7e3f2; }
.comp-name-lv2 { padding-left: 34px !important; position: relative; }
.comp-name-lv3 { padding-left: 68px !important; position: relative; }
.comp-name-lv2::before, .comp-name-lv3::before { content: '└'; color: #9fb3c9; position: absolute; left: 18px; }
.comp-name-lv3::before { left: 52px; }
.comp-muted { color: var(--muted); font-size: 13px; }
.comp-toggle {
  border: 0; background: #eef3fa; color: #2b5a94; cursor: pointer;
  width: 24px; height: 24px; border-radius: 6px; font-size: 12px; line-height: 1;
  margin-right: 6px; vertical-align: middle; font-family: inherit;
}
.comp-toggle:hover { background: #dde9f7; }
.comp-toggle-placeholder { display: inline-block; width: 24px; margin-right: 6px; color: #c3d0e0; vertical-align: middle; }
#compTree td:first-child { white-space: nowrap; }
#compTree .badge { white-space: nowrap; vertical-align: middle; }
/* 三级项目类型标签 */
.comp-type-tag {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; vertical-align: middle;
}
.comp-type-tag.type-ind { background: #e8f4fd; color: #1565b8; border: 1px solid #bcddf3; }
.comp-type-tag.type-group { background: #fdf3e3; color: #b26a00; border: 1px solid #f0d9ae; }
/* 表单单选 */
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-item {
  display: flex; align-items: center; gap: 6px; font-size: 14px; color: #374151; cursor: pointer;
}
.radio-item input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* ---------- 后台分页 ---------- */
.pagination {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 18px; justify-content: center;
}
.page-btn {
  display: inline-block; min-width: 32px; padding: 6px 10px; text-align: center;
  border: 1px solid var(--border); border-radius: 8px; font-size: 13px;
  background: #fff; color: #3d5a7d; text-decoration: none;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.page-btn.active { background: linear-gradient(135deg, var(--accent), #7ad6f5); color: #fff; border-color: transparent; font-weight: 700; }
.page-dots { color: #9fb3c9; padding: 0 2px; }
.page-info { font-size: 12.5px; color: var(--muted); margin-left: 8px; }

/* ---------- 后台字体整体缩小一号（除栏目名称 .badge） ---------- */
.admin-shell .admin-header h1 { font-size: 23px; }
.admin-shell .admin-login-box h1 { font-size: 21px; }
.admin-shell .admin-sub { font-size: 12px; }
.admin-shell .admin-note { font-size: 13px; }
.admin-shell .admin-table th, .admin-shell .admin-table td { font-size: 13px; }
.admin-shell .admin-btn { font-size: 13px; }
.admin-shell .admin-field span { font-size: 12px; }
.admin-shell .admin-field input[type="text"],
.admin-shell .admin-field input[type="password"],
.admin-shell .admin-field input[type="email"],
.admin-shell .admin-field input[type="number"],
.admin-shell .admin-field input[type="date"],
.admin-shell .admin-field select,
.admin-shell .admin-field textarea { font-size: 13px; }
.admin-shell .admin-translate-panel h2 { font-size: 17px; }
.admin-shell .admin-error, .admin-shell .admin-success { font-size: 12.5px; }
.admin-shell .admin-lang-warn { font-size: 11.5px; }
.admin-shell .admin-hint { font-size: 12px; }
.admin-shell .admin-progress .admin-hint { font-size: 12px; }
.admin-shell .page-info { font-size: 12px; }
.admin-shell .page-btn { font-size: 12.5px; }
.admin-shell .comp-muted { font-size: 12px; }
.admin-shell .comp-type-tag { font-size: 11px; }
.admin-shell .radio-item { font-size: 13px; }
.admin-shell .image-upload-row input[type="text"] { font-size: 13px; }
.admin-shell .image-upload-row .upload-or { font-size: 12px; }
.admin-shell .auth-field-tip { font-size: 12px; }
/* 栏目名称保持原字号 */
.admin-shell .badge { font-size: 14px; }

/* ---------- 我要报名：参赛项目三级级联下拉 ---------- */
.sel-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sel-select {
  flex: 1 1 180px; min-width: 0; padding: 7px 10px; font-size: 13px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff; color: #26394f;
}
.sel-select:focus { outline: none; border-color: var(--accent); }
.sel-row .admin-btn { white-space: nowrap; }
.sel-list { margin-top: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; background: #fbfdff; }
.sel-list-title { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.sel-list-title #selCount { font-weight: 700; color: var(--accent-dark); }
.sel-list ul { list-style: none; margin: 0; padding: 0; }
.sel-list li {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 6px 10px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff; margin-bottom: 6px; font-size: 13px;
}
.sel-list li:last-child { margin-bottom: 0; }
.sel-item-path { flex: 1; color: #26394f; }
.sel-item-tag { font-size: 10.5px; padding: 1px 6px; border-radius: 999px; font-weight: 600; }
.sel-item-tag.individual { background: #e8f4fd; color: #1565b8; }
.sel-item-tag.group { background: #fdf3e3; color: #b26a00; }
.sel-remove {
  border: 1px solid #f3c1c1; background: #fdf1f1; color: #c0392b; font-size: 11.5px;
  padding: 3px 10px; border-radius: 6px; cursor: pointer;
}
.sel-remove:hover { background: #fbe3e3; }

/* ---------- 我要报名：登录绑定 / 我的报名 ---------- */
.signup-needlogin { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px 26px; text-align: center; }
.signup-needlogin p { font-size: 15px; color: #26394f; margin: 0 0 4px; }
.signup-needlogin .admin-form-actions { justify-content: center; margin-top: 14px; }
.signup-mylink { text-align: right; margin: -4px 0 14px; font-size: 13px; }
.signup-mylink a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.signup-mylink a:hover { text-decoration: underline; }
.mysignup-list { display: flex; flex-direction: column; gap: 12px; }
.mysignup-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.mysignup-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mysignup-no { font-size: 12px; color: var(--muted); font-weight: 700; }
.mysignup-name { font-size: 15px; font-weight: 700; color: #26394f; }
.mysignup-type { font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.mysignup-type.individual { background: #e8f4fd; color: #1565b8; }
.mysignup-type.group { background: #fdf3e3; color: #b26a00; }
.mysignup-meta { font-size: 12.5px; color: var(--muted); margin: 8px 0; }
.mysignup-projects { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mysignup-proj { font-size: 13px; background: #f4f7fa; border: 1px solid var(--border); padding: 4px 10px; border-radius: 8px; color: #334155; }
.mysignup-actions { border-top: 1px dashed var(--border); padding-top: 12px; }
.mysignup-closed-tag { font-size: 12.5px; color: #c0392b; font-weight: 600; }

.mysignup-actions { display: flex; align-items: center; gap: 10px; border-top: 1px dashed var(--border); padding-top: 12px; }
.inline-del { margin: 0; display: inline-block; }
.admin-btn-danger { background: #fff; color: #c0392b; border: 1px solid #e5b4b4; }
.admin-btn-danger:hover { background: #fdf0f0; border-color: #c0392b; }
.admin-btn-sm { font-size: 12.5px; padding: 5px 12px; }


/* ---------- 图片比对验证 ---------- */
.pic-captcha { margin: 10px 0 14px; padding: 12px; border: 1px solid #e4e3dd; border-radius: 12px; background: #fafafa; }
.pic-captcha-head { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 8px; }
.pic-captcha-body { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.pic-captcha-target img, .pic-captcha-opt img { width: 64px; height: 64px; border-radius: 10px; display: block; }
.pic-captcha-target { border: 2px solid #001E45; border-radius: 12px; padding: 4px; }
.pic-captcha-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.pic-captcha-opt { padding: 4px; border: 2px solid #e4e3dd; border-radius: 12px; background: #fff; cursor: pointer; transition: all .15s; }
.pic-captcha-opt:hover { border-color: #37BEF0; }
.pic-captcha-opt.active { border-color: #00AA71; box-shadow: 0 0 0 3px rgba(0,170,113,.25); }
.pic-captcha-msg { font-size: 12px; color: #c0392b; margin-top: 6px; min-height: 16px; }
.admin-login-box .pic-captcha { max-width: 380px; }


/* ---------- 报名管理表格列宽 ---------- */
.admin-table.signups-table { width: 100%; table-layout: fixed; }
.admin-table.signups-table th:nth-child(1), .admin-table.signups-table td:nth-child(1) { width: 13%; }
.admin-table.signups-table th:nth-child(2), .admin-table.signups-table td:nth-child(2) { width: 15%; }
.admin-table.signups-table th:nth-child(3), .admin-table.signups-table td:nth-child(3) { width: 14%; }
.admin-table.signups-table th:nth-child(4), .admin-table.signups-table td:nth-child(4) { width: 9%; }
.admin-table.signups-table th:nth-child(5), .admin-table.signups-table td:nth-child(5) { width: 20%; }
.admin-table.signups-table th:nth-child(6), .admin-table.signups-table td:nth-child(6) { width: 8%; }
.admin-table.signups-table th:nth-child(7), .admin-table.signups-table td:nth-child(7) { width: 13%; white-space: nowrap; }
.admin-table.signups-table th:nth-child(8), .admin-table.signups-table td:nth-child(8) { width: 8%; }
.admin-table.signups-table td { word-break: break-all; }
.admin-table.signups-table td:nth-child(7) { word-break: normal; font-variant-numeric: tabular-nums; }
.admin-table.signups-table .admin-actions { white-space: nowrap; }


/* ---------- 密码显示/隐藏切换 ---------- */
.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 42px; }
.pwd-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; border-radius: 8px; color: #6B7280; padding: 0; }
.pwd-toggle:hover { background: rgba(0,0,0,.06); color: #374151; }
.pwd-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pwd-toggle .pwd-eye-close { display: none; }
.pwd-toggle.show .pwd-eye-open { display: none; }
.pwd-toggle.show .pwd-eye-close { display: block; }


/* ---------- 内容管理列表工具条 ---------- */
.admin-list-bar { margin-bottom: 14px; }


/* ---------- 横幅详情页 ---------- */
.banner-detail-wrap { max-width: 980px; margin: 24px auto 48px; padding: 0 16px; }
.banner-detail-box { background: #fff; border-radius: 16px; border: 1px solid #e4e3dd; padding: 32px 36px; }
.banner-detail-title { font-size: 24px; font-weight: 700; color: #001E45; margin: 0 0 20px; padding-bottom: 14px; border-bottom: 3px solid #37BEF0; }
.banner-detail-content { font-size: 15.5px; line-height: 1.9; color: #333; word-break: break-word; }
.banner-detail-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 12px 0; }
.banner-detail-content p { margin: 10px 0; }
.banner-detail-empty { color: #8a93a6; padding: 24px 0; }
.banner-detail-back { margin-top: 24px; }


/* ---------- 横幅详情图片工具条 ---------- */
.detail-img-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.detail-url-input { flex: 1 1 200px; min-width: 0; padding: 7px 10px; border: 1px solid #e4e3dd; border-radius: 8px; font-size: 13px; }
.detail-url-sep { font-size: 12.5px; color: #6B7280; }


/* ---------- 编辑页上一篇/下一篇 ---------- */
.admin-edit-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }


/* ---------- 轮播视频 ---------- */
.carousel-slide-video { display: flex; align-items: center; justify-content: center; background: #000; }
.carousel-video { width: 100%; height: 100%; object-fit: contain; background: #000; }

/* ---------- 后台卡片/内联表单（轮播管理等） ---------- */
.admin-card { background: #fff; border: 1px solid #e4e3dd; border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.admin-card-title { font-size: 16px; font-weight: 700; color: #001E45; margin: 0 0 12px; }
.admin-form-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }


/* ---------- 购物模块 ---------- */
.shop-page { padding: 8px 0 40px; }
.shop-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; flex-wrap:wrap; gap:10px; }
.shop-title { font-size:24px; font-weight:700; color:#001E45; margin:0; }
.shop-cart-info { font-size:14px; color:#555; display:flex; align-items:center; gap:4px; }
.shop-cart-icon { font-size:18px; }
.shop-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:18px; }
.shop-card { background:#fff; border:1px solid #e4e3dd; border-radius:14px; overflow:hidden; display:flex; flex-direction:column; transition:box-shadow .2s; }
.shop-card:hover { box-shadow:0 4px 16px rgba(0,0,0,.08); }
.shop-card-img { display:block; aspect-ratio:4/3; overflow:hidden; background:#f5f5f5; }
.shop-card-img img { width:100%; height:100%; object-fit:cover; }
.shop-card-noimg { width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:#999; font-size:13px; }
.shop-card-body { padding:12px 14px 14px; display:flex; flex-direction:column; gap:6px; flex:1; }
.shop-card-name { font-size:15px; font-weight:600; margin:0; line-height:1.4; }
.shop-card-name a { color:#1A1B1C; text-decoration:none; }
.shop-card-name a:hover { color:#007acc; }
.shop-card-cat { font-size:11px; color:#007acc; background:rgba(0,122,204,.08); padding:1px 6px; border-radius:4px; align-self:flex-start; }
.shop-card-price { font-size:18px; font-weight:700; color:#d9534f; }
.shop-card-stock { font-size:12px; color:#888; }
.shop-add-btn { margin-top:auto; width:100%; }
.shop-detail { display:grid; grid-template-columns:1fr 1fr; gap:28px; align-items:start; }
.shop-detail-main-img { width:100%; border-radius:14px; object-fit:cover; }
.shop-detail-name { font-size:24px; font-weight:700; color:#001E45; margin:0 0 8px; }
.shop-detail-price { font-size:28px; font-weight:700; color:#d9534f; margin:12px 0; }
.shop-detail-desc { font-size:14px; line-height:1.7; color:#444; margin:12px 0; white-space:pre-wrap; }
.shop-detail-qty { display:flex; align-items:center; gap:8px; margin-top:12px; }
.shop-checkout-items { background:#fff; border:1px solid #e4e3dd; border-radius:10px; padding:12px 16px; }
.shop-checkout-total { text-align:right; font-size:18px; font-weight:700; color:#d9534f; margin-top:10px; }
.shop-order-card { background:#fff; border:1px solid #e4e3dd; border-radius:12px; padding:14px 18px; margin-bottom:14px; }
.shop-order-head { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; font-size:13px; color:#666; padding-bottom:8px; border-bottom:1px solid #eee; }
.shop-order-status { font-weight:600; color:#007acc; }
.shop-order-items { padding:8px 0; }
.shop-order-item { display:flex; justify-content:space-between; padding:4px 0; font-size:14px; }
.shop-order-item-price { color:#d9534f; font-weight:600; }
.shop-order-foot { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; font-size:13px; color:#555; padding-top:8px; border-top:1px solid #eee; }
.shop-order-total { font-weight:700; color:#d9534f; font-size:15px; }
@media (max-width:700px) { .shop-detail { grid-template-columns:1fr; } }

.shop-cat-filter { display:flex; gap:8px; margin-bottom:18px; flex-wrap:wrap; }

.shop-card-spec { font-size:12px; color:#888; }
.shop-detail-spec { font-size:14px; color:#666; margin:4px 0; }

.user-quick-actions { display:flex; gap:14px; margin:18px 0; justify-content:center; flex-wrap:wrap; }
.user-quick-btn { display:flex; flex-direction:column; align-items:center; gap:6px; padding:18px 28px; background:#f7f9fc; border:1px solid #e4e3dd; border-radius:12px; text-decoration:none; color:#001E45; transition:all .2s; min-width:120px; }
.user-quick-btn:hover { background:#e8f0fe; border-color:#007acc; }
.user-quick-icon { font-size:28px; }
.user-quick-text { font-size:14px; font-weight:600; }

.pay-status { display:inline-block; padding:2px 8px; border-radius:4px; font-size:12px; font-weight:600; }
.pay-paid { background:#e6f7e6; color:#2d8a2d; }
.pay-pending { background:#fff4e0; color:#d48806; }
.pay-unpaid { background:#fde8e8; color:#c0392b; }
.pay-details { margin-top:8px; }
.pay-details summary { cursor:pointer; font-size:13px; color:#007acc; padding:4px 0; }
.pay-qr-row { display:flex; gap:16px; flex-wrap:wrap; margin:10px 0; align-items:flex-start; }
.pay-qr-item { text-align:center; }
.pay-qr-item img { width:120px; height:120px; object-fit:contain; border:1px solid #e4e3dd; border-radius:8px; }
.pay-qr-item span { display:block; font-size:12px; color:#666; margin-top:4px; }
.pay-bank { background:#f7f9fc; padding:10px 14px; border-radius:8px; font-size:13px; white-space:pre-line; }
.pay-notice { font-size:12px; color:#888; margin:8px 0; }
.pay-proof-preview { font-size:12px; color:#666; margin-top:8px; }
.mysignup-payment { margin:10px 0; padding:10px 14px; background:#f7f9fc; border-radius:8px; }
.shop-order-pay { margin-top:10px; padding-top:10px; border-top:1px solid #eee; }

/* 前台用户投稿 */
.contribute-bar { display:flex; justify-content:space-between; align-items:center; padding:12px 16px; background:#f0f7ff; border:1px solid #bfdbfe; border-radius:8px; margin-bottom:20px; }
.contribute-tip { font-size:13px; color:#1e40af; margin:0; }
.contribute-btn { background:#2563eb; color:#fff; padding:8px 18px; border-radius:6px; text-decoration:none; font-size:14px; font-weight:600; }
.contribute-btn:hover { background:#1d4ed8; }
.article-author { margin-left:12px; color:#6b7280; font-size:13px; }


/* 争议投诉提示 */
.disputes-notice { max-width:600px; margin:40px auto; padding:40px; text-align:center; background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; }
.disputes-icon { font-size:48px; margin-bottom:16px; }
.disputes-notice h3 { font-size:20px; color:#1e293b; margin:0 0 12px 0; }
.disputes-notice p { color:#64748b; font-size:14px; line-height:1.8; margin:8px 0; }
.disputes-contact { margin-top:16px; padding-top:16px; border-top:1px solid #e2e8f0; }
.disputes-contact a { color:#2563eb; text-decoration:none; }
.disputes-contact a:hover { text-decoration:underline; }


/* ============================================================
   访问统计页面美化
   ============================================================ */
.visits-page { background: linear-gradient(135deg, #f0f4ff 0%, #fef9f0 100%); min-height: 100vh; }
.visits-page .admin-shell { max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; }

.visits-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.visits-header-left { display: flex; align-items: center; gap: 16px; }
.visits-header-icon { width: 56px; height: 56px; background: linear-gradient(135deg, #37bef0, #001e45); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 4px 16px rgba(55,190,240,0.3); }
.visits-header h1 { margin: 0; font-size: 24px; font-weight: 700; color: #001e45; letter-spacing: 0.5px; }
.visits-header-sub { margin: 4px 0 0; font-size: 13px; color: #7c8fa1; }
.visits-back-btn { display: inline-block; padding: 8px 18px; background: #fff; border: 1px solid #e3e8ef; border-radius: 10px; color: #001e45; text-decoration: none; font-size: 13px; font-weight: 500; transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.visits-back-btn:hover { border-color: #37bef0; color: #37bef0; box-shadow: 0 4px 12px rgba(55,190,240,0.15); }

.visits-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.visits-stat-card { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 16px; padding: 20px 22px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.04); transition: transform 0.2s, box-shadow 0.2s; }
.visits-stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.visits-stat-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.visits-stat-blue .visits-stat-icon { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.visits-stat-green .visits-stat-icon { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.visits-stat-orange .visits-stat-icon { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.visits-stat-label { font-size: 13px; color: #7c8fa1; margin-bottom: 2px; }
.visits-stat-value { font-size: 30px; font-weight: 700; color: #001e45; line-height: 1.1; font-variant-numeric: tabular-nums; }

.visits-section { background: #fff; border-radius: 16px; margin-bottom: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.04); overflow: hidden; }
.visits-section-header { display: flex; align-items: center; gap: 10px; padding: 16px 20px; cursor: pointer; user-select: none; transition: background 0.2s; }
.visits-section-header:hover { background: #f8fafc; }
.visits-section-arrow { display: inline-block; width: 16px; text-align: center; font-size: 11px; color: #94a3b8; transition: transform 0.2s; }
.visits-section.collapsed .visits-section-arrow { transform: rotate(-90deg); }
.visits-section-icon { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.visits-icon-blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.visits-icon-purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.visits-icon-orange { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.visits-section-title { font-size: 15px; font-weight: 600; color: #1e293b; }
.visits-section-body { padding: 0 20px 20px; }
.visits-section.collapsed .visits-section-body { display: none; }

.visits-empty { text-align: center; color: #94a3b8; padding: 32px 0; font-size: 14px; }

.visits-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.visits-table th { text-align: left; padding: 10px 12px; background: #f8fafc; color: #64748b; font-size: 12px; font-weight: 600; border-bottom: 2px solid #e2e8f0; }
.visits-table td { padding: 9px 12px; border-bottom: 1px solid #f1f5f9; color: #334155; vertical-align: middle; }
.visits-table tr:last-child td { border-bottom: none; }
.visits-table-date { font-weight: 500; color: #1e293b; font-variant-numeric: tabular-nums; }
.visits-table-num { font-weight: 600; color: #001e45; font-variant-numeric: tabular-nums; }
.visits-table-pct { color: #64748b; font-size: 12.5px; font-variant-numeric: tabular-nums; }

.visits-country-row { background: #fafbff; cursor: pointer; font-weight: 600; }
.visits-country-row:hover { background: #f0f4ff; }
.visits-country-row td { color: #1e293b; }
.visits-city-arrow { display: inline-block; width: 14px; text-align: center; font-size: 10px; color: #8b5cf6; margin-right: 4px; }
.visits-city-cell { padding: 0 !important; background: #fff; }
.visits-sub-table { width: 100%; border-collapse: collapse; }
.visits-sub-table td { padding: 7px 12px 7px 40px !important; border-bottom: 1px solid #f8fafc; font-size: 13px; color: #64748b; }
.visits-sub-table tr:last-child td { border-bottom: none; }

.visits-bar { background: #f1f5f9; border-radius: 6px; overflow: hidden; height: 18px; width: 100%; }
.visits-bar-sm { height: 12px; }
.visits-bar-fill { height: 100%; border-radius: 6px; transition: width 0.3s ease; }
.visits-bar-blue { background: linear-gradient(90deg, #37bef0, #2563eb); }
.visits-bar-purple { background: linear-gradient(90deg, #8b5cf6, #6366f1); }
.visits-bar-purple-light { background: linear-gradient(90deg, #c4b5fd, #a78bfa); }
.visits-bar-orange { background: linear-gradient(90deg, #f59e0b, #d97706); }
.visits-bar-orange-light { background: linear-gradient(90deg, #fcd34d, #fbbf24); }

@media (max-width: 768px) {
  .visits-stats-grid { grid-template-columns: 1fr; }
  .visits-header { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   时间管理页面美化
   ============================================================ */
.timeline-page { background: linear-gradient(135deg, #fffbeb 0%, #f0f4ff 100%); min-height: 100vh; }
.timeline-page .admin-shell { max-width: 900px; margin: 0 auto; padding: 24px 20px 60px; }

.timeline-alert { padding: 12px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.timeline-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.timeline-alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #059669; }

.timeline-form { display: flex; flex-direction: column; gap: 20px; }

.timeline-card { background: #fff; border-radius: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.04); overflow: hidden; }
.timeline-card-header { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid #f1f5f9; background: #fafbfc; }
.timeline-card-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.timeline-card-title { font-size: 15px; font-weight: 600; color: #1e293b; }
.timeline-card-body { padding: 22px; }

.timeline-fields-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.timeline-field { display: flex; flex-direction: column; gap: 6px; }
.timeline-field-label { font-size: 13.5px; font-weight: 600; color: #334155; display: flex; align-items: center; gap: 8px; }
.timeline-field-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.timeline-input { width: 100%; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; color: #1e293b; background: #fff; transition: all 0.2s; outline: none; font-family: inherit; }
.timeline-input:focus { border-color: #37bef0; box-shadow: 0 0 0 3px rgba(55,190,240,0.15); }
.timeline-field-hint { font-size: 12px; color: #94a3b8; margin: 0; line-height: 1.5; }

.timeline-actions { display: flex; gap: 12px; justify-content: center; margin-top: 8px; }
.timeline-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 12px; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: all 0.2s; border: none; text-decoration: none; font-family: inherit; }
.timeline-btn-primary { background: linear-gradient(135deg, #37bef0, #2563eb); color: #fff; box-shadow: 0 4px 14px rgba(55,190,240,0.35); }
.timeline-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(55,190,240,0.45); }
.timeline-btn-ghost { background: #fff; color: #64748b; border: 1px solid #e2e8f0; }
.timeline-btn-ghost:hover { border-color: #cbd5e1; color: #334155; }

.timeline-footer-hint { text-align: center; font-size: 12.5px; color: #94a3b8; margin: 0; }

@media (max-width: 768px) {
  .timeline-fields-grid { grid-template-columns: 1fr; }
  .timeline-actions { flex-direction: column; }
  .timeline-btn { justify-content: center; }
}
