@charset "UTF-8";
/* ============================================
   听雨轩音乐教育 - 前台样式表
   色彩：#C9A961 浅金 | #2A2520 深褐 | #F8F4ED 浅米金
   字体：Sarasa Gothic SC, Inter
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green: #C9A961;
  --green-light: #DDB87A;
  --green-dark: #A88840;
  --dark-green: #2A2520;
  --dark-green-2: #3A3328;
  --cream: #F8F4ED;
  --cream-dark: #EDE5D8;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --text: #2D3436;
  --text-light: #636E72;
  --orange: #E17055;
  --yellow: #FDCB6E;
  --blue: #74B9FF;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --container: 1200px;
  --header-h: 72px;
  --topbar-h: 36px;
}

body {
  font-family: "Sarasa Gothic SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--green); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* --- Section Title --- */
.section { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-dark { background: var(--dark-green); color: var(--white); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 12px;
}
.section-header.dark h2 { color: var(--white); }
.section-header p {
  font-size: 15px;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}
.section-header.dark p { color: rgba(255,255,255,0.7); }
.section-header .divider {
  width: 48px; height: 3px;
  background: var(--green);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* --- Top Bar --- */
.topbar {
  background: var(--dark-green);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  line-height: var(--topbar-h);
  height: var(--topbar-h);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-left { display: flex; gap: 24px; }
.topbar-left span { display: flex; align-items: center; gap: 6px; }
.topbar-right { display: flex; gap: 16px; }
.topbar-right a { display: flex; align-items: center; gap: 4px; }
.topbar-right a:hover { color: var(--white); }

/* --- Header / Navigation --- */
.header {
  background: var(--white);
  height: var(--header-h);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 40px; height: 40px;
  background: var(--green);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 20px;
}
.logo-text { font-size: 22px; font-weight: 700; color: var(--dark-green); letter-spacing: 1px; }
.logo-text .sub { font-size: 10px; color: var(--gray-400); font-weight: 400; letter-spacing: 2px; display: block; line-height: 1; }

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.nav a:hover, .nav a.active {
  color: var(--green);
  background: rgba(201,169,97,0.1);
}

.header-actions { display: flex; align-items: center; gap: 16px; }
.search-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 16px;
}
.search-toggle:hover { background: var(--green); color: var(--white); }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #A88840 0%, #C9A961 50%, #DDB87A 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -50px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.hero .container { display: flex; align-items: center; gap: 60px; position: relative; z-index: 1; }
.hero-content { flex: 1; }
.hero-content h1 { font-size: 44px; font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.hero-content h1 .accent { color: #FDCB6E; }
.hero-content .lead { font-size: 17px; line-height: 1.8; opacity: 0.9; margin-bottom: 32px; max-width: 480px; }
.hero-buttons { display: flex; gap: 16px; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stat .num { font-size: 36px; font-weight: 700; }
.hero-stat .label { font-size: 13px; opacity: 0.8; }
.hero-image {
  flex: 0 0 460px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
  backdrop-filter: blur(4px);
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  font-size: 15px; font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.btn-primary { background: var(--white); color: var(--green); }
.btn-primary:hover { background: var(--dark-green); color: var(--white); }
.btn-outline { border: 2px solid rgba(255,255,255,0.5); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--green); border-color: var(--white); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }

/* --- About Section --- */
.about-grid { display: flex; gap: 60px; align-items: center; }
.about-text { flex: 1; }
.about-text h2 { font-size: 28px; font-weight: 700; color: var(--dark-green); margin-bottom: 16px; }
.about-text p { color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }
.about-text .highlight { color: var(--green); font-weight: 600; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
.about-stat {
  background: var(--cream);
  padding: 24px;
  border-radius: var(--radius-md);
  text-align: center;
}
.about-stat .num { font-size: 32px; font-weight: 700; color: var(--green); }
.about-stat .label { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.about-image { flex: 0 0 420px; height: 320px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #E8F0E0, #E8D9B5); display: flex; align-items: center; justify-content: center; font-size: 56px; }

/* --- Course Cards --- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.course-thumb { height: 180px; background: linear-gradient(135deg, #E8D9B5, #B8D4A8); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.course-body { padding: 20px; }
.course-body .tag { display: inline-block; font-size: 11px; padding: 2px 8px; background: rgba(201,169,97,0.15); color: var(--green); border-radius: 4px; margin-bottom: 8px; }
.course-body h3 { font-size: 18px; font-weight: 600; color: var(--dark-green); margin-bottom: 8px; }
.course-body p { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 16px; }
.course-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--gray-200); }
.course-meta .price { font-size: 18px; font-weight: 700; color: var(--orange); }
.course-meta .price small { font-size: 12px; color: var(--gray-400); font-weight: 400; }
.course-meta .lessons { font-size: 12px; color: var(--gray-500); }

/* --- Teacher Cards --- */
.teacher-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.teacher-card { text-align: center; }
.teacher-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #E8D9B5, #DDB87A);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.teacher-card h3 { font-size: 18px; font-weight: 600; color: var(--dark-green); margin-bottom: 4px; }
.teacher-card .title { font-size: 13px; color: var(--green); margin-bottom: 8px; }
.teacher-card p { font-size: 12px; color: var(--text-light); line-height: 1.6; }

/* --- Instrument Showcase --- */
.instrument-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.instrument-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 280px;
  background: var(--dark-green-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
}
.instrument-card .overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 20px;
  color: var(--white);
}
.instrument-card .overlay h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.instrument-card .overlay p { font-size: 12px; opacity: 0.8; }

/* --- News Cards --- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-thumb { height: 180px; background: linear-gradient(135deg, #E8D9B5, #B8D4A8); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.news-body { padding: 20px; }
.news-date { font-size: 12px; color: var(--green); font-weight: 600; margin-bottom: 8px; }
.news-body h3 { font-size: 16px; font-weight: 600; color: var(--dark-green); margin-bottom: 8px; line-height: 1.5; }
.news-body p { font-size: 13px; color: var(--text-light); line-height: 1.6; }
.news-body .read-more { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--green); font-weight: 600; }

/* --- Campus Bento --- */
.campus-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 16px; }
.campus-item { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.campus-item.large { grid-row: span 2; }
.campus-item { background: linear-gradient(135deg, #E8D9B5, #DDB87A); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.campus-item .label { position: absolute; bottom: 12px; left: 12px; color: var(--white); font-size: 14px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }

/* --- Footer --- */
.footer { background: var(--dark-green); color: rgba(255,255,255,0.7); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--white); font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.footer-col p { font-size: 13px; line-height: 1.8; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; transition: color .2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-col .contact-item { display: flex; gap: 8px; font-size: 13px; margin-bottom: 10px; }
.footer-col .contact-item .icon { color: var(--green-light); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo .logo-icon { width: 36px; height: 36px; font-size: 18px; }
.footer-logo .logo-text { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; font-size: 12px; }

/* --- Breadcrumb --- */
.breadcrumb {
  background: var(--cream);
  padding: 16px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.breadcrumb .container { display: flex; justify-content: space-between; align-items: center; }
.breadcrumb h1 { font-size: 22px; font-weight: 700; color: var(--dark-green); }
.breadcrumb-nav { font-size: 13px; color: var(--gray-500); }
.breadcrumb-nav a:hover { color: var(--green); }
.breadcrumb-nav .sep { margin: 0 6px; color: var(--gray-300); }
.breadcrumb-nav .current { color: var(--text); }

/* --- CMS Page Layout --- */
.cms-page { padding: 40px 0; }
.cms-container { display: flex; gap: 40px; }
.cms-main { flex: 1; min-width: 0; }
.cms-sidebar { flex: 0 0 300px; }

/* --- Article List Items --- */
.article-item {
  display: flex; gap: 24px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transition: box-shadow .2s;
}
.article-item:hover { box-shadow: var(--shadow-md); }
.article-thumb { flex: 0 0 220px; height: 150px; border-radius: var(--radius-md); background: linear-gradient(135deg, #E8D9B5, #B8D4A8); display: flex; align-items: center; justify-content: center; font-size: 36px; }
.article-info { flex: 1; display: flex; flex-direction: column; }
.article-info h3 { font-size: 18px; font-weight: 600; color: var(--dark-green); margin-bottom: 8px; line-height: 1.5; }
.article-info h3 a:hover { color: var(--green); }
.article-meta { display: flex; gap: 16px; font-size: 12px; color: var(--gray-500); margin-bottom: 10px; }
.article-meta .tag { color: var(--green); font-weight: 600; }
.article-info p { font-size: 13px; color: var(--text-light); line-height: 1.7; margin-bottom: 12px; flex: 1; }
.article-info .read-more { font-size: 13px; color: var(--green); font-weight: 600; align-self: flex-start; }

/* --- Pagination --- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--gray-200);
  color: var(--text);
  transition: all .2s;
}
.pagination a:hover { border-color: var(--green); color: var(--green); }
.pagination .active { background: var(--green); color: var(--white); border-color: var(--green); }
.pagination .dots { border: none; }

/* --- Sidebar Widgets --- */
.sidebar-widget { background: var(--white); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.sidebar-widget h3 { font-size: 16px; font-weight: 600; color: var(--dark-green); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--cream); position: relative; }
.sidebar-widget h3::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 40px; height: 2px; background: var(--green); }

.sidebar-search { display: flex; gap: 0; }
.sidebar-search input { flex: 1; padding: 10px 14px; border: 1px solid var(--gray-200); border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); outline: none; font-size: 13px; }
.sidebar-search input:focus { border-color: var(--green); }
.sidebar-search button { padding: 0 16px; background: var(--green); color: var(--white); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 14px; }
.sidebar-search button:hover { background: var(--green-dark); }

.sidebar-contact .contact-row { display: flex; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.sidebar-contact .contact-row .icon { color: var(--green); flex-shrink: 0; }
.sidebar-contact .contact-row .label { color: var(--gray-500); font-size: 11px; }
.sidebar-contact .contact-row .value { color: var(--text); font-weight: 500; }

.sidebar-hot .hot-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.sidebar-hot .hot-item:last-child { border-bottom: none; }
.sidebar-hot .hot-thumb { flex: 0 0 70px; height: 56px; border-radius: var(--radius-sm); background: linear-gradient(135deg, #E8D9B5, #B8D4A8); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.sidebar-hot .hot-info { flex: 1; }
.sidebar-hot .hot-info h4 { font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.5; margin-bottom: 4px; }
.sidebar-hot .hot-info h4 a:hover { color: var(--green); }
.sidebar-hot .hot-info .date { font-size: 11px; color: var(--gray-400); }

/* --- Article Detail --- */
.article-detail { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.article-detail .title { font-size: 28px; font-weight: 700; color: var(--dark-green); margin-bottom: 16px; line-height: 1.4; }
.article-detail .meta { display: flex; gap: 20px; font-size: 13px; color: var(--gray-500); margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-100); }
.article-detail .meta .tag { color: var(--green); font-weight: 600; }
.article-detail .featured-img { width: 100%; height: 400px; border-radius: var(--radius-md); background: linear-gradient(135deg, #E8D9B5, #DDB87A); display: flex; align-items: center; justify-content: center; font-size: 56px; margin-bottom: 32px; }
.article-detail .content p { font-size: 15px; line-height: 2; color: var(--text); margin-bottom: 20px; }
.article-detail .content h3 { font-size: 20px; font-weight: 600; color: var(--dark-green); margin: 28px 0 16px; }
.article-detail .content img { border-radius: var(--radius-md); margin: 24px 0; }
.article-detail .tags { display: flex; gap: 8px; margin: 32px 0; padding-top: 24px; border-top: 1px solid var(--gray-100); }
.article-detail .tags .tag { padding: 6px 16px; background: var(--cream); color: var(--green); border-radius: 20px; font-size: 12px; font-weight: 500; }
.article-detail .post-nav { display: flex; justify-content: space-between; padding: 24px; background: var(--cream); border-radius: var(--radius-md); }
.article-detail .post-nav a { font-size: 13px; }
.article-detail .post-nav .prev, .article-detail .post-nav .next { max-width: 45%; }
.article-detail .post-nav .label { font-size: 11px; color: var(--gray-400); display: block; margin-bottom: 4px; }
.article-detail .post-nav h4 { font-size: 14px; font-weight: 500; color: var(--text); }
.article-detail .post-nav h4 a:hover { color: var(--green); }

/* --- Gallery List --- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.gallery-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.gallery-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-card .thumb { height: 220px; background: linear-gradient(135deg, #E8D9B5, #DDB87A); display: flex; align-items: center; justify-content: center; font-size: 40px; position: relative; }
.gallery-card .thumb .badge { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.5); color: var(--white); font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.gallery-card .info { padding: 16px; }
.gallery-card .info h3 { font-size: 16px; font-weight: 600; color: var(--dark-green); margin-bottom: 4px; }
.gallery-card .info p { font-size: 12px; color: var(--gray-500); }

/* --- Gallery Detail --- */
.gallery-detail { background: var(--white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.gallery-hero { width: 100%; height: 480px; border-radius: var(--radius-md); background: linear-gradient(135deg, #E8D9B5, #DDB87A); display: flex; align-items: center; justify-content: center; font-size: 64px; margin-bottom: 24px; }
.gallery-detail .title { font-size: 26px; font-weight: 700; color: var(--dark-green); margin-bottom: 12px; }
.gallery-detail .meta { display: flex; gap: 20px; font-size: 13px; color: var(--gray-500); margin-bottom: 24px; }
.gallery-detail .desc { font-size: 15px; line-height: 1.8; color: var(--text); margin-bottom: 32px; }
.gallery-thumbs { margin-bottom: 32px; }
.gallery-thumbs h3 { font-size: 18px; font-weight: 600; color: var(--dark-green); margin-bottom: 16px; }
.gallery-thumbs-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.gallery-thumbs-grid .thumb { height: 100px; border-radius: var(--radius-sm); background: linear-gradient(135deg, #E8D9B5, #B8D4A8); display: flex; align-items: center; justify-content: center; font-size: 24px; cursor: pointer; transition: opacity .2s; }
.gallery-thumbs-grid .thumb:hover { opacity: 0.8; }
.gallery-detail .post-nav { display: flex; justify-content: space-between; padding: 20px; background: var(--cream); border-radius: var(--radius-md); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container { flex-direction: column; }
  .hero-image { flex: none; width: 100%; max-width: 440px; }
  .about-grid { flex-direction: column; }
  .about-image { flex: none; width: 100%; }
  .course-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .teacher-grid, .instrument-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cms-container { flex-direction: column; }
  .cms-sidebar { flex: none; }
  .gallery-thumbs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .topbar-left span:nth-child(n+2) { display: none; }
  .section { padding: 40px 0; }
  .hero-content h1 { font-size: 28px; }
  .hero-stats { gap: 20px; }
  .hero-stat .num { font-size: 24px; }
  .course-grid, .news-grid, .teacher-grid, .instrument-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .campus-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .campus-item.large { grid-row: auto; }
  .article-item { flex-direction: column; }
  .article-thumb { flex: none; width: 100%; height: 180px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-thumbs-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Homepage dynamic blocks (API 渲染区块里的图片) --- */
/* 图片优先：图标 emoji 仅作为兜底，正常都显示图片 */
.hp-icon-img { max-width: 100%; max-height: 100%; object-fit: cover; display: block; }
.hero-image .hp-icon-img { width: 100%; height: auto; max-height: 500px; object-fit: cover; border-radius: var(--radius-lg, 12px); }
.about-image .hp-icon-img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.course-thumb .hp-icon-img { width: 100%; height: 100%; object-fit: cover; }
.teacher-avatar .hp-icon-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.instrument-card .hp-icon-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.campus-item .hp-icon-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.instrument-card .overlay,
.campus-item .label { position: relative; z-index: 2; }
