/**
 * 太阳成(tyc234cc·Macau)股份有限公司-官方网站 — 官网样式
 * 简约 / 响应式 / 环评行业专业气质（院徽绿 + 中性灰）
 */

:root {
  --color-bg: #f3f8f4;
  --color-surface: #ffffff;
  --color-text: #1a2420;
  --color-muted: #5a6b61;
  --color-border: #d4e4d8;
  --color-brand: #00923f;
  --color-brand-dark: #006b2e;
  --color-brand-soft: #e6f6ec;
  --color-accent: #1c9b51;
  --color-ink: #052816;
  --color-brand-rgb: 0, 146, 63;
  --header-h: 80px;
  --radius: 10px;
  --shadow: 0 12px 40px rgba(0, 146, 63, 0.09);
  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* 主体内容宽度：约 90% 视口，小屏留安全边距 */
  --page-width: min(90vw, 90%);
  --page-max: calc(100vw - max(16px, env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px)));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--color-brand);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--color-accent);
}

.container {
  width: var(--page-width);
  max-width: var(--page-max);
  margin-inline: auto;
  box-sizing: border-box;
}

@media (max-width: 380px) {
  :root {
    --page-width: min(92vw, calc(100% - 20px));
  }
}

/* ---------- 顶栏 ---------- */
.site-topbar {
  background: var(--color-brand-dark);
  color: #cfe8e3;
  font-size: 13px;
}

.site-topbar .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 12px;
  flex-wrap: wrap;
}

.site-topbar a {
  color: #e8f6f3;
}

.site-topbar a:hover {
  color: #fff;
}

/* ---------- 主导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  background: transparent;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  color: var(--color-text);
  white-space: nowrap;
}

.site-header .brand {
  flex: 1 1 auto;
}

.site-header .brand-name {
  font-size: clamp(11px, calc((100vw - 148px) / 19), 18px);
}

.brand-sub {
  font-size: 13px;
  color: var(--color-muted);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-main a {
  color: var(--color-text);
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.nav-main a:hover,
.nav-main a.is-active {
  background: var(--color-brand-soft);
  color: var(--color-brand-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .site-header .inner {
    gap: 12px;
  }

  .nav-main {
    position: fixed;
    inset: calc(36px + var(--header-h)) 0 auto 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 0;
    max-height: calc(100vh - 36px - var(--header-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  body.nav-open .nav-main {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-main a {
    border-radius: 8px;
    padding: 14px 12px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-main a:last-child {
    border-bottom: 0;
  }
}

/* ---------- 首页全屏轮播 Hero ---------- */
.hero-carousel {
  --hero-top: calc(36px + var(--header-h));
  position: relative;
  color: #e8f6f3;
  min-height: calc(100dvh - var(--hero-top));
  min-height: calc(100svh - var(--hero-top));
  overflow: hidden;
  background: #042810;
}

.hero-carousel__slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s var(--ease), visibility 0.85s linear;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-carousel--no-motion .hero-slide {
  transition: none;
}

.hero-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
}

.hero-slide.is-active .hero-slide__img {
  animation: hero-ken 14s var(--ease) both;
}

.hero-carousel--no-motion .hero-slide__img {
  animation: none;
  transform: none;
}

@keyframes hero-ken {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.12);
  }
}

.hero-slide__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(4, 36, 32, 0.82) 0%,
    rgba(6, 74, 66, 0.55) 42%,
    rgba(4, 20, 22, 0.45) 100%
  );
  pointer-events: none;
}

.hero-slide__inner {
  position: relative;
  z-index: 2;
  min-height: calc(100dvh - var(--hero-top));
  min-height: calc(100svh - var(--hero-top));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 7vh, 100px) 0 clamp(48px, 9vh, 120px);
}

.hero-kicker {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 12px;
}

.hero-slide__title {
  margin: 0 0 16px;
  font-size: clamp(26px, 4.2vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  max-width: 900px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 640px;
  font-size: clamp(16px, 1.9vw, 18px);
  opacity: 0.94;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-carousel__ui {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-carousel__btn,
.hero-carousel__dots,
.hero-carousel__pause {
  pointer-events: auto;
}

.hero-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.hero-carousel__btn:hover {
  background: rgba(var(--color-brand-rgb), 0.45);
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-carousel__btn--prev {
  left: clamp(12px, 3vw, 28px);
}

.hero-carousel__btn--next {
  right: clamp(12px, 3vw, 28px);
}

.hero-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 4vh, 40px);
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), width 0.2s var(--ease);
}

.hero-carousel__dot.is-active {
  background: #fff;
  border-color: #fff;
  width: 28px;
  border-radius: 999px;
}

.hero-carousel__pause {
  position: absolute;
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(18px, 3.5vh, 36px);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.3);
  color: #e8f6f3;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.hero-carousel__pause:hover {
  background: rgba(var(--color-brand-rgb), 0.5);
}

.hero-carousel__pause[aria-pressed="true"] {
  background: rgba(var(--color-brand-rgb), 0.55);
}

@media (max-width: 640px) {
  .hero-carousel__btn {
    display: none;
  }

  .hero-carousel__pause {
    bottom: auto;
    top: clamp(12px, 3vh, 24px);
    right: clamp(12px, 3vw, 20px);
    transform: none;
  }

  .hero-carousel__dots {
    bottom: clamp(16px, 3vh, 28px);
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn-primary {
  background: #fff;
  color: var(--color-brand-dark);
}

.btn-primary:hover {
  transform: translateY(-1px);
  color: var(--color-brand-dark);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* ---------- 通用区块 ---------- */
.section {
  padding: clamp(40px, 6vw, 72px) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.page-home .section-head {
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.section-title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--color-text);
}

.page-home .section-title {
  text-align: center;
}

.section-title span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section--cap {
  position: relative;
  background:
    radial-gradient(880px 320px at 6% -10%, rgba(var(--color-brand-rgb), 0.1), transparent 58%),
    radial-gradient(640px 240px at 96% 110%, rgba(var(--color-brand-rgb), 0.07), transparent 52%),
    linear-gradient(180deg, #eef7f1 0%, var(--color-bg) 42%, #ffffff 100%);
}

.section--news {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #eef6f0;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48) 0%, rgba(238, 246, 240, 0.4) 48%, rgba(255, 255, 255, 0.55) 100%),
    url("../images/nxsp/news-bg.jpg");
  background-size: cover;
  background-position: center 36%;
  background-repeat: no-repeat;
}

.section--news > .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 720px) {
  .section--news {
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(238, 246, 240, 0.52) 50%, rgba(255, 255, 255, 0.66) 100%),
      url("../images/nxsp/news-bg.jpg");
    background-position: center 34%;
  }
}

.link-more {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-muted);
}

.link-more:hover,
.link-more:focus-visible {
  color: var(--color-brand);
}

.section-more {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: clamp(32px, 4.8vw, 52px);
  padding-bottom: 4px;
}

.section-more .link-more[hidden] {
  display: none;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}

@media (max-width: 1100px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  height: 100%;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
}

.cap-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cap-card__index {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-brand);
  font-variant-numeric: tabular-nums;
}

.cap-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--color-accent), var(--color-brand) 55%, var(--color-brand-dark));
  box-shadow: 0 8px 18px rgba(var(--color-brand-rgb), 0.22);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.cap-card__icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.cap-card__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
}

.cap-card__tags li {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-brand-dark);
  background: rgba(var(--color-brand-rgb), 0.08);
  border: 1px solid rgba(var(--color-brand-rgb), 0.12);
}

/* 能力卡片：光斑跟随 + 轻微 3D 浮起 + 扫光 */
.card--fx {
  position: relative;
  border-radius: 20px;
  padding: clamp(22px, 3vw, 28px) clamp(20px, 2.5vw, 26px) 24px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(var(--color-brand-rgb), 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.86)),
    linear-gradient(155deg, #ffffff 0%, var(--color-brand-soft) 48%, #ffffff 100%);
  box-shadow: 0 8px 28px rgba(5, 40, 22, 0.06);
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}

.cap-card {
  display: flex;
  flex-direction: column;
}

.card--fx.cap-card {
  box-shadow: inset 3px 0 0 var(--color-brand), 0 8px 28px rgba(5, 40, 22, 0.06);
}

.cap-card h3 {
  font-size: 20px;
  letter-spacing: 0.01em;
}

.cap-card p {
  flex: 1;
  line-height: 1.7;
}

.card--fx[data-spotlight]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    520px circle at var(--sx, 28%) var(--sy, 18%),
    rgba(var(--color-brand-rgb), 0.18),
    transparent 58%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 0;
}

.card--fx[data-spotlight]:hover::before {
  opacity: 1;
}

.card--fx::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 45%,
    transparent 75%
  );
  transform: skewX(-18deg);
  opacity: 0;
  transition: left 0.65s var(--ease), opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.card--fx:hover::after {
  left: 120%;
  opacity: 1;
}

.card--fx:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--color-brand-rgb), 0.32);
  box-shadow: inset 3px 0 0 var(--color-accent), 0 20px 40px rgba(var(--color-brand-rgb), 0.16);
}

.card--fx:hover .cap-card__icon {
  transform: scale(1.06);
  box-shadow: 0 10px 22px rgba(var(--color-brand-rgb), 0.28);
}

.card--fx:hover .cap-card__tags li {
  background: rgba(var(--color-brand-rgb), 0.14);
  border-color: rgba(var(--color-brand-rgb), 0.2);
}

.card--fx > * {
  position: relative;
  z-index: 2;
}

/* 滚动进入视口 */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.98);
  filter: blur(8px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease), filter 0.65s var(--ease);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .card--fx,
  .card--fx::after,
  .case-card--fx,
  .case-card--fx::after,
  .case-card--fx .case-card__media img,
  .case-card__body,
  .case-card__title,
  .case-card__desc,
  .news-list--modern a {
    transition: none !important;
  }

  .card--fx:hover {
    transform: none;
  }

  .case-card--fx:is(:hover, :focus-visible) {
    transform: none;
  }
}

/* ---------- 新闻列表 ---------- */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.news-list li {
  border-bottom: 1px solid var(--color-border);
}

.news-list li:last-child {
  border-bottom: 0;
}

.news-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  color: var(--color-text);
}

.news-list a:hover {
  background: var(--color-brand-soft);
  color: var(--color-brand-dark);
}

.news-list .title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-list time {
  font-size: 13px;
  color: var(--color-muted);
  flex-shrink: 0;
}

/* 新闻/公告 Tab 内：分条卡片 + 侧滑高亮 */
.news-list.news-list--modern {
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
}

.news-list.news-list--modern li {
  border: none;
}

.news-list.news-list--modern a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 18px 22px;
  border-radius: 16px;
  color: var(--color-text);
  background: linear-gradient(125deg, #ffffff 0%, rgba(240, 249, 247, 0.92) 100%);
  border: 1px solid rgba(var(--color-brand-rgb), 0.1);
  box-shadow: 0 4px 20px rgba(28, 37, 40, 0.06);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}

.news-list.news-list--modern a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-brand-dark));
  transform: scaleY(0);
  transform-origin: center bottom;
  transition: transform 0.45s var(--ease);
}

.news-list.news-list--modern a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--sx, 80%) var(--sy, 50%), rgba(var(--color-brand-rgb), 0.1), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.news-list.news-list--modern a:hover::after,
.news-list.news-list--modern a:focus-visible::after {
  opacity: 1;
}

.news-list.news-list--modern a:hover,
.news-list.news-list--modern a:focus-visible {
  transform: translateX(8px) scale(1.01);
  border-color: rgba(var(--color-brand-rgb), 0.32);
  box-shadow: 0 14px 36px rgba(var(--color-brand-rgb), 0.14);
  color: var(--color-brand-dark);
}

.news-list.news-list--modern a:hover::before,
.news-list.news-list--modern a:focus-visible::before {
  transform: scaleY(1);
}

.news-list.news-list--modern .title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.news-list.news-list--modern time {
  margin-top: 0;
}

.grid-3 .card[data-reveal]:nth-child(1) {
  transition-delay: 0.06s;
}
.grid-3 .card[data-reveal]:nth-child(2) {
  transition-delay: 0.14s;
}
.grid-3 .card[data-reveal]:nth-child(3) {
  transition-delay: 0.22s;
}

/* ---------- 新闻 + 公告 合并区（左图轮播 4 : 右列表 6） ---------- */
.news-notice-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(20px, 3vw, 32px);
  row-gap: 16px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.news-notice-grid__visual {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  align-self: stretch;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-ink);
  touch-action: pan-y;
}

.nn-carousel {
  position: absolute;
  inset: 0;
  height: auto;
  min-height: 0;
}

.nn-carousel__slides {
  position: absolute;
  inset: 0;
}

.nn-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s var(--ease), visibility 0.65s linear;
}

.nn-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.nn-carousel__slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.nn-carousel__slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.nn-carousel__slide--empty {
  background: linear-gradient(145deg, var(--color-brand-dark), var(--color-brand) 55%, var(--color-accent));
}

.nn-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nn-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  cursor: pointer;
  transition: width 0.2s var(--ease), background 0.2s var(--ease);
}

.nn-carousel__dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: #fff;
  border-color: #fff;
}

.news-notice-grid__list {
  display: contents;
}

.news-tabs {
  display: flex;
  gap: 0;
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 0;
  border-bottom: 2px solid var(--color-border);
}

.news-tabs__tab {
  appearance: none;
  font: inherit;
  cursor: pointer;
  padding: 12px 22px;
  margin-bottom: -2px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--color-muted);
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.news-tabs__tab:hover {
  color: var(--color-brand);
}

.news-tabs__tab.is-active {
  color: var(--color-brand-dark);
  border-bottom-color: var(--color-brand);
  background: linear-gradient(180deg, var(--color-brand-soft) 0%, transparent 100%);
}

.news-tabs__panels {
  flex: 1;
  display: block;
  grid-column: 2;
  grid-row: 2;
  padding-top: 0;
  position: relative;
  min-width: 0;
  min-height: 0;
}

/* 仅展示当前选中的 tab 对应列表（避免 flex 等样式削弱 [hidden] 的展示效果） */
.news-tabs__panel {
  display: none;
  flex-direction: column;
  min-height: 0;
}

.news-tabs__panel:not([hidden]) {
  display: flex;
  flex: 1;
}

.news-list--in-tabs {
  flex: 1;
}

.news-tabs__more {
  margin-top: 12px;
  text-align: right;
}

@media (max-width: 960px) {
  .news-notice-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    min-width: 0;
  }

  .news-notice-grid__list {
    display: contents;
  }

  .news-tabs,
  .news-tabs__panels,
  .news-notice-grid__visual {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .news-tabs {
    order: 1;
  }

  .news-notice-grid__visual {
    order: 2;
  }

  .news-tabs__panels {
    order: 3;
  }

  .news-notice-grid__visual {
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 180px;
    margin-top: 0;
  }

  .news-tabs__panels {
    padding-top: 4px;
  }

  .news-list.news-list--modern {
    width: 100%;
    min-width: 0;
  }

  .news-list.news-list--modern a,
  .news-list.news-list--modern a:hover,
  .news-list.news-list--modern a:focus-visible {
    transform: none;
    gap: 10px;
    padding: 14px 12px 14px 16px;
  }

  .news-list.news-list--modern time {
    font-size: 12px;
  }

  .page-home .section-title {
    font-size: clamp(20px, 5.4vw, 24px);
  }

  .section-more {
    margin-top: 36px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 68px;
  }

  .site-header .brand {
    gap: 10px;
  }

  .site-header .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-sub {
    font-size: 12px;
  }

  .nav-main a {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 60px;
  }

  .site-header .inner {
    gap: 8px;
  }

  .site-header .brand {
    gap: 8px;
  }

  .site-header .brand-logo {
    width: 40px;
    height: 40px;
  }

  .site-header .brand-sub {
    display: none;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 400px) {
  .site-header .inner {
    width: calc(100% - 20px);
    max-width: none;
    gap: 6px;
  }

  .site-header .brand {
    gap: 6px;
  }

  .site-header .brand-logo {
    width: 36px;
    height: 36px;
  }

  .nav-toggle {
    width: 36px;
    height: 36px;
  }
}

/* ---------- 业绩案例（图片卡片 · 桌面 2 行） ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  gap: clamp(14px, 2vw, 22px);
}

.case-card {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* 整卡为一张图：标题叠在图底；悬停全幅遮罩 + 标题与描述 */
.case-card--fx {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  border: none;
  background: var(--color-ink);
  box-shadow: 0 8px 28px rgba(28, 37, 40, 0.07);
  aspect-ratio: 8 / 5;
  min-height: 200px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.case-card--fx::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(4, 18, 16, 0.35) 0%, transparent 42%);
  opacity: 1;
  transition: background 0.28s ease;
}

.case-card--fx:is(:hover, :focus-visible) {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(var(--color-brand-rgb), 0.16);
  color: inherit;
}

.case-card--fx:is(:hover, :focus-visible)::after {
  background: linear-gradient(to top, rgba(4, 18, 16, 0.78) 0%, rgba(4, 18, 16, 0.28) 48%, transparent 78%);
}

.case-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--color-brand-dark), var(--color-brand) 55%, var(--color-accent));
  overflow: hidden;
}

.case-card__media.is-fallback::before {
  content: "业绩案例";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.case-card__media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.case-card--fx:is(:hover, :focus-visible) .case-card__media img {
  transform: scale(1.04);
}

.case-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 16px 14px;
  background: linear-gradient(to top, rgba(4, 18, 16, 0.9) 0%, rgba(4, 18, 16, 0.42) 62%, transparent 100%);
  transition: padding 0.28s ease;
}

.case-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: #f2faf8;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  transition: color 0.22s ease, -webkit-line-clamp 0.22s ease;
}

.case-card__desc {
  margin: 0;
  padding-top: 0;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: rgba(232, 246, 243, 0.88);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(4px);
  transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.28s ease, padding 0.22s ease;
}

.case-card--fx:is(:hover, :focus-visible) .case-card__body {
  padding: 28px 16px 20px;
}

.case-card--fx:is(:hover, :focus-visible) .case-card__title {
  color: #ffffff;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.case-card--fx:is(:hover, :focus-visible) .case-card__desc {
  max-height: 2.4em;
  opacity: 1;
  padding-top: 8px;
  overflow: visible;
  transform: translateY(0);
}

.case-card[data-reveal]:nth-child(1) {
  transition-delay: 0.03s;
}
.case-card[data-reveal]:nth-child(2) {
  transition-delay: 0.08s;
}
.case-card[data-reveal]:nth-child(3) {
  transition-delay: 0.13s;
}
.case-card[data-reveal]:nth-child(4) {
  transition-delay: 0.18s;
}
.case-card[data-reveal]:nth-child(5) {
  transition-delay: 0.23s;
}
.case-card[data-reveal]:nth-child(6) {
  transition-delay: 0.28s;
}
.case-card[data-reveal]:nth-child(7) {
  transition-delay: 0.33s;
}
.case-card[data-reveal]:nth-child(8) {
  transition-delay: 0.38s;
}

@media (max-width: 1280px) {
  .cases-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
  }
}

@media (max-width: 1024px) {
  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .case-card--fx:is(:hover, :focus-visible) {
    transform: none;
  }
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--color-ink);
  color: #b8ccc8;
  padding: 48px 0 24px;
  margin-top: 0;
}

.site-footer a {
  color: #d5e8e4;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .brand-name {
  color: #fff;
  white-space: nowrap;
  font-size: clamp(13px, 3.6vw, 18px);
}

.footer-brand .brand-sub {
  color: #8aa7a1;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 15px;
  color: #fff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  font-size: 13px;
  color: #8aa7a1;
  text-align: center;
}

.footer-copy {
  margin: 0;
  line-height: 1.8;
}

.footer-copy a {
  color: #cfe8e3;
  white-space: nowrap;
}

.footer-copy a:hover {
  color: #fff;
}

/* ---------- 内页通用 ---------- */
.page-banner {
  background: linear-gradient(120deg, var(--color-brand-dark), var(--color-brand));
  color: #e8f6f3;
  padding: 36px 0 32px;
}

.page-banner h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
}

.page-banner .crumbs {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.9;
}

.page-banner .crumbs a {
  color: #e8f6f3;
}

.page-body {
  padding: 36px 0 56px;
}

.page-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px 36px;
  align-items: start;
}

.case-subnav {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px 12px 12px;
}

.case-subnav h3 {
  margin: 0 8px 12px;
  font-size: 16px;
  color: var(--color-text);
}

.case-subnav h3 span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

.case-subnav a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.45;
}

.case-subnav a:hover,
.case-subnav a.is-active {
  background: rgba(15, 107, 94, 0.08);
  color: var(--color-brand);
}

@media (max-width: 800px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
}

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-list li {
  border-bottom: 1px solid var(--color-border);
}

.article-list a {
  display: block;
  padding: 18px 4px;
  color: var(--color-text);
}

.article-list a:hover .t {
  color: var(--color-brand);
}

.article-list .t {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  transition: color 0.2s;
}

.article-list .meta {
  font-size: 13px;
  color: var(--color-muted);
}

.article-list--decor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-list--decor li {
  border: none;
}

.article-list--decor a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px 16px 20px;
  overflow: hidden;
  border: 1px solid rgba(var(--color-brand-rgb), 0.1);
  border-radius: 14px;
  background: linear-gradient(125deg, #ffffff 0%, #f6fbf7 100%);
  box-shadow: 0 4px 18px rgba(28, 37, 40, 0.05);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.22s ease;
}

.article-list--decor a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-brand-dark));
  transform: scaleY(0.45);
  transform-origin: center;
  transition: transform 0.28s var(--ease);
}

.article-list--decor a:hover,
.article-list--decor a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(var(--color-brand-rgb), 0.28);
  box-shadow: 0 12px 28px rgba(var(--color-brand-rgb), 0.12);
}

.article-list--decor a:hover::before,
.article-list--decor a:focus-visible::before {
  transform: scaleY(1);
}

.article-list--decor a:hover .t,
.article-list--decor a:focus-visible .t {
  color: var(--color-brand-dark);
}

.article-list__date {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  padding: 8px 4px;
  border-radius: 10px;
  background: var(--color-brand-soft);
  color: var(--color-brand-dark);
  line-height: 1.15;
}

.article-list__date .d {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.article-list__date .ym {
  margin-top: 2px;
  font-size: 12px;
  color: var(--color-muted);
}

.article-list__main {
  flex: 1;
  min-width: 0;
}

.article-list__tag {
  display: inline-block;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-brand-dark);
  background: rgba(var(--color-brand-rgb), 0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.article-list--party .article-list__tag {
  color: #9b1c1c;
  background: #fdecec;
}

.article-list--party a::before {
  background: linear-gradient(180deg, #d64545, #9b1c1c);
}

.article-list--party .article-list__date {
  background: #fdecec;
  color: #9b1c1c;
}

.article-list--decor .t {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.article-list__go {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  position: relative;
}

.article-list__go::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 46%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--color-brand);
  border-top: 1.5px solid var(--color-brand);
  transform: translate(-50%, -50%) rotate(45deg);
}

.article-list--decor a:hover .article-list__go,
.article-list--decor a:focus-visible .article-list__go {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
}

@media (max-width: 640px) {
  .article-list--decor a {
    gap: 12px;
    padding: 14px 12px 14px 16px;
  }

  .article-list--decor a:hover,
  .article-list--decor a:focus-visible {
    transform: none;
  }

  .article-list__date {
    width: 52px;
    padding: 6px 2px;
  }

  .article-list__date .d {
    font-size: 20px;
  }

  .article-list--decor .t {
    font-size: 15px;
  }

  .article-list__go {
    display: none;
  }
}

.pagination {
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.article-list + .pagination,
.news-card-grid + .pagination {
  margin: 28px 0 0;
}

.news-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}

.news-card {
  background: var(--color-surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(28, 37, 40, 0.04);
}

.news-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--color-text);
}

.news-card a:hover,
.news-card a:focus-visible {
  color: var(--color-text);
}

.news-card__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(120deg, var(--color-brand-dark), var(--color-brand) 55%, var(--color-accent));
}

.news-card__cover::before {
  content: "新闻中心";
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.18em;
  z-index: 0;
}

.news-card__cover.is-fallback::before {
  display: flex;
}

.news-card__cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}

.news-card a:hover .news-card__cover img,
.news-card a:focus-visible .news-card__cover img {
  transform: scale(1.04);
}

.news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 16px;
}

.news-card__cat {
  font-size: 12px;
  line-height: 1.4;
  color: #9aa4a8;
}

.news-card__title {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s var(--ease);
}

.news-card a:hover .news-card__title,
.news-card a:focus-visible .news-card__title {
  color: var(--color-brand);
}

.news-card__date {
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
  color: #9aa4a8;
}

@media (max-width: 960px) {
  .news-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
  }
}

@media (max-width: 640px) {
  .news-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-card__title {
    font-size: 17px;
  }
}

.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 14px;
  padding: 0 10px;
  color: var(--color-text);
}

.pagination a:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.pagination .current {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

.pagination-info {
  min-width: 0;
  margin-right: 8px;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font-size: 13px;
  padding: 0 4px 0 0;
}

.pagination-ellipsis,
.pagination .is-disabled {
  border-color: transparent;
  background: transparent;
  color: var(--color-muted);
  cursor: default;
}

.article-show {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  width: 100%;
  margin: 0 auto;
}

.article-show h1 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 28px);
}

.article-show .meta {
  font-size: 14px;
  color: var(--color-muted);
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.article-show .content {
  font-size: 16px;
  color: #2a3438;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-show .content p {
  margin: 0 0 1em;
}

.article-show .content img,
.article-show .content table,
.article-show .content video {
  max-width: 100%;
  height: auto;
}

/* ---------- 无障碍 / 打印 ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 8px 14px;
  background: #fff;
  border: 2px solid var(--color-brand);
  z-index: 2000;
}

@media print {
  .site-topbar,
  .nav-toggle,
  .nav-main {
    display: none !important;
  }
}
