/* 大国营造 · 全局样式 + 首页 — 水墨淡彩 + 中国古代建筑主题 */

/* ══════════════════════════════════════════
   CSS 变量
══════════════════════════════════════════ */
:root {
  --c-palace: #c23a2b;
  --c-government: #2d4a5e;
  --c-folk: #5b8a72;
  --c-bridge: #8b8680;
  --bg-paper: #f7f5f0;
  --bg-card: #ede8de;
  --ink: #1a1a1a;
  --ink-muted: #5c5854;
  --gold: #d4a84b;
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", sans-serif;
  /* 顶栏统一高度：容纳两行主标题 + 副标题，避免子页与首页切换时「跳变」 */
  --header-h: 5rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ══════════════════════════════════════════
   重置与全局
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg-paper);
}

/* 水墨纹理背景 */
#ink-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none; /* 确保不会干扰页面交互 */
  opacity: 0.45;
}

main {
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════
   通用 section-head
══════════════════════════════════════════ */
.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.08em;
}

.section-head p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.section-head p a {
  color: var(--c-government);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.section-head p a:hover {
  opacity: 0.85;
}

/* 用户信息样式 */
.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding-left: 1rem;
  border-left: 1px solid rgba(26, 26, 26, 0.1);
  flex-shrink: 0;
}

.welcome-text {
  font-size: 0.85rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px; /* 限制宽度，避免过长邮箱挤压其他元素 */
}

.logout-btn {
  font-size: 0.85rem;
  color: var(--c-gov);
  text-decoration: none;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.logout-btn:hover {
  background-color: rgba(45, 74, 94, 0.1);
}


@media (min-width: 900px) {
  .site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav-items {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  .site-nav a {
    flex-shrink: 0;
    padding: 0.38rem 0.8rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* 导航项容器 */
.nav-items {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════
   Header
══════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
  min-height: var(--header-h);
  padding: 0.5rem clamp(1rem, 4vw, 2.5rem);
  box-sizing: border-box;
  background: rgba(247, 245, 240, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 1 auto;
  min-width: 0;
}

/* 子页：Logo + 标题整块可点回首页 */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.12);
  object-fit: contain;
  background: transparent;
  font-size: unset;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  letter-spacing: 0.04em;
}

/* 顶栏主标题：水墨山河 / 大国营造 */
.brand-title-hero {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.15;
}

.brand-title-line {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  letter-spacing: 0.08em;
  color: var(--ink);
}

.brand-title-accent {
  color: var(--c-palace);
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.site-nav {
  display: none;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s var(--ease-out), color 0.2s;
}

.site-nav a:hover {
  background: rgba(212, 168, 75, 0.15);
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 11; /* 确保在导航栏之上 */
  display: block; /* 确保显示 */
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease-out);
}

.nav-toggle::before { top: 0.85rem; }
.nav-toggle::after  { bottom: 0.85rem; }

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 9; /* 低于汉堡菜单的 z-index: 11 */
  display: none;
  flex-direction: column;
  padding: 1rem;
  background: rgba(247, 245, 240, 0.97);
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.06);
}

.mobile-nav[hidden] { display: none; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  /* 其他样式保持不变 */
}

.mobile-nav a {
  padding: 0.75rem 1rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 8px;
}

.mobile-nav a:hover { background: rgba(212, 168, 75, 0.12); }

/* ══════════════════════════════════════════
   Footer
══════════════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem clamp(1rem, 4vw, 2.5rem);
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-muted);
  border-top: 1px solid rgba(26, 26, 26, 0.06);
}

.site-footer a {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--c-gov);
  text-decoration: none;
}

/* ══════════════════════════════════════════
   返回顶部按钮
══════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(45, 74, 94, 0.8);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: rgba(45, 74, 94, 1);
  transform: translateY(-5px);
}

/* ══════════════════════════════════════════
   Hero 全屏轮播区
══════════════════════════════════════════ */
.hero-carousel {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.carousel-track {
  position: absolute;
  inset: 0;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

a.carousel-slide {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a.carousel-slide:hover .carousel-cta {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
}

.carousel-slide.active { 
  opacity: 1; 
  pointer-events: auto; 
}

.carousel-slide.active .ink-cd-bg {
  position: absolute;
  background: url("../img/ink.png") no-repeat center/cover;
  transform: translateY(-50%) translateX(-50%) scale(0);
  will-change: transform;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,26,26,0.15) 0%,
    rgba(26,26,26,0.3) 40%,
    rgba(26,26,26,0.65) 100%
  );
}

.carousel-caption {
  position: absolute;
  bottom: clamp(4rem, 8vw, 7rem);
  left: clamp(1.5rem, 5vw, 4rem);
  z-index: 3;
  color: #fff;
  animation: fade-up 0.9s cubic-bezier(0.22,1,0.36,1) 0.3s both;
}

.carousel-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  opacity: 0.4;
  margin-bottom: 0.25rem;
  letter-spacing: 0.1em;
}

.carousel-slide h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.carousel-slide p {
  margin: 0;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  opacity: 0.85;
  max-width: 36em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.carousel-cta {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: clamp(0.78rem, 1.2vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.15);
  text-shadow: none;
  transition: background 0.25s, border-color 0.25s;
}

.carousel-dots {
  position: absolute;
  bottom: clamp(1.5rem, 3vw, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.6rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}

.dot.active { background: #fff; transform: scale(1.3); }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 3rem;
  height: 3rem;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow:hover { background: rgba(255,255,255,0.3); }
.carousel-prev { left:  clamp(1rem, 3vw, 2rem); }
.carousel-next { right: clamp(1rem, 3vw, 2rem); }

/* ══════════════════════════════════════════
   四大建筑分类（重新设计，带图卡片）
══════════════════════════════════════════ */
.arch-types {
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2.5rem);
  max-width: 80rem;
  margin: 0 auto;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.type-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s;
}

.type-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px rgba(26,26,26,0.25);
}

.type-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}

.type-card:hover .type-bg { transform: scale(1.07); }

.type-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,26,26,0.88) 0%,
    rgba(26,26,26,0.4) 45%,
    rgba(26,26,26,0.05) 100%
  );
}

.type-content {
  position: relative;
  z-index: 2;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.type-num {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  opacity: 0.65;
  text-transform: uppercase;
}

.type-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.type-content p {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.8;
}

.type-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}

.type-card:hover .type-link {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════
   课程学习板块
══════════════════════════════════════════ */
.study-section {
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2.5rem);
  background: var(--bg-card);
  border-top: 1px solid rgba(26,26,26,0.06);
  border-bottom: 1px solid rgba(26,26,26,0.06);
}

.study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 80rem;
  margin: 0 auto;
  align-items: stretch;
}

.study-card {
  background: var(--bg-paper);
  border-radius: 14px;
  padding: 1.75rem;
  border: 1px solid rgba(26,26,26,0.07);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  box-shadow: 0 2px 12px rgba(26,26,26,0.05);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.study-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}

.study-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(26,26,26,0.1);
}

/* 与 .tour-icon-wrap 一致：卡片内靠左，图标在文案上方 */
.study-icon-wrap {
  flex-shrink: 0;
  color: var(--accent);
  align-self: flex-start;
}

.study-icon-wrap img,
.study-icon-wrap svg {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.study-body {
  flex: 1;
  min-width: 0;
}

.study-card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.study-card p {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.study-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.study-tags span {
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  background: rgba(26,26,26,0.06);
  border-radius: 999px;
  color: var(--ink-muted);
}

.study-btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.55rem 1.1rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.25s, transform 0.25s;
}

.study-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* ══════════════════════════════════════════
   趣味互动 / 游览板块
══════════════════════════════════════════ */
.tour-section {
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2.5rem);
  max-width: 80rem;
  margin: 0 auto;
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.tour-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 1.75rem;
  border: 1px solid rgba(26,26,26,0.07);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  box-shadow: 0 2px 12px rgba(26,26,26,0.05);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.tour-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}

.tour-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(26,26,26,0.1);
}

/* 与课程学习区一致：左侧图标 + 右侧标题与正文 */
.study-card-top,
.tour-card-top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.tour-icon-wrap {
  color: var(--accent);
  flex-shrink: 0;
  align-self: flex-start;
}

.tour-icon-wrap svg {
  display: block;
}

.tour-body {
  flex: 1;
  min-width: 0;
}

.tour-card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.tour-card p {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.tour-note {
  font-size: 0.75rem;
  color: var(--ink-muted);
  padding: 0.5rem 0.75rem;
  background: rgba(26,26,26,0.05);
  border-radius: 6px;
  margin-top: 0.5rem;
}

.tour-btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.55rem 1.1rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.25s, transform 0.25s;
}

.tour-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* ══════════════════════════════════════════
   最新资讯板块
══════════════════════════════════════════ */
.news-section {
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2.5rem);
  background: var(--bg-card);
  border-top: 1px solid rgba(26,26,26,0.06);
}

.news-scroll-wrap {
  max-width: 60rem;
  margin: 0 auto;
}

.news-scroll {
  display: flex;
  flex-direction: column;
  gap: 0;
}

a.news-item {
  display: flex;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(26,26,26,0.06);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.25s;
}

a.news-item:hover {
  background-color: rgba(26,26,26,0.02);
}

.news-item time {
  flex-shrink: 0;
  width: 80px;
  padding: 0.5rem;
  background: var(--bg-paper);
  border-radius: 8px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-gov);
  letter-spacing: 0.05em;
  margin-right: 1.5rem;
  border: 1px solid rgba(26,26,26,0.06);
}

.news-item-content {
  flex: 1;
}

.news-item h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--ink);
}

.news-item p {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.news-item-more {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-government);
  letter-spacing: 0.04em;
}

a.news-item:hover .news-item-more {
  color: var(--c-palace);
}

.news-item-more-search {
  border-bottom: none !important;
  justify-content: center;
  background: var(--bg-paper);
  border-radius: 12px;
  margin-top: 1rem;
  padding: 1.5rem !important;
  border: 1px solid rgba(26,26,26,0.06);
}
.news-item-more-search:hover {
  background: var(--bg-paper) !important;
  box-shadow: 0 6px 20px rgba(26,26,26,0.08);
  border-color: rgba(26, 26, 26, 0.12);
}

/* ══════════════════════════════════════════
   响应式
══════════════════════════════════════════ */
@media (min-width: 900px) {
  .site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav-items {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
  }

  .site-nav a {
    flex-shrink: 0;
    padding: 0.38rem 0.8rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

@media (max-width: 899px) {
  .site-nav {
    display: none;
  }
  
  .nav-toggle {
    display: block;
  }
}

@media (max-width: 1024px) {
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .study-grid,
  .tour-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .type-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
  .type-card { aspect-ratio: 16 / 9; }
  .study-grid,
  .tour-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .news-scroll { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-caption,
  .type-card, .study-card, .tour-card, a.news-item {
    animation: none !important;
  }

  a.news-item:hover {
    transform: none;
  }
  .ink-cd-layer { display: none !important; }
}

/* 响应式导航栏调整 */
@media (max-width: 900px) {
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  
  .user-info {
    border-left: none;
    padding-left: 0;
    margin-top: 0.5rem;
    width: 100%;
    justify-content: flex-end;
  }
}