/* 職業前景 — App 風格（無陰影、扁平卡片） */

.page-career-outlook {
  background-color: var(--bg-light, #f8fafc);
  color: #1e293b;
  font-family: 'Noto Sans HK', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.co-gba-scroll::-webkit-scrollbar,
.co-policy-scroll::-webkit-scrollbar,
.co-outlook-scroll::-webkit-scrollbar,
.co-nav-inner::-webkit-scrollbar {
  display: none;
}

/* --- App 頂欄（職業前景頁面由 app-top-bar 統一呈現，見 guide.css） --- */

.page-career-outlook .guide-hub-screen {
  padding-top: 0;
}

.co-screen {
  max-width: var(--app-max-width, 480px);
  margin: 0 auto;
  padding: 0 16px 8px;
}

.co-section--solo {
  padding-top: 8px;
  padding-bottom: 8px;
}


/* --- 分段導航（膠囊） --- */
.co-nav {
  position: sticky;
  top: calc(52px + env(safe-area-inset-top));
  z-index: 99;
  margin: 0 -16px;
  padding: 0 16px 12px;
  background: rgba(248, 250, 252, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border, #e8ecf1);
}

.co-nav-inner {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 10px 0 4px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.co-nav-item {
  text-decoration: none;
  color: #64748b;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 8px 14px;
  white-space: nowrap;
  border-radius: 100px;
  background: #ffffff;
  border: 1px solid var(--border, #e8ecf1);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.co-nav-item.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.co-nav-item.active::after {
  display: none;
}

/* --- 區塊 --- */
.co-section {
  padding: 20px 0;
  scroll-margin-top: calc(108px + env(safe-area-inset-top));
}

.co-section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.co-section-icon {
  font-size: 1.1rem;
  color: var(--primary);
  background: var(--accent-soft, #eef2ff);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.co-section-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.co-section-sub {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
}

/* --- 神科排行榜 Hero（對齊 Info Day 全屏頂部） --- */
.ranking-hero {
  background: linear-gradient(135deg, var(--primary-light, #6366f1) 0%, var(--primary-dark, #3730a3) 100%);
  color: #ffffff;
  padding: calc(24px + env(safe-area-inset-top)) 20px 32px;
  border-radius: 0 0 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  margin: 0 -16px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.2);
}

.ranking-hero::after {
  content: '\f091';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: -20px;
  top: -10px;
  font-size: 140px;
  color: rgba(255, 255, 255, 0.1);
  transform: rotate(15deg);
  pointer-events: none;
}

.ranking-hero-content {
  margin-top: 48px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ranking-hero-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ranking-hero-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 0 8px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.ranking-hero-sub {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.5;
  max-width: 90%;
}

.co-ranking-weights {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.co-weight-bar {
  display: flex;
  height: 6px;
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.co-weight-segment {
  height: 100%;
}

.co-weight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.co-weight-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff; /* 改為白色，適應深色背景 */
}

.co-weight-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* --- 政策橫幅 --- */
.co-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light, #6366f1) 100%);
  color: #ffffff;
  padding: 16px;
  border-radius: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  line-height: 1.55;
  border: none;
}

.co-banner-icon {
  font-size: 1.125rem;
  background: rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

/* --- 政策手風琴 --- */
.co-policy-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.co-policy-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border, #e8ecf1);
}

.co-policy-summary {
  display: flex;
  align-items: center;
  padding: 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 0;
}

.co-policy-summary::-webkit-details-marker {
  display: none;
}

.co-policy-summary:active {
  background: #f8fafc;
}

.co-policy-img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  margin-right: 12px;
  flex-shrink: 0;
}
.co-policy-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.co-policy-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-right: 12px;
}

.co-policy-icon--tech {
  background: #eff6ff;
  color: #2563eb;
}

.co-policy-icon--finance {
  background: #f0fdf4;
  color: #16a34a;
}

.co-policy-icon--medical {
  background: #fdf4ff;
  color: #c026d3;
}

.co-policy-icon--law {
  background: #fff7ed;
  color: #ea580c;
}

.co-policy-head {
  flex: 1;
  min-width: 0;
}

.co-policy-head h3 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}

.co-policy-source {
  font-size: 0.6875rem;
  color: #94a3b8;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.co-policy-majors,
.co-policy-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.field-tag {
  font-size: 0.6875rem;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600;
}

/* 政府扶植行業：專業標籤統一中性色（無分類彩色） */
.co-policy-majors .field-tag,
.co-policy-majors .field-tag.tech,
.co-policy-majors .field-tag.finance,
.co-policy-majors .field-tag.medical,
.co-policy-majors .field-tag.law,
.co-policy-scroll .field-tag,
.co-policy-scroll .field-tag.tech,
.co-policy-scroll .field-tag.finance,
.co-policy-scroll .field-tag.medical,
.co-policy-scroll .field-tag.law {
  background: var(--bg-light, #f8fafc);
  color: var(--text-mid, #64748b);
  border: 1px solid var(--border, #e2e8f0);
}

.field-tag.tech { background: #e0f2fe; color: #0284c7; }
.field-tag.finance { background: #fef3c7; color: #d97706; }
.field-tag.medical { background: #fee2e2; color: #e11d48; }
.field-tag.law { background: #f3e8ff; color: #c026d3; }
.field-tag.edu { background: #dcfce7; color: #059669; }

.co-policy-chevron {
  margin-left: 8px;
  color: #cbd5e1;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.co-policy-card[open] .co-policy-chevron {
  transform: rotate(180deg);
}

.co-policy-body {
  padding: 0 14px 16px;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
  border-top: 1px solid #f1f5f9;
}

.co-policy-points {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.co-policy-point {
  position: relative;
  padding-left: 18px;
  font-size: 0.875rem;
}

.co-policy-point::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.co-policy-courses {
  background: #f8fafc;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.8125rem;
  margin-top: 12px;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.co-policy-courses i {
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

/* --- 大灣區橫滑 --- */
.co-gba-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 0 12px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  scrollbar-width: none;
}

.co-gba-card {
  min-width: 220px;
  max-width: 260px;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  scroll-snap-align: start;
  flex-shrink: 0;
  border: 1px solid var(--border, #e8ecf1);
}

.co-gba-card-img {
  width: calc(100% + 32px);
  height: 120px;
  margin: -16px -16px 12px -16px;
  overflow: hidden;
}
.co-gba-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.co-gba-card-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-soft, #eef2ff);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.co-gba-card-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #0f172a;
}

.co-gba-card-desc {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 12px;
}

.co-gba-card-salary {
  font-weight: 700;
  color: var(--primary);
  background: var(--accent-soft, #eef2ff);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.8125rem;
  display: inline-block;
}

.co-gba-hint {
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* --- 大灣區全頁網格 --- */
body[data-co-page="gba"] .page-content {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

body[data-co-page="gba"] .co-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  width: 100%;
  padding: 0 16px 16px;
}

body[data-co-page="gba"] .co-section--solo {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  padding-bottom: 0;
}

body[data-co-page="gba"] .co-gba-scroll {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  overflow: visible;
  scroll-snap-type: none;
  margin: 0;
  padding: 0;
  flex: 1;
  align-content: start;
}

body[data-co-page="gba"] .co-gba-card {
  min-width: 0;
  max-width: none;
  flex-shrink: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

body[data-co-page="gba"] .co-gba-card-desc {
  flex: 1;
}

body[data-co-page="gba"] .co-gba-hint {
  display: none;
}

/* --- 新聞資訊流樣式 --- */
.co-news-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.co-news-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.co-news-section .guide-topic-list-heading {
  margin: 8px 0 0;
}

.co-news-feed > .co-article-banner + .co-news-section {
  margin-top: 16px;
}

.co-news-feed > .co-article-banner + .co-news-section .guide-topic-list-heading {
  margin-top: 0;
}

.co-news-more {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--text-light, #9ca3af);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 2px;
}

.co-news-more i {
  font-size: 0.6875rem;
}

.co-news-more:hover {
  color: var(--text-mid, #6b7280);
}

/* 卡片視圖 (政策) */
.co-news-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.co-policy-scroll {
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 10px;
  margin: 0 -16px;
  padding: 4px 0 12px;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
}

/* 横滑首尾留白（避免首张卡片贴边，兼容 iOS 横滑容器） */
.co-policy-scroll::before,
.co-policy-scroll::after,
.co-outlook-scroll::before,
.co-outlook-scroll::after {
  content: '';
  flex-shrink: 0;
  width: 16px;
}

.co-news-card {
  display: flex;
  gap: 16px;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border, #e8ecf1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.co-news-card--scroll {
  flex-direction: column;
  gap: 0;
  min-width: 260px;
  max-width: 280px;
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 0;
  overflow: hidden;
}

.co-news-card--scroll:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.co-news-card--scroll .co-news-card-content {
  padding: 14px 16px 16px;
}

.co-news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.co-news-card-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.co-news-card-img--cover {
  width: 100%;
  height: 120px;
  border-radius: 0;
}

.co-news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.co-news-card-content {
  flex: 1;
  min-width: 0;
}

.co-news-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px 0;
}

.co-news-card-desc {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.co-news-card-majors,
.co-news-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

/* 列表視圖 (大灣區) */
.co-news-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border, #e8ecf1);
  overflow: hidden;
}

.co-news-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border, #e8ecf1);
  transition: background 0.2s;
}

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

.co-news-list-item:hover {
  background: #f8fafc;
}

.co-news-list-text {
  flex: 1;
  min-width: 0;
}

.co-news-list-img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
}

.co-news-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 大灣區列表：文字左、縮圖右（較大） */
.co-news-list--gba .co-news-list-item {
  align-items: center;
}

.co-news-list--gba .co-news-list-img {
  width: 96px;
  height: 80px;
  border-radius: 12px;
  order: 2;
  flex-shrink: 0;
}

.co-news-list--gba .co-news-list-text {
  order: 1;
}

.co-news-list-text h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.co-news-list-text p {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* 橫滑視圖 (行業展望) */
.co-outlook-scroll {
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 10px;
  margin: 0 -16px;
  padding: 4px 0 12px;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
}

.co-outlook-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.co-outlook-card-meta .co-outlook-badge {
  margin-left: 0;
  flex-shrink: 0;
}

.co-outlook-card-growth {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #10b981;
  flex-shrink: 0;
}

.co-news-card--outlook .co-news-card-title {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .co-policy-scroll .co-news-card--scroll,
  .co-outlook-scroll .co-news-card--scroll {
    min-width: 280px;
  }
}

/* --- 薪酬列表 --- */
.co-job-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.co-job-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid var(--border, #e8ecf1);
  transition: background 0.15s;
}

.co-job-card:active {
  background: #f8fafc;
}

.co-job-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 12px;
}

.co-job-title {
  font-weight: 700;
  font-size: 1rem;
  color: #1e293b;
  margin-bottom: 2px;
}

.co-job-course {
  font-size: 0.75rem;
  color: #94a3b8;
}

.co-job-salary-detail {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.8125rem;
  line-height: 1.45;
  margin-top: 6px;
}

.co-job-salary {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.0625rem;
  flex-shrink: 0;
}

.co-job-bar {
  height: 6px;
  background: #f1f5f9;
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 10px;
}

.co-job-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light, #818cf8) 0%, var(--primary) 100%);
  border-radius: 100px;
}

.co-job-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.co-trend-up { color: #00b86a; }
.co-trend-stable { color: var(--electric-blue, #0ea5e9); }
.co-trend-down { color: #e03555; }
.co-trend-mixed { color: #d97706; }

.co-job-note {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}

.co-outlook-badge {
  padding: 3px 8px;
  border-radius: 100px;
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 600;
}

.co-outlook-hot { background: #fee2e2; color: #e11d48; }
.co-outlook-good { background: #dcfce7; color: #059669; }
.co-outlook-stable { background: #e0f2fe; color: #0284c7; }
.co-outlook-caution { background: #fef3c7; color: #d97706; }

/* --- 行業展望（詳情頁橫滑卡片） --- */
.co-outlook-scroll--detail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 0 12px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  scrollbar-width: none;
}

.co-outlook-card {
  min-width: 260px;
  max-width: 300px;
  background: #ffffff;
  border-radius: 16px;
  padding: 0;
  scroll-snap-align: start;
  flex-shrink: 0;
  border: 1px solid var(--border, #e8ecf1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.co-outlook-card-img {
  width: 100%;
  height: 120px;
  overflow: hidden;
  flex-shrink: 0;
}

.co-outlook-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.co-outlook-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.co-outlook-card-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: #0f172a;
  line-height: 1.35;
}

.co-outlook-card-desc {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 12px 0;
  flex: 1;
}

.co-outlook-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* --- 圖表 --- */
.co-chart-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border, #e8ecf1);
}

.co-chart-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.co-chart-card h3 i {
  color: var(--primary);
}

.co-chart-wrap {
  position: relative;
  height: 280px;
  width: 100%;
}

.co-chart-note {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 12px;
  text-align: center;
  line-height: 1.45;
}

/* --- 選科建議 --- */
.co-tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.co-tip-card {
  background: #ffffff;
  border: 1px solid var(--border, #e8ecf1);
  border-radius: 16px;
  padding: 14px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.co-tip-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft, #eef2ff);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.co-tip-title {
  font-weight: 800;
  font-size: 0.875rem;
  color: #1e293b;
  margin-bottom: 4px;
}

.co-tip-desc {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

.co-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 20px;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  line-height: 1.45;
}

.co-disclaimer i {
  margin-top: 2px;
  flex-shrink: 0;
  color: #f59e0b;
}

@media (min-width: 768px) {
  .co-job-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

}

/* --- 神科排行榜 --- */
body[data-co-page="ranking"] .page-content {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-top: 0 !important;
}

body[data-co-page="ranking"] .co-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  width: 100%;
  padding: 0 16px 16px;
}

body[data-co-page="ranking"] .co-section--solo {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.co-rank-nav {
  margin: 0 -16px 12px;
  padding: 0 16px 4px;
}

.co-rank-nav .co-nav-inner {
  padding-top: 0;
}

.co-rank-nav .co-nav-item {
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
}

.co-rank-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border, #e8ecf1);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.co-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border, #e8ecf1);
  transition: background-color 0.2s ease, padding-left 0.2s ease, transform 0.15s ease;
}

.co-rank-item:active {
  transform: scale(0.98);
}

.co-rank-item:hover {
  background-color: #f8fafc;
  padding-left: 20px;
}

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

.co-rank-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--border, #e8ecf1);
  padding: 2px;
  flex-shrink: 0;
}

.co-rank-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.875rem;
  flex-shrink: 0;
  font-family: 'Space Mono', monospace;
}

.co-rank-num.gold {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #b45309;
  box-shadow: 0 4px 10px rgba(253, 230, 138, 0.4);
}

.co-rank-num.silver {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #475569;
  box-shadow: 0 4px 10px rgba(226, 232, 240, 0.6);
}

.co-rank-num.bronze {
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
  color: #c2410c;
  box-shadow: 0 4px 10px rgba(254, 215, 170, 0.5);
}

.co-rank-num.other {
  background: var(--accent-soft, #eef2ff);
  color: var(--primary);
}

.co-rank-info {
  flex: 1;
  min-width: 0;
}

.co-rank-name {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.35;
}

.co-rank-meta {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  display: flex;
  align-items: center;
  margin-top: 2px;
}

.co-rank-uni {
  font-weight: 700;
  color: #334155;
}

.co-rank-tag {
  background: var(--accent-soft, #eef2ff);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 600;
  margin-left: 6px;
  line-height: 1;
}

.co-rank-bar-mobile {
  display: block;
  margin-top: 8px;
  width: 100%;
}

.co-rank-bar-mobile .co-rank-bar-track {
  height: 4px;
}

.co-rank-bar-wrap {
  flex: 1;
  max-width: 88px;
  display: none;
}

.co-rank-bar-track {
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}

.co-rank-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light, #6366f1));
  border-radius: 3px;
  transition: width 0.5s ease;
}

.co-rank-score {
  text-align: right;
  flex-shrink: 0;
}

.co-rank-score-num {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Space Mono', monospace;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.co-rank-score-label {
  display: block;
  font-size: 0.6875rem;
  color: #94a3b8;
}

@media (min-width: 480px) {
  .co-rank-bar-wrap {
    display: block;
    max-width: 120px;
  }
  .co-rank-bar-mobile {
    display: none;
  }
}

/* --- Info Day --- */
.infoday-hero {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  border-radius: 0 0 24px 24px;
  padding: calc(24px + env(safe-area-inset-top)) 20px 32px;
  color: #ffffff;
  margin: 0 -16px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.2);
}

.infoday-hero::after {
  content: '\f073';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 120px;
  color: rgba(255, 255, 255, 0.1);
  transform: rotate(-15deg);
  pointer-events: none;
}

.infoday-back-btn {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10;
  transition: background 0.2s;
}

.infoday-back-btn:active {
  background: rgba(255, 255, 255, 0.3);
}

.infoday-hero-content {
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.infoday-hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.infoday-hero-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 0 8px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.infoday-hero-sub {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.5;
  max-width: 90%;
}

body[data-co-page="info-day"] .page-content {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-top: 0 !important; /* Override default safe-area padding since hero handles it */
}

body[data-co-page="info-day"] .co-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  width: 100%;
  padding: 0 16px 16px;
}

body[data-co-page="info-day"] .co-section--solo {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 0;
  padding-bottom: 0;
}

.co-infoday-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.co-infoday-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 0;
  border: 1px solid var(--border, #e8ecf1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.co-infoday-media {
  margin: 0;
  height: 200px;
  background: #eef2ff;
  position: relative;
}

.co-infoday-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 45%, rgba(15, 23, 42, 0.18));
  pointer-events: none;
}

.co-infoday-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.co-infoday-media--hku {
  background: #eef2ff;
}

.co-infoday-media--ust {
  background: #ecfeff;
}

.co-infoday-media--cuhk {
  background: #fef3c7;
}

.co-infoday-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.co-infoday-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.co-infoday-uni {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 0;
}

.co-infoday-uni--hku {
  background: #eef2ff;
  color: #4338ca;
}

.co-infoday-uni--ust {
  background: #ecfeff;
  color: #0e7490;
}

.co-infoday-uni--cuhk {
  background: #fef3c7;
  color: #b45309;
}

.co-infoday-tag {
  display: inline-block;
  margin-left: 0;
  margin-bottom: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 3px 8px;
  border-radius: 100px;
  vertical-align: middle;
}

.co-infoday-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.45;
  margin: 0 0 12px;
}

.co-infoday-meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.co-infoday-meta-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  align-items: start;
}

.co-infoday-meta-row dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  line-height: 1.4;
}

.co-infoday-meta-row dt i {
  width: 14px;
  margin-right: 4px;
  color: var(--primary);
  font-size: 0.6875rem;
}

.co-infoday-meta-row dd {
  margin: 0;
  font-size: 0.8125rem;
  color: #334155;
  line-height: 1.55;
}

.co-infoday-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.co-infoday-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.2);
}

.co-infoday-link::after {
  content: "\f35d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.65rem;
  margin-left: 6px;
}

.co-infoday-link--ghost {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}

.co-infoday-disclaimer {
  margin: 16px 0 0;
  padding: 12px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  font-size: 0.75rem;
  color: #92400e;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.co-infoday-disclaimer i {
  margin-top: 2px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .co-infoday-meta-row {
    grid-template-columns: 82px 1fr;
  }
}

/* --- 文章 Banner --- */
.co-article-banner {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 0;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.co-article-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.co-article-banner-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.co-article-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  padding: 30px 16px 16px;
  color: #fff;
}

.co-article-banner-title {
  margin: 0 0 6px 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.co-article-banner-desc {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.9;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
