/* 中璟光环境 - 红白企业风 */
:root {
  --primary-red: #c8161d;
  --primary-red-dark: #a01218;
  --primary-red-light: #e8353c;
  --color-bg: #ffffff;
  --color-bg-gray: #f5f5f5;
  --color-bg-dark: #222222;
  --color-text: #333333;
  --color-text-muted: #666666;
  --color-text-light: #999999;
  --color-white: #ffffff;
  --color-border: #e8e8e8;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 32px rgba(200, 22, 29, 0.12);
  --radius: 0;
  --header-h: 80px;
  --transition: 0.35s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--primary-red);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-red-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.container-wide {
  max-width: 1440px;
}

/* ========== Header ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.is-transparent {
  background: transparent;
  border-bottom: none;
}

.site-header.is-transparent .logo,
.site-header.is-transparent .main-nav a {
  color: var(--color-white);
}

.site-header.is-transparent .main-nav a:hover,
.site-header.is-transparent .main-nav a.active {
  color: var(--color-white);
  background: var(--primary-red);
}

.site-header.is-transparent .nav-toggle {
  color: var(--color-white);
}

.site-header.is-solid,
body:not(.page-home) .site-header {
  background: var(--color-white);
  box-shadow: 0 1px 0 var(--color-border);
}

.site-header.is-solid .logo,
body:not(.page-home) .site-header .logo {
  color: var(--color-text);
}

.site-header.is-solid .main-nav a,
body:not(.page-home) .site-header .main-nav a {
  color: var(--color-text);
}

.site-header.is-solid .main-nav a:hover,
.site-header.is-solid .main-nav a.active,
body:not(.page-home) .site-header .main-nav a:hover,
body:not(.page-home) .site-header .main-nav a.active {
  color: var(--color-white);
  background: var(--primary-red);
}

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

.logo {
  display: flex;
  align-items: center;
  transition: opacity var(--transition);
}

.logo:hover {
  opacity: 0.85;
}

.logo-img {
  display: block;
  height: 72px;
  width: auto;
  object-fit: contain;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary-red);
  color: var(--color-white);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
}

.logo-text {
  font-size: 20px;
  letter-spacing: 0.08em;
}

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

.main-nav a {
  padding: 10px 20px;
  font-size: 15px;
  transition: all var(--transition);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: var(--transition);
}

.site-header.is-solid .nav-toggle,
body:not(.page-home) .site-header .nav-toggle {
  color: var(--color-text);
}

/* ========== Hero Carousel ========== */
.hero-carousel {
  position: relative;
  height: 100vh;
  min-height: 640px;
  max-height: 960px;
  overflow: hidden;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  background-size: cover;
  background-position: center;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.carousel-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 40px 120px;
  max-width: 1280px;
  margin: 0 auto;
  left: 0;
  right: 0;
  color: var(--color-white);
  text-align: left;
}

.carousel-content h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  line-height: 1.3;
  color: var(--color-white);
}

.carousel-content .subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  margin-bottom: 48px;
  color: rgba(255, 255, 255, 0.92);
}

.carousel-actions {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.1em;
}

.btn-primary {
  background: var(--primary-red);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--primary-red-dark);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--primary-red);
}

.carousel-content .btn-outline {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.9);
}

.carousel-content .btn-outline:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--primary-red);
}

/* 红色底栏：新闻 + 轮播控制 */
.hero-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: stretch;
  min-height: 56px;
  background: var(--primary-red);
}

.hero-bar-news {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 40px;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-bar-news .label {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-right: 24px;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.hero-bar-news .ticker {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.hero-bar-news .ticker-inner {
  display: inline-block;
  animation: ticker 25s linear infinite;
  color: var(--color-white);
  font-size: 14px;
}

.hero-bar-news .ticker-inner a {
  color: var(--color-white);
  margin-right: 48px;
}

.hero-bar-news .ticker-inner a:hover {
  text-decoration: underline;
  color: var(--color-white);
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero-bar-controls {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.hero-bar-controls .carousel-prev,
.hero-bar-controls .carousel-next {
  width: 56px;
  height: 56px;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--color-white);
  font-size: 22px;
  cursor: pointer;
  transition: background var(--transition);
}

.hero-bar-controls .carousel-prev:hover,
.hero-bar-controls .carousel-next:hover {
  background: var(--primary-red-dark);
}

.carousel-counter {
  display: flex;
  align-items: center;
  padding: 0 28px;
  color: var(--color-white);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 100px;
  justify-content: center;
}

.carousel-counter .current {
  font-size: 24px;
  font-weight: 700;
  margin-right: 4px;
}

.carousel-dots {
  display: none;
}

/* ========== Section 通用 ========== */
section {
  padding: 100px 0;
  background: var(--color-bg);
}

.section-head {
  margin-bottom: 48px;
}

.section-head.left {
  text-align: left;
}

.section-head h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.section-head .title-en {
  font-size: 13px;
  color: var(--color-text-light);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.section-head .title-line {
  width: 48px;
  height: 3px;
  background: var(--primary-red);
  margin-top: 16px;
}

.section-head.center {
  text-align: center;
}

.section-head.center .title-line {
  margin-left: auto;
  margin-right: auto;
}

/* ========== 核心优势 / 业务卡片 ========== */
.section-services {
  background: var(--color-bg);
}

.services-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--color-border);
}

.service-card {
  position: relative;
  padding: 48px 32px;
  background: var(--color-white);
  border-right: 1px solid var(--color-border);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  overflow: hidden;
}

.service-card:last-child {
  border-right: none;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary-red);
  transform: translateY(100%);
  transition: transform var(--transition);
  z-index: 0;
}

.service-card:hover::before {
  transform: translateY(0);
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card .card-num {
  font-size: 48px;
  font-weight: 700;
  color: #f0f0f0;
  line-height: 1;
  margin-bottom: 24px;
  transition: color var(--transition);
}

.service-card:hover .card-num {
  color: rgba(255, 255, 255, 0.2);
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: 16px;
  transition: color var(--transition);
}

.service-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
  transition: color var(--transition);
}

.service-card:hover h3,
.service-card:hover p {
  color: var(--color-white);
}

.service-card .card-link {
  margin-top: auto;
  padding-top: 24px;
  font-size: 13px;
  color: var(--primary-red);
  letter-spacing: 0.1em;
  transition: color var(--transition);
}

.service-card:hover .card-link {
  color: var(--color-white);
}

/* ========== 精选案例 ========== */
.section-cases {
  position: relative;
  background: var(--color-bg-gray);
  overflow: hidden;
}

.section-cases .watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 700;
  color: rgba(0, 0, 0, 0.03);
  letter-spacing: 0.2em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.cases-showcase {
  position: relative;
  z-index: 1;
}

.case-featured {
  position: relative;
  margin-bottom: 32px;
}

.case-featured-img {
  position: relative;
  width: calc(100% - 80px);
  aspect-ratio: 21/9;
  min-height: 360px;
  overflow: hidden;
  background: #ddd;
}

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

.case-featured-deco {
  position: absolute;
  right: 0;
  top: 60px;
  bottom: -40px;
  width: 120px;
  background: var(--primary-red);
  z-index: -1;
}

.case-featured-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 120px;
  padding: 32px 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: var(--color-white);
}

.case-featured-info h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.case-featured-info p {
  font-size: 14px;
  opacity: 0.9;
}

.case-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--color-border);
  background: var(--color-white);
}

.case-tab {
  flex: 1;
  min-width: 140px;
  padding: 20px 24px;
  border: none;
  border-right: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.case-tab:last-child {
  border-right: none;
}

.case-tab .tab-icon {
  font-size: 18px;
  opacity: 0.6;
}

.case-tab:hover,
.case-tab.active {
  background: var(--primary-red);
  color: var(--color-white);
}

.case-tab:hover .tab-icon,
.case-tab.active .tab-icon {
  opacity: 1;
}

/* ========== 关于我们（首页区块） ========== */
.section-about-home {
  background: var(--color-bg);
}

.about-home-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
}

.about-home-text p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
  text-align: justify;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.stat-item .num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-red);
  line-height: 1.2;
}

.stat-item .num span {
  font-size: 1rem;
  font-weight: 400;
}

.stat-item .label {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.about-home-visual {
  position: relative;
}

.about-home-visual img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.about-home-visual .deco-border {
  position: absolute;
  top: 24px;
  right: -24px;
  bottom: -24px;
  width: 100%;
  border: 3px solid var(--primary-red);
  z-index: 1;
}

.about-home-visual .deco-text {
  position: absolute;
  right: -48px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--primary-red);
  font-weight: 600;
  white-space: nowrap;
}

/* ========== 新闻动态（首页三栏） ========== */
.section-news-home {
  background: var(--color-bg-gray);
}

.news-home-grid {
  display: grid;
  grid-template-columns: 1fr 320px 1fr;
  gap: 24px;
  align-items: stretch;
}

.news-home-main {
  background: var(--color-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-home-main .thumb {
  aspect-ratio: 16/10;
  background: #ddd;
  overflow: hidden;
}

.news-home-main .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-home-main .body {
  padding: 28px 32px;
  flex: 1;
}

.news-home-main .date {
  font-size: 13px;
  color: var(--primary-red);
  margin-bottom: 12px;
}

.news-home-main h3 {
  font-size: 1.15rem;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 12px;
}

.news-home-main p {
  font-size: 14px;
  color: var(--color-text-muted);
}

.news-home-highlight {
  background: var(--primary-red);
  color: var(--color-white);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-home-highlight .tag {
  font-size: 12px;
  letter-spacing: 0.2em;
  opacity: 0.8;
  margin-bottom: 20px;
}

.news-home-highlight h3 {
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 24px;
  font-weight: 500;
}

.news-home-highlight a {
  color: var(--color-white);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  align-self: flex-start;
}

.news-home-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-home-item {
  display: flex;
  gap: 16px;
  background: var(--color-white);
  padding: 16px;
  transition: box-shadow var(--transition);
  color: inherit;
}

.news-home-item:hover {
  box-shadow: var(--shadow-hover);
}

.news-home-item .mini-thumb {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  background: #e0e0e0;
  overflow: hidden;
}

.news-home-item .mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-home-item .info h4 {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 6px;
}

.news-home-item .info .date {
  font-size: 12px;
  color: var(--color-text-light);
}

/* ========== 标语带 ========== */
.slogan-band {
  background: var(--primary-red);
  color: var(--color-white);
  text-align: center;
  padding: 20px 24px;
}

.slogan-band p.slogan-band-text {
  font-family: "STXingkai", "华文行楷", "KaiTi", "楷体", serif;
  font-size: 3.75rem;
  font-weight: 400;
  letter-spacing: 1em;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

@media (max-width: 768px) {
  .slogan-band p.slogan-band-text {
    font-size: 2rem;
    letter-spacing: 0.4em;
  }
}

/* ========== 内页 Hero（标题横幅区） ========== */
.page-hero {
  margin-top: var(--header-h);
  padding: 80px 0 60px;
  background: var(--color-bg-gray);
  border-bottom: 3px solid var(--primary-red);
}

.page-hero--has-bg {
  position: relative;
  background: transparent;
  overflow: hidden;
}

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

.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.page-hero--has-bg .container {
  position: relative;
  z-index: 1;
}

.page-hero .container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.page-hero h1 {
  font-size: 2.5rem;
  color: var(--color-text);
  letter-spacing: 0.1em;
}

.page-hero--has-bg h1 {
  color: var(--color-white);
}

.page-hero .breadcrumb {
  font-size: 13px;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
}

.page-hero .breadcrumb a {
  color: var(--color-text-muted);
}

.page-hero--has-bg .breadcrumb {
  color: rgba(255, 255, 255, 0.75);
}

.page-hero--has-bg .breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.page-hero--has-bg .breadcrumb a:hover {
  color: var(--color-white);
}

.page-hero .breadcrumb span {
  color: var(--primary-red);
}

.page-hero--has-bg .breadcrumb span {
  color: #ff8a8f;
}

/* ========== 内容块 ========== */
.content-block {
  background: var(--color-white);
  padding: 40px 48px;
  margin-bottom: 24px;
  border: 1px solid var(--color-border);
}

.content-block h3 {
  color: var(--color-text);
  font-size: 1.3rem;
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 4px solid var(--primary-red);
}

.content-block p {
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.content-block ul {
  list-style: none;
}

.content-block li {
  padding: 12px 0;
  padding-left: 20px;
  position: relative;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

.content-block li:last-child {
  border-bottom: none;
}

.content-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 6px;
  height: 6px;
  background: var(--primary-red);
}

.content-block-figure {
  margin-top: 28px;
  line-height: 0;
}

.content-block-figure + .content-block-figure {
  margin-top: 16px;
}

.content-block-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* ========== 服务步骤 ========== */
.service-steps {
  display: grid;
  gap: 0;
  border: 1px solid var(--color-border);
}

.service-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  padding: 40px 48px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}

.service-step:last-child {
  border-bottom: none;
}

.service-step .num {
  width: 64px;
  height: 64px;
  background: var(--primary-red);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.service-step h3 {
  color: var(--color-text);
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.service-step .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-step .tag {
  background: var(--color-bg-gray);
  padding: 6px 14px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ========== 经典案例页 ========== */
.section-cases-page {
  padding-top: 0;
  padding-bottom: 100px;
}

.cases-category-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  margin: 0 -40px 48px;
  padding: 0 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.cases-nav-link {
  display: inline-block;
  padding: 18px 28px;
  font-size: 15px;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
  letter-spacing: 0.05em;
}

.cases-nav-link:hover {
  color: var(--primary-red);
}

.cases-nav-link.active {
  color: var(--primary-red);
  border-bottom-color: var(--primary-red);
  font-weight: 600;
}

.cases-section {
  margin-bottom: 72px;
  scroll-margin-top: calc(var(--header-h) + 60px);
}

.cases-section-title {
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 32px;
  padding-left: 16px;
  border-left: 4px solid var(--primary-red);
  font-weight: 600;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.case-grid-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}

.case-grid-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.case-grid-card:hover .case-grid-card-name {
  color: var(--primary-red);
}

.case-grid-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(145deg, #ececec 0%, #d8d8d8 100%);
}

.case-grid-card-img img.is-broken {
  display: none;
}

.case-grid-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-grid-card:hover .case-grid-card-img img {
  transform: scale(1.06);
}

.case-grid-award {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-red);
  color: var(--color-white);
  font-size: 11px;
  padding: 4px 10px;
  letter-spacing: 0.05em;
}

.case-grid-card-name {
  padding: 16px 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text);
  font-weight: 500;
  transition: color var(--transition);
  border-top: 1px solid var(--color-border);
  min-height: 72px;
  display: flex;
  align-items: center;
}

.case-featured-img {
  cursor: pointer;
}

.case-card--modal {
  cursor: pointer;
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

/* ========== 新闻页 ========== */
.news-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  border: 1px solid var(--color-border);
  width: fit-content;
}

.news-tabs button {
  padding: 14px 32px;
  border: none;
  border-right: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  font-size: 15px;
  transition: var(--transition);
}

.news-tabs button:last-child {
  border-right: none;
}

.news-tabs button.active,
.news-tabs button:hover {
  background: var(--primary-red);
  color: var(--color-white);
}

.news-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--color-border);
}

.news-item {
  background: var(--color-white);
  padding: 28px 32px;
  border-bottom: 1px solid var(--color-border);
  display: block;
  color: inherit;
  transition: background var(--transition);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background: var(--color-bg-gray);
  padding-left: 40px;
}

.news-item .date {
  font-size: 13px;
  color: var(--primary-red);
  margin-bottom: 8px;
}

.news-item h4 {
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.6;
}

.news-item-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--primary-red);
  opacity: 0;
  transition: opacity var(--transition);
}

.news-item:hover .news-item-more {
  opacity: 1;
}

.news-panel {
  display: none;
}

.news-panel.active {
  display: block;
}

/* ========== 新闻详情页 ========== */
.page-hero--compact {
  padding: 72px 0 48px;
}

.section-news-detail {
  padding: 48px 0 100px;
  background: var(--color-bg-gray);
}

.news-article {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 48px 56px;
  max-width: 860px;
  margin: 0 auto;
}

.news-article-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}

.news-article-cat {
  display: inline-block;
  font-size: 12px;
  color: var(--primary-red);
  letter-spacing: 0.15em;
  margin-right: 16px;
}

.news-article-date {
  font-size: 13px;
  color: var(--color-text-light);
}

.news-article-title {
  font-size: 1.75rem;
  color: var(--color-text);
  line-height: 1.5;
  margin: 20px 0 16px;
}

.news-article-summary {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.8;
  padding: 16px 20px;
  background: var(--color-bg-gray);
  border-left: 3px solid var(--primary-red);
}

.news-article-body p {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 2;
  margin-bottom: 20px;
  text-align: justify;
}

.news-article-body p:last-child {
  margin-bottom: 0;
}

.news-article-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text-light);
}

.news-article-nav {
  max-width: 860px;
  margin: 32px auto 0;
  text-align: center;
}

.btn-outline-dark {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
  font-size: 14px;
  transition: all var(--transition);
}

.btn-outline-dark:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--color-white);
}

.news-not-found {
  text-align: center;
  padding: 60px 24px;
}

.news-not-found h2 {
  margin-bottom: 16px;
  color: var(--color-text);
}

.news-not-found p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* ========== 联系 ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-grid--center {
  display: flex;
  justify-content: center;
}

.contact-grid--center .contact-info {
  margin-bottom: 0;
  width: 100%;
  max-width: 920px;
}

.contact-info p {
  margin-bottom: 16px;
  color: var(--color-text-muted);
}

.contact-info-layout {
  display: flex;
  align-items: center;
  gap: 48px;
}

.contact-info-text {
  flex: 1 1 320px;
  min-width: 0;
}

.contact-info-text h3 {
  margin-bottom: 24px;
}

.contact-info-figure {
  flex: 0 1 360px;
  width: 360px;
  max-width: 42%;
  margin-top: 0;
}

.contact-info-layout .contact-info-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-red);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-text);
}

.contact-form button {
  width: 100%;
}

/* ========== 文化卡片 ========== */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.culture-card {
  background: var(--color-white);
  padding: 36px;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--primary-red);
}

.culture-card h4 {
  color: var(--primary-red);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

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

/* ========== Footer ========== */
.site-footer {
  position: relative;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  padding: 72px 0 0;
  overflow: hidden;
}

.site-footer--has-bg .site-footer-inner {
  position: relative;
  z-index: 2;
}

.site-footer-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.site-footer-img,
.site-footer-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.site-footer-img {
  object-fit: cover;
  object-position: center;
}

.site-footer-bg {
  background-color: var(--color-bg-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.site-footer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 140px;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-logo-text {
  flex: 1;
  min-width: 0;
}

.footer-logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand strong {
  color: var(--color-white);
  font-size: 1rem;
  display: block;
  margin-bottom: 6px;
  line-height: 1.5;
}

.footer-company-en {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.footer-brand p,
.footer-contact p {
  font-size: 14px;
  line-height: 2;
  margin-bottom: 4px;
}

.footer-links h4,
.footer-contact h4,
.footer-qr h4 {
  color: var(--color-white);
  font-size: 15px;
  margin-bottom: 20px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-qr .qr-box {
  width: 120px;
  height: 120px;
  background: var(--color-white);
  line-height: 0;
  overflow: hidden;
}

.footer-qr .qr-box-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-beian-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.footer-beian-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
}

.text-center {
  text-align: center;
  margin-top: 48px;
}

/* ========== 旧类兼容 / 工具 ========== */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--color-text);
}

.section-title .line {
  width: 48px;
  height: 3px;
  background: var(--primary-red);
  margin: 16px auto 0;
}

/* 首页精选案例四宫格 */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.case-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #ddd;
  display: block;
  color: inherit;
}

.case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-card:hover img {
  transform: scale(1.05);
}

.case-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: var(--color-white);
}

.case-card h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  line-height: 1.4;
}

.case-card span {
  font-size: 12px;
  opacity: 0.85;
}

/* 首页服务内容预览 */
.section-services-home {
  background: var(--color-bg-gray);
}

.services-home-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--color-border);
  background: var(--color-white);
}

.services-home-item {
  display: block;
  padding: 28px 20px;
  border-right: 1px solid var(--color-border);
  text-align: center;
  transition: background var(--transition);
  text-decoration: none;
  color: inherit;
}

.services-home-item:last-child {
  border-right: none;
}

.services-home-item:hover {
  background: var(--primary-red);
  color: var(--color-white);
}

.services-home-item .step-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 12px;
  transition: color var(--transition);
}

.services-home-item:hover .step-num {
  color: rgba(255, 255, 255, 0.5);
}

.services-home-item h3 {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 8px;
  transition: color var(--transition);
}

.services-home-item:hover h3 {
  color: var(--color-white);
}

.services-home-item p {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.6;
  transition: color var(--transition);
}

.services-home-item:hover p {
  color: rgba(255, 255, 255, 0.85);
}

.service-card .card-link {
  cursor: pointer;
}

a.service-card {
  text-decoration: none;
  color: inherit;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .services-layout {
    grid-template-columns: 1fr;
  }

  .services-cards {
    grid-template-columns: 1fr;
  }

  .service-card {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .about-home-layout {
    grid-template-columns: 1fr;
  }

  .about-home-visual {
    max-width: 400px;
    margin: 0 auto;
  }

  .news-home-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-home-list {
    grid-template-columns: 1fr;
  }

  .services-home-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .logo-img {
    height: 72px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 16px;
    gap: 0;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    color: var(--color-text) !important;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
  }

  .carousel-content {
    padding: 120px 20px 100px;
  }

  .hero-bar {
    flex-direction: column;
  }

  .hero-bar-news {
    padding: 12px 20px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .case-featured-img {
    width: 100%;
    min-height: 240px;
  }

  .case-featured-deco {
    display: none;
  }

  .case-tabs {
    flex-direction: column;
  }

  .case-tab {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .culture-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .contact-info-figure {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .contact-info-figure img {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 64px 0;
  }

  .page-hero .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== 案例详情弹窗 ========== */
html.case-modal-open {
  overflow: hidden;
}

.case-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.case-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.case-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--color-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.35s ease;
}

.case-modal.is-open .case-modal-dialog {
  transform: translateY(0);
}

.case-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: var(--color-white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition);
}

.case-modal-close:hover {
  background: var(--primary-red);
}

.case-modal-inner {
  overflow-y: auto;
  max-height: 90vh;
}

.case-modal-gallery {
  padding: 16px;
  background: #f0f0f0;
  gap: 12px;
}

.case-modal-gallery--empty {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.placeholder-text {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.8;
  padding: 16px;
}

.placeholder-text code {
  background: #fff;
  padding: 2px 6px;
  color: var(--primary-red);
  font-size: 12px;
}

/* 单图：居中，保持原始比例 */
.case-modal-gallery--n1 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.case-modal-gallery--n1 .gallery-item {
  margin: 0;
  max-width: 100%;
}

.case-modal-gallery--n1 .gallery-item img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: min(52vh, 520px);
}

/* 双图：等大并排，统一比例放大 */
.case-modal-gallery--n2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.case-modal-gallery--n2 .gallery-item {
  aspect-ratio: 4 / 3;
  min-height: 240px;
}

/* 三图：上大下二，主次分明 */
.case-modal-gallery--n3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.case-modal-gallery--n3 .gallery-item:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  min-height: 260px;
}

.case-modal-gallery--n3 .gallery-item:not(:first-child) {
  aspect-ratio: 4 / 3;
  min-height: 200px;
}

/* 四图：2×2 规整矩阵 */
.case-modal-gallery--n4 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.case-modal-gallery--n4 .gallery-item {
  aspect-ratio: 4 / 3;
  min-height: 200px;
}

/* 五张及以上：双列等大网格 */
.case-modal-gallery--many {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.case-modal-gallery--many .gallery-item {
  aspect-ratio: 4 / 3;
  min-height: 200px;
}

/* 多图（2+）共用：居中对齐、等比裁切填满格子 */
.case-modal-gallery--n2 .gallery-item,
.case-modal-gallery--n3 .gallery-item,
.case-modal-gallery--n4 .gallery-item,
.case-modal-gallery--many .gallery-item {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.case-modal-gallery--n2 .gallery-item img,
.case-modal-gallery--n3 .gallery-item img,
.case-modal-gallery--n4 .gallery-item img,
.case-modal-gallery--many .gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.case-modal-gallery .gallery-item {
  margin: 0;
  line-height: 0;
}

.case-modal-gallery--n1 .gallery-item {
  overflow: hidden;
  background: #e8e8e8;
}

.case-modal-gallery--n1 .gallery-item img {
  vertical-align: top;
}

.gallery-item--zoom {
  cursor: zoom-in;
}

.gallery-item--zoom img {
  cursor: zoom-in;
  transition: opacity var(--transition);
}

.gallery-item--zoom:hover img {
  opacity: 0.92;
}

/* 案例图片放大层 */
.case-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.case-image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.case-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}

.case-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition);
}

.case-lightbox-close:hover {
  background: var(--primary-red);
}

.case-lightbox-toolbar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.case-lightbox-counter {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  letter-spacing: 0.1em;
}

.case-lightbox-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: min(96vw, 1280px);
  width: 100%;
}

.case-lightbox-nav {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: var(--color-white);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px 0;
}

.case-lightbox-nav:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
}

.case-lightbox-img {
  display: block;
  max-width: calc(100% - 120px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  cursor: default;
}

.case-modal-body {
  padding: 36px 40px 48px;
}

.case-modal-cat {
  font-size: 12px;
  color: var(--primary-red);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.case-modal-title {
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.4;
  padding-right: 40px;
}

.case-modal-award {
  font-size: 14px;
  color: var(--primary-red);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.case-modal-section {
  margin-bottom: 24px;
}

.case-modal-section h3 {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--primary-red);
}

.case-modal-section p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.9;
  text-align: justify;
}

@media (max-width: 768px) {
  .case-modal {
    padding: 0;
    align-items: flex-end;
  }

  .case-modal-dialog {
    max-height: 95vh;
    max-width: 100%;
  }

  .case-modal-gallery--n2,
  .case-modal-gallery--n3,
  .case-modal-gallery--n4,
  .case-modal-gallery--many {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .case-modal-gallery--n3 .gallery-item:first-child {
    grid-column: auto;
    aspect-ratio: 16 / 10;
    min-height: 200px;
  }

  .case-modal-gallery--n2 .gallery-item,
  .case-modal-gallery--n3 .gallery-item:not(:first-child),
  .case-modal-gallery--n4 .gallery-item,
  .case-modal-gallery--many .gallery-item {
    aspect-ratio: 4 / 3;
    min-height: 180px;
  }

  .case-modal-gallery--n1 .gallery-item img {
    max-height: 40vh;
  }

  .case-modal-body {
    padding: 24px 20px 32px;
  }

  .case-lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }

  .case-lightbox-img {
    max-width: calc(100% - 96px);
    max-height: 75vh;
  }

  .news-article {
    padding: 28px 20px;
  }

  .news-article-title {
    font-size: 1.35rem;
  }

  .cases-category-nav {
    margin: 0 -20px 32px;
    padding: 0;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .cases-nav-link {
    flex-shrink: 0;
    padding: 14px 20px;
    font-size: 14px;
  }

  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .case-grid-card-name {
    font-size: 13px;
    padding: 12px 10px;
    min-height: 64px;
  }
}
