/* ============================================================
   ACT_event.css — 活动详情页独立样式（前缀 act-）
   暖棕古风设计系统：纸白底·深墨字·驼棕 #B07D56·印章红点缀
   不动 main.css 全站版本号（遵循「新模板自带独立 css/js」铁律）
   ============================================================ */
:root{
  --act-primary:#B07D56;
  --act-primary-d:#8A5A3B;
  --act-gold:#C49A6C;
  --act-ink:#2C2420;
  --act-muted:#7A6A5A;
  --act-paper:#FCF9F3;
  --act-paper-2:#F5EDE1;
  --act-line:#E8DFD0;
  --act-seal:#B8432F;
}

.act-wrap{padding:32px 0 56px;}

/* ===== 活动主视觉 ===== */
.act-hero{
  position:relative;
  border-radius:20px;
  padding:44px 40px 36px;
  margin-bottom:32px;
  color:var(--act-ink);
  background:
    radial-gradient(1200px 400px at 85% -20%, rgba(196,154,108,.22), transparent 60%),
    radial-gradient(800px 300px at -10% 110%, rgba(176,125,86,.16), transparent 55%),
    linear-gradient(135deg, #FFFDF8 0%, var(--act-paper-2) 100%);
  border:1px solid var(--act-line);
  box-shadow:0 10px 32px rgba(90,60,30,.08);
  overflow:hidden;
}
.act-hero::before{
  content:'';
  position:absolute;top:-46px;right:-46px;width:180px;height:180px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(184,67,47,.10) 0%, transparent 70%);
  pointer-events:none;
}
.act-hero::after{
  content:'活动';
  position:absolute;right:28px;top:28px;
  width:56px;height:56px;border-radius:50%;
  border:2px solid rgba(184,67,47,.55);
  color:var(--act-seal);
  display:flex;align-items:center;justify-content:center;
  font-size:15px;font-weight:700;letter-spacing:.12em;
  transform:rotate(-6deg);
  background:rgba(252,249,243,.7);
  box-shadow:0 0 0 5px rgba(184,67,47,.06);
}
.act-hero-inner{position:relative;z-index:1;}
.act-hero-title{
  margin:0 0 10px;
  font-size:30px;font-weight:700;line-height:1.35;
  color:var(--act-ink);
  letter-spacing:.02em;
}
.act-hero-sub{margin:0 0 18px;font-size:16px;color:var(--act-muted);line-height:1.7;}
.act-hero-meta{display:flex;flex-wrap:wrap;gap:10px 22px;margin-bottom:16px;}
.act-meta-item{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:var(--act-primary-d);}
.act-meta-ic{opacity:.75;}
.act-unit-row{display:flex;flex-wrap:wrap;gap:10px;}
.act-unit-chip{
  display:inline-flex;align-items:center;gap:8px;
  padding:7px 14px;border-radius:999px;
  background:rgba(255,255,255,.72);
  border:1px solid var(--act-line);
  font-size:13px;
  backdrop-filter:blur(8px);
}
.act-unit-t{color:var(--act-muted);}
.act-unit-k{color:var(--act-ink);font-weight:600;}

/* ===== 区块通用 ===== */
.act-sec{margin-bottom:34px;}
.act-sec-hd{margin-bottom:18px;padding-left:14px;border-left:4px solid var(--act-gold);}
.act-sec-title{margin:0 0 4px;font-size:22px;font-weight:700;color:var(--act-ink);}
.act-sec-sub{margin:0;font-size:13px;color:var(--act-muted);}

/* ===== 公示时间轴 ===== */
.act-timeline{list-style:none;margin:0;padding:0 0 0 8px;position:relative;}
.act-timeline::before{
  content:'';position:absolute;left:13px;top:8px;bottom:8px;width:2px;
  background:linear-gradient(180deg, var(--act-gold), rgba(196,154,108,.15));
  border-radius:2px;
}
.act-tl-item{position:relative;padding:0 0 26px 46px;}
.act-tl-item:last-child{padding-bottom:4px;}
.act-tl-dot{
  position:absolute;left:6px;top:6px;width:16px;height:16px;border-radius:50%;
  background:var(--act-primary);
  border:3px solid var(--act-paper);
  box-shadow:0 0 0 2px var(--act-gold);
}
.act-tl-item.act-tl-active .act-tl-dot{background:var(--act-seal);box-shadow:0 0 0 2px rgba(184,67,47,.5);}
.act-tl-item.act-tl-upcoming .act-tl-dot{background:var(--act-gold);box-shadow:0 0 0 2px rgba(196,154,108,.5);}
.act-tl-item.act-tl-ended .act-tl-dot{background:#C9C0B2;box-shadow:0 0 0 2px rgba(169,159,148,.5);}
.act-tl-body{
  background:var(--act-paper);
  border:1px solid var(--act-line);
  border-radius:14px;
  padding:18px 20px;
  box-shadow:0 3px 12px rgba(90,60,30,.06);
}
.act-tl-time{font-size:13px;color:var(--act-primary-d);margin-bottom:6px;letter-spacing:.02em;}
.act-tl-title{
  font-size:17px;font-weight:700;color:var(--act-ink);
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px;
}
.act-tl-badge{
  font-size:11px;font-weight:600;
  padding:3px 9px;border-radius:999px;letter-spacing:.06em;
}
.act-tl-active .act-tl-badge{background:rgba(184,67,47,.1);color:var(--act-seal);border:1px solid rgba(184,67,47,.3);}
.act-tl-upcoming .act-tl-badge{background:rgba(196,154,108,.14);color:var(--act-primary-d);border:1px solid rgba(196,154,108,.4);}
.act-tl-ended .act-tl-badge{background:rgba(169,159,148,.14);color:var(--act-muted);border:1px solid rgba(169,159,148,.4);}

/* ===== 公示内容项卡片 ===== */
.act-gs-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;}
.act-gs-card{min-width:0;}
.act-gs-link{
  display:flex;align-items:center;gap:12px;
  padding:13px 16px;border-radius:12px;
  background:#fff;border:1px solid var(--act-line);
  text-decoration:none;color:var(--act-ink);
  transition:border-color .2s, box-shadow .2s, transform .2s;
  height:100%;box-sizing:border-box;
}
.act-gs-link:hover{border-color:var(--act-gold);box-shadow:0 4px 14px rgba(90,60,30,.1);transform:translateY(-1px);}
.act-gs-ic{font-size:20px;flex:none;}
.act-gs-lb{
  font-size:11px;font-weight:600;color:var(--act-primary-d);
  background:var(--act-paper-2);border-radius:6px;
  padding:2px 8px;flex:none;letter-spacing:.06em;
}
.act-gs-nm{flex:1;min-width:0;font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.act-gs-ds{display:block;font-size:12px;color:var(--act-muted);margin-top:4px;line-height:1.5;}
.act-gs-go{flex:none;font-size:12px;color:var(--act-primary);white-space:nowrap;}
.act-gs-cov{width:56px;height:56px;border-radius:10px;overflow:hidden;flex:none;background:var(--act-paper-2);}
.act-gs-cov img{width:100%;height:100%;object-fit:cover;display:block;}
.act-gs-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;}
.act-gs-outer{align-items:stretch;}
.act-gs-img{border-radius:12px;overflow:hidden;border:1px solid var(--act-line);}
.act-gs-img img{width:100%;display:block;max-height:320px;object-fit:cover;}

/* ===== 平台作品集卡片（书封面立体风：作品集第一页作预览图）===== */
.act-gs-ant{
  position:relative;display:block;height:100%;box-sizing:border-box;
  border-radius:14px;text-decoration:none;color:var(--act-ink);
  padding:10px 10px 12px;
  transition:transform .3s cubic-bezier(.22,.9,.34,1);
}
.act-gs-ant-book{
  position:relative;display:flex;flex-direction:column;
  border-radius:12px;overflow:hidden;height:100%;
  background:#fff;border:1px solid var(--act-line);
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 8px 20px rgba(90,60,30,.10),
    0 2px 5px rgba(90,60,30,.06);
  transition:transform .3s cubic-bezier(.22,.9,.34,1), box-shadow .3s, border-color .3s;
}
/* 书脊立体感：右侧细高光 + 左侧微影 */
.act-gs-ant-book::before{
  content:'';position:absolute;top:0;bottom:0;left:0;width:6px;z-index:3;
  background:linear-gradient(90deg, rgba(44,36,32,.10), rgba(44,36,32,.02) 60%, transparent);
}
.act-gs-ant-book::after{
  content:'';position:absolute;top:0;bottom:0;right:0;width:5px;z-index:3;
  background:linear-gradient(270deg, rgba(255,255,255,.45), transparent 70%);
}
.act-gs-ant:hover{transform:translateY(-6px);}
.act-gs-ant:hover .act-gs-ant-book{
  border-color:var(--act-gold);
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 22px 42px rgba(90,60,30,.22),
    0 6px 14px rgba(90,60,30,.10);
}
.act-gs-ant-cov{
  position:relative;display:block;width:100%;
  aspect-ratio:4/3;min-height:150px;overflow:hidden;
  background:linear-gradient(135deg, #F5EDE1 0%, #E8DFD0 100%);
}
.act-gs-ant-cov img{
  width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .5s cubic-bezier(.22,.9,.34,1);
}
.act-gs-ant:hover .act-gs-ant-cov img{transform:scale(1.07);}
/* 无预览图时的占位（印章风格） */
.act-gs-ant-ph{
  position:absolute;inset:0;display:flex;flex-direction:column;gap:8px;
  align-items:center;justify-content:center;
  font-size:44px;color:rgba(138,90,59,.5);
}
.act-gs-ant-cov::before{ /* 底部渐隐，增强文字与层次 */
  content:'';position:absolute;left:0;right:0;bottom:0;height:52%;
  background:linear-gradient(180deg, transparent, rgba(44,36,32,.48));
  pointer-events:none;z-index:1;
}
.act-gs-ant-badge{
  position:absolute;left:10px;top:10px;z-index:2;
  font-size:11px;font-weight:700;letter-spacing:.12em;
  padding:4px 11px;border-radius:999px;
  color:#fff;background:rgba(138,90,59,.92);
  border:1px solid rgba(255,255,255,.55);
  backdrop-filter:blur(6px);
  box-shadow:0 2px 8px rgba(44,36,32,.25);
}
.act-gs-ant-bd{
  position:relative;z-index:2;
  display:flex;flex-direction:column;gap:7px;
  padding:12px 13px 13px;
  background:linear-gradient(180deg, #FFFDF8, #FBF6EC);
}
.act-gs-ant-t{
  font-size:15px;font-weight:700;line-height:1.5;color:var(--act-ink);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.act-gs-ant-go{
  display:inline-flex;align-items:center;gap:5px;
  font-size:13px;font-weight:600;color:var(--act-primary-d);
}
.act-gs-ant-go i{font-style:normal;transition:transform .28s;display:inline-block;}
.act-gs-ant:hover .act-gs-ant-go i{transform:translateX(5px);}

/* 时间轴内公示条目网格（紧凑横条）：不展示大封面图，避免占用页面位置 */
.act-gs-items{grid-template-columns:1fr;gap:10px;}
/* 公示时间轴作品集横条：小缩略图 + 标题 + 查看按钮 */
.act-gs-ant-bar{
  display:flex;align-items:center;gap:12px;
  padding:10px 14px;
  border-radius:10px;border:1px solid var(--act-line);
  background:#fff;color:var(--act-ink);
  text-decoration:none;
  transition:border-color .2s, box-shadow .2s, transform .2s;
}
.act-gs-ant-bar:hover{
  border-color:var(--act-gold);
  box-shadow:0 4px 14px rgba(90,60,30,.1);
  transform:translateX(2px);
}
.act-gs-ant-bar-thumb{
  flex:none;width:54px;height:54px;border-radius:8px;overflow:hidden;
  background:linear-gradient(135deg, #F5EDE1, #E8DFD0);
  display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(176,125,86,.25);
}
.act-gs-ant-bar-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.act-gs-ant-bar-ph{font-size:24px;color:rgba(138,90,59,.5);}
.act-gs-ant-bar-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;}
.act-gs-ant-bar-t{
  font-size:14px;font-weight:600;color:var(--act-ink);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.act-gs-ant-bar-lb{
  font-size:11px;color:var(--act-primary-d);
  letter-spacing:.04em;
}
.act-gs-ant-bar-go{
  flex:none;font-size:13px;font-weight:600;color:var(--act-primary-d);
  display:inline-flex;align-items:center;gap:3px;
}
.act-gs-ant-bar-go i{font-style:normal;transition:transform .25s;display:inline-block;}
.act-gs-ant-bar:hover .act-gs-ant-bar-go i{transform:translateX(4px);}

/* ===== 活动详情正文 ===== */
.act-detail-content{
  background:var(--act-paper);
  border:1px solid var(--act-line);
  border-radius:14px;
  padding:26px 28px;
  line-height:1.9;font-size:15px;color:var(--act-ink);
  box-shadow:0 3px 12px rgba(90,60,30,.05);
}
.act-editor-content img{max-width:100%;height:auto;border-radius:8px;}
.act-editor-content p{margin:0 0 14px;}
.act-editor-content h1,.act-editor-content h2,.act-editor-content h3{color:var(--act-ink);}
.act-editor-content a{color:var(--act-primary-d);text-decoration:underline;}
.act-editor-content table{width:100%;border-collapse:collapse;margin:14px 0;}
.act-editor-content td,.act-editor-content th{border:1px solid var(--act-line);padding:8px 12px;}

/* ===== 首屏公示浮窗 ===== */
.act-float-mask{
  position:fixed;inset:0;z-index:12000;
  background:rgba(44,36,32,.35);
  backdrop-filter:blur(3px);
  display:flex;align-items:center;justify-content:center;
  padding:20px;
  animation:actFadeIn .28s ease;
}
.act-float-mask[hidden]{display:none;}
.act-float{
  position:relative;
  width:min(560px,94vw);
  max-height:82vh;overflow-y:auto;
  background:linear-gradient(160deg, #FFFDF8, var(--act-paper-2));
  border:1px solid var(--act-line);
  border-radius:18px;
  padding:28px 28px 22px;
  box-shadow:0 24px 64px rgba(44,36,32,.35);
  animation:actFloatIn .32s cubic-bezier(.22,.9,.34,1);
}
.act-float-close{
  position:absolute;top:14px;right:14px;
  width:34px;height:34px;border-radius:50%;
  border:1px solid var(--act-line);background:#fff;
  cursor:pointer;font-size:15px;color:var(--act-muted);
  display:flex;align-items:center;justify-content:center;
  transition:background .2s, color .2s, transform .2s;
}
.act-float-close:hover{background:var(--act-seal);color:#fff;transform:rotate(90deg);}
.act-float-hd{display:flex;align-items:center;gap:12px;margin-bottom:10px;}
.act-float-seal{
  flex:none;width:44px;height:44px;border-radius:50%;
  border:2px solid var(--act-seal);color:var(--act-seal);
  display:flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:700;letter-spacing:.1em;
  transform:rotate(-6deg);
}
.act-float-title{margin:0;font-size:20px;font-weight:700;color:var(--act-ink);line-height:1.4;}
.act-float-time{font-size:13px;color:var(--act-primary-d);margin-bottom:14px;}
.act-float-items{grid-template-columns:1fr;display:flex;flex-direction:column;gap:12px;}
.act-float-foot{
  margin-top:18px;padding-top:14px;border-top:1px dashed var(--act-line);
  font-size:12px;color:var(--act-muted);text-align:center;letter-spacing:.05em;
}

/* 浮窗内作品集：简化直接展示（不套时间轴书封面立体卡） */
.act-gs-ant-float{
  position:relative;display:flex;flex-direction:column;gap:12px;
  border-radius:14px;padding:14px;
  background:linear-gradient(160deg, #FFFDF8, #F5EDE1);
  border:1px solid var(--act-line);
  text-decoration:none;color:var(--act-ink);
  transition:border-color .25s, box-shadow .25s, transform .25s;
}
.act-gs-ant-float:hover{
  border-color:var(--act-gold);
  box-shadow:0 8px 22px rgba(90,60,30,.14);
  transform:translateY(-2px);
}
.act-gs-ant-float-cov{
  display:block;width:100%;border-radius:10px;overflow:hidden;
  border:1px solid var(--act-line);background:#EDE4D4;
}
.act-gs-ant-float-cov img{width:100%;display:block;max-height:280px;object-fit:cover;}
.act-gs-ant-float-bd{display:flex;flex-direction:column;gap:8px;}
.act-gs-ant-float-t{
  font-size:16px;font-weight:700;line-height:1.5;color:var(--act-ink);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.act-gs-ant-float-go{
  display:inline-flex;align-items:center;gap:5px;
  font-size:14px;font-weight:600;color:var(--act-primary-d);
}
.act-gs-ant-float-go i{font-style:normal;transition:transform .25s;display:inline-block;}
.act-gs-ant-float:hover .act-gs-ant-float-go i{transform:translateX(5px);}

@keyframes actFadeIn{from{opacity:0}to{opacity:1}}
@keyframes actFloatIn{from{opacity:0;transform:translateY(24px) scale(.97)}to{opacity:1;transform:none}}

/* ===== 响应式 ===== */
@media (max-width:768px){
  .act-wrap{padding:20px 0 40px;}
  .act-hero{padding:30px 22px 26px;}
  .act-hero-title{font-size:24px;}
  .act-hero::after{width:46px;height:46px;font-size:13px;top:20px;right:20px;}
  .act-tl-item{padding-left:38px;}
  .act-gs-items{grid-template-columns:1fr;}
  .act-detail-content{padding:20px;}
}
@media (max-width:480px){
  .act-float-mask{padding:10px;}
  .act-float{padding:22px 18px 18px;max-height:88vh;}
  .act-hero-title{font-size:21px;}
  .act-tl-time{font-size:12px;}
}
