/* ===== CSS Variables ===== */
:root {
  --primary: #8B1A1A;
  --primary-dark: #6B1010;
  --primary-light: #A52A2A;
  --primary-hover: #B91C1C;
  --accent: #C9A961;
  --accent-light: #E0C887;
  --bg-page: #F5F3F0;
  --bg-card: #FFFFFF;
  --bg-section: #FAFAFA;
  --text-main: #2D2D2D;
  --text-body: #444444;
  --text-muted: #888888;
  --text-light: #FFFFFF;
  --border: #E8E5E0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 6px;
  --radius-lg: 12px;
  --max-width: 1400px;
  --nav-height: 56px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("images/campus.png") center center / cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== Top Bar ===== */
.top-bar { background: var(--primary-light); height: 20px; }

/* ===== Header ===== */
.site-header {
  background: var(--bg-card);
  padding: 20px 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-brand { display: flex; align-items: center; gap: 14px; }
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header-logo a {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-logo img {
  height: 64px;
  width: auto;
  display: block;
}
.header-logo img:not(:last-child) {
  margin-right: 8px;
}
.header-dept { font-size: 18px; font-weight: 600; color: var(--primary); letter-spacing: 2px; }
.brand-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}
.footer-logo .brand-divider { background: rgba(255,255,255,0.25); }
.header-search {
  display: flex;
  align-items: center;
  background: var(--bg-page);
  border: 2px solid var(--border);
  border-radius: 28px;
  padding: 6px 6px 6px 18px;
  width: 280px;
  transition: var(--transition);
}
.header-search form {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
}
.header-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,26,26,0.1); }
.header-search input {
  border: none; background: none; outline: none;
  flex: 1; font-size: 14px; color: var(--text-main);
  font-family: inherit;
}
.header-search input::placeholder { color: var(--text-muted); }
.header-search button {
  background: var(--primary);
  border: none; color: white;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.header-search button:hover { background: var(--primary-hover); }
.header-search button svg { width: 16px; height: 16px; }

/* ===== Navigation ===== */
.main-nav {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 2px 16px rgba(107,16,16,0.3);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-inner > div,
.nav-inner > div > div,
.nav-inner > div > div > div {
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-list { display: flex; height: 100%; align-items: center; margin: 0; padding: 0; list-style: none; }
.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-item > a {
  display: flex;
  align-items: center;
  padding: 0 28px;
  height: 56px;
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}
.nav-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.3s ease;
  border-radius: 3px 3px 0 0;
}
.nav-item > a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav-item > a:hover::after { width: 60%; }
.nav-item.active > a { color: #fff; }
.nav-item.active > a::after { width: 60%; }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius) var(--radius);
  border-top: 3px solid var(--accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  padding: 8px 0;
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: block;
  padding: 10px 24px;
  font-size: 14px;
  color: var(--text-body);
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.nav-dropdown a:hover {
  background: var(--bg-page);
  color: var(--primary);
  border-left-color: var(--primary);
  padding-left: 28px;
}

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; }

/**主页banner开始**/
#banner {background: #e7e2df;}
#banner .inner {width:auto;text-align: center;position:relative;}
.mbanner .focus .focus-title-bar {bottom:40px;left: 40px;margin-left:0px;}
.mbanner .focus .focus-title-bg {background-color: #000;opacity: 0.4;filter:alpha(opacity=60);}
.mbanner .focus .focus-pagination {position:absolute;right: 0px;bottom: 3px;margin-right: 0px;z-index:60;width: 100%;
    text-align: center;}
.mbanner .focus .focus-page { display:inline-block; width:18px; height:12px;  margin-right:10px;background:#fff;filter: alpha(opacity=50);
    -moz-opacity: 0.5;
    opacity: 0;}
.mbanner .focus .focus-page-active {width:50px;background: #fff;}
.mbanner .focus .focus-navigation {width:58px; height:53px; opacity: 0.7; filter:alpha(opacity=70); background:url(images/slide_next.png) no-repeat; text-indent:-999em;}
.mbanner .focus .focus-navigation:hover {opacity: 1; filter:alpha(opacity=100);}
.mbanner .focus .focus-navigation:active {opacity: 1; filter:alpha(opacity=100);}
.mbanner .focus .focus-prev { left: 30px;
    background: none;
    text-indent: 0;
    font-size: 37px;
    border-radius: 50%;
    border: 2px solid #fff;
    width: 50px;
    height: 50px;}
.mbanner .focus .focus-next { right:30px; background: none;
    text-indent: 0;
    font-size: 37px;
    border-radius: 50%;
    border: 2px solid #fff;
    width: 50px;
    height: 50px;}

/* ===== Hero Banner ===== */
.hero {
  position: relative;
  height: 380px;
  background: linear-gradient(135deg, #6B1010 0%, #8B1A1A 40%, #A52A2A 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='380' viewBox='0 0 1200 380'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.5'%3E%3Cpath d='M0,300 L100,280 L200,300 L300,260 L400,290 L500,250 L600,280 L700,240 L800,270 L900,230 L1000,260 L1100,250 L1200,270 L1200,380 L0,380 Z'/%3E%3Cpath d='M150,320 L150,220 L170,220 L170,200 L190,200 L190,180 L210,180 L210,160 L230,160 L230,140 L250,140 L250,160 L270,160 L270,180 L290,180 L290,200 L310,200 L310,220 L330,220 L330,320 Z'/%3E%3Cpath d='M450,330 L450,240 L470,240 L470,220 L490,220 L490,200 L510,200 L510,180 L530,180 L530,200 L550,200 L550,220 L570,220 L570,240 L590,240 L590,330 Z'/%3E%3Cpath d='M750,320 L750,210 L770,210 L770,190 L790,190 L790,170 L810,170 L810,150 L830,150 L830,170 L850,170 L850,190 L870,190 L870,210 L890,210 L890,320 Z'/%3E%3Cpath d='M1000,330 L1000,250 L1020,250 L1020,230 L1040,230 L1040,210 L1060,210 L1060,230 L1080,230 L1080,250 L1100,250 L1100,330 Z'/%3E%3Crect x='240' y='120' width='8' height='25'/%3E%3Crect x='530' y='160' width='8' height='25'/%3E%3Crect x='820' y='130' width='8' height='25'/%3E%3Crect x='1050' y='190' width='8' height='25'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center bottom;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(107,16,16,0.4) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 24px;
  max-width: 800px;
}
.hero-content h1 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  animation: fadeInUp 0.8s ease;
}
.hero-content .hero-sub {
  font-size: 16px;
  letter-spacing: 8px;
  opacity: 0.85;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-content .hero-desc {
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.75;
  max-width: 560px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 50%, var(--accent) 100%);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Quick Access Bar ===== */
.quick-access {
  max-width: var(--max-width);
  margin: -40px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}
.quick-item {
  padding: 15px;
  text-align: center;
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.quick-item:last-child { border-right: none; }
.quick-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.quick-item:hover { background: var(--bg-page); }
.quick-item:hover .quick-icon { transform: translateY(-4px); }
.quick-icon {
  width: 44px; height: 44px;
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: white;
  transition: var(--transition);
  overflow: hidden;
}
.quick-icon svg { width: 22px; height: 22px; }
.quick-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.quick-label { font-size: 17px; font-weight: 600; color: var(--text-main); }
.quick-en { font-size: 11px; color: var(--text-muted); margin-top: 2px; letter-spacing: 1px; }

/* ===== Main Content ===== */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
}

/* Section Title */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
  position: relative;
}
.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}
.section-title { display: flex; align-items: center; gap: 10px; }
.section-title h2 { font-size: 24px; font-weight: 700; color: var(--primary); }
.section-title .en { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; }
.section-more {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
}
.section-more:hover { color: var(--primary); gap: 8px; }
.section-more svg { width: 16px; height: 16px; }

/* ===== Headline News Section ===== */
.news-section { margin-bottom: 48px; }
.news-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.news-featured {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
  height: 380px;
}
.news-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-featured-img {
  width: 100%; height: 100%;
  background: url("images/news.png") center center / cover no-repeat, linear-gradient(135deg, #8B1A1A 0%, #A52A2A 50%, #6B1010 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.news-featured-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}
.news-featured-overlay {
  position: relative;
  z-index: 2;
  padding: 32px;
  background:linear-gradient(transparent 0%, rgba(107, 16, 16, 0.4) 70%, rgba(107, 16, 16, 0.55) 100%);
  width: 100%;
}
.news-featured-tag {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.news-featured-overlay h3 {
  color: white;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
}
.news-featured-overlay p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-featured-date {
  color: var(--accent-light);
  font-size: 13px;
  margin-top: 10px;
}

/* News List */
.news-list-wrap { display: flex; flex-direction: column; }
.news-list { display: flex; flex-direction: column; }
.news-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px dashed var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.news-item:hover { padding-left: 8px; }
.news-item:hover .news-title { color: var(--primary); }
.news-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  margin-right: 12px;
  transition: var(--transition);
}
.news-item:hover .news-dot { background: var(--primary); }
.news-title {
  flex: 1;
  font-size: 14px;
  color: var(--text-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: var(--transition);
}
.news-date {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 16px;
}

/* ===== Two Column: Service + Notices ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
  align-items: stretch;
}
.two-col > div {
  display: flex;
  flex-direction: column;
}

/* Follow JSOU Cards */
.follow-grid {
  display: grid;
  gap: 16px;
  flex: 1;
  align-items: stretch;
}
.follow-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}
.follow-card {
    padding: 30px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  list-style: none;
}
.follow-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.follow-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.follow-card:hover::before { transform: scaleX(1); }
.follow-card a {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.follow-card-qr {
  width: 72px; height: 72px;
  margin: 0 auto 14px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  color: var(--primary);
  transition: var(--transition);
  overflow: hidden;
}
.follow-card-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.follow-card-qr svg { width: 32px; height: 32px; }
.follow-card:hover .follow-card-qr {
  background: #fff;
  color: var(--primary);
  transform: scale(1.08);
}
.follow-card h4 { font-size: 15px; font-weight: 600; color: var(--text-main); margin-bottom: 4px; }
.follow-card p { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

.follow-card-link {
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.follow-card-link::after {
  content: "";
  position: absolute;
  top: 12px; right: 12px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: var(--transition);
  opacity: 0;
  transform: translate(4px, -4px);
}
.follow-card-link:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}
.follow-card-icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(139,26,26,0.06);
  color: var(--primary);
  transition: var(--transition);
}
.follow-card-icon svg { width: 28px; height: 28px; }
.follow-card-link:hover .follow-card-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  transform: scale(1.06);
}
.follow-card-arrow {
  position: absolute;
  top: 10px; right: 10px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(139,26,26,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  opacity: 0;
  transform: translate(6px, -6px);
  transition: var(--transition);
}
.follow-card-arrow svg { width: 12px; height: 12px; }
.follow-card-link:hover .follow-card-arrow {
  opacity: 1;
  transform: translate(0, 0);
  background: var(--primary);
  color: #fff;
}

/* Notice List */
.notice-list { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.notice-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
  transition: var(--transition);
  cursor: pointer;
  flex: 1;
}
.notice-item:hover { padding-left: 6px; }
.notice-item:hover .notice-title { color: var(--primary); }
.notice-date {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
  background: var(--bg-page);
  border-radius: var(--radius);
  padding: 6px 4px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.notice-item:hover .notice-date {
  background: var(--primary);
  border-color: var(--primary);
}
.notice-day { font-size: 20px; font-weight: 700; color: var(--primary); line-height: 1; transition: var(--transition); }
.notice-item:hover .notice-day { color: white; }
.notice-month { font-size: 11px; color: var(--text-muted); margin-top: 2px; transition: var(--transition); }
.notice-item:hover .notice-month { color: rgba(255,255,255,0.8); }
.notice-content { flex: 1; min-width: 0; }
.notice-title {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition);
}
.notice-year { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(135deg, #7A3838 0%, #5E2828 100%);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 0;
  margin-top: 48px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  text-align: center;
}
.footer-brand { max-width: 720px; margin: 0 auto; }
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}
.footer-logo img {
  height: 48px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.footer-dept { font-size: 16px; font-weight: 600; color: white; letter-spacing: 2px; }
.footer-desc {
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.55);
}
.footer-contact {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-contact svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.footer-copyright {
  letter-spacing: 0.5px;
}
.footer-decor {
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 50%, var(--accent) 100%);
}

/* ===== Back to Top ===== */
.back-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px; height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 50;
  border: none;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--primary-hover); transform: translateY(-4px); }
.back-top svg { width: 22px; height: 22px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .news-layout, .two-col { grid-template-columns: 1fr; }
  .header-search { width: 200px; }
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .header-search { width: 100%; order: 3; }
  .nav-toggle { display: block; }
  .nav-list { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary); flex-direction: column; }
  .nav-list.show { display: flex; }
  .nav-item { width: 100%; height: auto; }
  .nav-item > a { padding: 14px 24px; width: 100%; }
  .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(0,0,0,0.2); border: none; padding: 0; }
  .hero-content h1 { font-size: 28px; }
  .hero-content .hero-sub { font-size: 13px; letter-spacing: 4px; }
  .quick-access-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-item:nth-child(2) { border-right: none; }
  .quick-item:nth-child(1), .quick-item:nth-child(2) { border-bottom: 1px solid var(--border); }
  .follow-grid { grid-template-columns: 1fr; }
  .footer-contact { flex-direction: column; gap: 10px; }
  .back-top { bottom: 20px; right: 20px; }
}

/* ===== Page Banner (List/Detail) ===== */
.page-banner {
  background: linear-gradient(135deg, #6B1010 0%, #8B1A1A 40%, #A52A2A 100%);
  padding: 48px 24px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='380' viewBox='0 0 1200 380'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.5'%3E%3Cpath d='M0,300 L100,280 L200,300 L300,260 L400,290 L500,250 L600,280 L700,240 L800,270 L900,230 L1000,260 L1100,250 L1200,270 L1200,380 L0,380 Z'/%3E%3Cpath d='M150,320 L150,220 L170,220 L170,200 L190,200 L190,180 L210,180 L210,160 L230,160 L230,140 L250,140 L250,160 L270,160 L270,180 L290,180 L290,200 L310,200 L310,220 L330,220 L330,320 Z'/%3E%3Cpath d='M450,330 L450,240 L470,240 L470,220 L490,220 L490,200 L510,200 L510,180 L530,180 L530,200 L550,200 L550,220 L570,220 L570,240 L590,240 L590,330 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center bottom;
  opacity: 0.08;
}
.page-banner-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.page-banner h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 10px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.page-banner .banner-sub {
  font-size: 14px;
  letter-spacing: 6px;
  opacity: 0.8;
}

/* ===== Main Layout (Left Sidebar + Content) ===== */
.main-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 24px 60px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
}

/* ===== Left Sidebar ===== */
.left-sidebar {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  align-self: start;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}
.sidebar-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 22px 24px;
  text-align: center;
}
.sidebar-header .sh-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 4px;
}
.sidebar-header .sh-sub {
  font-size: 12px;
  opacity: 0.7;
  letter-spacing: 2px;
}

/* ===== Override WebPlus System Default Styles ===== */
/* 覆盖 WebPlus 系统默认的栏目列表样式 */
.sidebar-nav .wp_listcolumn,
.sidebar-nav ul.wp_listcolumn {
  padding: 0;
  margin: 0;
  list-style: none;
}
.sidebar-nav .wp_column,
.sidebar-nav li.wp_column {
  border-bottom: 1px solid var(--border);
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-nav .wp_column:last-child,
.sidebar-nav li.wp_column:last-child {
  border-bottom: none;
}
.sidebar-nav .wp_column a,
.sidebar-nav li.wp_column a,
.sidebar-nav .wp_column a.col_item_link,
.sidebar-nav li.wp_column a.col_item_link {
  display: block;
  padding: 13px 28px 13px 32px;
  font-size: 15px;
  color: var(--text-body);
  border-left: 3px solid transparent;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
  background: transparent;
  line-height: 1.6;
}
.sidebar-nav .wp_column a::before,
.sidebar-nav li.wp_column a::before,
.sidebar-nav .wp_column a.col_item_link::before,
.sidebar-nav li.wp_column a.col_item_link::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--border);
  border-radius: 50%;
  transition: var(--transition);
}
.sidebar-nav .wp_column a:hover,
.sidebar-nav li.wp_column a:hover,
.sidebar-nav .wp_column a.col_item_link:hover,
.sidebar-nav li.wp_column a.col_item_link:hover {
  background: var(--bg-section);
  color: var(--primary);
  border-left-color: var(--primary);
  text-decoration: none;
}
.sidebar-nav .wp_column a:hover::before,
.sidebar-nav li.wp_column a:hover::before,
.sidebar-nav .wp_column a.col_item_link:hover::before,
.sidebar-nav li.wp_column a.col_item_link:hover::before {
  background: var(--primary);
}
.sidebar-nav .wp_column a.active,
.sidebar-nav li.wp_column a.active,
.sidebar-nav .wp_column a.current,
.sidebar-nav li.wp_column a.current,
.sidebar-nav .wp_column a.col_item_link.active,
.sidebar-nav li.wp_column a.col_item_link.active,
.sidebar-nav .wp_column a.col_item_link.current,
.sidebar-nav li.wp_column a.col_item_link.current {
  background: rgba(139,26,26,0.06);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}
.sidebar-nav .wp_column a.active::before,
.sidebar-nav li.wp_column a.active::before,
.sidebar-nav .wp_column a.current::before,
.sidebar-nav li.wp_column a.current::before,
.sidebar-nav .wp_column a.col_item_link.active::before,
.sidebar-nav li.wp_column a.col_item_link.active::before,
.sidebar-nav .wp_column a.col_item_link.current::before,
.sidebar-nav li.wp_column a.col_item_link.current::before {
  background: var(--primary);
}
/* 子栏目样式 */
.sidebar-nav .sub_list,
.sidebar-nav ul.sub_list {
  display: none;
  padding: 0;
  margin: 0;
  list-style: none;
}
.sidebar-nav .sub_list .sub-item,
.sidebar-nav ul.sub_list li.sub-item {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-nav .sub_list .sub-item a,
.sidebar-nav ul.sub_list li.sub-item a,
.sidebar-nav .sub_list .sub-item a.sub-item-link,
.sidebar-nav ul.sub_list li.sub-item a.sub-item-link {
  display: block;
  padding: 10px 28px 10px 48px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  background: transparent;
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.sidebar-nav .sub_list .sub-item a:hover,
.sidebar-nav ul.sub_list li.sub-item a:hover,
.sidebar-nav .sub_list .sub-item a.sub-item-link:hover,
.sidebar-nav ul.sub_list li.sub-item a.sub-item-link:hover {
  color: var(--primary);
  background: var(--bg-section);
  text-decoration: none;
}
/* 栏目名称文字样式 */
.sidebar-nav .column-name,
.sidebar-nav span.column-name {
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
}

/* ===== Content Area ===== */
.content-area {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  min-height: 500px;
  display: flex;
  flex-direction: column;
}
.content-breadcrumb {
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-section);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.content-breadcrumb a { color: var(--text-muted); }
.content-breadcrumb a:hover { color: var(--primary); }
.content-breadcrumb .sep { margin: 0 8px; }
.content-breadcrumb .current { color: var(--text-body); }
.content-title-bar {
  padding: 24px 28px 20px;
  border-bottom: 2px solid var(--primary);
  position: relative;
}
.content-title-bar h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 2px;
}
.content-title-bar::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 28px;
  width: 80px;
  height: 2px;
  background: var(--accent);
}

/* Article List */
.article-list {
  flex: 1;
  padding: 8px 0;
}
.article-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px dashed var(--border);
  transition: var(--transition);
}
.article-item:last-child { border-bottom: none; }
.article-item:hover { background: var(--bg-section); }
.article-item-title {
  flex: 1;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.6;
  padding-right: 20px;
  padding-left: 16px;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.article-item-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--border);
  border-radius: 50%;
  transition: var(--transition);
}
.article-item:hover .article-item-title { color: var(--primary); }
.article-item:hover .article-item-title::before { background: var(--primary); }
.article-item-date {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 24px 28px 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-body);
  background: var(--bg-card);
  transition: var(--transition);
  padding: 0 10px;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: white; border-color: var(--primary); }
.pagination .disabled { color: var(--text-muted); cursor: not-allowed; opacity: 0.6; }

/* ===== Breadcrumb (Detail) ===== */
.breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }
.breadcrumb .current { color: var(--text-body); }

/* ===== Article Layout ===== */
.article-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px 60px;
}
.article-main {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  box-shadow: var(--shadow-sm);
}
.article-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.article-tag {
  display: inline-block;
  background: rgba(139,26,26,0.08);
  color: var(--primary);
  padding: 4px 16px;
  border-radius: 14px;
  font-size: 13px;
  margin-bottom: 16px;
}
.article-title-main {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.article-info {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.article-info .info-item { display: flex; align-items: center; gap: 6px; }
.article-info svg { width: 14px; height: 14px; }
.article-content {
  font-size: 16px;
  line-height: 2;
  color: var(--text-body);
}
.article-content p { margin-bottom: 20px; text-indent: 2em; }
.article-content h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-main);
  margin: 32px 0 18px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  text-indent: 0;
}
.article-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin: 26px 0 14px;
  text-indent: 0;
}
.article-content blockquote {
  background: var(--bg-section);
  border-left: 4px solid var(--accent);
  padding: 16px 22px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-body);
  text-indent: 0;
  font-style: italic;
}
.article-content strong { color: var(--text-main); font-weight: 600; }

/* ===== Responsive for List/Detail ===== */
@media (max-width: 1024px) {
  .main-wrap { grid-template-columns: 220px 1fr; gap: 20px; }
}
@media (max-width: 768px) {
  .main-wrap { grid-template-columns: 1fr; }
  .left-sidebar { position: static; }
  .sidebar-nav { display: flex; overflow-x: auto; padding: 8px; }
  .sidebar-nav .col_item_link { white-space: nowrap; padding: 8px 16px; border-left: none; border-bottom: 2px solid transparent; }
  .sidebar-nav .col_item_link::before { display: none; }
  .sidebar-nav .col_item_link.active, .sidebar-nav .col_item_link.current { border-bottom-color: var(--primary); border-left-color: transparent; }
  .article-item { padding: 14px 20px; }
  .article-item-title { white-space: normal; }
  .page-banner h1 { font-size: 26px; }
  .article-main { padding: 28px 20px; }
  .article-title-main { font-size: 22px; }
  .article-info { gap: 14px; }
}

/* ===== 大图轮播 (Focus Banner) ===== */
/* 添加到 template663/style.css 末尾，或单独引入此文件 */

.wrapper.mbanner {
  position: relative;
  width: 100%;
  height: 670px;
  overflow: hidden;
  background: linear-gradient(135deg, #6B1010 0%, #8B1A1A 40%, #A52A2A 100%);
}

.wrapper.mbanner .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  position: relative;
}

.wrapper.mbanner .inner.clearfix::after {
  content: '';
  display: block;
  clear: both;
}

/* 轮播视口 */
.wrapper.mbanner .focus {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* 轮播轨道 */
.focus-track {
  width: 100%;
  height: 100%;
  position: relative;
}

/* 单张轮播图 */
.focus-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.focus-slide.active {
  opacity: 1;
  z-index: 2;
}

.focus-slide a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.focus-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 图片底部渐变遮罩 + 标题 */
.focus-slide .focus-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px 40px 28px;
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 60%,
    transparent 100%);
  z-index: 3;
}

.focus-slide .focus-caption h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  margin: 0;
}

/* 左右箭头 */
.focus-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  color: #fff;
}

.focus-arrow:hover {
  background: rgba(139, 26, 26, 0.85);
  border-color: var(--accent);
}

.focus-arrow svg {
  width: 22px;
  height: 22px;
}

.focus-arrow.prev {
  left: 24px;
}

.focus-arrow.next {
  right: 24px;
}

/* 底部指示点 */
.focus-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.focus-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  padding: 0;
}

.focus-dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 5px;
}

/* 底部装饰条 */
.focus-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 50%, var(--accent) 100%);
  z-index: 11;
}

/* 无图占位（w2imgJsons 为空时） */
.focus-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.6);
}

.focus-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

/* 响应式 */
@media (max-width: 768px) {
  .wrapper.mbanner {
    height: 240px;
  }

  .focus-slide .focus-caption {
    padding: 30px 20px 16px;
  }

  .focus-slide .focus-caption h3 {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .focus-arrow {
    width: 36px;
    height: 36px;
  }

  .focus-arrow svg {
    width: 18px;
    height: 18px;
  }

  .focus-arrow.prev {
    left: 12px;
  }

  .focus-arrow.next {
    right: 12px;
  }
}

