/* ========== Reset & Base ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background: #f5f7fa;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color .25s; }
img { display: block; max-width: 100%; }
.container { width: 1200px; margin: 0 auto; }

/* ========== Header / Navigation ========== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
  transition: background .3s;
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 52px; width: auto; display: block; }
.logo-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, #880721, #880721);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px;
}
.logo-text { font-size: 20px; font-weight: 700; color: #242220; }
.logo-text span { color: #880721; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  padding: 8px 18px; border-radius: 8px; font-size: 15px; font-weight: 500;
  color: #555; transition: all .25s;
}
.nav a:hover, .nav a.active { color: #880721; background: rgba(136,7,33,.08); }

.header-right { display: flex; align-items: center; gap: 16px; }
.btn-login {
  padding: 10px 28px; border-radius: 8px; font-size: 14px; font-weight: 600;
  background: linear-gradient(135deg, #880721, #6e061b);
  color: #fff; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(136,7,33,.35); }

/* ========== Mobile Menu Toggle ========== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: all .3s;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== Mobile Menu ========== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100vh - 60px);
  background: #fff;
  z-index: 1001;
  padding: 20px;
  overflow-y: auto;
  box-sizing: border-box;
}
.mobile-menu.active {
  display: flex;
  flex-direction: column;
}
.mobile-menu .nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu .nav a {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.mobile-menu-footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}
.mobile-menu-footer .btn-login {
  width: 100%;
  text-align: center;
}

/* ========== Hero Banner ========== */
/* 固定顶部导航的占位偏移 */
.banner { margin-top: 72px; }

.btn-primary {
  padding: 14px 36px; border-radius: 10px; font-size: 16px; font-weight: 700;
  background: linear-gradient(135deg, #880721, #5a0515);
  color: #fff; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(136,7,33,.4); }

/* ========== Section Common ========== */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: 34px; font-weight: 800; color: #242220;
  margin-bottom: 12px;
}
.section-header h2 span { color: #880721; }
.section-header p { font-size: 16px; color: #888; max-width: 520px; margin: 0 auto; }
.section-line {
  width: 60px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, #880721, #880721);
  margin: 16px auto 0;
}

/* ========== Event Intro (two columns) ========== */
.event-intro { background: #fff; }
.event-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.event-image {
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
  position: relative;
}
.event-image img { width: 100%; height: 380px; object-fit: cover; }
.event-image .overlay-tag {
  position: absolute; top: 16px; left: 16px;
  padding: 6px 14px; border-radius: 6px;
  background: rgba(136,7,33,.9); color: #fff;
  font-size: 12px; font-weight: 700;
}
.event-info h3 { font-size: 26px; font-weight: 700; color: #242220; margin-bottom: 16px; }
.event-info p { font-size: 15px; color: #666; line-height: 1.8; margin-bottom: 20px; }
.event-details { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.event-detail-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: #555;
}
.event-detail-item .icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(136,7,33,.1); color: #880721;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.btn-more {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 8px;
  background: linear-gradient(135deg, #880721, #6e061b);
  color: #fff; font-size: 14px; font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.btn-more:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(136,7,33,.35); }

/* ========== Event Highlights ========== */
.highlights { background: #f5f7fa; }
.highlights-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.highlight-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
}
.highlight-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,.12); }
.highlight-card .card-img {
  height: 200px; overflow: hidden;
}
.highlight-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.highlight-card:hover .card-img img { transform: scale(1.06); }
.highlight-card .card-body { padding: 24px; }
.highlight-card .card-tag {
  display: inline-block; padding: 4px 10px; border-radius: 4px;
  background: rgba(136,7,33,.1); color: #880721;
  font-size: 12px; font-weight: 600; margin-bottom: 10px;
}
.highlight-card h4 { font-size: 18px; font-weight: 700; color: #242220; margin-bottom: 8px; }
.highlight-card p { font-size: 13px; color: #888; line-height: 1.7; }

/* ========== News Section ========== */
.news { background: #fff; }
.news-top {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 40px;
}
.news-top .section-header { text-align: left; margin-bottom: 0; }
.news-top .section-header .section-line { margin: 16px 0 0; }
/* 标题左侧红色竖条（参考站排版） */
.news-top .section-header h2 { position: relative; padding-left: 16px; }
.news-top .section-header h2::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 4px; height: .92em; background: #880721;
}
.btn-view-all {
  padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 600;
  border: 1.5px solid #ddd; color: #555; background: transparent;
  cursor: pointer; transition: all .25s;
}
.btn-view-all:hover { border-color: #880721; color: #880721; }

.news-grid { display: block; }

/* 首条：浅灰底，左图右文 */
.news-featured {
  display: flex; background: #f2f2f2; text-decoration: none;
  margin-bottom: 40px;
}
.news-featured .featured-media { width: 50%; flex: none; overflow: hidden; }
.news-featured .featured-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s;
}
.news-featured:hover .featured-media img { transform: scale(1.04); }
.news-featured .featured-body {
  width: 50%; padding: 40px 44px;
  display: flex; flex-direction: column; justify-content: center;
}
.news-featured h3 {
  font-size: 28px; font-weight: 800; line-height: 1.35;
  color: #242220; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-featured:hover h3 { color: #880721; }
.news-featured p {
  font-size: 14px; line-height: 1.8; color: #666; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-date { display: block; font-size: 12px; color: #999; }

/* 其余：四列扁平列表 */
.news-list-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px;
}
.news-item { display: block; text-decoration: none; }
.news-item .item-img {
  position: relative; padding-bottom: 62%; overflow: hidden;
  background: #f2f2f2; margin-bottom: 14px;
}
.news-item .item-img img {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; transition: transform .4s;
}
.news-item:hover .item-img img { transform: scale(1.05); }
.news-item .news-date { margin-bottom: 8px; }
.news-item h4 {
  font-size: 15px; font-weight: 700; line-height: 1.55; color: #242220;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-item:hover h4 { color: #880721; }
.news-card {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  background: #fff; border: 1px solid #f0f0f0;
  transition: transform .3s, box-shadow .3s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.1); }
.news-card .card-img { height: 160px; overflow: hidden; }
.news-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .card-img img { transform: scale(1.05); }
.news-card .card-body { padding: 18px; }
.news-card .card-date { font-size: 12px; color: #aaa; margin-bottom: 8px; }
.news-card h4 {
  font-size: 15px; font-weight: 700; color: #242220;
  margin-bottom: 8px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card p {
  font-size: 13px; color: #999; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ========== Event Handbook / Timeline ========== */
.handbook { background: #f5f7fa; }
.handbook-list { display: flex; flex-direction: column; gap: 20px; max-width: 900px; margin: 0 auto; }
.handbook-item {
  display: flex; align-items: center; gap: 24px;
  background: #fff; border-radius: 12px; padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}
.handbook-item:hover { transform: translateX(6px); box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.handbook-item .item-num {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, #880721, #880721);
  color: #fff; font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.handbook-item .item-content { flex: 1; }
.handbook-item h4 { font-size: 16px; font-weight: 700; color: #242220; margin-bottom: 4px; }
.handbook-item p { font-size: 13px; color: #999; }
.handbook-item .item-date { font-size: 13px; color: #bbb; white-space: nowrap; }
.handbook-item .item-arrow {
  font-size: 18px; color: #ccc; transition: color .25s, transform .25s;
}
.handbook-item:hover .item-arrow { color: #880721; transform: translateX(4px); }

/* ========== Stats Banner ========== */
.stats-banner {
  padding: 64px 0;
  background: linear-gradient(135deg, #880721, #5a0515);
  color: #fff;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center;
}
.stat-item .stat-num { font-size: 42px; font-weight: 800; }
.stat-item .stat-label { font-size: 14px; color: rgba(255,255,255,.75); margin-top: 8px; }

/* ========== Footer ========== */
.footer {
  background: #880721; color: rgba(255,255,255,.7); padding: 0;
}
.footer-main {
  padding: 48px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px;
}
.footer-brand { }
.footer-brand .logo-text {
  color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.footer-brand .logo-text .logo-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, #880721, #880721);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px;
}
.footer-brand .logo-text .footer-logo {
  height: 52px; width: auto; display: block;
}
.footer-brand .logo-text span { color: #c4505f; }
.footer-brand .desc {
  font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.55);
  margin-bottom: 20px;
}
.footer-contact { }
.footer-contact .contact-item {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; font-size: 13px;
}
.footer-contact .contact-item .icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(136,7,33,.15); color: #c4505f;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.footer-qrcode { }
.footer-qrcode h5 {
  font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 18px;
  position: relative; padding-bottom: 12px;
}
.footer-qrcode h5::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 30px; height: 2px; background: #880721; border-radius: 1px;
}
.qrcode-box {
  display: flex; gap: 24px;
}
.qrcode-item {
  text-align: center;
}
.qrcode-item .qr-img {
  width: 130px; height: 130px; border-radius: 10px;
  background: #fff; padding: 8px; margin-bottom: 10px;
}
.qrcode-item .qr-img img {
  width: 100%; height: 100%; object-fit: contain;
}
.qrcode-item .qr-label {
  font-size: 12px; color: rgba(255,255,255,.5);
}
.footer-bottom {
  padding: 20px 0; text-align: center; font-size: 12px;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); transition: color .25s; }
.footer-bottom a:hover { color: #c4505f; }

/* ========== Animations ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .7s ease both; }
.fade-up-d1 { animation-delay: .1s; }
.fade-up-d2 { animation-delay: .2s; }
.fade-up-d3 { animation-delay: .3s; }

/* ========== User Dropdown ========== */
.user-dropdown { position: relative; }
.user-trigger {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; padding: 6px 12px; border-radius: 8px;
  transition: background .25s;
}
.user-trigger:hover { background: rgba(136,7,33,.08); }
.user-trigger .user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #880721, #880721);
  color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.user-trigger .user-name-text { font-size: 14px; font-weight: 600; color: #333; }
.user-trigger .dropdown-arrow { font-size: 12px; color: #999; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; right: 0;
  min-width: 160px; background: #fff; border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12); padding: 8px 0;
  z-index: 1001;
}
.dropdown-menu.show { display: block; }
.dropdown-menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; font-size: 14px; color: #333;
  transition: background .2s;
}
.dropdown-menu a:hover { background: #f5f5f5; color: #880721; }
.dropdown-divider { height: 1px; background: #f0f0f0; margin: 4px 0; }
.logout-link { color: #e53e3e !important; }

/* 移动端用户信息 */
.mobile-user-info {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 0; margin-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.mobile-user-info .user-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #880721, #880721);
  color: #fff; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu-link {
  display: block; padding: 14px 16px; font-size: 16px;
  border-bottom: 1px solid #f0f0f0; color: #333;
}
.mobile-menu-link:hover { color: #880721; }

/* ========== Responsive - Tablet/Laptop ========== */
/* 1000-1240px 区间：容器改为自适应，避免固定 1200px 溢出 */
@media (max-width: 1240px) {
  .container { width: auto; padding: 0 20px; }
}

@media (max-width: 999px) {
  .container { width: 100%; max-width: 900px; padding: 0 20px; box-sizing: border-box; }
  .section { padding: 60px 0; }
  .section-header h2 { font-size: 28px; }
  .event-grid { grid-template-columns: 1fr; gap: 32px; }
  .event-image img { height: 280px; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .news-list-grid { grid-template-columns: repeat(2, 1fr); }
  .news-featured .featured-body { padding: 28px; }
  .news-featured h3 { font-size: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-item .stat-num { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-qrcode { margin-top: 24px; }
}

/* ========== Responsive - Tablet ========== */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .header .container { height: 60px; }
  .header > .container > .nav { display: none; }
  .menu-toggle { display: flex; }
  .header-right .btn-login { display: none; }
  .btn-primary { width: 100%; text-align: center; }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: 24px; }
  .section-header p { font-size: 14px; }
  .highlights-grid { grid-template-columns: 1fr; }
  .news-list-grid { grid-template-columns: 1fr; }
  .news-featured { flex-direction: column; }
  .news-featured .featured-media { width: 100%; }
  .news-featured .featured-media img { height: 220px; }
  .news-featured .featured-body { width: 100%; padding: 24px; }
  .news-featured h3 { font-size: 21px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-item .stat-num { font-size: 28px; }
  .stat-item .stat-label { font-size: 13px; }
  .handbook-item { padding: 16px 20px; gap: 16px; }
  .handbook-item .item-num { width: 40px; height: 40px; font-size: 16px; }
  .handbook-item h4 { font-size: 14px; }
  .handbook-item .item-date { display: none; }
  .footer-main { padding: 32px 0; }
  .footer-brand .desc { font-size: 12px; }
  .qrcode-box { flex-wrap: wrap; gap: 16px; }
  .qrcode-item .qr-img { width: 100px; height: 100px; }
  .footer-bottom { font-size: 11px; padding: 16px 0; }
}

/* ========== Responsive - Mobile ========== */
@media (max-width: 576px) {
  .section { padding: 36px 0; }
  .section-header h2 { font-size: 20px; }
  .news-featured .featured-body { padding: 20px; }
  .news-featured h3 { font-size: 19px; }
  .news-featured p { font-size: 13px; -webkit-line-clamp: 3; }
  .news-item h4 { font-size: 14px; }
  .news-list-grid { gap: 22px 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item .stat-num { font-size: 24px; }
  .stat-item .stat-label { font-size: 12px; }
  .handbook-list { gap: 12px; }
  .qrcode-item .qr-img { width: 80px; height: 80px; }
  .qrcode-item .qr-label { font-size: 11px; }
}
