/* ========================================
   Sunward Supply Chain - Common Styles
   设计令牌对齐 refactored 模板：
   主色 #1F51FF | HarmonyOS Sans SC 字体
   ======================================== */

/* ---------- 1. 字体（font-display: swap 不阻塞渲染） ---------- */
@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("../fonts/HarmonyOS_Sans_SC_Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("../fonts/HarmonyOS_Sans_SC_Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("../fonts/HarmonyOS_Sans_SC_Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 主色体系（对齐 refactored --main-color: #1F51FF） */
  --main-color: #1f51ff;
  --main-color-rgb: 31, 81, 255;
  --main-color-dark: #1742e6;
  --main-color-darker: #1236c4;
  --main-color-soft: #6f8bff;

  /* 中性色（对齐 refactored color-three 等） */
  --dark-color: #191919;
  --dark-2: #10101c;
  --text-color: #333;
  --text-muted: #666;
  --text-light: #999;
  --border-color: #e5e5e5;
  --bg-light: #f8f9fa;
  --white: #fff;

  /* 圆角 / 阴影 / 过渡 */
  --radius: 8px;
  --radius-sm: 4px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
  --transition: 0.3s ease;

  /* 字体 / 布局 */
  --font-family:
    "HarmonyOS Sans SC", "HarmonyOS Sans", "Microsoft YaHei", "微软雅黑", Arial,
    sans-serif;
  --container-max: 1200px;
  --header-height: 80px;
}

/* ---------- 3. Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background: var(--white);
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul,
ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 15px;
}

/* ---------- 4. Header / Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition:
    background 0.3s,
    box-shadow 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 15px;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 50px;
  width: auto;
  max-width: 180px;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-item {
  position: relative;
  padding: 10px 15px;
}

.nav-item > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  color: var(--text-color);
  transition: color 0.3s;
}

.nav-item > a .cn {
  font-size: 16px;
  font-weight: 500;
}

.nav-item > a .en {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
}

.nav-item > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--main-color);
  transition:
    width 0.3s ease,
    left 0.3s ease;
}

.nav-item:hover > a::after,
.nav-item.active > a::after {
  left: 15%;
  width: 70%;
}

.nav-item:hover > a .cn,
.nav-item.active > a .cn {
  color: var(--main-color);
}

/* Dropdown */
.nav-item .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 160px;
  box-shadow: var(--shadow-md);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.nav-item:hover .dropdown {
  display: block;
}

.nav-item .dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-color);
  transition:
    background 0.3s,
    color 0.3s;
}

.nav-item .dropdown a:hover {
  background: var(--bg-light);
  color: var(--main-color);
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 5px;
}

.lang-switch a {
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all 0.3s;
}

.lang-switch a:hover,
.lang-switch a.active {
  background: var(--main-color);
  color: var(--white);
  border-color: var(--main-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-color);
  transition: all 0.3s;
}

/* ---------- 5. Hero / Banner ---------- */
.hero {
  margin-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero .swiper-slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.hero .swiper-pagination-bullet-active {
  background: var(--main-color);
}

.hero .swiper-button-next,
.hero .swiper-button-prev {
  color: var(--white);
}

/* ---------- 6. Section Common ---------- */
.section {
  padding: 60px 0;
}

.bg-light {
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 10px;
}

.section-title .subtitle {
  font-size: 14px;
  color: var(--main-color);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.section-title .divider {
  width: 60px;
  height: 3px;
  background: var(--main-color);
  margin: 15px auto 0;
}

/* ---------- 7. Cards Grid ---------- */
/* 卡片样式 — 白底、圆角、阴影 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  display: block;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.card-img {
  width: 100%;
  display: block;
}

/* 产品页卡片区：移除 .content img 继承的上下 margin（仅作用于该页卡片） */
.product-cards .card-img {
  margin: 0;
}

.card-body {
  padding: 18px 16px 22px;
  text-align: center;
}

.card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a2a4a;
  margin: 0 0 4px 0;
  letter-spacing: 0.5px;
}

.card-body .card-subtitle {
  font-size: 13px;
  font-weight: 400;
  color: #8a9bb5;
  letter-spacing: 1px;
  margin: 0;
  text-transform: uppercase;
}

/* 卡片通用描述文本 */
.card-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 卡片网格响应式 */
@media (max-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* 产品与服务优势 — 中心图片（底层）+ 四角卡片 */
.adv-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 32px 24px;
  align-items: start;
  justify-items: center;
  padding: 20px 0 20px;
}

/* 中心图片：置于底层并放大 200% */
.adv-image {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  max-width: 920px;
  z-index: 0;
  pointer-events: none;
}

.adv-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.adv-layout .card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
}

.adv-corner-tl {
  justify-self: start;
}
.adv-corner-tr {
  justify-self: end;
}
.adv-corner-bl {
  justify-self: start;
}
.adv-corner-br {
  justify-self: end;
}

@media (max-width: 992px) {
  .adv-layout {
    gap: 20px;
    padding: 40px 0 30px;
  }

  .adv-image {
    width: 150%;
    max-width: 620px;
  }
}

@media (max-width: 576px) {
  .adv-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 30px 0 20px;
  }

  .adv-image {
    width: 120%;
    max-width: 460px;
  }
}

/* ---------- 8. Partners Marquee ---------- */
.partners {
  background: var(--bg-light);
  padding: 40px 0;
}

.partners-marquee {
  overflow: hidden;
  white-space: nowrap;
}

.partners-track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}

.partners-track:hover {
  animation-play-state: paused;
}

.partners-track img {
  height: 60px;
  margin: 0 30px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition:
    filter 0.3s,
    opacity 0.3s;
}

.partners-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

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

/* ---------- 9. Quick Links ---------- */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  grid-column: 1 / -1;
}

.quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  background: var(--bg-light);
  border-radius: var(--radius);
  transition: all 0.3s;
  font-size: 15px;
  color: var(--text-color);
}

.quick-link:hover {
  background: var(--main-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ---------- 10. 按钮（对齐 refactored theme-btn 风格） ---------- */
.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--main-color);
  border: 2px solid var(--main-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s;
}

.theme-btn:hover {
  background: var(--main-color-dark);
  border-color: var(--main-color-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(var(--main-color-rgb), 0.35);
}

.theme-btn-outline {
  background: transparent;
  border-color: var(--main-color);
  color: var(--main-color);
}

.theme-btn-outline:hover {
  background: var(--main-color);
  border-color: var(--main-color);
  color: var(--white);
  box-shadow: none;
}

/* ---------- 11. CTA（对齐 refactored cta-one 黑底风格） ---------- */
.cta {
  background: linear-gradient(
    120deg,
    var(--dark-color) 0%,
    var(--dark-2) 60%,
    rgba(var(--main-color-rgb), 0.35) 160%
  );
  padding: 60px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
}

.cta p {
  font-size: 17px;
  color: #9a9ab5;
  margin-top: 10px;
}

/* ---------- 12. Footer（对齐 refactored main-footer 风格） ---------- */
.footer {
  background: var(--dark-2);
  color: #a9a9bf;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 15px 40px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #a9a9bf;
}

.footer-title {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--main-color);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: #a9a9bf;
  font-size: 14px;
  transition:
    color 0.3s,
    padding-left 0.3s;
}

.footer-col ul a:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-contact .icon {
  color: var(--main-color);
  flex-shrink: 0;
}

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

.footer-bottom p {
  margin-bottom: 4px;
}

.footer-bottom a {
  color: #9a9ab0;
  transition: color 0.3s;
}

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

/* ---------- 13. Back To Top（浮动按钮） ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--main-color);
  color: var(--white);
  border-radius: 10%;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--main-color-dark);
  transform: translateY(-3px);
}

/* ---------- 14. Page Header（对齐 refactored page-title 风格） ---------- */
.page-header {
  margin-top: var(--header-height);
  position: relative;
  padding: 110px 0;
  text-align: center;
  color: var(--white);
  background: linear-gradient(
    135deg,
    var(--dark-color) 0%,
    var(--dark-2) 50%,
    rgba(var(--main-color-rgb), 0.55) 140%
  );
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(var(--main-color-rgb), 0.18);
}

.page-header::after {
  content: "";
  position: absolute;
  left: -60px;
  bottom: -120px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 30px solid rgba(var(--main-color-rgb), 0.12);
}

/* 各业务页面 page-header 背景图（按页面分组，图片叠加半透明遮罩保证文字可读） */
.page-header-products {
  --ph-bg: url("../images/banner/page-header-background/products.webp");
}
.page-header-news {
  --ph-bg: url("../images/banner/page-header-background/news.webp");
}
.page-header-college {
  --ph-bg: url("../images/banner/page-header-background/college.webp");
}
.page-header-contact {
  --ph-bg: url("../images/banner/page-header-background/contact.webp");
}
.page-header-products,
.page-header-news,
.page-header-college,
.page-header-contact {
  background:
    linear-gradient(
      135deg,
      rgba(16, 16, 28, 0.45) 0%,
      rgba(16, 16, 28, 0.35) 50%,
      rgba(var(--main-color-rgb), 0.25) 140%
    ),
    var(--ph-bg) center/cover no-repeat;
}

.page-header h1 {
  position: relative;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: capitalize;
}

.page-header .breadcrumb {
  position: relative;
  justify-content: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0;
}

.page-header .breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s;
}

.page-header .breadcrumb a::after {
  content: "\203A";
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.5);
}

.page-header .breadcrumb a:hover {
  color: var(--main-color-soft);
}

.page-header .breadcrumb span {
  color: var(--main-color-soft);
  font-weight: 500;
}

/* ---------- 15. Content Area ---------- */
.content {
  padding: 40px 15px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 20px 0;
}

.content h2 {
  font-size: 24px;
  color: var(--dark-color);
  margin: 30px 0 15px;
}

.content h3 {
  font-size: 20px;
  margin: 25px 0 12px;
}

.content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 15px;
}

/* 新闻日期（替代内联样式） */
.news-date {
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 8px;
}

/* 联系信息列表（分公司卡片） */
.contact-list {
  margin-top: 10px;
  text-align: left;
}

.contact-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-list .icon {
  color: var(--main-color);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-list span {
  display: block;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 2px;
}

.contact-list p {
  margin: 0;
}

.contact-list a {
  color: var(--main-color);
  transition: color 0.3s;
}

.contact-list a:hover {
  color: var(--main-color-dark);
}

/* 联系我们 — 分公司卡片（全宽上下排列） */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 0 auto;
}

.contact-grid .contact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 36px;
}

.contact-grid .contact-list li {
  margin-bottom: 0;
}

@media (max-width: 576px) {
  .contact-grid .contact-list {
    grid-template-columns: 1fr;
  }
}

/* 行业新闻 — 卡片区（一行 3 个） */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-grid .card {
  height: 100%;
}

@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* 文章详情页 */
.article {
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 40px 44px;
}

.article-title {
  font-size: 26px;
  line-height: 1.4;
  color: var(--text-color);
  margin-bottom: 14px;
}

.article-meta {
  font-size: 14px;
  color: var(--text-light);
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border-color);
}

.article-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-muted);
}

.article-body p {
  margin-bottom: 18px;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 10px 0;
}

.article-body h3 {
  font-size: 20px;
  color: var(--text-color);
  margin: 30px 0 14px;
  font-weight: 600;
}

.article-body h4 {
  font-size: 16px;
  color: var(--text-color);
  margin-bottom: 6px;
  font-weight: 600;
}

.article-body ul {
  padding-left: 20px;
  list-style: disc;
  margin-bottom: 20px;
}

.article-body ul li {
  margin-bottom: 6px;
}

.article-body h2 {
  font-size: 22px;
  color: var(--text-color);
  margin: 34px 0 14px;
  font-weight: 700;
  padding-left: 12px;
  border-left: 4px solid var(--main-color);
}

.article-body ol {
  padding-left: 22px;
  list-style: decimal;
  margin-bottom: 20px;
}

.article-body ol li {
  margin-bottom: 6px;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}

.article-body table th,
.article-body table td {
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  text-align: left;
}

.article-body table th {
  background: var(--bg-light);
  color: var(--text-color);
  font-weight: 600;
}

.article-body table tr:nth-child(even) td {
  background: #fafbfc;
}

.article-body blockquote {
  margin: 24px 0;
  padding: 14px 18px;
  background: #f0f4ff;
  border-left: 4px solid var(--main-color);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-color);
}

.article-body blockquote p {
  margin-bottom: 0;
}

.about-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 14px 0;
}

/* 服务优势网格 */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 18px 0;
}

.adv-grid .card {
  margin: 0;
}

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

@media (max-width: 767px) {
  .article {
    padding: 24px 18px;
  }

  .article-title {
    font-size: 20px;
  }
}

/* ---------- 文章列表（列表页入口） ---------- */
/* 整体为卡片容器：白色底 + 细边框 + 轻阴影，营造现代列表卡片感 */
.article-list {
  margin-top: 0;
  padding: 10px 28px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  animation: listFadeIn 0.5s ease both;
}

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

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

.article-list li:last-child {
  border-bottom: none;
}

.article-list li a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 32px 18px 24px;
  color: var(--text-color);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.2px;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

/* 标题占满剩余宽度，日期/箭头贴右 */
.article-list li a > span:first-child {
  flex: 1;
  min-width: 0;
}

/* 标题前的状态圆点 */
.article-list li a::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--main-color-soft);
  transform: translateY(-50%);
  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

/* 悬停箭头（默认隐藏，悬停滑入） */
.article-list li a::after {
  content: "→";
  position: absolute;
  right: 14px;
  top: 50%;
  font-size: 15px;
  color: var(--main-color);
  opacity: 0;
  transform: translateY(-50%) translateX(-6px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.article-list li a:hover {
  color: var(--main-color);
  background: rgba(var(--main-color-rgb), 0.045);
  transform: translateX(6px);
}

.article-list li a:hover::before {
  background: var(--main-color);
  transform: translateY(-50%) scale(1.3);
}

.article-list li a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* 日期胶囊 */
.article-date {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 3px 14px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.article-list li a:hover .article-date {
  color: var(--main-color);
  background: rgba(var(--main-color-rgb), 0.06);
  border-color: rgba(var(--main-color-rgb), 0.3);
}

/* 平板适配 */
@media (max-width: 1023px) {
  .article-list {
    padding: 8px 22px;
  }
}

/* 移动端适配：日期下沉、纵向堆叠、加大点击区 */
@media (max-width: 767px) {
  .article-list {
    padding: 6px 16px;
  }

  .article-list li a {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 26px 16px 20px;
    font-size: 15px;
  }

  .article-list li a::before {
    left: 6px;
  }

  .article-list li a:hover {
    transform: translateX(4px);
  }

  .article-list li a::after {
    right: 8px;
    top: auto;
    bottom: 16px;
    transform: translateY(0) translateX(-4px);
  }

  .article-list li a:hover::after {
    transform: translateY(0) translateX(0);
  }

  .article-date {
    margin-top: 2px;
  }
}

/* ---------- 16. Accessibility (WCAG) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--main-color);
  color: var(--white);
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--main-color);
  outline-offset: 2px;
}

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

/* ========================================
   Responsive
   ======================================== */

/* 桌面窄屏：1024px - 1199px */
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav {
    gap: 0;
  }

  .nav-item {
    padding: 10px 12px;
  }

  .lang-switch a {
    padding: 6px 10px;
  }
}

/* 平板：768px - 1023px */
@media (max-width: 1023px) {
  .header-inner {
    height: 70px;
  }

  .logo img {
    height: 44px;
    max-width: 160px;
  }

  .nav {
    gap: 0;
  }

  .nav-item {
    padding: 8px 8px;
  }

  .nav-item > a .cn {
    font-size: 14px;
  }

  .lang-switch a {
    min-height: 44px;
    padding: 6px 10px;
  }

  .hero,
  .page-header {
    margin-top: 70px;
  }

  .hero .swiper-slide img {
    height: 350px;
  }

  .section {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .quick-link {
    min-height: 44px;
  }

  .page-header {
    padding: 70px 0;
  }

  .page-header h1 {
    font-size: 28px;
  }

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

/* 移动端 / 小平板：≤991px（含汉堡菜单） */
@media (max-width: 991px) {
  .header-inner {
    height: 60px;
  }

  .logo img {
    height: 36px;
    max-width: 130px;
  }

  .menu-toggle {
    display: flex;
    order: 3;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 0 8px;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    box-shadow: var(--shadow-md);
    padding: 10px 0;
    order: 4;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .nav.active {
    display: flex;
  }

  .nav-item {
    width: 100%;
    text-align: center;
    padding: 0;
  }

  .nav-item > a {
    min-height: 48px;
    justify-content: center;
    padding: 8px 0;
  }

  .nav-item > a .cn {
    font-size: 16px;
  }

  .nav-item > a::after {
    display: none;
  }

  .nav-item .dropdown {
    position: static;
    box-shadow: none;
    background: var(--bg-light);
  }

  .lang-switch {
    order: 2;
    margin-left: auto;
    margin-right: 0;
  }

  .lang-switch a {
    min-height: 44px;
    min-width: 44px;
    padding: 8px 10px;
    font-size: 14px;
  }

  .hero,
  .page-header {
    margin-top: 60px;
  }

  .hero .swiper-slide img {
    height: 220px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    margin-bottom: 30px;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .card-body {
    padding: 16px;
  }

  .card-body h3 {
    font-size: 17px;
  }

  .card-body p,
  .content p,
  .quick-link,
  .footer-col ul a,
  .footer-contact li,
  .footer-bottom {
    font-size: 14px;
  }

  .quick-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .quick-link {
    min-height: 48px;
    padding: 14px 10px;
    font-size: 14px;
  }

  .page-header {
    padding: 50px 0;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .page-header .breadcrumb {
    font-size: 14px;
  }

  .cta {
    padding: 40px 0;
  }

  .cta-inner {
    justify-content: center;
    text-align: center;
  }

  .cta h2 {
    font-size: 24px;
  }

  .footer {
    padding: 50px 0 0;
  }

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

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

/* 小平板（768px - 991px）：卡片双列布局由 Cards Grid 的 max-width: 992px 断点统一处理 */
@media (min-width: 768px) and (max-width: 991px) {
  .quick-links {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* ========================================
   Utilities
   ======================================== */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.mt-20 {
  margin-top: 20px;
}
.mb-20 {
  margin-bottom: 20px;
}
.hidden {
  display: none !important;
}
