/* ============================================================
   河北劳动关系职业学院 — 杂志编辑风首页设计系统
   主色：匠人红 #C41E3A | 科技蓝 #1E5FA8
   辅色：中兴灰 #F5F0EB | 点缀：金色 #D4A547
   ============================================================ */

/* ===== 1. CSS Variables ===== */
:root {
  --primary: #C41E3A;
  --primary-dark: #8B1528;
  --primary-light: #E84D66;
  --red-soft: #FFF0F3;
  --green: #2E7D32;
  --green-dark: #1B5E20;
  --green-soft: #E8F5E9;
  --blue: #1E5FA8;
  --blue-dark: #154A85;
  --blue-soft: #E8F0FE;
  --accent: #D4A547;
  --accent-light: #E8C36A;

  --gray-50: #FAFAF8;
  --gray-100: #F5F0EB;
  --gray-200: #E8E4DF;
  --gray-300: #D4CFC9;
  --gray-500: #8A8580;

  --text: #111;
  --text-secondary: #444;
  --text-muted: #888;
  --bg: #FAFAF8;
  --bg-warm: #F5F0EB;
  --border: #E0DDD8;

  --font-serif: "Songti SC", "SimSun", "STSong", "Noto Serif SC", serif;
  --font-sans: "PingFang SC", "Noto Sans SC", "WenQuanYi Micro Hei", sans-serif;

  --container-max: 1400px;
  --header-height: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-xl: 0 12px 48px rgba(0,0,0,0.12);
}

/* ===== 2. Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
input, button, textarea, select { font: inherit; outline: none; }
button { cursor: pointer; border: none; background: none; }

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

/* ===== 3. Loading Overlay ===== */
.page-loading {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 400ms ease, visibility 400ms ease;
}
.page-loading.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 4. Typography ===== */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--text); }

/* ===== 5. Scroll Animations ===== */
.fade-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.slide-left {
  opacity: 0; transform: translateX(-30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.slide-left.visible { opacity: 1; transform: translateX(0); }
.slide-right {
  opacity: 0; transform: translateX(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.slide-right.visible { opacity: 1; transform: translateX(0); }
.scale-in {
  opacity: 0; transform: scale(0.95);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.scale-in.visible { opacity: 1; transform: scale(1); }

/* Stagger delays */
.d1 { transition-delay: 0.1s !important; }
.d2 { transition-delay: 0.2s !important; }
.d3 { transition-delay: 0.3s !important; }
.d4 { transition-delay: 0.4s !important; }
.d5 { transition-delay: 0.5s !important; }

/* ===== 6. Section Labels & Headings ===== */
.sec-label {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 8px;
}
.sec-label .dot { color: var(--primary); margin-right: 6px; }
.sec-heading {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 12px;
}
.sec-subtitle {
  font-size: 16px; color: var(--text-secondary);
  max-width: 560px; line-height: 1.7;
}
.sec-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 24px; border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.sec-header .label-wrap {}
.sec-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700; line-height: 1.3;
}
.sec-header h2 .en {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--text-muted);
  margin-top: 6px;
}
.sec-header .more {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
  transition: color 200ms;
}
.sec-header .more .arrow { transition: transform var(--transition-normal); }
.sec-header .more:hover { color: var(--primary); }
.sec-header .more:hover .arrow { transform: translateX(4px); }

/* NEW badge */
.new-badge {
  display: inline-block; padding: 1px 6px;
  background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  border-radius: 2px; margin-left: 6px; vertical-align: middle;
}

/* ===== 5. Header (Two-Row Layout) ===== */
.header {
  background: #fff;
  border-bottom: 3px solid var(--primary);
  position: sticky; top: 0; z-index: 100;
}
.header .inner {
  max-width: var(--container-max); margin: 0 auto; padding: 0 20px;
}

/* Row 1: School Logo + Dept Name | Return + Search */
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
  border-bottom: 1px solid var(--gray-200);
}
.header-logo {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.school-logo-img {
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.dept-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 3px;
  white-space: nowrap;
}
.header-actions {
  display: flex; align-items: center; gap: 16px;
  flex-shrink: 0;
}
.btn-back {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-secondary);
  padding: 6px 16px; border: 1px solid var(--gray-200);
  border-radius: 4px; transition: all var(--transition-fast);
}
.btn-back:hover {
  color: var(--primary); border-color: var(--primary);
}
.btn-back svg { width: 14px; height: 14px; }
.search-bar {
  display: flex; align-items: center;
  background: var(--gray-50);
  border-radius: 20px; padding: 0 4px 0 16px;
  border: 1px solid var(--gray-200);
  transition: border-color var(--transition-fast);
}
.search-bar:focus-within { border-color: var(--primary); }
.search-bar input {
  border: none; background: transparent; outline: none;
  font-size: 13px; width: 160px; padding: 8px 0;
  color: var(--text);
}
.search-bar input::placeholder { color: #bbb; }
.search-bar button {
  width: 32px; height: 32px; border: none;
  background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition-fast);
}
.search-bar button:hover { background: var(--primary-dark); }
.search-bar button svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2; }

/* Row 2: Department Navigation */
.header-nav {
  display: flex; align-items: center;
  height: 48px;
}
.header-nav .nav-item {
  flex: 1; text-align: center;
  font-size: 15px; font-weight: 500;
  padding: 12px 0;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
}
.header-nav .nav-item:hover { color: var(--primary); }
.header-nav .nav-item.active {
  color: var(--primary);
}
.header-nav .nav-item.active::after {
  content: ''; position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 32px; height: 3px; background: var(--primary);
  border-radius: 2px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none; width: 36px; height: 36px;
  align-items: center; justify-content: center;
  color: var(--text);
}

/* ============================================
   HERO BANNER
   ============================================ */
.hero-banner {
  position: relative; height: 100vh; overflow: hidden; background: #0F0F0F;
}
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0; z-index: 1;
  transform: translateX(100%);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide.active {
  transform: translateX(0); z-index: 2;
}
.hero-slide.prev {
  transform: translateX(-100%); z-index: 1;
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
/* Ken Burns focus animation on active slide */
.hero-slide.active img {
  animation: kenBurns 8s ease-out forwards;
}
@keyframes kenBurns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -0.5%); }
}
.hero-slide::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, transparent 60%);
  pointer-events: none;
}
/* Bottom dark fade for text readability */
.hero-slide::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 40%; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
}
/* Two-line banner text: large title + subtitle */
.slide-text {
  position: absolute; bottom: 12%; left: 8%; color: #fff;
  max-width: 800px; width: 90%; z-index: 5;
}
.slide-text h2 {
  font-size: clamp(36px, 5.5vw, 64px); font-weight: 700;
  margin-bottom: 8px; color: #fff;
  text-shadow: 0 2px 32px rgba(0,0,0,0.6); letter-spacing: 6px;
  line-height: 1.2;
}
.slide-text h2::after { display: none; }
.slide-text p {
  font-size: clamp(16px, 2vw, 24px); color: rgba(255,255,255,0.95);
  line-height: 1.6; text-shadow: 0 1px 20px rgba(0,0,0,0.5);
  letter-spacing: 4px; font-weight: 400;
}
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,0,0,0.25); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
  border: 1px solid rgba(255,255,255,0.15); z-index: 10;
}
.hero-banner:hover .banner-arrow { opacity: 0.6; }
.banner-arrow:hover { opacity: 1 !important; }
.banner-arrow svg { width: 20px; height: 20px; }
.banner-prev { left: 24px; }
.banner-next { right: 24px; }
/* Progress bar at bottom (replaces dots) */
.banner-progress {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; z-index: 10;
}
.banner-progress-track {
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.15);
}
.banner-progress-fill {
  height: 100%; width: 0%;
  background: var(--primary);
  transition: none;
}
.banner-progress-fill.playing {
  animation: progressFill var(--slide-duration, 5s) linear forwards;
}
/* Slide counter indicator: "2 / 5" bottom-right */
.banner-counter {
  position: absolute; bottom: 16px; right: 80px;
  color: rgba(255,255,255,0.8); font-size: 13px; font-weight: 500;
  letter-spacing: 2px; z-index: 10;
  background: rgba(0,0,0,0.2); backdrop-filter: blur(4px);
  border-radius: 12px; padding: 4px 12px;
  transition: opacity 0.3s;
}
@keyframes progressFill {
  from { width: 0%; }
  to { width: 100%; }
}
/* Legacy dot indicators (hidden) */
.banner-indicators { display: none; }
.banner-indicator { display: none; }

/* ============================================
   QUICK EXPLORE
   ============================================ */
.quick-explore {
  position: relative; z-index: 10;
  margin-top: -80px; padding-bottom: 40px;
}
.quick-explore .label {
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 16px; text-align: center;
}
.explore-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  background: none;
}
.explore-card {
  padding: 28px 24px; border-radius: 4px;
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: transform 300ms, box-shadow 300ms, border-color 300ms;
  cursor: pointer;
}
.explore-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
/* 顶部彩色指示条 */
.explore-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  transform: scaleX(0); transition: transform 400ms var(--ease);
  transform-origin: left;
}
.explore-card:hover::before { transform: scaleX(1); }
.explore-card.d1::before { background: var(--primary); }
.explore-card.d2::before { background: var(--green); }
.explore-card.d3::before { background: var(--blue); }
.explore-card.d4::before { background: var(--accent); }
.explore-card.d5::before { background: var(--gray-500); }
.explore-card:hover.d1 { border-color: var(--primary); }
.explore-card:hover.d2 { border-color: var(--green); }
.explore-card:hover.d3 { border-color: var(--blue); }
.explore-card:hover.d4 { border-color: var(--accent); }
.explore-card .explore-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; transition: background 300ms, color 300ms;
}
.explore-card.d1 .explore-icon { background: var(--red-soft); color: var(--primary); }
.explore-card.d2 .explore-icon { background: var(--green-soft); color: var(--green); }
.explore-card.d3 .explore-icon { background: var(--blue-soft); color: var(--blue); }
.explore-card.d4 .explore-icon { background: #FFF8E1; color: var(--accent); }
.explore-card:hover .explore-icon { background: var(--primary); color: #fff; }
.explore-card .explore-icon svg { width: 24px; height: 24px; }
.explore-card h3 {
  font-size: 16px; font-weight: 700; margin-bottom: 4px;
  transition: color 200ms;
}
.explore-card:hover h3 { color: var(--primary); }
.explore-card p {
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
}

/* ============================================
   MAJOR SECTION: Card grid (职能服务)
   ============================================ */
.major-section { padding: 48px 0; background: var(--bg); }
.major-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px;
}
.major-card {
  background: #fff; border: 1px solid var(--border); border-radius: 2px;
  padding: 32px 24px; position: relative; overflow: hidden;
  transition: transform 300ms, box-shadow 300ms, border-color 300ms;
  cursor: pointer;
}
.major-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  transform: scaleX(0); transition: transform 400ms var(--ease);
  transform-origin: left;
}
.major-card.d1::before { background: var(--primary); }
.major-card.d2::before { background: var(--green); }
.major-card.d3::before { background: var(--blue); }
.major-card.d4::before { background: var(--accent); }
.major-card.d5::before { background: var(--gray-500); }
.major-card.d6::before { background: var(--primary-light); }
.major-card:hover::before { transform: scaleX(1); }
.major-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.major-card:hover.d1 { border-color: var(--primary); }
.major-card:hover.d2 { border-color: var(--green); }
.major-card:hover.d3 { border-color: var(--blue); }
.major-card:hover.d4 { border-color: var(--accent); }
.major-card:hover.d5 { border-color: var(--gray-500); }
.major-card:hover.d6 { border-color: var(--primary-light); }
.major-icon {
  width: 48px; height: 48px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--red-soft); color: var(--primary);
  transition: background 300ms, color 300ms;
}
.major-icon svg { width: 24px; height: 24px; }
.major-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.major-card:hover .major-icon { background: var(--primary); color: #fff; }
.major-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; transition: color 200ms; }
.major-card:hover h3 { color: var(--primary); }
.major-desc {
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ============================================
   NEWS SECTION: Featured carousel + sidebar + list
   ============================================ */
.news-section { padding: 48px 0; background: var(--bg); }
.sec-header .news-tabs { display: flex; gap: 0; align-items: flex-end; }
.news-tabs { display: flex; gap: 0; }
.news-tab {
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  color: var(--text-muted); position: relative; cursor: pointer;
  transition: color var(--transition-fast);
}
.news-tab.active { color: var(--text); }
.news-tab.active::after {
  content: ''; position: absolute; bottom: -17px; left: 0; right: 0;
  height: 2px; background: var(--primary);
}
.news-tab:hover { color: var(--text); }

/* Featured carousel area */
.news-featured-wrap {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: 40px; margin-bottom: 48px;
  height: 360px;
}
.featured-carousel {
  position: relative; border-radius: 2px; overflow: hidden;
  height: 100%;
}
.featured-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.8s ease;
}
.featured-slide.active { opacity: 1; }
.featured-slide img { width: 100%; height: 100%; object-fit: cover; }
.featured-slide .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px;
}
.featured-slide .overlay .badge {
  display: inline-flex; align-items: center; gap: 4px;
  width: fit-content; padding: 3px 12px;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 12px; border-radius: 2px;
}
.featured-slide .overlay h3 {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 700; color: #fff;
  line-height: 1.4; margin-bottom: 8px;
}
.featured-slide .overlay h3 a:hover { color: rgba(255,255,255,0.85); }
.featured-slide .overlay .meta {
  font-size: 12px; color: rgba(255,255,255,0.6);
}
.carousel-dots {
  position: absolute; bottom: 16px; right: 24px;
  display: flex; gap: 6px; z-index: 5;
}
.carousel-dot {
  width: 24px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.3); cursor: pointer;
  transition: all 0.3s;
}
.carousel-dot.active { background: #fff; width: 32px; }

/* Featured sidebar list */
.featured-sidebar {
  display: grid; grid-template-rows: repeat(6, 1fr);
  height: 100%; min-height: 0; overflow: hidden;
}
.featured-sidebar .fs-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 16px; align-items: center;
  transition: all 200ms;
  cursor: pointer;
  min-height: 0;
}
.featured-sidebar .fs-item:first-child { border-top: none; }
.featured-sidebar .fs-item:last-child { border-bottom: none; }
.featured-sidebar .fs-item:hover { padding-left: 8px; background: var(--gray-50); }
.featured-sidebar .fs-item .fs-num {
  font-family: var(--font-serif);
  font-size: 24px; font-weight: 700; color: var(--border);
  line-height: 1; min-width: 32px; flex-shrink: 0;
  transition: color 200ms;
}
.featured-sidebar .fs-item:hover .fs-num { color: var(--primary); }
.featured-sidebar .fs-item .fs-info { flex: 1; }
.featured-sidebar .fs-item .fs-info h4 {
  font-size: 14px; font-weight: 600; line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  text-overflow: ellipsis;
}
.featured-sidebar .fs-item .fs-info h4 a { position: relative; }
.featured-sidebar .fs-item .fs-info h4 a:hover::after {
  content: attr(data-full-title);
  position: absolute; left: 0; bottom: calc(100% + 8px);
  background: rgba(0,0,0,0.85); color: #fff;
  padding: 8px 12px; border-radius: 4px;
  font-size: 13px; font-weight: 400; line-height: 1.5;
  white-space: normal; max-width: 280px; width: max-content;
  pointer-events: none; z-index: 10;
}
.featured-sidebar .fs-item .fs-info h4 a:hover::before {
  content: '';
  position: absolute; left: 12px; bottom: calc(100% + 4px);
  border: 4px solid transparent; border-top-color: rgba(0,0,0,0.85);
  pointer-events: none; z-index: 10;
}
.featured-sidebar .fs-item .fs-info h4 a:hover { color: var(--primary); }
.featured-sidebar .fs-item .fs-info .fs-meta {
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.featured-sidebar .fs-item .fs-info .fs-meta .cat {
  color: var(--text-secondary); font-weight: 500;
}

/* News list: editorial style (two-column) */
.news-list-editorial {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
.news-list-editorial .news-item-ed {
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 16px; align-items: center;
  transition: background 200ms;
}
.news-item-ed:hover { background: var(--bg-warm); }
.news-item-ed .num {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 700; color: var(--border);
  line-height: 1; min-width: 32px; flex-shrink: 0;
  transition: color 200ms;
}
.news-item-ed:hover .num { color: var(--primary); }
.news-item-ed .info { flex: 1; min-width: 0; }
.news-item-ed .info h4 {
  font-size: 15px; font-weight: 600; line-height: 1.4;
  margin-bottom: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-item-ed .info h4 a:hover { color: var(--primary); }
.news-item-ed .info .meta-sm {
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.news-item-ed .info .meta-sm .cat {
  color: var(--text-secondary); font-weight: 500;
}
.news-item-ed .thumb-sm {
  width: 100px; height: 66px; border-radius: 2px; overflow: hidden; flex-shrink: 0;
}
.news-item-ed .thumb-sm img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================
   CORE BUSINESS: White cards + colored accents
   ============================================ */
.core-section {
  background: var(--bg); color: var(--text);
  padding: 48px 0; position: relative; overflow: hidden;
}
.core-section::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(196,30,58,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.core-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 48px; position: relative; z-index: 1;
}
.core-panel {
  padding: 40px 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2px;
  position: relative; overflow: hidden;
  transition: border-color 300ms, box-shadow 300ms, transform 300ms;
}
.core-panel:hover { border-color: var(--primary); box-shadow: 0 4px 24px rgba(196,30,58,0.06); transform: translateY(-2px); }
.core-panel::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  transform: scaleX(0); transition: transform 400ms var(--ease);
  transform-origin: left;
}
.core-panel:hover::before { transform: scaleX(1); }
.core-panel:nth-child(1)::before { background: var(--primary); }
.core-panel:nth-child(2)::before { background: var(--blue); }
.core-panel:nth-child(3)::before { background: var(--accent); }
.core-panel .panel-icon {
  width: 48px; height: 48px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.core-panel:nth-child(1) .panel-icon { background: var(--primary); color: #fff; }
.core-panel:nth-child(2) .panel-icon { background: var(--blue); color: #fff; }
.core-panel:nth-child(3) .panel-icon { background: var(--accent); color: #fff; }
.core-panel .panel-icon svg { width: 24px; height: 24px; }
.core-panel h3 {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 700; margin-bottom: 12px;
}
.core-panel .desc {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.8; margin-bottom: 24px;
}
.core-panel .stat-row {
  display: flex; gap: 20px; margin-bottom: 24px;
}
.core-panel .stat-mini {
  flex: 1; text-align: center; padding: 12px 8px;
  background: var(--bg-warm); border-radius: 4px;
}
.core-panel .stat-mini .val {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 800; line-height: 1.1;
}
.core-panel:nth-child(1) .stat-mini .val { color: var(--primary); }
.core-panel:nth-child(2) .stat-mini .val { color: var(--blue); }
.core-panel:nth-child(3) .stat-mini .val { color: var(--accent); }
.core-panel .stat-mini .lbl {
  font-size: 11px; color: var(--text-muted); margin-top: 4px;
}
.core-panel .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.core-panel .tag-pill {
  font-size: 12px; padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: 20px; color: var(--text-secondary);
  transition: all 150ms;
}
.core-panel .tag-pill:hover {
  border-color: var(--primary); color: var(--primary);
  background: var(--red-soft);
}

/* ============================================
   COOPERATION: Asymmetric split
   ============================================ */
.coop-section {
  padding: 48px 0; background: var(--bg-warm);
}
.coop-asym {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.coop-side {
  background: var(--primary);
  color: #fff; padding: 40px 32px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.coop-side::after {
  content: ''; position: absolute; bottom: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.coop-side .sec-label { color: rgba(255,255,255,0.6); }
.coop-side h3 {
  font-family: var(--font-serif);
  font-size: 28px; font-weight: 700; line-height: 1.35;
  margin-bottom: 20px;
}
.coop-side p {
  font-size: 14px; line-height: 1.9;
  color: rgba(255,255,255,0.8); margin-bottom: 12px;
}
.coop-side .btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border: 1px solid rgba(255,255,255,0.4);
  color: #fff; font-size: 14px; font-weight: 500;
  margin-top: 16px; width: fit-content;
  transition: all 200ms; border-radius: 2px;
}
.coop-side .btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.coop-main {
  background: #fff;
  padding: 40px; display: flex; flex-direction: column;
}
.coop-main .main-illust {
  border-radius: 4px; overflow: hidden; margin-bottom: 20px;
}
.coop-main .main-illust img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.coop-main .sub-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 20px;
}
.coop-main .sub-img { border-radius: 4px; overflow: hidden; }
.coop-main .sub-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.coop-main .partner-strip {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.partner-chip {
  padding: 6px 14px; background: var(--bg-warm);
  border-radius: 3px; font-size: 12px; color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 150ms;
}
.partner-chip:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================
   ACHIEVEMENTS: Editorial mosaic grid
   ============================================ */
.achieve-section { padding: 60px 0; background: var(--bg-warm); }
.achieve-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(80px, auto);
  gap: 16px;
}
.achieve-mosaic-item {
  position: relative; border-radius: 4px; overflow: hidden;
  cursor: pointer;
}
a.achieve-mosaic-item {
  text-decoration: none; color: inherit; display: block;
}
.achieve-mosaic-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms var(--ease);
}
.achieve-mosaic-item:hover img { transform: scale(1.04); }
.achieve-mosaic-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px;
}
.achieve-mosaic-item .overlay .cat {
  font-size: 12px; font-weight: 700; color: var(--accent);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px;
}
.achieve-mosaic-item .overlay h4 {
  color: #fff; font-family: var(--font-serif);
  font-size: 20px; font-weight: 700; line-height: 1.3;
}
.mosaic-1 { grid-column: 1 / 8; grid-row: 1 / 3; }
.mosaic-2 { grid-column: 8 / 13; grid-row: 1 / 2; }
.mosaic-3 { grid-column: 8 / 13; grid-row: 2 / 3; }
.mosaic-4 { grid-column: 1 / 5; grid-row: 3 / 4; }
.mosaic-5 { grid-column: 5 / 13; grid-row: 3 / 5; }
.mosaic-6 { grid-column: 1 / 5; grid-row: 4 / 5; }

/* ============================================
   STATS: Horizontal ticker
   ============================================ */
.stats-section {
  padding: 40px 0;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
}
.stat-item {
  text-align: center; padding: 24px 16px;
  position: relative;
}
.stat-item::after {
  content: ''; position: absolute; right: 0; top: 20%; bottom: 20%;
  width: 1px; background: var(--border);
}
.stat-item:last-child::after { display: none; }
.stat-item .num {
  font-family: var(--font-serif);
  font-size: 42px; font-weight: 900; color: var(--primary);
  line-height: 1; margin-bottom: 6px;
}
.stat-item .num span { font-size: 16px; font-weight: 600; color: var(--text-muted); }
.stat-item .lbl {
  font-size: 13px; color: var(--text-muted);
  letter-spacing: 1px;
}

/* ============================================
   INTERACTIVE: Icon row
   ============================================ */
.interact-section { padding: 48px 0; background: var(--bg); }
.interact-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.interact-item {
  padding: 40px 24px; text-align: center;
  background: #fff; border-radius: 4px;
  border: 1px solid var(--border);
  transition: transform 300ms, box-shadow 300ms, color 200ms;
}
.interact-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.interact-item svg {
  width: 32px; height: 32px; stroke-width: 1.5;
  margin-bottom: 16px; transition: color 200ms;
}
.interact-item:nth-child(1) svg { color: var(--primary); }
.interact-item:nth-child(2) svg { color: var(--green); }
.interact-item:nth-child(3) svg { color: var(--blue); }
.interact-item:nth-child(4) svg { color: var(--accent); }
.interact-item h4 {
  font-size: 16px; font-weight: 600; margin-bottom: 8px;
}
.interact-item p {
  font-size: 13px; color: var(--text-muted); line-height: 1.6;
}
.interact-item:hover h4 { color: var(--primary); }

/* ============================================
   FOOTER: Red gradient
   ============================================ */
.footer {
  background: linear-gradient(180deg, var(--primary-dark) 0%, #5C0E1C 100%);
  color: rgba(255,255,255,0.65);
  font-size: 14px;
}
.footer-main {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px; padding: 20px 0 16px;
}
.footer-brand p { font-size: 12px; line-height: 1.7; color: rgba(255,255,255,0.55); }
.footer-qr-row { display: flex; gap: 12px; margin-top: 10px; }
.footer-qr-item { text-align: center; }
.footer-qr-item .qr-img {
  width: 80px; height: 80px; border-radius: 6px;
  background: rgba(255,255,255,0.08); margin-bottom: 4px;
  display: block; object-fit: cover;
}
.footer-qr-item p { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.footer-col h5 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.footer-col ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.footer-col ul li { margin-bottom: 4px; }
.footer-col ul li a { font-size: 12px; color: rgba(255,255,255,0.5); transition: color 150ms; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom-bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 0; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-friends-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.footer-friends-inline span { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-friends-inline a { font-size: 12px; color: rgba(255,255,255,0.45); transition: color 150ms; }
.footer-friends-inline a:hover { color: #fff; }
.footer-friends-inline a + a::before { content: '|'; margin: 0 6px; color: rgba(255,255,255,0.12); }
.footer-icp { font-size: 12px; color: rgba(255,255,255,0.3); white-space: nowrap; }
.footer-icp a { color: rgba(255,255,255,0.4); }
.footer-icp a:hover { color: #fff; }

/* ============================================
   PAGE HERO SM (compact for sub-pages)
   ============================================ */
.page-hero-sm {
  position: relative; min-height: 180px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--blue-dark) 100%);
  overflow: hidden; text-align: center;
}
.page-hero-sm::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.05) 100%);
}
.page-hero-sm h1 {
  position: relative; z-index: 2; color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700; text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

/* ============================================
   SEARCH PAGE
   ============================================ */
.search-section { padding: 48px 0; background: var(--bg); }
.search-form { margin-bottom: 32px; }
.search-input-wrap {
  display: flex; gap: 0; max-width: 600px; margin: 0 auto;
}
.search-input {
  flex: 1; padding: 12px 16px; border: 1px solid var(--border);
  border-right: none; border-radius: 4px 0 0 4px;
  font-size: 15px; background: #fff;
}
.search-input:focus { border-color: var(--primary); }
.search-btn {
  padding: 12px 28px; background: var(--primary); color: #fff;
  border: 1px solid var(--primary); border-radius: 0 4px 4px 0;
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background 200ms;
}
.search-btn:hover { background: var(--primary-dark); }
.search-result-count {
  font-size: 14px; color: var(--text-muted); margin-bottom: 24px;
}
.search-result-count strong { color: var(--primary); font-size: 18px; }
.search-results { border-top: 1px solid var(--border); }
.search-result-item {
  padding: 24px 0; border-bottom: 1px solid var(--border);
  transition: background 200ms;
}
.search-result-item:hover { background: var(--gray-50); padding-left: 8px; }
.search-result-item h3 {
  font-size: 17px; font-weight: 600; margin-bottom: 8px; line-height: 1.4;
}
.search-result-item h3 a:hover { color: var(--primary); }
.search-result-item .summary {
  font-size: 14px; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 10px;
}
.search-result-item .meta {
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 12px;
}
.search-result-item .meta .channel a { color: var(--text-secondary); }
.search-result-item .meta .channel a:hover { color: var(--primary); }
.search-empty {
  text-align: center; padding: 60px 0; color: var(--text-muted);
  font-size: 15px;
}

/* ============================================
   MESSAGE BOARD PAGE
   ============================================ */
.message-section { padding: 48px 0; background: var(--bg); }
.message-wrap { max-width: 800px; margin: 0 auto; }
.message-form-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 4px; padding: 36px; margin-bottom: 40px;
}
.message-form-card h2 {
  font-family: var(--font-serif); font-size: 22px;
  margin-bottom: 24px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.msg-form .form-row { margin-bottom: 20px; }
.msg-form label {
  display: block; font-size: 14px; font-weight: 500;
  margin-bottom: 6px; color: var(--text-secondary);
}
.msg-form .req { color: var(--primary); }
.msg-form input, .msg-form textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 4px; font-size: 14px; background: var(--gray-50);
  transition: border-color 200ms;
}
.msg-form input:focus, .msg-form textarea:focus {
  border-color: var(--primary); outline: none; background: #fff;
}
.msg-form textarea { resize: vertical; line-height: 1.7; }
.msg-submit {
  padding: 12px 32px; background: var(--primary); color: #fff;
  border: none; border-radius: 4px; font-size: 15px; font-weight: 500;
  cursor: pointer; transition: background 200ms;
}
.msg-submit:hover { background: var(--primary-dark); }
.msg-success {
  padding: 12px 16px; margin-bottom: 20px; border-radius: 4px;
  background: #e8f5e9; color: #2e7d32; font-size: 14px;
  border: 1px solid #c8e6c9;
}
.message-list { border-top: 1px solid var(--border); }
.message-list h2 {
  font-family: var(--font-serif); font-size: 22px;
  margin-bottom: 24px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.msg-item {
  padding: 24px 0; border-bottom: 1px solid var(--border);
}
.msg-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.msg-author { font-size: 14px; font-weight: 600; color: var(--text); }
.msg-date { font-size: 12px; color: var(--text-muted); }
.msg-content {
  font-size: 14px; line-height: 1.8; color: var(--text-secondary);
  margin-bottom: 10px;
}
.msg-reply {
  background: var(--gray-50); padding: 12px 16px; border-radius: 4px;
  border-left: 3px solid var(--primary); font-size: 14px;
  color: var(--text-secondary); line-height: 1.7;
}
.reply-label { color: var(--primary); font-weight: 600; }

/* ============================================
   PAGE HERO (for channel/article pages)
   ============================================ */
.page-hero {
  position: relative; min-height: 35vh;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--blue) 100%);
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
}
.page-hero-content {
  position: relative; z-index: 2; text-align: center; color: #fff;
}
.page-hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700; color: #fff; margin-bottom: 8px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.page-hero-content p {
  font-size: 16px; color: rgba(255,255,255,0.8);
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

/* Breadcrumb */
.page-breadcrumb {
  padding: 16px 0;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted);
}
.page-breadcrumb a { color: var(--text-secondary); transition: color 150ms; }
.page-breadcrumb a:hover { color: var(--primary); }
.page-breadcrumb .sep { margin: 0 6px; }
.page-breadcrumb .current { color: var(--text); font-weight: 500; }

/* ============================================
   CHANNEL / LIST PAGE
   ============================================ */
.channel-section { padding: 60px 0; background: var(--bg); }
.channel-wrap {
  display: grid; grid-template-columns: 1fr 300px; gap: 48px;
}

/* Article list: editorial numbered */
.channel-article-list {
  border-top: 1px solid var(--border);
}
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); font-size: 14px; }
.channel-article-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 20px; align-items: center;
  transition: background 200ms;
}
.channel-article-item:hover { background: var(--gray-50); padding-left: 8px; }
.channel-article-item .cai-num {
  font-family: var(--font-serif);
  font-size: 28px; font-weight: 700; color: var(--border);
  line-height: 1; min-width: 36px; flex-shrink: 0;
  transition: color 200ms;
}
.channel-article-item:hover .cai-num { color: var(--primary); }
.channel-article-item .cai-info { flex: 1; min-width: 0; }
.channel-article-item .cai-info h3 {
  font-size: 16px; font-weight: 600; line-height: 1.4;
  margin-bottom: 8px;
}
.channel-article-item .cai-info h3 a:hover { color: var(--primary); }
.channel-article-item .cai-info .cai-summary {
  font-size: 13px; color: var(--text-muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 8px;
}
.channel-article-item .cai-meta {
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 12px;
}

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; margin-top: 40px;
}
.pagination a, .pagination span {
  min-width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; border-radius: 4px;
  border: 1px solid var(--border);
  transition: all 150ms;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination span.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* Sidebar */
.sidebar {
  position: sticky; top: 100px;
}
.sidebar-title {
  font-size: 16px; font-weight: 700;
  padding: 12px 16px;
  background: var(--primary); color: #fff;
  border-radius: 4px 4px 0 0;
  margin-bottom: 0;
}
.sidebar-link {
  display: block; padding: 12px 16px;
  font-size: 14px; color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  background: #fff;
  transition: all 150ms;
}
.sidebar-link:hover { color: var(--primary); padding-left: 20px; }
.sidebar-link.active { color: var(--primary); font-weight: 600; background: var(--red-soft); }
.sidebar-hot { margin-top: 24px; }
.sidebar-hot .sidebar-title { background: var(--blue); }
.sidebar-hot-item {
  display: block; padding: 10px 16px;
  font-size: 13px; color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  background: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: all 150ms;
}
.sidebar-hot-item:hover { color: var(--primary); padding-left: 20px; }

/* ============================================
   ARTICLE DETAIL PAGE
   ============================================ */
.article-section { padding: 60px 0; background: var(--bg); }
.article-detail-wrap {
  display: grid; grid-template-columns: 1fr 300px; gap: 48px;
}
.article-detail {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 48px;
}
.article-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px; margin-bottom: 32px;
}
.article-title {
  font-family: var(--font-serif);
  font-size: 28px; font-weight: 700;
  line-height: 1.4; margin-bottom: 16px;
}
.article-meta {
  font-size: 13px; color: var(--text-muted);
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.article-content {
  font-size: 16px; line-height: 2;
  color: var(--text-secondary);
}
.article-content p { margin-bottom: 16px; text-indent: 2em; }
.article-content h1, .article-content h2, .article-content h3 {
  text-indent: 0; margin: 32px 0 16px;
  font-family: var(--font-serif);
}
.article-content img {
  max-width: 100%; margin: 24px auto;
  border-radius: 4px;
}
.article-content ul, .article-content ol {
  margin: 16px 0; padding-left: 2em;
}
.article-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 16px 24px; margin: 24px 0;
  background: var(--gray-50);
  color: var(--text-secondary);
}
.article-content table {
  width: 100%; border-collapse: collapse;
  margin: 24px 0;
}
.article-content table th, .article-content table td {
  border: 1px solid var(--border);
  padding: 8px 12px;
}

/* Tags */
.article-tags {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.tags-label { font-size: 13px; color: var(--text-muted); }
.tag-item {
  padding: 4px 12px; border: 1px solid var(--border);
  border-radius: 20px; font-size: 12px;
  color: var(--text-secondary);
  transition: all 150ms;
}
.tag-item:hover { border-color: var(--primary); color: var(--primary); }

/* Prev/Next nav */
.article-nav {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
}
.article-nav-prev, .article-nav-next {
  font-size: 14px; color: var(--text-secondary);
  padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 4px; transition: all 150ms;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.article-nav-prev:hover, .article-nav-next:hover {
  border-color: var(--primary); color: var(--primary);
}

/* ============================================
   LEADER GRID
   ============================================ */
.leader-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.leader-card {
  text-align: center; padding: 32px 24px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 300ms;
}
.leader-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.leader-photo {
  width: 120px; height: 150px; margin: 0 auto 16px;
  border-radius: 4px; overflow: hidden;
  background: var(--gray-100);
}
.leader-photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-name {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 700; margin-bottom: 8px;
}
.leader-name a:hover { color: var(--primary); }
.leader-title {
  font-size: 13px; color: var(--text-muted); line-height: 1.6;
}

/* ============================================
   SINGLE PAGE
   ============================================ */
.single-page-section { padding: 60px 0; background: var(--bg); }
.single-page-wrap {
  display: grid; grid-template-columns: 1fr 300px; gap: 48px;
}
.single-page-body-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 48px;
}
.single-page-empty {
  text-align: center; padding: 60px 0;
  color: var(--text-muted); font-size: 15px;
}

/* ============================================
   GALLERY CHANNEL
   ============================================ */
.main-content-full {
  grid-column: 1 / -1;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: all 300ms;
  text-decoration: none;
  color: inherit;
}
.gallery-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.gallery-card-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gray-100);
}
.gallery-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms;
}
.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
}
.gallery-placeholder svg {
  width: 48px;
  height: 48px;
}
.gallery-card:hover .gallery-card-img img {
  transform: scale(1.05);
}
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 300ms;
}
.gallery-card:hover .gallery-card-overlay {
  background: rgba(0, 0, 0, 0.3);
}
.gallery-zoom-icon {
  width: 32px;
  height: 32px;
  color: #fff;
  opacity: 0;
  transform: scale(0.8);
  transition: all 300ms;
}
.gallery-card:hover .gallery-zoom-icon {
  opacity: 1;
  transform: scale(1);
}
.gallery-card-info {
  padding: 16px;
}
.gallery-card-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-card-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-card-date {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ============================================
   IMAGE DETAIL
   ============================================ */
.image-detail-section {
  padding: 0 0 60px;
}
.image-detail-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}
.image-detail-main {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.image-detail-hero {
  width: 100%;
  background: var(--gray-100);
}
.image-detail-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.image-detail-info {
  padding: 32px 40px;
}
.image-detail-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--text);
}
.image-detail-meta {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.image-detail-summary {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding: 16px 20px;
  margin-bottom: 24px;
  background: var(--gray-50);
  border-left: 3px solid var(--primary);
  border-radius: 0 4px 4px 0;
}
.image-detail-content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
}
.image-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 16px 0;
}
.image-detail-content p {
  margin-bottom: 16px;
}

/* Image gallery within detail */
.image-detail-gallery {
  margin: 32px 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.gallery-sub-heading {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}
.image-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.image-gallery-item {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: var(--gray-100);
  cursor: pointer;
}
.image-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms;
}
.image-gallery-item:hover img {
  transform: scale(1.05);
}

.back-to-gallery {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.btn-back {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 150ms;
}
.btn-back:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================
   NEWS CONTENT WRAP (carousel + sidebar list)
   ============================================ */
.news-content-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  min-height: 420px;
}

.news-featured-carousel {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/9;
  min-height: 280px;
  background: var(--gray-100);
}

.news-featured-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.news-featured-item.active { opacity: 1; }
.news-featured-item img {
  width: 100%; height: 100%; object-fit: cover;
}
.news-featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px;
}
.news-featured-date {
  display: inline-flex; align-items: center; gap: 4px;
  width: fit-content; padding: 4px 12px;
  background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 600;
  margin-bottom: 12px; border-radius: 2px;
}
.news-featured-overlay h3 {
  font-family: var(--font-serif);
  font-size: 24px; font-weight: 700; color: #fff;
  line-height: 1.4; margin-bottom: 8px;
}
.news-featured-overlay h3 a:hover { color: rgba(255,255,255,0.85); }

.news-featured-carousel .carousel-nav {
  position: absolute; bottom: 16px; right: 24px;
  display: flex; gap: 8px; z-index: 5;
}
.news-featured-carousel .carousel-dot {
  width: 28px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.35); cursor: pointer;
  transition: all 0.3s; border: none; padding: 0;
}
.news-featured-carousel .carousel-dot.active {
  background: #fff; width: 36px;
}

/* News list side */
.news-list-side {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
}
.news-list-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: all 200ms;
  cursor: pointer;
}
.news-list-item:first-child { padding-top: 0; }
.news-list-item:last-child { border-bottom: none; }
.news-list-item:hover { padding-left: 8px; }
.news-list-item:hover .news-num { color: var(--primary); }
.news-list-item:hover h4 { color: var(--primary); }
.news-num {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 700; color: var(--border);
  line-height: 1; min-width: 28px; flex-shrink: 0;
  transition: color 200ms;
}
.news-info { flex: 1; }
.news-info h4 {
  font-size: 14px; font-weight: 600; line-height: 1.4;
  margin-bottom: 6px; transition: color 200ms;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.news-date {
  font-size: 12px; color: var(--text-muted);
}

/* ============================================
   NOTICE SECTION
   ============================================ */
.notice-section { padding: 48px 0; background: var(--bg-warm); }
.notice-list {
  margin-top: 32px;
  display: flex; flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.notice-item {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  transition: all 200ms;
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { background: var(--gray-50); padding-left: 32px; }
.notice-item:hover .notice-title { color: var(--primary); }
.notice-item:hover .notice-arrow { color: var(--primary); transform: translateX(4px); }

.notice-date-badge {
  display: flex; flex-direction: column; align-items: center;
  min-width: 56px; flex-shrink: 0;
  background: var(--bg-warm);
  border-radius: 4px; padding: 8px 4px;
  text-align: center;
  transition: all 200ms;
}
.notice-item:hover .notice-date-badge { background: var(--primary); color: #fff; }
.notice-day {
  font-family: var(--font-serif);
  font-size: 24px; font-weight: 700; line-height: 1;
  color: var(--text);
  transition: color 200ms;
}
.notice-item:hover .notice-day { color: #fff; }
.notice-month {
  font-size: 11px; color: var(--text-muted);
  margin-top: 2px;
  transition: color 200ms;
}
.notice-item:hover .notice-month { color: rgba(255,255,255,0.7); }

.notice-title {
  flex: 1; font-size: 15px; font-weight: 500;
  line-height: 1.4; color: var(--text);
  transition: color 200ms;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.notice-arrow {
  font-size: 18px; color: var(--text-muted);
  transition: all 200ms;
}

/* ============================================
   STUDENT SECTION
   ============================================ */
.student-section { padding: 48px 0; background: var(--bg); }
.student-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.student-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: all 300ms;
  text-decoration: none;
  color: inherit;
}
.student-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.student-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-100);
}
.student-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms var(--ease);
}
.student-card:hover .student-card-img img { transform: scale(1.05); }
.student-card-info {
  padding: 16px;
}
.student-card-info h4 {
  font-size: 14px; font-weight: 600; line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  transition: color 200ms;
}
.student-card:hover .student-card-info h4 { color: var(--primary); }
.student-date {
  font-size: 12px; color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .explore-grid { grid-template-columns: repeat(3, 1fr); }
  .explore-card:nth-child(4), .explore-card:nth-child(5) {
    grid-column: span 1;
  }
  .explore-card:nth-child(5) { grid-column: 2 / 3; }
  .core-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .channel-wrap, .article-detail-wrap, .single-page-wrap, .image-detail-wrap {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .news-content-wrap { grid-template-columns: 1fr; }
  .news-featured-carousel { min-height: 200px; }
  .student-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .header-nav { display: none; }
  .header-actions { display: none; }
  .menu-toggle { display: flex; }
  .header-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 16px;
    box-shadow: var(--shadow-lg); z-index: 100;
  }
  .header-nav.open .nav-item { padding: 12px 16px; flex: none; text-align: left; }
  .coop-asym { grid-template-columns: 1fr; }
  .coop-side { padding: 32px; }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .interact-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .achieve-mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic-1, .mosaic-2, .mosaic-3, .mosaic-4, .mosaic-5, .mosaic-6 {
    grid-column: auto; grid-row: auto;
  }
  .news-featured-wrap { grid-template-columns: 1fr; height: auto; }
  .featured-carousel { aspect-ratio: 16/9; height: auto; }
  .featured-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; height: auto; overflow: visible; }
  .leader-grid { grid-template-columns: repeat(2, 1fr); }
  .major-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .header-top { flex-direction: column; height: auto; gap: 12px; padding: 12px 0; }
  .header-actions { width: 100%; justify-content: center; }
  .search-bar { flex: 1; }
  .search-bar input { width: 120px; }
  .header-nav { flex-wrap: wrap; }
  .header-nav .nav-item { flex: 0 0 33.33%; font-size: 14px; }
  .dept-name { font-size: 16px; }
  .school-logo-img { height: 36px; }
  .explore-grid { grid-template-columns: 1fr 1fr; }
  .core-grid { grid-template-columns: 1fr; }
  .news-list-editorial { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .interact-row { grid-template-columns: 1fr; gap: 12px; }
  .footer-main { grid-template-columns: 1fr; }
  .article-detail { padding: 24px; }
  .leader-grid { grid-template-columns: 1fr; }
  .major-grid { grid-template-columns: 1fr; }
  .featured-sidebar { grid-template-columns: 1fr; }
  .student-grid { grid-template-columns: repeat(2, 1fr); }
  .notice-item { padding: 16px 16px; }
  .slide-text { left: 5%; max-width: 85%; bottom: 10%; }
  .slide-text h2 { font-size: 28px; letter-spacing: 3px; }
  .slide-text p { font-size: 15px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
  .image-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .image-detail-info { padding: 24px; }
  .image-detail-title { font-size: 22px; }
}
@media (max-width: 480px) {
  .hero-banner { height: 50vh; min-height: 300px; }
  .slide-text h2 { font-size: 20px; letter-spacing: 2px; line-height: 1.3; }
  .slide-text p { font-size: 12px; letter-spacing: 1px; }
  .nav-left { gap: 0; }
  .nav-item > a, a.nav-item { font-size: 14px; letter-spacing: 1px; }
  .nav-search { display: none; }
  .core-panel { padding: 24px; }
  .article-detail { padding: 16px; }
  .article-title { font-size: 20px; line-height: 1.4; }
  .article-content { font-size: 15px; line-height: 1.8; }
  .student-grid { grid-template-columns: 1fr; }
  .news-featured-overlay h3 { font-size: 18px; }
  /* Page hero smaller */
  .page-hero { padding: 60px 0 32px; }
  .page-hero h1 { font-size: 20px; }
  /* Gallery images smaller */
  .gallery-card-img { height: 140px; }
  /* Notice list compact */
  .notice-item { padding: 12px; }
  .notice-date { font-size: 12px; }
  /* Footer compact */
  .footer-bottom { text-align: center; font-size: 12px; }
  /* Section titles smaller */
  .section-title { font-size: 18px; }
  .section-title::after { width: 40px; }
  /* Touch-friendly buttons */
  .btn { min-height: 44px; }
  /* Lighter card shadows */
  .major-card, .news-card { box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

  /* ===== Mobile comprehensive overflow protection ===== */
  html, body { overflow-x: hidden !important; }
  .container, .inner { width: 100% !important; max-width: none !important; padding: 0 16px !important; box-sizing: border-box !important; }
  .header-wrap, .header { width: 100% !important; left: 0 !important; right: 0 !important; }
  .header-nav { display: flex !important; }
  .article-content img, .article-content table, .article-content pre { max-width: 100% !important; height: auto !important; }
  .article-content { word-wrap: break-word !important; overflow-wrap: break-word !important; }
}
