/* ============================================================
   艺术小屋页面级样式
   设计语言：黄蓝撞色分屏 + 画册式画廊 + 编辑排版课程列表
   断点：移动优先；≥640px 平板；≥920px 桌面；≥1280px 大屏
   ============================================================ */

.page-two {
  --y: #f4d03f;
  --b: #19b5fe;
  background: #fdfaf4;
}

.page-two .site-nav {
  background: rgba(253, 250, 244, 0.96);
  color: var(--ink);
  box-shadow: 0 6px 24px rgba(90, 70, 20, 0.08);
  backdrop-filter: blur(8px);
}

.page-two .site-nav.nav-hidden { transform: none; }

.page-two .brand svg { color: var(--gold-deep); }

.page-two .nav-link { position: relative; }

.page-two .nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.page-two .nav-link:hover { color: var(--ink); }
.page-two .nav-link:hover::after { transform: scaleX(1); }

.page-two .nav-link.current { color: var(--ink); }
.page-two .nav-link.current::after { transform: scaleX(1); }

.page-two .sub a:hover { background: #f4efdf; color: #a07f2c; }

/* ---------- 分屏 Hero ---------- */
.duo {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  scroll-margin-top: 0;
}

.duo-half {
  position: relative;
  overflow: hidden;
  flex: 1 1 0;
  min-height: 50svh;
  display: grid;
  align-items: center;
  justify-items: center;
  transition: flex-grow 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.duo-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duo-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 90px 8% 48px;
  color: #33290e;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.duo-flower .duo-face { background: linear-gradient(150deg, #f7dd55, var(--yellow) 55%, #eec731); }
.duo-book .duo-face {
  background: linear-gradient(150deg, #3fc2ff, var(--b) 55%, #0f97d6);
  color: #06283a;
}

.duo-no {
  font-size: 13px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  opacity: 0.72;
}

.duo-face h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 7vw, 64px);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  line-height: 1.25;
}

.duo-prose {
  font-family: var(--serif);
  font-size: clamp(15px, 2.4vw, 19px);
  line-height: 2.15;
  letter-spacing: 0.14em;
  opacity: 0.88;
  margin-top: 6px;
}

.duo-btn {
  margin-top: clamp(18px, 3.4vh, 30px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1.6px solid currentColor;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.duo-btn .arrow { font-size: 17px; transition: transform 0.3s ease; }

.duo-flower .duo-btn:hover { background: #33290e; color: var(--yellow); transform: translateY(-2px); }
.duo-book .duo-btn:hover { background: #06283a; color: var(--b); transform: translateY(-2px); }

.duo-flower .duo-btn:hover .arrow { transform: translateX(4px); }
.duo-book .duo-btn:hover .arrow { transform: translateX(-4px); }

.duo-hint {
  font-size: 12.5px;
  letter-spacing: 0.2em;
  opacity: 0.62;
}

/* 展开状态：色块滑走，露出照片 */
.duo-half.open { flex-grow: 2.4; }

.duo-flower.open .duo-face { transform: translateX(-103%); }
.duo-book.open .duo-face { transform: translateX(103%); }

.duo-half.open .duo-face { pointer-events: none; }

.duo-half.open::after {
  content: "点击任意处收回 ×";
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(20, 16, 8, 0.55);
  color: #fff;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  backdrop-filter: blur(4px);
}

@media (max-width: 919px) {
  .duo-flower.open .duo-face { transform: translateY(-103%); }
  .duo-book.open .duo-face { transform: translateY(103%); }
  .duo-half.open { min-height: 74svh; }
  .duo-half:not(.open) { min-height: 42svh; }
}

@media (min-width: 920px) {
  .duo { flex-direction: row; }
  .duo-half { min-height: 100svh; }
}

/* ---------- 花艺手作 · 画廊 ---------- */
.gallery-sec { background: #fdfaf4; }

.gallery-sec .sec-tag { color: #a07f2c; }

.gallery-sec .sec-head h2 em {
  display: block;
  font-family: var(--serif);
  font-style: normal;
  font-size: 0.52em;
  color: var(--gold-deep);
  letter-spacing: 0.3em;
  margin-top: 8px;
}

.masonry { columns: 1; column-gap: 24px; }

.work {
  break-inside: avoid;
  margin: 0 0 24px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(90, 70, 20, 0.12);
  border: 1px solid rgba(160, 127, 44, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.work:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(90, 70, 20, 0.18); }

.work img { width: 100%; }

.work figcaption {
  padding: 14px 18px 18px;
  display: grid;
  gap: 4px;
}

.work figcaption b {
  font-size: 15.5px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.work figcaption span {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}

@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; } }

/* ---------- 手作时光 · 课程列表 ---------- */
.courses-sec { background: linear-gradient(180deg, #fdfaf4, #f6efdd); }

.courses-sec .sec-tag { color: #0f83b9; }

.course-list { border-top: 1.5px solid rgba(43, 42, 48, 0.16); }

.course {
  display: grid;
  gap: 8px 24px;
  padding: 26px 10px;
  border-bottom: 1.5px solid rgba(43, 42, 48, 0.16);
  transition: background 0.3s ease, transform 0.3s ease;
  align-items: start;
}

.course:hover { background: rgba(255, 253, 246, 0.9); transform: translateX(6px); }

.course-no {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold-deep);
}

.course-main h3 {
  font-size: clamp(19px, 2.6vw, 24px);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.course-main p { color: var(--ink-soft); font-size: 14.5px; max-width: 560px; }

.course-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; }

.course-meta dt {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #0f83b9;
  margin-bottom: 2px;
}

.course-meta dd { margin: 0; font-size: 14px; color: var(--ink); font-weight: 600; }

.course-note {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.course-note a { color: #0f83b9; font-weight: 600; border-bottom: 1px solid currentColor; }

@media (min-width: 920px) {
  .course { grid-template-columns: 90px 1fr 380px; padding: 30px 14px; }
}

/* ---------- 到店指南 ---------- */
.visit-sec {
  background:
    radial-gradient(circle at 12% 20%, rgba(244, 208, 63, 0.16), transparent 34%),
    radial-gradient(circle at 88% 80%, rgba(25, 181, 254, 0.16), transparent 34%),
    #fdfaf4;
  padding-bottom: clamp(64px, 9vw, 120px);
}

.visit-grid { display: grid; gap: 22px; }

.visit-card {
  border-radius: 18px;
  padding: 30px 28px;
  color: #33290e;
  box-shadow: 0 16px 36px rgba(90, 70, 20, 0.14);
  position: relative;
  overflow: hidden;
}

.visit-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.visit-yellow { background: linear-gradient(150deg, #f7dd55, var(--yellow)); }
.visit-blue { background: linear-gradient(150deg, #3fc2ff, var(--b)); color: #06283a; }

.visit-card h3 { font-family: var(--serif); font-size: 22px; letter-spacing: 0.1em; margin-bottom: 10px; }
.visit-card p { font-size: 14.5px; opacity: 0.85; max-width: 420px; }

.visit-card ul { margin-top: 14px; display: grid; gap: 6px; }

.visit-card li {
  font-size: 14px;
  padding-left: 18px;
  position: relative;
}

.visit-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.visit-cta {
  margin-top: 34px;
  border-radius: 18px;
  background: var(--charcoal);
  color: #f2ece2;
  padding: 30px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.visit-cta h3 { font-size: 20px; letter-spacing: 0.08em; margin-bottom: 6px; }
.visit-cta p { font-size: 14px; color: #b6afa6; }

@media (min-width: 920px) {
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .visit-cta { padding: 36px 40px; }
}

/* ---------- 页脚皮肤 ---------- */
.page-two .site-footer {
  border-top: 6px solid;
  border-image: linear-gradient(90deg, var(--yellow), var(--sky)) 1;
}
