/* ===== CSS Variables ===== */
:root {
  --primary: #297ced;
  --primary-dark: #1a6fc4;
  --primary-light: #e8f2ff;
  --accent: #ff6b35;
  --accent-red: #e02020;
  --text: #333;
  --text-secondary: #666;
  --text-light: #999;
  --border: #e7e8ed;
  --bg: #f5f7fa;
  --bg-white: #fff;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --header-height: 64px;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Top Bar ===== */
.top-bar {
  background: linear-gradient(135deg, #1a5fb4 0%, #297ced 100%);
  color: #fff;
  font-size: 13px;
  height: 36px;
  display: flex;
  align-items: center;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}

.top-bar a:hover {
  color: #fff;
}

.province-select {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

/* ===== Header & Nav ===== */
.site-header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-height);
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary) 0%, #5ba3f5 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.logo-text h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.logo-text span {
  font-size: 11px;
  color: var(--text-light);
}

.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  height: var(--header-height);
  font-size: 15px;
  color: var(--text);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link .arrow {
  font-size: 10px;
  transition: transform 0.2s;
}

.nav-item:hover .arrow {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s;
  z-index: 200;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.dropdown a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-greeting {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #5ba3f5 100%);
  color: #fff;
}

.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 4px;
}

.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(41, 124, 237, 0.4);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 12px 32px;
  font-size: 16px;
  border-radius: 24px;
}

/* ===== Hero Banner ===== */
.hero {
  position: relative;
  min-height: 400px;
  background: linear-gradient(135deg, #1a5fb4 0%, #297ced 50%, #5ba3f5 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 400px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-content {
  color: #fff;
  max-width: 560px;
}

.hero-content h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 24px;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
}

/* ===== Score Box ===== */
.score-box {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 340px;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}

.score-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.score-box-header h3 {
  font-size: 20px;
  font-weight: 700;
}

.score-box-header .province-tag {
  font-size: 14px;
  color: var(--text-light);
}

.score-form .form-group {
  margin-bottom: 16px;
}

.score-form label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.score-form input,
.score-form select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 12px;
  font-size: 15px;
  transition: border-color 0.2s;
}

.score-form input:focus,
.score-form select:focus {
  outline: none;
  border-color: var(--primary);
}

.subject-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.subject-btn {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  background: #fff;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.subject-btn.selected {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.score-submit {
  width: 100%;
  height: 44px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8f5a 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
}

.score-submit:hover {
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

.score-confirm-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.score-confirm-table th,
.score-confirm-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  text-align: left;
}

.score-confirm-table th {
  color: var(--text-secondary);
  font-weight: 500;
  width: 90px;
}

.score-confirm-table td {
  font-weight: 600;
  color: var(--text);
}

.score-confirm-notice {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.score-confirm-notice li {
  font-size: 13px;
  color: #e02020;
  line-height: 1.8;
}

.score-confirm-notice li::before {
  content: "• ";
}

.home-track-entries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 8px;
}
.home-track-btn {
  border: 1px solid #e5e8ef;
  background: #f7f9fc;
  border-radius: 8px;
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.home-track-btn:hover {
  border-color: #9eb7e0;
  background: #eef4ff;
}
.home-track-btn.active {
  border-color: #297ced;
  background: #e8f2ff;
  color: #1a5fb4;
}
.home-track-tip {
  font-size: 12px;
  color: #888;
  margin: 0 0 14px;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .home-track-entries {
    grid-template-columns: repeat(2, 1fr);
  }
}

.batch-pick {
  margin: 16px 0 4px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.batch-pick-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.batch-pick-label span {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
}

.batch-pick-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.batch-pick-btn {
  text-align: left;
  padding: 12px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.batch-pick-btn strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.batch-pick-btn span {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.4;
}

.batch-pick-btn:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

.batch-pick-btn.active {
  border-color: var(--primary, #1d4ed8);
  background: #eff6ff;
  box-shadow: 0 0 0 1px var(--primary, #1d4ed8);
}

.batch-pick-tip {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}

@media (max-width: 480px) {
  .batch-pick-options {
    grid-template-columns: 1fr;
  }
}

.score-confirm-actions {
  display: flex;
  gap: 12px;
}

.btn-score-edit,
.btn-score-go {
  flex: 1;
  height: 44px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-score-edit {
  background: #fff;
  border: 1px solid #e02020;
  color: #e02020;
}

.btn-score-edit:hover {
  background: #fff1f0;
}

.btn-score-go {
  background: #e02020;
  border: none;
  color: #fff;
}

.btn-score-go:hover {
  background: #c41a1a;
}

/* ===== Section Common ===== */
.section {
  padding: 48px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  background: var(--primary);
  border-radius: 2px;
}

.section-more {
  font-size: 14px;
  color: var(--text-light);
  transition: color 0.2s;
}

.section-more:hover {
  color: var(--primary);
}

/* ===== Tools Grid ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tool-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  cursor: pointer;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tool-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.tool-icon.blue { background: #e8f2ff; }
.tool-icon.green { background: #e8f8ef; }
.tool-icon.orange { background: #fff3e8; }
.tool-icon.purple { background: #f0e8ff; }
.tool-icon.red { background: #ffe8e8; }
.tool-icon.cyan { background: #e8f8ff; }
.tool-icon.yellow { background: #fff8e8; }
.tool-icon.pink { background: #ffe8f0; }

.tool-card h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.tool-card p {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== Expert Cards ===== */
.experts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.expert-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.expert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.expert-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #d4e8ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.expert-card h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.expert-title {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.expert-tags {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.expert-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 10px;
}

.expert-btn {
  padding: 6px 20px;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 16px;
  font-size: 13px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.expert-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== News List ===== */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}

.news-main {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.news-item {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  cursor: pointer;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background: #fafbfc;
}

.news-thumb {
  width: 160px;
  height: 100px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e8f2ff 0%, #d4e8ff 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.news-info h4 {
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-info p {
  font-size: 13px;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.news-meta {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  gap: 16px;
}

.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.sidebar-card h4 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.hot-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.hot-list li:last-child {
  border-bottom: none;
}

.hot-list li:hover {
  color: var(--primary);
}

.hot-list .rank {
  display: inline-block;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 8px;
  background: #eee;
  color: var(--text-light);
}

.hot-list li:nth-child(1) .rank,
.hot-list li:nth-child(2) .rank,
.hot-list li:nth-child(3) .rank {
  background: var(--accent);
  color: #fff;
}

/* ===== Classroom ===== */
.classroom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.classroom-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  cursor: pointer;
}

.classroom-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.classroom-cover {
  height: 160px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
}

.classroom-cover .play-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.classroom-body {
  padding: 16px 20px;
}

.classroom-body h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

.classroom-meta {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
}

/* ===== Service Cards ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.service-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.service-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 16px;
}

.service-price small {
  font-size: 14px;
  font-weight: 400;
}

/* ===== Footer ===== */
.site-footer {
  background: #2c3e50;
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 0 24px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.footer-contact {
  font-size: 14px;
}

.footer-contact p {
  margin-bottom: 6px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
  color: #fff;
}

/* ===== Page Header (sub pages) ===== */
.page-header {
  background: linear-gradient(135deg, #1a5fb4 0%, #297ced 100%);
  color: #fff;
  padding: 40px 0;
}

.page-header h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.page-header p {
  opacity: 0.85;
  font-size: 15px;
}

.breadcrumb {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 12px;
}

.breadcrumb a:hover {
  opacity: 1;
}

/* ===== Search & Filter ===== */
.search-bar {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.search-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-input {
  flex: 1;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 16px;
  font-size: 15px;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.filter-tag {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}

.filter-tag.active,
.filter-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ===== Data Table ===== */
.data-table-wrap {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: #f8f9fb;
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.data-table tr:hover td {
  background: #fafbfc;
}

.data-table .highlight {
  color: var(--accent-red);
  font-weight: 600;
}

/* ===== Card List ===== */
.card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.list-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  transition: all 0.2s;
  cursor: pointer;
}

.list-card:hover {
  box-shadow: var(--shadow-lg);
}

.list-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.list-card-body h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.list-card-body p {
  font-size: 13px;
  color: var(--text-light);
}

.list-card-meta {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-light);
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.page-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s;
}

.page-btn.active,
.page-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.modal-overlay.show .modal {
  transform: scale(1);
}

.modal h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.modal p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ===== Auth Modal ===== */
.auth-modal-overlay .modal.auth-modal {
  max-width: 420px;
  width: 92%;
  padding: 0;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 16px;
  background: #fafbfc;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: inset 0 -2px 0 var(--primary);
}

.auth-form {
  padding: 24px;
}

.auth-form .form-group {
  margin-bottom: 16px;
}

.auth-form label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.auth-form input,
.auth-form select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 12px;
  font-size: 15px;
}

.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  border-color: var(--primary);
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
}

.auth-error {
  color: var(--accent-red);
  font-size: 13px;
  min-height: 20px;
  margin-bottom: 4px;
}

.auth-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 12px;
}

/* ===== Mobile Menu Toggle ===== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .tools-grid,
  .experts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .classroom-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    padding: 12px 0;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link {
    height: auto;
    padding: 12px 24px;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 20px;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .score-box {
    width: 100%;
    margin-top: 24px;
  }

  .hero-content h2 {
    font-size: 26px;
  }

  .tools-grid,
  .experts-grid,
  .classroom-grid,
  .service-grid,
  .card-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-actions .btn-outline {
    display: none;
  }
}

/* ===== Detail Pages ===== */
.detail-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.detail-card h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.detail-body {
  line-height: 1.8;
  color: var(--text-secondary);
}

.detail-body img {
  max-width: 100%;
  height: auto;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.detail-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.detail-item label {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.detail-item span {
  font-size: 15px;
  font-weight: 500;
}

/* ===== Volunteer ===== */
.vol-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

.vol-prefs {
  margin: 16px 0 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.vol-prefs-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.vol-prefs-tip {
  font-size: 12px;
  color: var(--text-light);
  margin: 0 0 10px;
  line-height: 1.5;
}

.vol-prefs-group {
  margin-bottom: 10px;
}

.vol-prefs-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.vol-prefs-optional {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 400;
}

.vol-prefs-tags {
  margin-top: 0;
  gap: 6px;
}

.vol-prefs-tags .filter-tag,
.vol-prefs-tags .pref-tag {
  padding: 4px 12px;
  font-size: 12px;
  background: #fff;
  font-family: inherit;
  line-height: 1.4;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.vol-prefs-scroll {
  max-height: 120px;
  overflow-y: auto;
  padding: 2px 0;
}

.vol-prefs-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.vol-prefs-select:focus {
  border-color: var(--primary);
}

.vol-prefs-exclude {
  margin: 4px 0 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.vol-prefs-exclude summary {
  cursor: pointer;
  user-select: none;
}

.vol-prefs-summary {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 12px;
  padding: 8px 12px;
  background: #f7f8fa;
  border-radius: 6px;
}

.vol-tier-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.vol-tier-tab {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}

.vol-tier-tab.active[data-tier="1"] { background: #fff1f0; border-color: #e02020; color: #e02020; }
.vol-tier-tab.active[data-tier="2"] { background: #e8f2ff; border-color: #297ced; color: #297ced; }
.vol-tier-tab.active[data-tier="3"] { background: #f6ffed; border-color: #52c41a; color: #52c41a; }

.vol-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.vol-stat {
  background: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 14px;
}

.vol-stat strong {
  font-size: 20px;
  margin-right: 4px;
}
.vol-stat-sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 400;
}

.vol-plan-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 12px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid #e8f2ff;
}

.vol-plan-hint {
  font-size: 12px;
  color: var(--text-light);
  flex: 1;
  min-width: 180px;
}

.vol-save-plan-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.rec-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.rec-prob {
  min-width: 56px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  padding: 8px;
  border-radius: 8px;
}

.rec-prob.chong { background: #fff1f0; color: #e02020; }
.rec-prob.wen { background: #e8f2ff; color: #297ced; }
.rec-prob.bao { background: #f6ffed; color: #52c41a; }

.rec-info h4 { margin-bottom: 6px; font-size: 15px; }
.rec-info p { font-size: 13px; color: var(--text-light); margin-bottom: 4px; }
.rec-majors,
.rec-hist-trend {
  font-size: 12px !important;
  color: #555 !important;
  line-height: 1.45;
}
.rec-siblings {
  margin-top: 10px;
  padding: 10px;
  background: #f7f9fc;
  border-radius: 6px;
  border: 1px solid #e6eef8;
}
.rec-sib-title {
  font-size: 12px;
  font-weight: 600;
  color: #1a5fb4;
  margin-bottom: 8px !important;
}
.rec-sib-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px dashed #dde5f0;
  font-size: 12px;
}
.rec-sib-row:first-of-type { border-top: none; }
.rec-sib-row span { color: #666; margin-left: 6px; }
.rec-sib-empty,
.rec-sib-loading {
  font-size: 12px;
  color: #888;
  margin: 0 !important;
}
.vol-data-year-tip {
  font-size: 12px;
  color: #8a6d3b;
  background: #fff8e6;
  border: 1px solid #f0e0b2;
  border-radius: 6px;
  padding: 8px 12px;
  margin: 0 0 12px;
}

.rec-actions {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn.rec-remove-btn {
  color: #e02020;
  border: 1px solid #ffccc7;
  background: #fff;
}
.btn.rec-remove-btn:hover {
  background: #fff1f0;
  color: #e02020;
  box-shadow: none;
  transform: none;
}

.vol-slot-modal {
  max-width: 520px;
  text-align: left;
}
.vol-slot-modal h3,
.vol-slot-modal p {
  text-align: center;
}
.vol-slot-list {
  max-height: 360px;
  overflow: auto;
  margin: 0 0 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.vol-slot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.vol-slot-row:last-child { border-bottom: none; }
.vol-slot-row strong { display: block; font-size: 14px; }
.vol-slot-row span { color: var(--text-light); font-size: 12px; }
.vol-slot-empty {
  padding: 16px;
  text-align: center;
  color: var(--text-light);
  margin: 0;
}
.vol-slot-modal > .btn {
  display: block;
  margin: 0 auto;
}

.zyb-table-wrap { overflow-x: auto; }

@media (max-width: 900px) {
  .vol-layout { grid-template-columns: 1fr; }
}

/* ===== 志愿表编辑器 (zyb-editor) ===== */
.zyb-header { padding-bottom: 0; }
.zyb-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.zyb-title-input {
  font-size: 22px;
  font-weight: 700;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 4px 0;
  width: 100%;
  max-width: 320px;
}
.zyb-title-input:focus {
  outline: none;
  border-bottom-color: var(--primary);
}
.zyb-subtitle { font-size: 14px; color: var(--text-light); margin-top: 4px; }
.zyb-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.zyb-section { padding-top: 24px; }
.zyb-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}
.zyb-sidebar .detail-card { margin-bottom: 16px; padding: 20px; }
.zyb-sidebar h4 { margin-bottom: 12px; font-size: 15px; }
.zyb-score-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.zyb-score-item label { color: var(--text-light); }
.zyb-score-item span { font-weight: 600; }
.zyb-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.zyb-stat {
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
}
.zyb-stat strong { display: block; font-size: 22px; margin-bottom: 2px; }
.zyb-stat.chong { background: #fff1f0; color: #e02020; }
.zyb-stat.wen { background: #e8f2ff; color: #297ced; }
.zyb-stat.bao { background: #f6ffed; color: #52c41a; }
.zyb-fill-info { font-size: 13px; color: var(--text-secondary); text-align: center; }
.zyb-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.zyb-tip { font-size: 13px; color: var(--text-light); }
.zyb-row {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  align-items: flex-start;
}
.zyb-row-no {
  min-width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.zyb-row-body { flex: 1; min-width: 0; }
.zyb-row-top { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.zyb-code { font-family: monospace; font-size: 13px; color: var(--text-light); }
.zyb-tier {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.zyb-tier.chong { background: #fff1f0; color: #e02020; }
.zyb-tier.wen { background: #e8f2ff; color: #297ced; }
.zyb-tier.bao { background: #f6ffed; color: #52c41a; }
.zyb-prob { font-size: 13px; font-weight: 600; color: var(--accent-red); }
.zyb-college { font-size: 16px; margin-bottom: 6px; line-height: 1.4; }
.zyb-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.zyb-adjust {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}
.zyb-row-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.zyb-row-actions button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.zyb-row-actions button:hover:not(:disabled) { background: var(--primary-light); border-color: var(--primary); }
.zyb-row-actions button:disabled { opacity: 0.3; cursor: not-allowed; }
.zyb-row-actions button.del { color: #e02020; border-color: #ffccc7; }
.zyb-row-actions button.del:hover { background: #fff1f0; }
.zyb-empty { text-align: center; padding: 48px; color: var(--text-light); }
.zyb-empty-panel {
  text-align: center;
  padding: 48px 24px;
  margin: 24px 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.zyb-empty-panel h3 { margin-bottom: 8px; font-size: 18px; }
.zyb-empty-panel p { color: var(--text-secondary); margin-bottom: 20px; }
.zyb-empty-icon { font-size: 48px; margin-bottom: 12px; }
.zyb-empty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.zyb-disclaimer {
  margin-top: 24px;
  padding: 16px;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .zyb-layout { grid-template-columns: 1fr; }
}

/* ===== 志愿表编辑器 v2 ===== */
.zyb-header-full { padding-bottom: 16px; }
.zyb-table-manager {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.zyb-table-manager-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.zyb-table-select {
  min-width: 200px;
  max-width: 320px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}
.zyb-table-count {
  font-size: 12px;
  color: var(--text-light);
  margin-left: auto;
}
.zyb-btn-danger:not(:disabled):hover {
  border-color: #e02020;
  color: #e02020;
}
.zyb-btn-danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.zyb-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.zyb-top-left { flex: 1; min-width: 280px; }
.zyb-profile {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}
.zyb-profile span:not(:last-child)::after {
  content: "|";
  margin-left: 12px;
  color: var(--border);
}
.zyb-top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.zyb-download-wrap { position: relative; display: inline-block; }
.zyb-download-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 168px;
  background: #fff;
  border: 1px solid var(--border, #e8e8e8);
  border-radius: 8px;
  box-shadow: var(--shadow, 0 4px 16px rgba(0,0,0,.12));
  z-index: 20;
  overflow: hidden;
}
.zyb-download-menu button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-primary, #222);
}
.zyb-download-menu button:hover { background: #f5f8ff; color: var(--primary, #297ced); }
.page-header.zyb-header-full .zyb-download-menu {
  border-color: rgba(255,255,255,.25);
  background: #fff;
}
.zyb-saved-at { font-size: 12px; color: var(--text-light); margin-top: 8px; }

/* 志愿表页头（蓝底）：提高文字与 outline 按钮对比度 */
.page-header.zyb-header-full .zyb-title-input {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}
.page-header.zyb-header-full .zyb-title-input:focus {
  border-bottom-color: #fff;
}
.page-header.zyb-header-full .zyb-title-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.page-header.zyb-header-full .zyb-profile {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}
.page-header.zyb-header-full .zyb-profile span:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.45);
}
.page-header.zyb-header-full .zyb-saved-at {
  color: rgba(255, 255, 255, 0.88);
}
.page-header.zyb-header-full .zyb-top-actions .btn-outline {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}
.page-header.zyb-header-full .zyb-top-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: #fff;
  color: #fff;
}
.page-header.zyb-header-full .zyb-top-actions .btn-primary {
  background: #fff;
  color: #1a5fb4;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.page-header.zyb-header-full .zyb-top-actions .btn-primary:hover {
  background: #f0f7ff;
  color: #1a5fb4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.page-header.zyb-header-full .breadcrumb {
  opacity: 0.92;
}
.page-header.zyb-header-full .breadcrumb a {
  color: #fff;
}

.zyb-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  background: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.zyb-tier-tabs { display: flex; gap: 4px; }
.zyb-tier-tabs button {
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}
.zyb-tier-tabs button em { font-style: normal; font-weight: 700; margin-left: 4px; }
.zyb-tier-tabs button.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.zyb-toolbar-right { display: flex; align-items: center; gap: 12px; }
.zyb-search {
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 12px;
  width: 180px;
  font-size: 14px;
}
.zyb-expand-all { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.zyb-feat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.zyb-feat-chip {
  font-size: 12px;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
}
.zyb-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}
.zyb-card-main {
  display: grid;
  grid-template-columns: 56px 90px 1fr 120px 40px;
  gap: 16px;
  padding: 16px;
  align-items: start;
}
.zyb-order-no {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.zyb-order-btns { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.zyb-order-btns button {
  width: 28px;
  height: 24px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}
.zyb-prob-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  border: 3px solid;
  margin: 0 auto 6px;
}
.zyb-prob-circle.chong { border-color: #e02020; color: #e02020; background: #fff1f0; }
.zyb-prob-circle.wen { border-color: #297ced; color: #297ced; background: #e8f2ff; }
.zyb-prob-circle.bao { border-color: #52c41a; color: #52c41a; background: #f6ffed; }
.zyb-prob-risk { font-size: 11px; color: #e02020; text-align: center; line-height: 1.3; }
.zyb-tier-badge {
  display: block;
  text-align: center;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
  font-weight: 600;
}
.zyb-tier-badge.chong { background: #e02020; color: #fff; }
.zyb-tier-badge.wen { background: #297ced; color: #fff; }
.zyb-tier-badge.bao { background: #52c41a; color: #fff; }
.zyb-college-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.zyb-logo { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.zyb-college-name { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 4px; }
.zyb-college-sub { font-size: 13px; color: var(--text-light); }
.zyb-feat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.zyb-feat-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: #f5f7fa;
  border-radius: 4px;
  color: var(--text-secondary);
}
.zyb-rate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--primary);
  margin-bottom: 8px;
}
.zyb-quick-links { display: flex; flex-wrap: wrap; gap: 8px; }
.zyb-link-tag {
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
}
.zyb-link-tag:hover { text-decoration: underline; }
.zyb-card-plan h4 { font-size: 13px; color: var(--text-light); margin-bottom: 4px; }
.zyb-plan-num { font-size: 22px; font-weight: 700; color: var(--text); }
.zyb-plan-subj { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.zyb-plan-majors { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.zyb-card-actions { display: flex; flex-direction: column; gap: 4px; }
.zyb-card-actions button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}
.zyb-card-actions button.del { color: #e02020; }
.zyb-card-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
  border-top: 1px solid var(--border);
  background: #fafbfc;
}
.zyb-detail-col h4 { font-size: 14px; margin-bottom: 10px; color: var(--text); }
.zyb-his-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.zyb-his-head h4 { margin-bottom: 0; }
.zyb-his-block { margin-top: 4px; }
.zyb-his-wrap { overflow-x: auto; }
.zyb-his-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 640px;
}
.zyb-his-table th,
.zyb-his-table td {
  padding: 8px 10px;
  border: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
}
.zyb-his-table th { background: #f5f7fa; font-weight: 500; color: var(--text-secondary); }
.zyb-his-table td:first-child,
.zyb-his-table th:first-child { text-align: center; background: #fafafa; font-weight: 600; }
.zyb-major-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.zyb-major-cat {
  font-size: 13px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.zyb-cat-type { font-size: 13px; color: var(--text-light); margin-top: 8px; }
.zyb-no-data { font-size: 13px; color: var(--text-light); }
.zyb-card-detail-full { display: block; }
.zyb-detail-wide { margin-bottom: 16px; }
.zyb-detail-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.zyb-prof-wrap { overflow-x: auto; }
.zyb-prof-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 720px;
}
.zyb-prof-table th,
.zyb-prof-table td {
  padding: 8px 10px;
  border: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}
.zyb-prof-table th {
  background: #f5f7fa;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}
.zyb-prof-table td.zyb-prof-name {
  text-align: left;
  max-width: 280px;
  line-height: 1.4;
}
.zyb-prof-code { font-family: monospace; font-weight: 600; color: var(--primary); }
.zyb-prof-prob { font-weight: 600; font-size: 12px; }
.zyb-prof-prob.high { color: #52c41a; }
.zyb-prof-prob.low { color: #e02020; }
.zyb-prof-prob.new { color: #d46b08; }
.zyb-prof-more {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  color: var(--text-secondary);
}
.zyb-prof-more:hover { border-color: var(--primary); color: var(--primary); }
.zyb-prof-his-row td {
  background: #f8fafc;
  padding: 12px 16px !important;
}
.zyb-prof-his-inner {
  max-width: 100%;
  overflow-x: auto;
}
.zyb-prof-his-inner strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.zyb-his-note {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  color: var(--text-light);
}

@media (max-width: 900px) {
  .zyb-card-main { grid-template-columns: 1fr; }
  .zyb-card-detail { grid-template-columns: 1fr; }
  .zyb-detail-cols { grid-template-columns: 1fr; }
}

/* ===== 商用简化版 ===== */
.data-hub-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.data-hub-tabs button {
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}
.data-hub-tabs button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 600;
}
.rank-table-wrap { max-height: 480px; overflow: auto; }
.rank-table-meta { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.data-table tr.highlight-row { background: var(--primary-light); }
.data-table tr.highlight-row td { font-weight: 600; color: var(--primary-dark); }

.pricing-section { background: #f8fafc; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.pricing-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 2px solid transparent;
}
.pricing-card.pricing-highlight {
  border-color: var(--primary);
  transform: scale(1.02);
}
.pricing-card h3 { font-size: 18px; margin-bottom: 12px; }
.pricing-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}
.pricing-price span { font-size: 18px; }
.pricing-price small { font-size: 14px; color: var(--text-light); font-weight: 400; }
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
  padding: 0;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid #f0f0f0;
}
.pricing-features li::before { content: "✓ "; color: #52c41a; font-weight: 700; }

.home-timeline-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.guide-list { display: flex; flex-direction: column; gap: 16px; }
.guide-item h3, .guide-item h4 { margin-bottom: 8px; }
.guide-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

.membership-badge {
  display: inline-block;
  padding: 6px 16px;
  background: #f5f5f5;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  margin: 8px 0;
}
.membership-basic { background: #e8f2ff; color: var(--primary); }
.membership-pro { background: #fff7e6; color: #d48806; }

@media (max-width: 768px) {
  .home-timeline-layout { grid-template-columns: 1fr; }
  .pricing-card.pricing-highlight { transform: none; }
}

/* ===== 智能问答 C+A ===== */
.ai-chat-fab {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--primary) 0%, #1a5fb4 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(41, 124, 237, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ai-chat-fab:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(41, 124, 237, 0.5); }
.ai-chat-fab-icon { font-size: 18px; }
.ai-chat-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #e02020;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-chat-fab { position: fixed; }

.ai-chat-drawer { position: fixed; inset: 0; z-index: 9100; pointer-events: none; }
.ai-chat-drawer.open { pointer-events: auto; }
.ai-chat-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.25s;
}
.ai-chat-drawer.open .ai-chat-drawer-backdrop { opacity: 1; }
.ai-chat-drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}
.ai-chat-drawer.open .ai-chat-drawer-panel { transform: translateX(0); }

.ai-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}
.ai-chat-header strong { display: block; font-size: 16px; }
.ai-chat-quota { font-size: 12px; color: var(--text-light); font-weight: 400; }
.ai-chat-header-actions { display: flex; gap: 8px; align-items: center; }
.ai-chat-expand, .ai-chat-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  min-height: 200px;
  max-height: calc(100vh - 220px);
}
.ai-chat-welcome { text-align: center; padding: 24px 12px; color: var(--text-secondary); }
.ai-chat-welcome-icon { font-size: 40px; margin-bottom: 12px; }
.ai-chat-welcome-sub { font-size: 12px; color: var(--text-light); margin-top: 8px; }
.ai-chat-welcome-plan { font-size: 13px; color: var(--primary); margin-top: 10px; }
.ai-chat-plan-tip {
  margin: 0 16px 8px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  background: #e6f4ff;
  border: 1px solid #91caff;
  border-radius: 6px;
}
.ai-chat-plan-tip a { margin-left: 8px; color: var(--primary); }
.ai-chat-chip-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.ai-chat-msg { margin-bottom: 12px; display: flex; }
.ai-chat-msg-user { justify-content: flex-end; }
.ai-chat-msg-assistant { justify-content: flex-start; }
.ai-chat-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}
.ai-chat-msg-user .ai-chat-bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-chat-msg-assistant .ai-chat-bubble {
  background: #f0f4f8;
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.ai-chat-loading { color: var(--text-light); font-style: italic; }
.ai-chat-sources { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.ai-chat-source-link {
  font-size: 12px;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--primary);
  text-decoration: none;
}
.ai-chat-msg-user .ai-chat-source-link { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4); color: #fff; }

.ai-chat-suggestions {
  padding: 0 16px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ai-chat-chip {
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  cursor: pointer;
  color: var(--text-secondary);
}
.ai-chat-chip:hover { border-color: var(--primary); color: var(--primary); }

.ai-chat-input-row, .ai-chat-page-form {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.ai-chat-input-row input, .ai-chat-page-form input {
  flex: 1;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
}
.ai-chat-hint {
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
  padding: 8px 16px 12px;
  margin: 0;
}

.ai-chat-page-section { padding-top: 0; }
.ai-chat-page {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}
.ai-chat-page-messages {
  min-height: 400px;
  max-height: 55vh;
  overflow-y: auto;
  padding: 20px;
}

@media (max-width: 600px) {
  .ai-chat-fab-label { display: none; }
  .ai-chat-fab { padding: 14px; border-radius: 50%; }
  .ai-chat-drawer-panel { width: 100vw; }
}

@media print {
  .ai-chat-fab, .ai-chat-drawer, #aiChatRoot { display: none !important; }
}

/* ===== 运营后台 ===== */
.admin-body { background: #f0f2f5; margin: 0; }
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-login-card { width: 100%; max-width: 400px; }
.admin-header {
  background: #1a1a2e;
  color: #fff;
  padding: 12px 0;
}
.admin-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-header-inner > div { display: flex; gap: 8px; align-items: center; }
.admin-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  max-width: 1280px;
  margin: 0 auto;
  min-height: calc(100vh - 52px);
}
.admin-sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 16px 0;
}
.admin-nav {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}
.admin-nav:hover { background: #f5f7fa; }
.admin-nav.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  border-right: 3px solid var(--primary);
}
.admin-content { padding: 24px; }
.admin-panel h2 { margin-bottom: 20px; font-size: 20px; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}
.admin-stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}
.admin-stat-card em {
  display: block;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  color: var(--primary);
}
.admin-stat-card span { font-size: 13px; color: var(--text-secondary); }
.admin-stat-card.wide { grid-column: 1 / -1; text-align: left; }
.admin-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.admin-table { font-size: 13px; }
.admin-actions { white-space: nowrap; }
.admin-actions .btn { margin: 2px; }
.admin-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}
.admin-badge-pending { background: #fff7e6; color: #d48806; }
.admin-badge-processing { background: #e8f2ff; color: var(--primary); }
.admin-badge-completed { background: #f6ffed; color: #52c41a; }
.admin-badge-cancelled { background: #f5f5f5; color: #999; }
.admin-error { color: #e02020; }

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.admin-form-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 12px;
}
.admin-hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}
.form-hint {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}
.form-group-check label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.admin-config-msg { font-size: 13px; }
.admin-config-msg.ok { color: #52c41a; }
.admin-config-msg.err { color: #e02020; }
.llm-status-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 8px;
}
.llm-status-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  padding: 10px 14px;
  background: #f8f9fb;
  border-radius: 6px;
  font-size: 13px;
}
.llm-status-item.ready { background: #f6ffed; }
.llm-status-item em {
  margin-left: auto;
  font-style: normal;
  color: var(--text-secondary);
}
.llm-status-item.ready em { color: #52c41a; }

.admin-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.admin-modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
}

@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; overflow-x: auto; padding: 0; }
  .admin-nav { white-space: nowrap; border-right: none !important; }
}
