/* ===== 蓝夹缬首页 ===== */

/* 主容器背景用首页背景图 */
.container.blue-jiaxie-pattern {
  position: relative;
}

.container.blue-jiaxie-pattern::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(244,240,230,0.82)),
    url("../media/home/page-bg.webp") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(31,67,116,0.08);
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

.container.blue-jiaxie-pattern > * { position: relative; z-index: 1; }

/* 轮播图 */
.carousel-container {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  z-index: 2;
}

/* 靛蓝装饰底边 */
.carousel-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ink-3), var(--ink-4), var(--ink-3), transparent);
  z-index: 10;
  opacity: 0.6;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
}

.carousel-slides {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #dbe6f3, #eef4fb);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.carousel-slide img.loaded { opacity: 1; }

.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 12px;
  z-index: 10;
  pointer-events: none;
}

.carousel-btn {
  pointer-events: auto;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(31,67,116,0.14);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink-3);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.95);
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}

.carousel-indicators {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: #fff;
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.25);
}

.carousel-caption {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  padding: 10px 20px;
}

.carousel-caption h3 { font-size: 1.4em; margin-bottom: 4px; }
.carousel-caption p { font-size: 0.95em; margin: 0; }

/* 头部区域 */
.header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px;
  background: rgba(250,248,244,0.96);
  border-bottom: 1px solid rgba(31,67,116,0.08);
  position: relative;
  overflow: hidden;
}

/* 布面编织纹理 */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22px 16px, rgba(31,67,116,0.05) 0 1px, transparent 1px);
  background-size: 28px 22px;
  opacity: 0.6;
}

.header > * { position: relative; z-index: 1; }

.header-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.header-img-section,
.header-video-section {
  background: rgba(248,250,255,0.95);
  border: 1px solid rgba(31,67,116,0.08);
  border-radius: var(--radius);
  padding: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

/* 布面纹理 */
.header-img-section::before,
.header-video-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16px 14px, rgba(31,67,116,0.04) 0 1px, transparent 1px);
  background-size: 24px 20px;
  opacity: 0.4;
}

/* 雕版虚线内框 */
.header-img-section::after,
.header-video-section::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 12px;
  border: 1px dashed rgba(31,67,116,0.10);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.header-img-section:hover,
.header-video-section:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.header-img-section:hover::after,
.header-video-section:hover::after {
  opacity: 0.7;
}

.header-img-section > *,
.header-video-section > * { position: relative; z-index: 1; }

.header-img-section img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.header-video-section video {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.header-info { flex: 2; }

/* 信息卡片 */
.info-card {
  background: linear-gradient(135deg, rgba(248,250,255,0.96), rgba(241,245,252,0.94));
  border: 1px solid rgba(31,67,116,0.08);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

/* 布面纹理 */
.info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16px 14px, rgba(31,67,116,0.04) 0 1px, transparent 1px);
  background-size: 24px 20px;
  opacity: 0.5;
}

/* 雕版虚线内框 */
.info-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  border: 1px dashed rgba(31,67,116,0.10);
  pointer-events: none;
  opacity: 0.6;
}

.info-card > * { position: relative; z-index: 1; }

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.info-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  padding: 6px 0 10px;
  margin: 0 0 10px;
  font-size: 1.2em;
  letter-spacing: 0.04em;
  border-bottom: 2px solid rgba(31,67,116,0.08);
}

/* 靛蓝装饰方块 */
.info-card h3::before {
  content: "";
  width: 6px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-4));
  flex-shrink: 0;
}

.info-card p {
  line-height: 2;
  color: var(--text-soft);
  font-size: 14px;
  margin: 0;
}

/* 作品展示 */
.works-section,
.art-section {
  padding: 28px;
  background: rgba(250,248,244,0.96);
  position: relative;
  overflow: hidden;
}

/* 布面纹理 */
.works-section::before,
.art-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22px 16px, rgba(31,67,116,0.04) 0 1px, transparent 1px);
  background-size: 28px 22px;
  opacity: 0.5;
}

.works-section > *,
.art-section > * { position: relative; z-index: 1; }

.works-section {
  border-bottom: 1px solid rgba(31,67,116,0.08);
  position: relative;
}

/* 靛蓝装饰分隔带 */
.works-section::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px;
  top: 10px; bottom: 10px;
  border-radius: 16px;
  border: 1px dashed rgba(31,67,116,0.06);
  pointer-events: none;
  opacity: 0.5;
}

/* 靛蓝装饰上边线 */
.works-section > h2 {
  padding-top: 10px;
  border-top: 2px solid rgba(31,67,116,0.06);
  position: relative;
}

.art-section {
  border-radius: 0 0 var(--radius) var(--radius);
  position: relative;
}

.art-section::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px;
  top: 10px; bottom: 10px;
  border-radius: 16px;
  border: 1px dashed rgba(31,67,116,0.06);
  pointer-events: none;
  opacity: 0.5;
}

.works-section h2,
.art-section h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--ink-2);
  margin-bottom: 8px;
  font-size: 1.5em;
  letter-spacing: 0.04em;
}

/* 标题纹样装饰 */
.works-section h2::before,
.art-section h2::before {
  content: "";
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: url("../../bgimg/纹样-24.png") center / contain no-repeat;
}

.works-section h2::after,
.art-section h2::after {
  content: "";
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: url("../../bgimg/纹样-25.png") center / contain no-repeat;
}

.works-section .section-subtitle,
.art-section .section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 14px;
}

/* 作品网格 */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.work-card {
  background: rgba(255,255,255,0.94);
  padding: 12px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid rgba(31,67,116,0.08);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* 雕版虚线内框 */
.work-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  border: 1px dashed rgba(31,67,116,0.10);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(31,67,116,0.18);
}

.work-card:hover::before { opacity: 0.8; }

.work-card > * { position: relative; z-index: 2; }

.work-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: #f0f3f8;
}

.work-card p {
  color: var(--text-main);
  font-weight: 700;
  font-size: 15px;
  margin: 0;
}

/* 匠心艺术 */
.art-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.art-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(31,67,116,0.08);
  border-radius: var(--radius);
  padding: 14px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* 雕版虚线内框 */
.art-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  border: 1px dashed rgba(31,67,116,0.10);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.art-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(31,67,116,0.16);
}

.art-card:hover::before { opacity: 0.8; }

.art-card > * { position: relative; z-index: 2; }

.art-card img {
  width: 140px;
  height: 110px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.art-card .text { flex: 1; }

.art-card h3 {
  color: var(--ink-2);
  margin: 0 0 8px;
  font-size: 1.1em;
  letter-spacing: 0.03em;
}

.art-card p {
  line-height: 1.7;
  color: var(--text-soft);
  font-size: 14px;
  margin: 0;
}

/* 章节标题 */
.section-title {
  text-align: center;
  margin-top: 8px;
  margin-bottom: 4px;
  color: var(--text-main);
  font-size: 1em;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-top: 0;
  font-size: 0.85em;
}

/* 响应式 */
@media (max-width: 1100px) {
  .header { flex-direction: column; }
  .header-left { flex-direction: row; gap: 12px; }
  .header-img-section,
  .header-video-section { flex: 1; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .carousel-container { height: 240px; }
  .header-left { flex-direction: column; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .art-grid { grid-template-columns: 1fr; }
  .works-section h2::before,
  .works-section h2::after,
  .art-section h2::before,
  .art-section h2::after { display: none; }
}
