
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f3f0;
  color: #222;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px;
}

/* 顶部品牌卡片 */
.header {
  background: #ffffff;
  border-radius: 22px;
  padding: 22px 20px 20px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  border: 1px solid #f0ece8;
}

.store-name {
  font-size: 23px;
  font-weight: 700;
  color: #222;
  line-height: 1.35;
  letter-spacing: 0.2px;
}

.page-title {
  font-size: 14px;
  color: #8a8178;
  margin-top: 6px;
}

/* 服务有效期 */
.service-status {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.4;
  background: #f8f5f1;
  color: #6f6258;
  border: 1px solid #eee6dc;
}

.service-status.warning {
  background: #fff6e6;
  color: #9a6a18;
  border-color: #f3d9a4;
}

.service-status.expired {
  background: #fff1f1;
  color: #b54747;
  border-color: #f1c7c7;
}

.service-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
  flex-shrink: 0;
}


.material-entry-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.material-entry-main {
  min-width: 0;
  flex: 1;
}

.material-entry-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #2f2924;
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  margin-bottom: 8px;
  letter-spacing: 0.4px;
}

.material-entry-title {
  font-size: 17px;
  font-weight: 750;
  color: #2b2622;
  line-height: 1.35;
  margin-bottom: 5px;
}

.material-entry-desc {
  font-size: 13px;
  color: #756b62;
  line-height: 1.65;
}

.material-entry-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #2f2924;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(47,41,36,0.16);
}

.material-entry-btn:active {
  transform: scale(0.98);
}

.material-entry.expired {
  background: #ffffff;
  border-color: #f1d3d3;
}

.material-entry.expired .material-entry-label {
  background: #fff1f1;
  color: #b54747;
}

.material-entry.expired .material-entry-title {
  color: #b54747;
}

.material-entry.expired .material-entry-btn {
  background: #eee7e1;
  color: #9b9289;
  box-shadow: none;
  pointer-events: none;
}

.material-entry-tip {
  margin-top: 10px;
  font-size: 12px;
  color: #9a9189;
  line-height: 1.6;
}

/* 顶部说明 */
.notice {
  background: #ffffff;
  border-radius: 18px;
  padding: 13px 15px;
  margin-bottom: 14px;
  border: 1px solid #f0ece8;
  color: #7a7169;
  font-size: 13px;
  line-height: 1.7;
}

.notice strong {
  color: #3f3934;
}

.notice-sep {
  color: #b5aca4;
  margin: 0 2px;
}

/* 节日分组：每个节日一组，组内 3 张海报一排 */
.festival-list {
  display: block;
}

.festival-group {
  position: relative;
  padding: 2px 0 20px;
  margin-bottom: 20px;
}

/* 每个节日组之间的虚线分隔 */
.festival-group:not(:last-child) {
  border-bottom: 1px dashed #cfc6bd;
}

/* 一个节日只显示一次标题 + 日期 */
.festival-group-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  min-width: 0;
}

.festival-group-name {
  font-size: 16px;
  font-weight: 750;
  color: #2b2622;
  line-height: 1.4;
  min-width: 0;
}

.festival-group-date {
  flex-shrink: 0;
  font-size: 11px;
  color: #8a8178;
  padding: 4px 8px;
  background: #f7f4f0;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.4;
}

.festival-group-latest {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #2f2924;
  color: #fff;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.4px;
}

/* 三张一排 */
.poster-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

/* 海报卡片 */
.poster-card {
  position: relative;
  min-width: 0;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.045);
  border: 1px solid #f0ece8;
}

.poster-img-wrap {
  position: relative;
  width: 100%;
  background: #eee;
}

.poster-img {
  display: block;
  width: 100%;
  height: auto;
  background: #eee;
  cursor: zoom-in;
}

/* 文案区域：一个节日的三张海报共用一组文案 */
.copy-section {
  padding-top: 11px;
}

.copy-box {
  border-top: 1px solid #f1ede9;
  padding-top: 10px;
}

.copy-title {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: #7a7169;
  font-weight: 650;
  margin-bottom: 8px;
}

.copy-title::before {
  content: "";
  width: 4px;
  height: 12px;
  border-radius: 999px;
  background: #d8c7b8;
  margin-right: 6px;
}

.copy-item {
  background: #fbfaf8;
  border: 1px solid #eee8e1;
  border-radius: 12px;
  padding: 9px 10px;
  font-size: 12px;
  color: #3f3934;
  line-height: 1.7;
  margin-bottom: 8px;
  word-break: break-word;
}

.copy-item:last-child {
  margin-bottom: 0;
}

/* 空状态 */
.empty {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 20px;
  text-align: center;
  color: #8a8178;
  font-size: 14px;
  border: 1px solid #f0ece8;
}

.empty-title {
  font-size: 16px;
  color: #3f3934;
  font-weight: 600;
  margin-bottom: 8px;
}

/* 底部 */
.footer {
  text-align: center;
  color: #aaa;
  font-size: 12px;
  padding: 18px 0 8px;
}

/* 大图预览弹窗 */
.image-preview-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20, 18, 16, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.image-preview-mask.show {
  display: flex;
}

.image-preview-content {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-preview-img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  border-radius: 18px;
  background: #eee;
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}

.image-preview-tip {
  margin-top: 12px;
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.image-preview-close {
  position: absolute;
  top: -12px;
  right: -8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.94);
  color: #333;
  font-size: 22px;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* 手机端优化 */
@media (max-width: 480px) {
  .container {
    padding: 10px 12px 12px;
  }

  .header {
    border-radius: 18px;
    padding: 16px 16px 15px;
    margin-bottom: 9px;
  }

  .store-name {
    font-size: 20px;
    line-height: 1.3;
  }

  .page-title {
    font-size: 13px;
    margin-top: 3px;
  }

  .service-status {
    margin-top: 10px;
    gap: 6px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .service-dot {
    width: 6px;
    height: 6px;
  }

  .material-entry {
    border-radius: 18px;
    padding: 15px 14px;
    margin-bottom: 12px;
  }

  .material-entry-inner {
    align-items: flex-start;
  }

  .material-entry-title {
    font-size: 16px;
  }

  .material-entry-desc {
    font-size: 12px;
  }

  .material-entry-btn {
    min-width: 70px;
    height: 36px;
    font-size: 12px;
    padding: 0 12px;
  }

  .notice {
    border-radius: 14px;
    padding: 9px 11px;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.55;
  }

  .festival-group {
    padding: 0 0 12px;
    margin-bottom: 12px;
  }

  .festival-group-header {
    gap: 6px;
    margin-bottom: 7px;
  }

  .festival-group-name {
    font-size: 16px;
    line-height: 1.3;
  }

  .festival-group-date {
    font-size: 10px;
    padding: 3px 7px;
  }

  .festival-group-latest {
    font-size: 9px;
    padding: 3px 7px;
  }

  .poster-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .poster-card {
    border-radius: 9px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.035);
  }

  .copy-section {
    padding-top: 9px;
  }

  .copy-item {
    font-size: 12px;
    padding: 8px 9px;
  }

  .image-preview-mask {
    padding: 12px;
  }

  .image-preview-img {
    max-height: 80vh;
    border-radius: 16px;
  }

  .image-preview-close {
    top: -10px;
    right: -4px;
  }
}

/* 特别窄的手机，避免挤压 */
@media (max-width: 340px) {
  .poster-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .poster-card {
    border-radius: 9px;
  }

  .material-entry-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .material-entry-btn {
    width: 100%;
  }
}

.copy-content{white-space:pre-wrap}.copy-text-button{margin-top:8px;border:1px solid #ded3c5;border-radius:7px;background:#fff;color:#76613d;padding:6px 10px;font:inherit;cursor:pointer}.copy-text-button:disabled{opacity:.65}
