/* ==========================================================================
   石家庄东石测控技术有限公司 · 新版官网样式
   四段式首页：轮播图 / 项目案例 / 最新动态 / 公司信息
   ========================================================================== */

:root {
  --primary: #0a4bbf;
  --primary-deep: #073a8f;
  --navy: #071a3d;
  --accent: #00c2ff;
  --accent-soft: #e8f5ff;

  --text-main: #16233c;
  --text-body: #51607a;
  --text-light: #8b98b0;

  --bg-page: #ffffff;
  --bg-soft: #f4f8fd;
  --border: #e3ebf6;

  --shadow-sm: 0 2px 10px rgba(10, 75, 191, 0.06);
  --shadow-md: 0 14px 38px rgba(10, 75, 191, 0.12);
  --shadow-lg: 0 24px 60px rgba(7, 26, 61, 0.18);

  --grad-primary: linear-gradient(135deg, #0a4bbf 0%, #0673e6 55%, #00c2ff 100%);
  --grad-dark: radial-gradient(900px 480px at 85% -20%, rgba(0, 194, 255, 0.24), transparent 62%),
               linear-gradient(150deg, #071a3d 0%, #0a3d99 60%, #0a4bbf 100%);

  --container: 1200px;
  --header-h: 72px;
  --radius: 16px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", -apple-system, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg-page);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
svg { display: inline-block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.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;
}

::selection { background: rgba(0, 194, 255, 0.28); }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   顶部导航
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

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

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  box-shadow: 0 6px 16px rgba(10, 75, 191, 0.3);
}
.logo-mark svg { width: 24px; height: 24px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text .cn { font-size: 18px; font-weight: 800; letter-spacing: 1px; color: var(--text-main); }
.logo-text .en { font-size: 9px; letter-spacing: 0.7px; color: var(--text-light); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.2s ease, background 0.2s ease;
}
.site-nav a:hover { color: var(--primary); background: var(--accent-soft); }
.site-nav a.is-active { color: var(--primary); background: var(--accent-soft); font-weight: 600; }

.header-right { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.header-phone svg { width: 17px; height: 17px; }
.header-phone:hover { color: var(--primary-deep); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-main);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav a {
  display: block;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-main);
}
.mobile-nav a:hover, .mobile-nav a.is-active { color: var(--primary); background: var(--accent-soft); }
.mobile-nav .mobile-phone {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--primary);
  font-weight: 700;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}
.mobile-nav .mobile-phone svg { width: 17px; height: 17px; }

/* ==========================================================================
   轮播图
   ========================================================================== */

.carousel {
  position: relative;
  overflow: hidden;
  height: clamp(470px, 64vh, 640px);
  background: var(--navy);
  color: #fff;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 18, 46, 0.92) 0%, rgba(4, 18, 46, 0.72) 42%, rgba(4, 18, 46, 0.18) 100%),
    linear-gradient(0deg, rgba(4, 18, 46, 0.35), transparent 45%);
}

.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.slide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.slide-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.slide-title {
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 1px;
  max-width: 900px;
  text-wrap: balance;
}

.slide-sub {
  margin-top: 20px;
  max-width: 620px;
  font-size: 16.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
}

.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 34px;
  padding: 12px 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-deep);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}
.slide-btn svg { width: 17px; height: 17px; }
.slide-btn:hover { transform: translateY(-2px); background: var(--accent); color: #052c6e; }

.slide.is-active .slide-kicker { animation: slideUp 0.7s ease both; }
.slide.is-active .slide-title { animation: slideUp 0.7s 0.08s ease both; }
.slide.is-active .slide-sub { animation: slideUp 0.7s 0.16s ease both; }
.slide.is-active .slide-btn { animation: slideUp 0.7s 0.24s ease both; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
.carousel-arrow svg { width: 22px; height: 22px; }
.carousel-arrow:hover { background: #fff; color: var(--primary); }
.carousel-arrow.prev { left: 24px; }
.carousel-arrow.next { right: 24px; }
.carousel-arrow:active { transform: translateY(-50%) scale(0.94); }

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 9px;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.25s ease, background 0.25s ease;
}
.carousel-dot:hover { background: rgba(255, 255, 255, 0.8); }
.carousel-dot.is-active { width: 30px; background: var(--accent); }

/* ==========================================================================
   区块通用
   ========================================================================== */

.section { padding: 92px 0; scroll-margin-top: var(--header-h); }
.section-soft { background: var(--bg-soft); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 42px;
}
.section-head-main { max-width: 680px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.6px;
  color: var(--primary);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-primary);
}

.section-head h2 {
  margin: 12px 0 10px;
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.5px;
}
.section-head p { color: var(--text-body); font-size: 15.5px; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: #fff;
  transition: background 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}
.link-more svg { width: 15px; height: 15px; }
.link-more:hover { background: var(--accent-soft); border-color: transparent; gap: 10px; }

/* ==========================================================================
   项目案例
   ========================================================================== */

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.case-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.case-media {
  position: relative;
  height: 148px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #071a3d, #0a4bbf 60%, #00c2ff);
}
.case-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
}
.case-media.tone-1 { background: linear-gradient(140deg, #071a3d, #0a4bbf 62%, #00c2ff); }
.case-media.tone-2 { background: linear-gradient(140deg, #052c6e, #0673e6 65%, #38d6ff); }
.case-media.tone-3 { background: linear-gradient(140deg, #071a3d, #073a8f 58%, #0a4bbf); }
.case-media.tone-4 { background: linear-gradient(140deg, #0a3d99, #0673e6 55%, #7fd8ff); }

.case-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.case-card:hover .case-media img { transform: scale(1.05); }

.case-media .ph-icon {
  position: relative;
  width: 52px;
  height: 52px;
  color: rgba(255, 255, 255, 0.86);
  opacity: 0.9;
}

.case-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  background: rgba(4, 18, 46, 0.52);
  backdrop-filter: blur(5px);
}

.case-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}
.case-body h3 {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}
.case-card:hover .case-body h3 { color: var(--primary); }
.case-body p {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-body .card-more { margin-top: 14px; }

.card-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}
.card-more svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform 0.2s ease; }
.case-card:hover .card-more svg,
.article-card:hover .card-more svg { transform: translateX(3px); }

/* ==========================================================================
   最新动态
   ========================================================================== */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 28px 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--grad-primary);
  transition: height 0.3s ease;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.article-card:hover::before { height: 100%; }

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.article-date {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--text-light);
  font-size: 12.5px;
}
.article-date b {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.article-cat {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary-deep);
  font-size: 12px;
  white-space: nowrap;
}

.article-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.article-card:hover h3 { color: var(--primary); }
.article-card p {
  flex: 1;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-body);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .card-more { margin-top: 16px; }

/* ==========================================================================
   页脚 / 公司信息
   ========================================================================== */

.site-footer {
  padding-top: 66px;
  background: #051431;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  scroll-margin-top: var(--header-h);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.75fr 1.2fr;
  gap: 56px;
  padding-bottom: 52px;
}

.logo-light .logo-text .cn { color: #fff; }
.logo-light .logo-text .en { color: rgba(255, 255, 255, 0.5); }

.footer-about {
  margin-top: 18px;
  max-width: 430px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.62);
}

.footer-col h4 {
  margin-bottom: 20px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a { transition: color 0.2s ease, padding-left 0.2s ease; }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  line-height: 1.7;
}
.footer-contact svg {
  width: 16px;
  height: 16px;
  margin-top: 5px;
  flex-shrink: 0;
  color: var(--accent);
}
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
}
.footer-bottom a:hover { color: var(--accent); }
.footer-visits {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.5);
}
.footer-visits svg { width: 15px; height: 15px; color: rgba(0, 194, 255, 0.72); }
.footer-visits b {
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}
@media (max-width: 640px) {
  .footer-visits { margin-left: 0; }
}

/* 返回顶部 */
.back-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 75, 191, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.back-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { transform: translateY(-3px); }
.back-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   内页 / 列表页
   ========================================================================== */

.page-head {
  position: relative;
  overflow: hidden;
  padding: 66px 0 58px;
  background: var(--grad-dark);
  color: #fff;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
}
.page-head .container { position: relative; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.82); }
.breadcrumb a:hover { color: var(--accent); }

.page-head h1 {
  max-width: 900px;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.5px;
}
.page-head p {
  max-width: 760px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15.5px;
}

.page-body { padding: 62px 0 92px; }
.page-body .case-grid { row-gap: 26px; }
.page-body .article-grid { row-gap: 26px; }

.narrow { max-width: 860px; margin: 0 auto; }

.detail-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: 13.5px;
  color: var(--text-light);
}
.detail-tag {
  padding: 4px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary-deep);
  font-weight: 500;
}
.detail-summary {
  margin-bottom: 30px;
  padding: 20px 24px;
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  background: var(--bg-soft);
  color: var(--text-body);
  font-size: 15.5px;
  line-height: 1.85;
}

.detail-cover {
  margin-bottom: 36px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.detail-cover img { width: 100%; max-height: 480px; object-fit: cover; }

.prose { color: #33415c; font-size: 16px; line-height: 1.95; }
.prose p { margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }

.detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-outline { border: 1.5px solid var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--accent-soft); transform: translateY(-2px); }
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: 0 8px 20px rgba(10, 75, 191, 0.28); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--border); color: var(--text-body); background: #fff; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* 分页 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text-body);
  font-size: 14px;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .is-disabled { opacity: 0.4; }
.pagination .is-gap { border-color: transparent; background: transparent; }

/* 空状态 */
.empty-state {
  padding: 72px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  color: var(--text-light);
}
.empty-state strong { display: block; margin-bottom: 8px; color: var(--text-main); font-size: 17px; }

/* ==========================================================================
   响应式
   ========================================================================== */

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

@media (max-width: 960px) {
  .site-nav, .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: block; }

  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 72px 0; }
  .section-head { align-items: flex-start; }
  .section-head h2 { font-size: 27px; }
  .slide-sub { font-size: 15.5px; }
  .carousel-arrow.prev { left: 12px; }
  .carousel-arrow.next { right: 12px; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }

  .logo-text .cn { font-size: 16.5px; }
  .logo-text .en { font-size: 8px; }
  .logo-mark { width: 36px; height: 36px; border-radius: 10px; }

  .carousel { height: 520px; }
  .slide-content { padding: 0 22px; }
  .slide-kicker { letter-spacing: 2px; font-size: 11px; }
  .slide-title { font-size: 29px; }
  .slide-sub { margin-top: 16px; font-size: 14.5px; line-height: 1.8; }
  .slide-btn { margin-top: 26px; padding: 11px 24px; font-size: 14px; }
  .carousel-arrow { width: 40px; height: 40px; }
  .carousel-arrow svg { width: 18px; height: 18px; }
  .carousel-dots { bottom: 20px; }

  .section { padding: 62px 0; }
  .section-head { flex-direction: column; gap: 16px; margin-bottom: 30px; }
  .section-head p { font-size: 14.5px; }

  .article-grid { grid-template-columns: 1fr; }
  .article-card { padding: 23px 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 34px; padding-bottom: 40px; }
  .footer-brand { grid-column: auto; }
  .footer-about { max-width: none; }
  .site-footer { padding-top: 52px; }

  .page-head { padding: 48px 0 42px; }
  .page-body { padding: 46px 0 70px; }
  .detail-summary { padding: 16px 18px; }
  .prose { font-size: 15.5px; }

  .back-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

@media (max-width: 540px) {
  .case-grid { grid-template-columns: 1fr; }
  .case-media { height: 180px; }
  .container { padding: 0 18px; }
  .slide-content { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
