/* ==========================================================================
   都江堰新时代文明实践专题页
   配色：米白底 + 红橙国风
   ========================================================================== */

:root {
  --cream: #fbf7ec;
  --cream-deep: #f4ecdc;
  --orange: #e2542b;
  --orange-deep: #d8481e;
  --red: #d93422;
  --ink: #2f2a25;
  --text: #3a352f;
  --gray: #6b6258;
  --paper: #fbf0d8;
  --line: #c8b69d;
  --wrap:1280px;
  --font-sans: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background-color: var(--cream);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

.wrap {
  width: min(var(--wrap), 90%);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.xq{color: #ab0d0d;}
.xq:hover{color: #ff7700;}

/* --------------------------------------------------------------------------
   顶部 Banner
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #ef7a3c;
}

.hero__img {
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: cover;
  object-position: center 42%;
}

/* --------------------------------------------------------------------------
   导语说明区
   -------------------------------------------------------------------------- */
.intro {
  position: relative;
  padding: 44px 0 52px;
  background: linear-gradient(180deg, #e75c2d 0%, #e0522a 46%, #dc4a1f 100%);
  color: #40200f;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 120% at 50% 0%, rgba(255, 196, 130, 0.35) 0%, rgba(255, 196, 130, 0) 70%);
  pointer-events: none;
}

.intro .wrap {
  position: relative;
  max-width: 1000px;
}

.intro p {
  font-size: 16.5px;
  line-height: 2.05;
  text-align: justify;
  text-indent: 2em;
  letter-spacing: 0.2px;
  color: #FFF;
}

/* --------------------------------------------------------------------------
   板块通用
   -------------------------------------------------------------------------- */
.section {
  padding: 74px 0 76px;
}

.sec-head {
  text-align: center;
  margin-bottom: 44px;
}

.sec-head img {
  width: min(1000px, 88%);
  height: auto;
  margin: 0 auto;
}

/* 板块标题装饰飘带（图片自带阴影），下方留白 */
.section-1 {
  padding-top: 82px;
}

.section-2 {
  padding-top: 40px;
}

.section-3 {
  padding-top: 34px;
  padding-bottom: 88px;
  background: linear-gradient(180deg, #f9f5ea 0%, #f2f0e9 100%);
}

/* --------------------------------------------------------------------------
   图片通用：悬停轻微放大
   -------------------------------------------------------------------------- */
.zoom {
  overflow: hidden;
}

.zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
  opacity: 0;
}

.zoom img.is-loaded {
  opacity: 1;
}

/* 图片区域取消鼠标手型光标 */
.mosaic__item,
.photo,
.hex {
  cursor: default;
}

/* --------------------------------------------------------------------------
   板块一：图文左右排布
   -------------------------------------------------------------------------- */
.card {
  display: grid;
  grid-template-columns: 46% 1fr;
  gap: 5.4%;
  align-items: center;
}

.card + .card {
  margin-top: 44px;
  padding-top: 44px;
  border-top: 1px dotted var(--line);
}

.card--reverse .card__media {
  order: 2;
}

.card--reverse .card__body {
  order: 1;
}

.card__media.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.mosaic__item {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background-color: var(--cream-deep);
}

.card__body h2 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--ink);
  text-align: center;
  margin-bottom: 14px;
}

.card__body p {
  font-size: 15.5px;
  line-height: 2;
  color: var(--text);
  text-align: justify;
  text-indent: 2em;
}

.detail {
  color: var(--orange-deep);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   板块二：错落六边形
   -------------------------------------------------------------------------- */
.hex-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(1280px, 94vw);
  margin-left: calc((100% - min(1280px, 94vw)) / 2);
  margin-bottom: 46px;
}

.hex-col {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
}

.hex {
  display: block;
  width: 100%;
  aspect-ratio: 1.1547 / 1;
  overflow: hidden;
  background-color: var(--cream-deep);
  -webkit-clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20120%20104'%20preserveAspectRatio='none'%3E%3Cpath%20fill='%23000'%20d='M41,0L79,0Q90,0,95.5,9.53L114.5,42.47Q120,52,114.5,61.53L95.5,94.47Q90,104,79,104L41,104Q30,104,24.5,94.47L5.5,61.53Q0,52,5.5,42.47L24.5,9.53Q30,0,41,0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20120%20104'%20preserveAspectRatio='none'%3E%3Cpath%20fill='%23000'%20d='M41,0L79,0Q90,0,95.5,9.53L114.5,42.47Q120,52,114.5,61.53L95.5,94.47Q90,104,79,104L41,104Q30,104,24.5,94.47L5.5,61.53Q0,52,5.5,42.47L24.5,9.53Q30,0,41,0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* 同列上下两张六边形之间的垂直间隔 */
.hex + .hex {
  margin-top: clamp(8px, 1.2vw, 16px);
}

/* 米色文字条目区 */
.list-box {
  background-color: var(--paper);
  padding: 24px 56px;
}

.list-box ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  row-gap: 4px;
}

.list-box li {
  position: relative;
  padding-left: 16px;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 2.05;
  color: #4b3a28;
}

/* 标题链接鼠标移入变红 */
.list-box li a:hover {
  color: var(--red);
}

.list-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--orange);
}

/* --------------------------------------------------------------------------
   板块三：两行四列图片网格
   -------------------------------------------------------------------------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background-color: var(--cream-deep);
}

.article-block {
  margin-top: 42px;
}

.article-block h2 {
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--ink);
  text-align: center;
}

.article-block > p {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 2.05;
  text-align: justify;
  text-indent: 2em;
}

.article-block .list-box {
  margin-top: 38px;
}

.article-block .list-box ul {
  column-gap: 43px;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.footer {
  padding: 30px 0 34px;
  background: linear-gradient(180deg, #e0522a 0%, #d94a20 100%);
  color: #ffffff;
  text-align: center;
}

.footer p {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 2;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   滚动渐显
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .card {
    grid-template-columns: 46% 1fr;
    gap: 4.5%;
  }

  .card__body h2 {
    font-size: 18px;
  }

  .card__body p {
    font-size: 14.5px;
  }
}

@media (max-width: 820px) {
  .hero__img {
    height: clamp(220px, 50vw, 420px);
    object-position: center 40%;
  }

  .intro {
    padding: 30px 0 34px;
  }

  .intro p {
    font-size: 14.5px;
    line-height: 1.95;
  }

  .section {
    padding: 52px 0 56px;
  }

  .section-1 {
    padding-top: 56px;
  }

  .section-2,
  .section-3 {
    padding-top: 24px;
  }

  .sec-head {
    margin-bottom: 30px;
  }

  .sec-head img {
    width: 94%;
  }

  .card,
  .card--reverse {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .card--reverse .card__media {
    order: 1;
  }

  .card--reverse .card__body {
    order: 2;
  }

  .card + .card {
    margin-top: 34px;
    padding-top: 34px;
  }

  .card__body h2 {
    font-size: 17px;
  }

  .card__body p {
    font-size: 14.5px;
    line-height: 1.95;
  }

  .hex-grid {
    margin-bottom: 32px;
  }

  .list-box {
    padding: 20px 26px;
  }

  .list-box ul {
    column-gap: 24px;
  }

  .list-box li {
    font-size: 13.5px;
    line-height: 1.95;
  }

  .list-box li::before {
    top: 11px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-block {
    margin-top: 30px;
  }

  .article-block h2 {
    font-size: 17px;
  }

  .article-block > p {
    font-size: 14.5px;
    line-height: 1.95;
  }

  .article-block .list-box {
    margin-top: 26px;
  }

  .footer p {
    font-size: 13.5px;
  }
}

@media (max-width: 480px) {
  .hero__img {
    height: 210px;
  }

  .intro p {
    text-indent: 0;
  }

  .sec-head img {
    width: 100%;
  }

  .list-box ul {
    grid-template-columns: 1fr;
  }
  .photo-grid {
    gap: 5px;
  }

  .article-block h2 {
    text-align: left;
  }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .zoom img,
  .js .reveal {
    transition: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
