/* =========================================
   武汉尚上画室 - 全局样式
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
  font-size: 14px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; }

/* =========================================
   布局
   ========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   固定顶部导航
   ========================================= */
.site-header {
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 52px; }

.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav a {
  display: block;
  padding: 8px 18px;
  color: #333;
  font-size: 15px;
  transition: color 0.2s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active { color: #d61720; }

/* =========================================
   主内容区（给固定header留位）
   ========================================= */
.main-content {
  padding-top: 72px;
}

/* =========================================
   Hero 轮播区
   ========================================= */
.hero {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: #1d2528;
}
.hero-carousel {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  color: #fff;
  text-align: center;
}
.hero-inner { max-width: 800px; margin: 0 auto; }
.hero-inner h1 { font-size: 48px; font-weight: 700; margin-bottom: 16px; letter-spacing: 4px; }
.hero-inner .sub { font-size: 17px; opacity: 0.85; }

/* 轮播指示点 */
.carousel-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.carousel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}
.carousel-dots span.active { background: rgba(255,255,255,0.9); }

/* =========================================
   页面大标题区
   ========================================= */
.page-hero {
  background: #d61720;
  color: #fff;
  padding: 24px 0;
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.page-hero h1 { font-size: 22px; font-weight: 700; margin: 0; }
.breadcrumb { font-size: 13px; opacity: 0.8; flex-shrink: 0; }
.breadcrumb a, .breadcrumb span { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { opacity: 1; }

/* =========================================
   二级标签导航
   ========================================= */
.sub-nav {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 72px;
  z-index: 100;
}
.sub-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
}
.sub-nav a {
  display: block;
  padding: 16px 24px;
  font-size: 14px;
  color: #666;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.sub-nav a:hover { color: #333; }
.sub-nav a.active {
  color: #d61720;
  border-bottom-color: #d61720;
  font-weight: 600;
}

/* =========================================
   区块通用
   ========================================= */
.section { padding: 60px 0; }
.section-alt { background: #f7f7f7; }
.section-white { background: #fff; }

.module-header {
  text-align: center;
  margin-bottom: 40px;
}
.module-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1d2528;
  margin-bottom: 6px;
}
.module-header .sub {
  font-size: 14px;
  color: #999;
}
.module-header-line {
  width: 48px;
  height: 3px;
  background: #d61720;
  margin: 12px auto 0;
}

/* =========================================
   关于尚上区块
   ========================================= */
.about-block {
  display: flex;
  gap: 48px;
  align-items: center;
}
.about-text { flex: 1; }
.about-text h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1d2528;
  margin-bottom: 6px;
}
.about-text .sub {
  font-size: 14px;
  color: #d61720;
  margin-bottom: 20px;
}
.about-text p {
  font-size: 14px;
  color: #555;
  line-height: 1.9;
  margin-bottom: 12px;
}
.about-text .stats-line {
  font-size: 14px;
  color: #d61720;
  font-weight: 600;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}
.about-img { flex: 0 0 400px; }
.about-img img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* =========================================
   新闻列表
   ========================================= */
.news-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}
.news-tabs a {
  font-size: 14px;
  color: #999;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.news-tabs a.active,
.news-tabs a:hover {
  color: #d61720;
  border-bottom-color: #d61720;
}

.news-list-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  align-items: flex-start;
  cursor: pointer;
}
.news-thumb {
  width: 120px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #eee;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-info { flex: 1; }
.news-date { font-size: 12px; color: #d61720; font-weight: 600; margin-bottom: 4px; }
.news-title { font-size: 15px; font-weight: 600; color: #1d2528; margin-bottom: 6px; }
.news-desc { font-size: 13px; color: #888; line-height: 1.6; }

/* =========================================
   历年成绩
   ========================================= */
.year-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.year-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.year-card-header {
  background: linear-gradient(135deg, #1d2528, #2c3e50);
  color: #fff;
  padding: 20px;
  text-align: center;
}
.year-card-header h3 { font-size: 22px; font-weight: 700; }
.year-card-body { padding: 20px; }
.year-card-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: #d61720;
  margin-bottom: 10px;
}

/* =========================================
   师资展示
   ========================================= */
.teacher-intro {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.teacher-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  text-align: center;
}
.teacher-avatar {
  width: 100%;
  overflow: hidden;
  background: #eee;
}
.teacher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}
.teacher-card:hover .teacher-avatar img { opacity: 0.85; }
.teacher-info { padding: 16px; }
.teacher-name { font-size: 16px; font-weight: 600; color: #1d2528; margin-bottom: 4px; }
.teacher-title { font-size: 13px; color: #d61720; font-weight: 600; margin-bottom: 8px; }
.teacher-bio { font-size: 12px; color: #888; line-height: 1.6; }

/* =========================================
   环境/课堂/课外区块
   ========================================= */
.gallery-block { margin-bottom: 48px; }
.gallery-block:last-child { margin-bottom: 0; }
.gallery-block h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1d2528;
  margin-bottom: 8px;
}
.gallery-block p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-grid-item {
  height: 160px;
  border-radius: 6px;
  overflow: hidden;
  background: #eee;
}
.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}
.gallery-grid-item:hover img { opacity: 0.85; }

/* =========================================
   作品/图片网格
   ========================================= */
.category-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  justify-content: center;
}
.category-tabs a {
  font-size: 14px;
  color: #999;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid #ddd;
  transition: all 0.2s;
}
.category-tabs a.active,
.category-tabs a:hover {
  color: #fff;
  background: #d61720;
  border-color: #d61720;
}

.img-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.img-grid-item {
  height: 180px;
  border-radius: 6px;
  overflow: hidden;
  background: #eee;
}
.img-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}
.img-grid-item:hover img { opacity: 0.85; }

.pagination-info {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

/* =========================================
   数据表格
   ========================================= */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; }
.data-table thead { background: #1d2528; color: #fff; }
.data-table th, .data-table td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid #e0e0e0;
}
.data-table tbody tr:nth-child(even) { background: #fafafa; }

/* =========================================
   FAQ
   ========================================= */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border-left: 3px solid #d61720;
}
.faq-item h3 { font-size: 15px; font-weight: 600; color: #1d2528; margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: #666; line-height: 1.8; }

/* =========================================
   招生简章内容
   ========================================= */
.admissions-content h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1d2528;
  margin: 28px 0 12px;
}
.admissions-content h2:first-child { margin-top: 0; }
.admissions-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.9;
  margin-bottom: 12px;
}
.admissions-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.admissions-content ul li {
  font-size: 14px;
  color: #555;
  line-height: 2;
  list-style: disc;
}

/* =========================================
   联系信息（内容区）
   ========================================= */
.contact-section {
  background: #f7f7f7;
  padding: 40px;
  border-radius: 8px;
  margin-top: 32px;
}
.contact-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1d2528;
  margin-bottom: 16px;
}
.contact-info p {
  font-size: 14px;
  color: #555;
  line-height: 2;
  margin-bottom: 0;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background: #1d2528;
  color: #fff;
  padding: 48px 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}
.footer-col h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col p {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 2;
  margin-bottom: 0;
}
.footer-col .wechat-placeholder {
  display: inline-block;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.1);
  border: 1px dashed rgba(255,255,255,0.3);
  border-radius: 4px;
  margin-top: 8px;
  text-align: center;
  line-height: 100px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.message-form { margin-top: 0; }
.form-row { display: flex; gap: 12px; margin-bottom: 12px; }
.form-row input,
.form-row textarea {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 13px;
  border-radius: 4px;
  font-family: inherit;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-row textarea { resize: none; height: 80px; }
.form-row button {
  padding: 8px 32px;
  background: #d61720;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.form-row button:hover { background: #c0101a; }

.footer-copy {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 0;
}

/* =========================================
   响应式
   ========================================= */
@media (max-width: 900px) {
  .about-block { flex-direction: column; }
  .about-img { flex: none; width: 100%; max-width: 500px; }
  .teacher-grid { grid-template-columns: repeat(2, 1fr); }
  .year-cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .img-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .main-nav a { padding: 8px 10px; font-size: 13px; }
  .hero h1 { font-size: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .img-grid { grid-template-columns: repeat(2, 1fr); }
  .teacher-grid { grid-template-columns: 1fr; }
  .sub-nav-inner { flex-wrap: wrap; }
  .sub-nav a { padding: 12px 16px; }
}

/* =========================================
   Timeline 时间线
   ========================================= */
.timeline {
  padding: 16px 0 40px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 100px 20px 1fr;
  gap: 0;
  margin-bottom: 24px;
  align-items: stretch;
}
.timeline-year-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 8px;
  padding-right: 16px;
}
.timeline-year-col .year {
  font-size: 32px;
  font-weight: 900;
  color: #d61720;
  line-height: 1;
}
.timeline-year-col .year-label {
  font-size: 11px;
  color: #bbb;
  margin-top: 4px;
  letter-spacing: 1px;
}
.timeline-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.timeline-connector::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: -24px;
  width: 2px;
  background: #e8e8e8;
}
.timeline-item:last-child .timeline-connector::before {
  display: none;
}
.timeline-dot {
  width: 12px;
  height: 12px;
  background: #d61720;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #d61720;
  flex-shrink: 0;
  margin-top: 12px;
}
.timeline-content {
  background: #fff;
  border-radius: 10px;
  padding: 18px 22px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  border-left: 3px solid #d61720;
}
.timeline-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1d2528;
  margin-bottom: 10px;
}
.timeline-content h5 {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin: 10px 0 5px;
  padding-bottom: 4px;
  border-bottom: 1px solid #f0f0f0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.timeline-content p {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 3px;
}
.timeline-intro {
  font-size: 13px;
  color: #444;
  line-height: 1.65;
  background: #fafafa;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 10px;
  border-left: 2px solid #d61720;
}
.timeline-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.timeline-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: #fdf0f0;
  color: #d61720;
  border-radius: 20px;
}
.timeline-item:nth-child(even) .timeline-content {
  background: #fff;
}
.timeline-item:nth-child(odd) .timeline-content {
  background: #fff;
}

/* 查看更多 */
.view-more {
  text-align: center;
  margin-top: 24px;
  clear: both;
  padding-bottom: 8px;
}
.view-more a {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid #d61720;
  color: #d61720;
  border-radius: 4px;
  font-size: 13px;
  transition: all 0.2s;
}
.view-more a:hover {
  background: #d61720;
  color: #fff;
}

/* 成绩概述 */
.achievement-overview {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 32px;
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  background: #fafafa;
  padding: 20px 24px;
  border-radius: 6px;
}

/* 分页样式 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}
.pagination-info {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 13px;
  color: #666;
  background: #fff;
  border: 1px solid #e0e0e0;
  transition: all 0.2s;
}
.pagination a:hover {
  color: #d61720;
  border-color: #d61720;
}
.pagination .active {
  background: #d61720;
  color: #fff;
  border-color: #d61720;
}

/* 关于区块视频 */
.about-video video { width: 500px; border-radius: 8px; background: #000; max-height: 320px; }

/* 红色标签 */
h4.red-label {
  font-size: 15px;
  font-weight: 600;
  color: #1d2528;
  margin-bottom: 8px;
  margin-top: 0;
}

/* 可点击图片手势 */
.gallery-img, .about-img img, .opus-img { cursor: pointer; transition: opacity 0.2s; }
.gallery-img:hover, .about-img img:hover, .opus-img:hover { opacity: 0.85; }

/* 图片网格hover */
.img-grid-item img:hover { opacity: 0.85; }

/* 首页画室动态 Tabs */
.home-news-tabs {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 4px;
  margin-bottom: 24px;
  margin-top: 24px;
}
.home-news-tabs a {
  padding: 8px 24px;
  border-radius: 4px;
  font-size: 14px;
  color: #666;
  background: #f0f0f0;
  transition: all 0.2s;
}
.home-news-tabs a.active {
  background: #d61720;
  color: #fff;
}

/* Tab 内容区默认显示图文 */
.home-news-tabs-content[data-tab="image"] { display: flex; flex-direction: column; }
.home-news-tabs-content[data-tab="video"] { display: none; flex-direction: column; }

/* 尚上作品 Tabs */
.opus-tabs { display:flex; justify-content:center; width:100%; gap:4px; margin-bottom:16px; }
.opus-tabs a { padding:6px 16px; border-radius:4px; font-size:14px; color:#666; background:#f0f0f0; }
.opus-tabs a.active { background:#d61720; color:#fff; }

/* 画室动态页面 Tabs */
.news-page-tabs { display:flex; justify-content:center; width:100%; gap:4px; margin-bottom:16px; }
.news-page-tabs a { padding:6px 16px; border-radius:4px; font-size:14px; color:#666; background:#f0f0f0; }
.news-page-tabs a.active { background:#d61720; color:#fff; }
/* 视频缩略图 */
.news-video-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.news-video-thumb img {
  transition: transform 0.3s;
  display: block;
}
.news-video-thumb:hover img {
  transform: scale(1.05);
}
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(214,23,32,0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
  transition: background 0.2s, transform 0.2s;
}
.play-btn svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}
.news-video-thumb:hover .play-btn {
  background: #d61720;
  transform: translate(-50%, -50%) scale(1.1);
}
.video-item {
  cursor: pointer;
  transition: opacity 0.2s;
}
.video-item:hover {
  opacity: 0.9;
}
.video-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}
/* 招生简章 */
.admissions-block {
  margin-bottom: 40px;
}
.admissions-block h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1d2528;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #d61720;
  display: inline-block;
}
.admissions-block ul {
  list-style: disc;
  padding-left: 24px;
}
.admissions-block li {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 8px;
}

/* 按钮轮廓样式 */
.btn-outline {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid #d61720;
  color: #d61720;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-outline:hover {
  background: #d61720;
  color: #fff;
}

