/* =====================================================
   信用中国  ·  Design System — 整站公共样式
   东方行政美学 · 朱砂红 + 宣纸米白
   -----------------------------------------------------
   组织约定（页面样式拆分）：
   1. 本文件只放「整站统一」的公共样式，由 base.html 全局引入：
      设计变量 / Reset / 工具类 / 头部导航 / 按钮 / 通用栏目标题 /
      资讯列表组件（列表页与首页共用）/ 服务卡片组件（首页与服务
      总览页共用）/ 页脚 / 滚动动效 / 无障碍
   2. 各页面独有样式放在 css/pages/页面名.css（如 pages/index.css），
      由页面模板的 {block name="css"} 单独引入，不写在本文件；
   3. 完整设计稿保留在 html效果图/styles.css（权威母本），
      新页面需要的板块样式从母本拷贝到对应 pages/页面名.css。
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500;700;900&family=Noto+Sans+SC:wght@300;400;500;700;900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* 朱砂红 · brand palette */
  --red-50:  #fdf2f2;
  --red-100: #fadcdc;
  --red-200: #f3b8bb;
  --red-300: #e88a90;
  --red-400: #d65a64;
  --red-500: #c8102e;   /* 主朱砂红 */
  --red-600: #a80d27;
  --red-700: #820a1d;
  --red-800: #5e0814;

  /* 宣纸底色 · surfaces */
  --paper:      #f7f2e9;   /* 主背景 */
  --paper-2:    #ede4d2;   /* 二级背景 */
  --surface:    #ffffff;
  --surface-2:  #fbf8f1;

  /* 墨色 · ink */
  --ink:        #1a120c;
  --ink-2:      #3a2e23;
  --muted:      #75685a;
  --muted-2:    #9b8e7f;
  --line:       #e3d8c4;
  --line-2:     #d6c8af;

  /* 印章金 · accent */
  --gold:       #ad7a2f;

  /* 语义 */
  --success:    #2c7a4e;
  --warning:    #c0811c;
  --danger:     #b8392c;

  /* 字号 (fluid) */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.375rem;
  --fs-2xl:  1.75rem;
  --fs-3xl:  2.25rem;
  --fs-4xl:  clamp(2.5rem, 5vw, 4rem);
  --fs-5xl:  clamp(3rem, 7vw, 5.5rem);

  /* 字间距 */
  --tracking-tight: -0.01em;
  --tracking: 0.01em;
  --tracking-wide: 0.08em;
  --tracking-cn: 0.18em;

  /* 圆角 */
  --r-sm: 2px;
  --r:    4px;
  --r-lg: 8px;
  --r-xl: 14px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(48, 22, 8, 0.04);
  --shadow:    0 4px 14px -2px rgba(48, 22, 8, 0.08);
  --shadow-lg: 0 24px 48px -12px rgba(48, 22, 8, 0.18);
  --shadow-seal: 0 0 0 1px var(--red-100), 0 8px 28px -8px rgba(200, 16, 46, 0.25);

  /* 容器 */
  --container: 1280px;
  --gutter: clamp(1rem, 3vw, 2rem);

  /* easing */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; transition: color 240ms var(--ease-out-quart); }
ul, ol { list-style: none; }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.serif { font-family: 'Noto Serif SC', 'Songti SC', serif; }
.mono  { font-family: 'JetBrains Mono', monospace; }

.cn-caps { letter-spacing: var(--tracking-cn); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(12px);
}
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 3rem;
  height: 100px;
}

/* Brand block — uses uploaded logo image */
.brand {
  display: flex;
  align-items: center;
}
.brand__logo-img {
  height: 64px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
}
/* legacy fallback */
.brand__seal {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--red-500);
  color: #fff;
  font-family: 'Noto Serif SC', serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0;
  border-radius: var(--r);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18), 0 2px 6px rgba(200,16,46,0.18);
  position: relative;
}
.brand__seal::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 1px;
  pointer-events: none;
}
.brand__lockup { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.brand__name {
  font-family: 'Noto Serif SC', serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--red-500);
  letter-spacing: 0.05em;
}
.brand__tag {
  font-size: 0.6875rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Nav */
.nav { justify-self: end; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 1.5rem 1.1rem;
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 0;
  height: 2px;
  background: var(--red-500);
  transition: width 320ms var(--ease-out-expo), left 320ms var(--ease-out-expo);
}
.nav__link:hover { color: var(--red-500); }
.nav__link:hover::after { width: calc(100% - 2.2rem); left: 1.1rem; }
.nav__link.is-active { color: var(--red-500); }
.nav__link.is-active::after { width: calc(100% - 2.2rem); left: 1.1rem; }
.nav__caret {
  width: 10px;
  height: 10px;
  transition: transform 220ms var(--ease-out-expo);
}

/* Dropdown */
.nav__item.has-sub { position: relative; }
.nav__sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 180px;
  padding: 8px 0;
  background: #fff;
  border-top: 2px solid var(--red-500);
  box-shadow: 0 18px 40px -12px rgba(40, 20, 10, 0.18), 0 4px 12px -2px rgba(40, 20, 10, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms var(--ease-out-expo), transform 220ms var(--ease-out-expo), visibility 0s linear 220ms;
  z-index: 200;
}
.nav__sub::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.nav__sub li { list-style: none; }
.nav__sub a {
  display: block;
  padding: 10px 22px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  letter-spacing: 0.05em;
  white-space: nowrap;
  position: relative;
  transition: color 180ms ease, background 180ms ease, padding-left 220ms var(--ease-out-expo);
}
.nav__sub a::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--red-500);
  transform: translateY(-50%);
  transition: width 220ms var(--ease-out-expo);
}
.nav__sub a:hover {
  color: var(--red-500);
  background: var(--paper-2, #f1ead9);
  padding-left: 30px;
}
.nav__sub a:hover::before { width: 8px; }

.nav__item.has-sub:hover > .nav__sub,
.nav__item.has-sub:focus-within > .nav__sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 220ms var(--ease-out-expo), transform 220ms var(--ease-out-expo), visibility 0s;
}
.nav__item.has-sub:hover > .nav__link .nav__caret,
.nav__item.has-sub:focus-within > .nav__link .nav__caret {
  transform: rotate(180deg);
}

/* Header actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-2);
  transition: all 240ms var(--ease-out-quart);
}
.icon-btn:hover {
  color: var(--red-500);
  background: var(--red-50);
}

/* Header search dropdown panel (click trigger) */
.header-search {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(440px, 90vw);
  background: #fff;
  border-top: 2px solid var(--red-500);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 22px 48px -16px rgba(40, 20, 10, 0.22), 0 4px 14px -2px rgba(40, 20, 10, 0.08);
  padding: 1rem 1.25rem;
  z-index: 220;
  animation: headerSearchIn 220ms var(--ease-out-expo);
}
.header-search::before {
  content: '';
  position: absolute;
  top: -12px; right: 0; left: 0; height: 12px;
}
.header-search__form {
  display: flex;
  gap: 0.5rem;
}
.header-search__form input[type="text"] {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 200ms;
}
.header-search__form input[type="text"]:focus {
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}
.header-search__form .btn { padding: 0.7rem 1.4rem; }
@keyframes headerSearchIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: var(--r);
  transition: all 240ms var(--ease-out-quart);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--solid {
  background: var(--red-500);
  color: #fff;
  border-color: var(--red-500);
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 6px 14px -4px rgba(200,16,46,0.4);
}
.btn--solid:hover {
  background: var(--red-600);
  border-color: var(--red-600);
  transform: translateY(-1px);
}
.btn--ghost {
  color: var(--ink-2);
  border-color: var(--line);
  background: var(--surface);
}
.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ink {
  background: var(--ink);
  color: var(--paper);
}
.btn--ink:hover { background: var(--ink-2); }

/* ---------- Section base（通用栏目标题，多页面共用） ---------- */
.section {
  padding-block: clamp(4rem, 7vw, 6rem);
}
.section--surface { background: var(--surface); }
.section--paper   { background: var(--paper); }
.section--paper-2 { background: var(--paper-2); }
.section--ink {
  background: var(--ink);
  color: var(--paper);
}
.section--ink .section__title { color: var(--paper); }
.section--ink .section__sub { color: var(--muted-2); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.section--ink .section__head { border-bottom-color: rgba(247,242,233,0.1); }

.section__heading { display: flex; align-items: center; gap: 1rem; }
.section__bar {
  width: 6px;
  height: 32px;
  background: var(--red-500);
  border-radius: 1px;
}
.section--ink .section__bar { background: var(--red-400); }
.section__title {
  font-family: 'Noto Serif SC', serif;
  font-weight: 900;
  font-size: var(--fs-2xl);
  letter-spacing: 0.08em;
  color: var(--ink);
  position: relative;
}
.section__title .en {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}
.section__sub {
  color: var(--muted);
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
}
.section__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.section__more:hover { color: var(--red-500); gap: 0.7rem; }
.section__more svg { width: 14px; height: 14px; transition: transform 240ms var(--ease-out-quart); }
.section__more:hover svg { transform: translateX(4px); }

/* ---------- Rich text body（正文排版组件，关于我们/产品服务详情等多页共用）
   注意：仅排版类上移；.about 布局与印章视觉块仍留在 pages/about.css ---------- */
.about__body { display: flex; flex-direction: column; gap: 1.5rem; }
.about__heading {
  font-family: 'Noto Serif SC', serif;
  font-weight: 900;
  font-size: var(--fs-3xl);
  line-height: 1.3;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.about__heading .accent { color: var(--red-500); }
.about__text {
  color: var(--ink-2);
  font-size: var(--fs-base);
  line-height: 1.85;
}
/* 联系信息卡片（联系我们/关于我们等页共用） */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}
.about__feat {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--red-500);
  background: var(--surface-2);
}
.about__feat-num {
  font-family: 'Noto Serif SC', serif;
  font-weight: 900;
  font-size: 1.75rem;
  color: var(--red-500);
  letter-spacing: 0.02em;
}
.about__feat-lbl {
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: 0.16em;
  margin-top: 0.2rem;
}

/* ---------- News list（资讯/公告列表组件，首页与列表页共用）
   仅含列表结构样式；头条卡片 .news__lead 为首页专属，见 pages/index.css ---------- */
.news__tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.news__tab {
  padding: 0.5rem 1.1rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all 200ms;
}
.news__tab:hover { color: var(--ink); }
.news__tab.is-active {
  color: var(--red-500);
  background: var(--red-50);
  border-color: var(--red-100);
}

.news__list { display: flex; flex-direction: column; gap: 0; }
.news__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  align-items: center;
  border-bottom: 1px dashed var(--line);
  transition: padding 240ms var(--ease-out-quart);
}
.news__item--dated {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px dashed var(--line);
}
.news__item--dated:hover { padding-left: 0.5rem; background: rgba(200, 16, 46, 0.02); }
.news__item:last-child { border-bottom: none; }
.news__item:hover { padding-left: 0.5rem; }
.news__index {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--red-500);
  font-weight: 600;
  min-width: 2ch;
}
.news__item-title {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 240ms;
}
.news__item:hover .news__item-title { color: var(--red-500); }
.news__date {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding-top: 0.25rem;
}

/* ---------- Service grid（服务卡片组件，首页与服务总览页共用） ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: start;
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: all 360ms var(--ease-out-expo);
  overflow: hidden;
}
.service::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--red-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 480ms var(--ease-out-expo);
}
.service:hover {
  border-color: var(--red-100);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service:hover::before { transform: scaleX(1); }
.service__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--red-50);
  color: var(--red-500);
  border-radius: var(--r);
  transition: all 360ms;
}
.service:hover .service__icon {
  background: var(--red-500);
  color: #fff;
}
.service__icon svg { width: 26px; height: 26px; }
.service__body { display: flex; flex-direction: column; gap: 0.4rem; }
.service__title {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.service__desc {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.65;
}
.service__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.25rem;
}
.service__arrow {
  align-self: center;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: all 320ms var(--ease-out-quart);
}
.service:hover .service__arrow {
  border-color: var(--red-500);
  background: var(--red-500);
  color: #fff;
  transform: rotate(-45deg);
}
.service__arrow svg { width: 14px; height: 14px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--muted-2);
  padding-top: 4rem;
  border-top: 4px solid var(--red-500);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(247, 242, 233, 0.08);
}
.footer__brand-logo {
  max-height: 64px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.25rem;
  filter: brightness(1.15);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: 'Noto Serif SC', serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--paper);
}
.footer__logo .seal-mini {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--red-500);
  color: #fff;
  font-size: 16px;
  border-radius: 2px;
}
.footer__about {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--muted);
}
.footer__contact { font-size: var(--fs-xs); line-height: 1.9; }
.footer__contact strong { color: var(--paper); font-weight: 500; }

.footer__col h4 {
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--paper);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
}
.footer__col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 16px;
  height: 1px;
  background: var(--red-500);
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col a {
  font-size: var(--fs-sm);
  color: var(--muted);
  transition: color 200ms;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.footer__col a::before {
  content: '·';
  color: var(--red-500);
}
.footer__col a:hover { color: var(--paper); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.5rem;
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: 0.08em;
}
.footer__bottom a:hover { color: var(--paper); }
.footer__credits {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* ---------- Reveal animation ---------- */
.reveal {
  /* 默认可见——无 JS / JS 失败时也能正常显示 */
  opacity: 1;
  transform: none;
  transition: opacity 800ms var(--ease-out-expo), transform 800ms var(--ease-out-expo);
}
.reveal--anim {
  /* JS 加载后由 main.js 给 .reveal 加上，IntersectionObserver 触发时移除并加 .is-visible */
  opacity: 0;
  transform: translateY(20px);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 分页条（列表页通用组件） ----------
   结构：ThinkPHP paginate()->render() 输出的 Bootstrap 风格 HTML
   <ul class="pagination"><li><a>&laquo;</a></li><li class="active"><span>1</span></li>…</ul>
   由资讯列表页 / 公告列表页共用 */
.pagination-wrap {
  display: flex;
  justify-content: center;
  padding-top: 2.5rem;
}
.pagination {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination li a,
.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-sans), sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 180ms, color 180ms, background 180ms;
}
.pagination li a:hover {
  border-color: var(--red-500);
  color: var(--red-500);
}
.pagination li.active span {
  background: var(--red-500);
  border-color: var(--red-500);
  color: #fff;
}
.pagination li.disabled span {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- Responsive（公共部分） ---------- */
@media (max-width: 900px) {
  .header__inner { grid-template-columns: auto 1fr; height: 80px; gap: 1rem; }
  .nav { display: none; }
  .services { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  .service { grid-template-columns: auto 1fr; }
  .service__arrow { display: none; }
  .brand__logo-img { height: 48px; }
}

/* ---------- Print / a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
:focus-visible {
  outline: 2px solid var(--red-500);
  outline-offset: 3px;
  border-radius: 2px;
}
.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;
}
