/* ========================================================
   熊吨吨 くまとんとん - 日系布艺手作工坊视觉系统 (升级版)
   遵循 DESIGN.md: 暖色中性底、鼠尾草绿、手作感、UI克制退后
   移动端优先深度适配 (iPhone Safari / 微信内置浏览器)
   ======================================================== */

:root {
  /* 色彩系统 */
  --bg-main: #F7F2E8;         /* 暖象牙白 (页面主画布) */
  --bg-sub: #E8DDCB;          /* 燕麦米 (次级区域与标签底色) */
  --bg-card: #FFFDF8;         /* 奶油白 (作品承托卡片) */
  --bg-card-hover: #FFFFFF;
  
  --primary: #77866B;         /* 鼠尾草绿 (主强调色) */
  --primary-light: #EEF2EB;   /* 鼠尾草浅色底 */
  --primary-dark: #58654E;
  
  --linen: #C8B89D;           /* 亚麻原色 (缝线、纸质标签) */
  --terracotta: #C9927E;      /* 陶土粉 (印章、手作心得点缀) */
  --dusty-pink: #D8AAA0;      /* 灰粉色 */
  --wood-brown: #9A765E;      /* 木质深棕 (工具、线轴) */
  
  /* 文字系统 */
  --text-main: #403832;       /* 深咖啡 (主标题与正文) */
  --text-sub: #796F67;        /* 亚麻灰棕 (次级属性与规格) */
  --text-muted: #A69B92;      /* 纸张灰 (弱提示) */
  
  /* 边界与阴影 */
  --border-light: #E5DDD3;
  --border-stitch: #D2C4B2;
  --shadow-soft: 0 4px 20px rgba(64, 56, 50, 0.05);
  --shadow-hover: 0 8px 28px rgba(64, 56, 50, 0.08);

  /* 尺度体系 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --container-max: 1160px;
}

/* 全局重置与基础排版 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Serif SC", serif;
  line-height: 1.7;
  letter-spacing: 0.015em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* 顶部纸张自然微纹理 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background-image: radial-gradient(rgba(121, 111, 103, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 9999;
}

/* 容器布局 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* 顶部导航栏 (安静优雅的工坊招牌) */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(247, 242, 232, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  min-height: 44px;
}

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-stitch);
  box-shadow: 0 2px 6px rgba(64, 56, 50, 0.08);
  background-color: var(--bg-card);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-main);
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.25;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--wood-brown);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.brand-slogan {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}

.nav-item a {
  text-decoration: none;
  color: var(--text-sub);
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.nav-item a:hover, .nav-item a.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* 移动端快捷分段导航栏 (仅在移动端显示) */
.mobile-quick-nav {
  display: none;
  background: rgba(247, 242, 232, 0.96);
  border-bottom: 1px solid var(--border-light);
  padding: 6px 16px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mobile-quick-nav::-webkit-scrollbar {
  display: none;
}

.mobile-quick-nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--text-sub);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  margin-right: 8px;
  min-height: 36px;
}

.mobile-quick-nav a:active {
  background: var(--primary-light);
  color: var(--primary);
}

/* Hero 区域 */
.hero-section {
  padding: 36px 0 30px 0;
  border-bottom: 1px dashed var(--border-stitch);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 5px 14px;
  background-color: #FAF6EF;
  border: 1px dashed var(--linen);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--wood-brown);
}

.hero-stamp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
}

.hero-heading {
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.hero-heading span {
  color: var(--primary);
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.8;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.hero-badge-item {
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-sub);
  color: var(--text-sub);
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  padding: 12px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
}

.hero-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.hero-caption {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-caption-note {
  font-family: serif;
  font-style: italic;
  color: var(--terracotta);
}

/* 分类过滤器条 (手账风格横滑标签) */
.filter-section {
  padding: 24px 0 16px 0;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px;
  max-width: 100%;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  min-height: 44px;
  padding: 9px 18px;
  border-radius: 22px;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-sub);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.tab-btn:active {
  transform: scale(0.97);
}

.tab-btn:hover {
  border-color: var(--linen);
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFDF8;
  box-shadow: 0 2px 8px rgba(119, 134, 107, 0.25);
}

.tab-btn .badge-count {
  font-size: 0.72rem;
  opacity: 0.85;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
}

.tab-btn.active .badge-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.search-box {
  position: relative;
  min-width: 240px;
}

.search-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 16px 10px 38px;
  border-radius: 22px;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: var(--primary);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.9rem;
}

/* 作品展示网格 */
.works-section {
  padding: 12px 0 50px 0;
}

.section-head {
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-submark {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--terracotta);
  border: 1px solid var(--terracotta);
  padding: 1px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* 作品卡片 */
.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.work-card:active {
  transform: scale(0.985);
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  background: var(--bg-card-hover);
}

.work-cover-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-sub);
}

.work-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.work-card:hover .work-cover-img {
  transform: scale(1.02);
}

.work-item-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(247, 242, 232, 0.94);
  backdrop-filter: blur(4px);
  color: var(--wood-brown);
  border: 1px dashed var(--linen);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.work-category-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(119, 134, 107, 0.92);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
}

.work-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.work-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.work-card-subtitle {
  font-size: 0.84rem;
  color: var(--text-sub);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-card-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.work-card-material {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.work-view-action {
  color: var(--primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 制作工序展示区 */
.process-section {
  background-color: #F1ECE0;
  padding: 48px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.process-step-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.process-step-num {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.05em;
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--primary-light);
}

.process-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-sub);
}

.process-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-step-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.process-step-desc {
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* 手作日记区 */
.diary-section {
  padding: 48px 0;
}

.diaries-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.diary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--border-stitch);
  padding-bottom: 10px;
}

.diary-date {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--wood-brown);
}

.diary-meta-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
}

.diary-title {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.diary-fabric {
  font-size: 0.8rem;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}

.diary-content {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.8;
  white-space: pre-line;
}

/* 关于工坊与理念 */
.about-section {
  padding: 50px 0;
  background-color: var(--bg-card);
  border-top: 1px dashed var(--border-stitch);
}

.about-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: center;
}

.about-logo-frame {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid var(--linen);
  padding: 6px;
  background: var(--bg-main);
  box-shadow: var(--shadow-soft);
  margin: 0 auto;
}

.about-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.about-story {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-story-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
}

.about-story-p {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.85;
}

.about-note-box {
  padding: 14px 16px;
  background: var(--bg-main);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 页脚 */
.site-footer {
  margin-top: auto;
  background: #E8DDCB;
  border-top: 1px solid var(--border-light);
  padding: 36px 0 28px 0;
  color: var(--text-sub);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-stamp {
  font-size: 0.8rem;
  color: var(--wood-brown);
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  gap: 18px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-sub);
  text-decoration: none;
  padding: 6px 4px;
}

.footer-copyright {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ================= 作品档案详情模态框 (作品档案卡) ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(64, 56, 50, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-light);
  box-shadow: 0 16px 40px rgba(64, 56, 50, 0.15);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: translateY(20px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: rgba(255, 253, 248, 0.95);
  color: var(--text-sub);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: all 0.2s;
}

.modal-close-btn:active {
  transform: scale(0.92);
}

.modal-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 32px;
}

.modal-gallery-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-main-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.modal-thumbs-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.modal-thumb-item {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.modal-thumb-item.active, .modal-thumb-item:hover {
  border-color: var(--primary);
  opacity: 1;
}

.modal-info-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-item-no {
  font-size: 0.8rem;
  color: var(--wood-brown);
  border: 1px dashed var(--linen);
  padding: 3px 10px;
  border-radius: 12px;
}

.modal-category-name {
  font-size: 0.8rem;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 12px;
}

.modal-title {
  font-size: 1.38rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-sub);
}

.spec-sheet {
  background: var(--bg-main);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-row {
  display: flex;
  font-size: 0.84rem;
  line-height: 1.5;
}

.spec-label {
  width: 74px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.spec-val {
  color: var(--text-main);
  font-weight: 500;
}

.modal-text-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-text-heading {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--wood-brown);
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-text-content {
  font-size: 0.86rem;
  color: var(--text-sub);
  line-height: 1.75;
}

.experience-box {
  background: #FAF6EF;
  border: 1px dashed var(--terracotta);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.experience-box .modal-text-heading {
  color: var(--terracotta);
}

/* ========================================================
   移动端深度优化适配 (重点保障手机、微信、iPhone Safari)
   ======================================================== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-image {
    height: 260px;
  }
  .process-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* 顶部导航与快捷条 */
  .site-header {
    padding: 8px 0;
  }
  .nav-links {
    display: none; /* 移动端顶部不堆叠菜单 */
  }
  .mobile-quick-nav {
    display: flex; /* 开启横向快捷跳跃 */
  }
  
  .brand-title {
    font-size: 1.1rem;
  }
  .brand-slogan {
    font-size: 0.68rem;
  }

  /* Hero 调整 */
  .hero-section {
    padding: 20px 0 24px 0;
  }
  .hero-heading {
    font-size: 1.55rem;
    line-height: 1.35;
  }
  .hero-desc {
    font-size: 0.88rem;
    line-height: 1.75;
  }
  .hero-image {
    height: 220px;
  }

  /* 分类过滤器条: 贴合屏幕左侧，自然横向滚动 */
  .filter-section {
    padding: 16px 0 12px 0;
  }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .category-tabs {
    width: 100%;
    padding-bottom: 6px;
  }
  .tab-btn {
    min-height: 44px;
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  .search-box {
    width: 100%;
  }
  .search-input {
    min-height: 44px;
  }

  /* 章节标题在移动端的自然分行与层级 */
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 16px;
  }
  .section-title {
    font-size: 1.25rem;
    line-height: 1.35;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  .section-submark {
    font-size: 0.72rem;
    padding: 1px 6px;
  }
  .section-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  .works-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .work-card {
    border-radius: var(--radius-md);
  }
  .work-card-body {
    padding: 14px;
  }
  .work-card-title {
    font-size: 1.05rem;
  }

  /* 工序展示: 手机端舒适双列卡片 */
  .process-section {
    padding: 36px 0;
  }
  .process-steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .process-step-card {
    padding: 10px;
  }
  .process-step-title {
    font-size: 0.88rem;
  }
  .process-step-desc {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  /* 日记 */
  .diary-section {
    padding: 36px 0;
  }
  .diaries-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .diary-card {
    padding: 18px;
  }

  /* 关于工坊 */
  .about-section {
    padding: 36px 0;
  }
  .about-logo-frame {
    width: 160px;
    height: 160px;
  }
  .about-story-title {
    font-size: 1.35rem;
  }

  /* ================= 移动端作品档案 Bottom Sheet 抽屉体验 ================= */
  .modal-overlay {
    padding: 0;
    align-items: flex-end; /* 从底部升起 */
  }

  .modal-card {
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
  }

  @keyframes modalSlideUp {
    from { transform: translateY(100%); opacity: 0.5; }
    to { transform: translateY(0); opacity: 1; }
  }

  .modal-close-btn {
    top: 12px;
    right: 12px;
    background: #FFFDF8;
    box-shadow: 0 2px 8px rgba(64, 56, 50, 0.12);
  }

  .modal-content-grid {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    gap: 18px;
  }

  .modal-main-img {
    aspect-ratio: 1 / 1; /* 手机端避免长图遮挡信息 */
  }

  .modal-title {
    font-size: 1.25rem;
  }
  .modal-subtitle {
    font-size: 0.82rem;
  }
}
