/* ==========================================================================
   永兴县稀贵金属产业集群 官网样式表
   HTML5 + CSS3
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --brand: #1a3d94;          /* 主品牌深蓝 */
  --brand-dark: #122c6d;     /* 深一级 */
  --brand-light: #2a52bb;    /* 浅一级 */
  --accent: #c8a24a;         /* 金色点缀 */
  --ink: #1f2733;            /* 正文深色 */
  --muted: #6b7684;          /* 次要文字 */
  --line: #e3e7ee;           /* 分割线 */
  --bg: #ffffff;             /* 页面底色 */
  --bg-soft: #f4f6fa;        /* 浅灰底 */
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(26, 61, 148, .08);
  --shadow-md: 0 4px 16px rgba(26, 61, 148, .1);
  --shadow-lg: 0 10px 30px rgba(26, 61, 148, .14);
  --container: 1200px;
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, h4, h5, h6, p, figure, ul, ol, dl, dd {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .25s ease;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

input {
  font: inherit;
}

/* 屏幕阅读器专用 */
.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;
}

/* 焦点可见样式（无障碍） */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================
   顶部欢迎条
   ========================================================================== */
.topbar {
  background: var(--brand);
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}

.topbar__welcome {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar__tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.topbar__tel .icon {
  width: 14px;
  height: 14px;
  flex: none;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar__links a:hover {
  color: #fff;
  text-decoration: underline;
}

.topbar__divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, .35);
}

/* ==========================================================================
   Logo / 搜索区
   ========================================================================== */
.masthead {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  width: 64px;
  height: 64px;
  flex: none;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(26, 61, 148, .18);
}

/* 品牌蓝→青绿渐变环 */
.brand__mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(160deg, var(--brand-light), #0d9488 55%, var(--brand-dark));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* 内圈点线装饰 */
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px dashed rgba(26, 61, 148, .28);
  pointer-events: none;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 9px;
  position: relative;
  z-index: 1;
}

.brand__cn {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--brand);
  line-height: 1.25;
}

.brand__en {
  display: block;
  width: 100%;
  font-size: 13.5px;
  letter-spacing: .7px;
  word-spacing: -2px;
  color: var(--muted);
  text-transform: uppercase;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-word;
}

/* 搜索框 */
.search {
  display: flex;
  width: 320px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.search:focus-within {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(42, 82, 187, .12);
}

.search__input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 0;
  outline: none;
  color: var(--ink);
  background: #fff;
}

.search__input::placeholder {
  color: #9aa4b2;
}

.search__btn {
  display: grid;
  place-items: center;
  width: 48px;
  color: #fff;
  background: var(--brand);
  transition: background .25s ease;
}

.search__btn:hover {
  background: var(--brand-dark);
}

.search__btn svg {
  width: 18px;
  height: 18px;
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--brand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   主导航
   ========================================================================== */
.mainnav {
  position: relative;
  background: var(--brand);
  z-index: 60;
}

.mainnav.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: var(--shadow-md);
  animation: navDrop .3s ease;
}

@keyframes navDrop {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.mainnav__list {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.mainnav__item {
  position: relative;
  flex: 1;
}

.mainnav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 52px;
  padding: 0 8px;
  font-size: 16px;
  color: rgba(255, 255, 255, .94);
  transition: background .25s ease, color .25s ease;
}

.mainnav__link .caret {
  width: 12px;
  height: 12px;
  transition: transform .3s ease;
}

.mainnav__item:hover > .mainnav__link,
.mainnav__item.is-open > .mainnav__link,
.mainnav__item.is-active > .mainnav__link {
  background: var(--brand-light);
  color: #fff;
}

.mainnav__item.is-open > .mainnav__link .caret {
  transform: rotate(180deg);
}

/* 下拉子菜单 */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  padding: 6px 0;
  background: var(--brand-light);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.mainnav__item.is-open > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  color: rgba(255, 255, 255, .92);
  text-align: center;
  white-space: nowrap;
}

.submenu a:hover {
  background: var(--brand-dark);
  color: #fff;
}

/* ==========================================================================
   轮播 Banner
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-dark);
}

.hero__viewport {
  position: relative;
  height: 460px;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

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

.hero__mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(18, 44, 109, .82) 0%, rgba(18, 44, 109, .45) 55%, rgba(18, 44, 109, .2) 100%);
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

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

.hero__title {
  max-width: 680px;
  font-size: 42px;
  line-height: 1.28;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
  text-wrap: balance;
}

.hero__desc {
  max-width: 620px;
  margin-top: 14px;
  font-size: 17px;
  color: rgba(255, 255, 255, .9);
  text-wrap: pretty;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 12px 26px;
  font-size: 16px;
  color: #fff;
  background: var(--brand-light);
  border-radius: var(--radius);
  transition: background .25s ease, transform .25s ease;
}

.hero__cta:hover {
  background: #3b64d6;
  transform: translateY(-2px);
}

.hero__cta svg {
  width: 16px;
  height: 16px;
}

/* 动画入场 */
.hero__slide.is-active .hero__title,
.hero__slide.is-active .hero__desc,
.hero__slide.is-active .hero__cta {
  animation: heroUp .8s both;
}

.hero__slide.is-active .hero__desc { animation-delay: .12s; }
.hero__slide.is-active .hero__cta { animation-delay: .24s; }

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

/* 圆点指示器 */
.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero__dot {
  width: 34px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  transition: background .25s ease, width .25s ease;
}

.hero__dot.is-active {
  width: 46px;
  background: #fff;
}

/* 左右箭头 */
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: rgba(18, 44, 109, .45);
  border-radius: 50%;
  opacity: 0;
  transition: opacity .3s ease, background .25s ease;
  z-index: 5;
}

.hero:hover .hero__arrow {
  opacity: 1;
}

.hero__arrow:hover {
  background: var(--brand-light);
}

.hero__arrow--prev { left: 20px; }
.hero__arrow--next { right: 20px; }

.hero__arrow svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   数据统计卡片
   ========================================================================== */
.stats {
  padding: 56px 0;
  background: var(--bg-soft);
}

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

.stat-card {
  padding: 26px 24px 28px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.stat-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
}

.stat-card__icon svg {
  width: 24px;
  height: 24px;
}

.stat-card__value {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand);
}

.stat-card__value .unit {
  font-size: 22px;
}

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

/* ==========================================================================
   通用区块标题
   ========================================================================== */
.section {
  padding: 64px 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-head__titles {
  position: relative;
  padding-left: 14px;
}

.section-head__titles::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: var(--brand);
}

.section-head__cn {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}

.section-head__en {
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}

.section-head__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.section-head__more:hover {
  color: var(--brand);
}

.section-head__more svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   集群概况（图文）
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
}

.about__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about__media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform .6s ease;
}

.about__media:hover img {
  transform: scale(1.05);
}

.about__badge {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 10px 18px;
  font-size: 14px;
  color: #fff;
  background: var(--brand);
}

.about__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}

.about__text {
  margin-top: 16px;
  color: #4a5361;
  text-wrap: pretty;
}

.about__text + .about__text {
  margin-top: 12px;
}

.about__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin-top: 24px;
}

.about__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--ink);
}

.about__list svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--brand);
}

/* ==========================================================================
   产业政策（Tab 切换）
   ========================================================================== */
.tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tabs__btn {
  padding: 9px 22px;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all .25s ease;
}

.tabs__btn:hover {
  border-color: var(--brand-light);
  color: var(--brand);
}

.tabs__btn.is-active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.tabs__panel {
  display: none;
}

.tabs__panel.is-active {
  display: block;
  animation: fadeIn .4s ease both;
}

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

.policy-list li + li {
  border-top: 1px dashed var(--line);
}

.policy-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 12px;
  transition: background .25s ease, padding-left .25s ease;
}

.policy-list a:hover {
  background: #fff;
  padding-left: 20px;
}

.policy-list__tag {
  flex: none;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--brand);
  background: rgba(26, 61, 148, .08);
  border-radius: var(--radius);
}

.policy-list__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.policy-list a:hover .policy-list__title {
  color: var(--brand);
}

.policy-list__date {
  flex: none;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   新闻资讯
   ========================================================================== */
.news__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
}

.news-feature {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}

.news-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-feature__media {
  overflow: hidden;
}

.news-feature__media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .6s ease;
}

.news-feature:hover .news-feature__media img {
  transform: scale(1.05);
}

.news-feature__body {
  padding: 20px 22px 24px;
}

.news-feature__date {
  font-size: 13px;
  color: var(--muted);
}

.news-feature__title {
  margin-top: 8px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}

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

.news-feature__desc {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  text-wrap: pretty;
}

.news-side li + li {
  margin-top: 14px;
}

.news-side a {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}

.news-side a:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.news-side__date {
  flex: none;
  width: 62px;
  padding: 6px 0;
  text-align: center;
  color: #fff;
  background: var(--brand);
  border-radius: var(--radius);
}

.news-side__day {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.news-side__ym {
  display: block;
  font-size: 12px;
  opacity: .85;
}

.news-side__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.news-side a:hover .news-side__title {
  color: var(--brand);
}

.news-side__desc {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   集群企业
   ========================================================================== */
.company__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.company-card {
  display: block;
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid transparent;
  transition: all .3s ease;
}

.company-card:hover {
  border-top-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.company-card__logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  background: rgba(26, 61, 148, .08);
  border-radius: var(--radius);
}

.company-card__thumb {
  display: block;
  height: 132px;
  margin: -26px -22px 0;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg-soft);
}

.company-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

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

.company-card__name {
  margin-top: 16px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.company-card__meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--accent);
}

.company-card__desc {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  text-wrap: pretty;
}

/* ==========================================================================
   专家介绍
   ========================================================================== */
.expert__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.expert-card {
  padding: 28px 22px;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}

.expert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.expert-card__avatar {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(150deg, var(--brand-light), var(--brand-dark));
  border-radius: 50%;
}

.expert-card__avatar-img {
  width: 78px;
  height: 78px;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 50%;
  background: var(--bg-soft);
}

.expert-card__name {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 700;
}

.expert-card__title {
  margin-top: 4px;
  font-size: 13px;
  color: var(--brand);
}

.expert-card__field {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   商务合作 CTA
   ========================================================================== */
.cta {
  padding: 56px 0;
  color: #fff;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand-light));
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta__title {
  font-size: 28px;
  font-weight: 700;
  text-wrap: balance;
}

.cta__desc {
  margin-top: 8px;
  color: rgba(255, 255, 255, .85);
}

.cta__btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 16px;
  border-radius: var(--radius);
  transition: all .25s ease;
}

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

.btn--light:hover {
  background: #eef2fb;
  transform: translateY(-2px);
}

.btn--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .6);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .14);
  transform: translateY(-2px);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   首页友情链接
   ========================================================================== */
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.friend-links__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .25s ease;
}

.friend-links__item:hover {
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.friend-links__item--img {
  padding: 8px 18px;
  background: #fff;
}

.friend-links__item--img img {
  display: block;
  max-height: 40px;
  max-width: 150px;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.footer {
  color: rgba(255, 255, 255, .75);
  background: #14264f;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 48px 0 40px;
}

.footer__brand-cn {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.footer__brand-en {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
}

.footer__about {
  margin-top: 14px;
  font-size: 14px;
  text-wrap: pretty;
}

.footer__title {
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.footer__links li + li {
  margin-top: 10px;
}

.footer__links a {
  font-size: 14px;
}

.footer__links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer__qrcode {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer__qrcode-img {
  display: block;
  width: 108px;
  height: 108px;
  padding: 6px;
  background: #fff;
  border-radius: 8px;
  object-fit: cover;
}

.footer__qrcode-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .08);
  border: 1px dashed rgba(255, 255, 255, .3);
  border-radius: 8px;
}

.footer__qrcode-tip {
  font-size: 13px;
  color: rgba(255, 255, 255, .65);
  line-height: 1.6;
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.footer__contact li + li {
  margin-top: 12px;
}

.footer__contact svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 4px;
  color: var(--accent);
}

.footer__bottom {
  padding: 16px 0;
  font-size: 13px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

/* ==========================================================================
   返回顶部
   ========================================================================== */
.backtop {
  position: fixed;
  right: 24px;
  bottom: 30px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s ease;
  z-index: 80;
}

.backtop.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.backtop:hover {
  background: var(--brand-dark);
}

.backtop svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   滚动进场动画
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; }
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .stats__grid,
  .company__grid,
  .expert__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid,
  .news__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .hero__title { font-size: 34px; }
  .hero__viewport { height: 400px; }
}

@media (max-width: 768px) {
  .topbar__links,
  .topbar__divider {
    display: none;
  }

  .masthead__inner {
    flex-wrap: wrap;
    gap: 14px;
  }

  .search {
    order: 3;
    width: 100%;
  }

  .nav-toggle {
    display: grid;
  }

  .brand__mark { width: 52px; height: 52px; }
  .brand__mark img { padding: 8px; }
  .brand__cn { font-size: 20px; }
  .brand__en {
    font-size: 11px;
    letter-spacing: .4px;
    word-spacing: normal;
    text-align: left;
    text-align-last: left;
  }

  /* 移动端导航折叠 */
  .mainnav > .container {
    padding: 0;
  }

  .mainnav__list {
    display: none;
    flex-direction: column;
    padding-bottom: 8px;
  }

  .mainnav__list.is-open {
    display: flex;
  }

  .mainnav__link {
    justify-content: space-between;
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    background: var(--brand-dark);
  }

  .mainnav__item.is-open > .submenu {
    display: block;
  }

  .submenu a { text-align: left; }

  .mainnav.is-sticky { position: relative; }

  .hero__viewport { height: 340px; }
  .hero__title { font-size: 26px; }
  .hero__desc { font-size: 15px; }
  .hero__arrow { display: none; }

  .section { padding: 44px 0; }
  .stats { padding: 40px 0; }
  .section-head__cn { font-size: 22px; }
  .stat-card__value { font-size: 28px; }
  .about__list { grid-template-columns: 1fr; }
  .cta__title { font-size: 22px; }
  .footer__top { grid-template-columns: 1fr; }
  .policy-list__tag { display: none; }
}

@media (max-width: 480px) {
  .stats__grid,
  .company__grid,
  .expert__grid {
    grid-template-columns: 1fr;
  }

  .policy-list__date { display: none; }
}
