/*
 * 首页扩展模块：信任条、核心能力、下载、RCU 架构、合作、新闻、FAQ、CTA、锚点导航
 * 引用: index.html
 */

.home-page [id^="home-"] {
  scroll-margin-top: 96px;
}

/* ========== 锚点导航 ========== */
.home-anchor-nav {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(10, 22, 40, 0.12);
  border: 1px solid rgba(29, 81, 152, 0.1);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.home-anchor-nav a {
  display: block;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(26, 42, 58, 0.65);
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.home-anchor-nav a:hover,
.home-anchor-nav a.is-active {
  background: rgba(29, 81, 152, 0.1);
  color: #1d5198;
}

@media (max-width: 1200px) {
  .home-anchor-nav {
    display: none;
  }
}

/* ========== 信任条 ========== */
.home-trust {
  background: linear-gradient(90deg, #0e3a73 0%, #1d5198 50%, #16407a 100%);
  padding: 20px 0;
  border-bottom: 3px solid #fc6b00;
}

.home-trust__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
}

.home-trust__item i {
  font-size: 22px;
  color: #fc6b00;
}

.home-trust__item strong {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-right: 4px;
}

/* ========== 核心能力 ========== */
.home-core {
  padding: 72px 0 80px;
  background: #fff;
}

.home-core__head {
  text-align: center;
  margin-bottom: 48px;
}

.home-core__head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  color: #1a1a1a;
}

.home-core__head p {
  margin: 0;
  font-size: 16px;
  color: #666;
}

.home-core__head .head-line {
  display: block;
  width: 48px;
  height: 3px;
  background: #fc6b00;
  margin: 16px auto 0;
  border-radius: 2px;
}

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

.home-core-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: 12px;
  background: #f8f9fb;
  border: 1px solid rgba(29, 81, 152, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.home-core-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(29, 81, 152, 0.12);
  border-color: rgba(29, 81, 152, 0.2);
}

.home-core-card i {
  font-size: 36px;
  color: #1d5198;
  margin-bottom: 14px;
  display: block;
}

.home-core-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #1a2a3a;
}

.home-core-card p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

/* ========== 解决方案 9 宫格 ========== */
.home-solutions__grid--full {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.home-solution-card--compact .home-solution-card__body {
  padding: 18px 20px 22px;
}

.home-solution-card--compact .home-solution-card__desc {
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== 协议卡片链接 ========== */
.home-systems__card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-sizing: border-box;
}

.home-systems__card--link:hover {
  border-color: rgba(29, 81, 152, 0.35);
  box-shadow: 0 8px 24px rgba(29, 81, 152, 0.12);
}

.home-systems__card-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #1d5198;
}

/* ========== 下载入口 ========== */
.home-downloads {
  padding: 72px 0 80px;
  background: #fff;
}

.home-downloads__head {
  text-align: center;
  margin-bottom: 44px;
}

.home-downloads__head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
}

.home-downloads__head p {
  margin: 0;
  color: #666;
  font-size: 16px;
}

.home-downloads__head .head-line {
  display: block;
  width: 48px;
  height: 3px;
  background: #1d5198;
  margin: 16px auto 0;
}

.home-downloads__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.home-download-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: #f8f9fb;
  border-radius: 12px;
  border: 1px solid rgba(29, 81, 152, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(29, 81, 152, 0.1);
}

.home-download-card i {
  font-size: 32px;
  color: #1d5198;
  margin-bottom: 14px;
}

.home-download-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.home-download-card p {
  margin: 0 0 16px;
  flex: 1;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.home-download-card span {
  font-size: 13px;
  font-weight: 600;
  color: #fc6b00;
}

/* ========== RCU 架构示意 ========== */
.home-rcu {
  padding: 72px 0 80px;
  background: #0a1628;
  color: #fff;
}

.home-rcu__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.home-rcu__text h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
}

.home-rcu__text p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  font-size: 15px;
}

.home-rcu__list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.home-rcu__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.home-rcu__list i {
  color: #fc6b00;
  font-size: 18px;
  margin-top: 2px;
}

.home-rcu__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #fc6b00;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.25s ease;
}

.home-rcu__btn:hover {
  background: #e55f00;
}

.home-rcu__diagram {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px;
}

.home-rcu__flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-rcu__node {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(29, 81, 152, 0.35);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-rcu__node i {
  font-size: 24px;
  color: #7eb8ff;
}

.home-rcu__node strong {
  display: block;
  font-size: 14px;
}

.home-rcu__node span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.home-rcu__arrow {
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 18px;
}

/* ========== 合作伙伴 ========== */
.home-partner {
  padding: 72px 0 80px;
  background: #f4f6f9;
}

.home-partner__head {
  text-align: center;
  margin-bottom: 40px;
}

.home-partner__head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
}

.home-partner__head p {
  margin: 0 auto 20px;
  max-width: 640px;
  color: #666;
  line-height: 1.7;
}

.home-partner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.home-partner__actions a {
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.home-partner__actions .btn-primary {
  background: #1d5198;
  color: #fff;
}

.home-partner__actions .btn-ghost {
  border: 1px solid #1d5198;
  color: #1d5198;
}

.home-partner__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.home-partner__logo {
  flex: 0 0 calc(16.666% - 14px);
  min-width: 120px;
  max-width: 160px;
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-partner__logo img {
  max-width: 100%;
  height: auto;
  max-height: 56px;
  object-fit: contain;
}

.home-partner__word {
  display: none;
  max-width: 100%;
  padding: 4px 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: #1d5198;
  letter-spacing: 0.04em;
  word-break: break-word;
}

.home-partner__logo.is-fallback .home-partner__word,
.home-partner__logo.is-fallback .home-partner__word:not([hidden]) {
  display: block;
}

.home-partner__more {
  text-align: center;
  margin: 24px 0 0;
}

.home-partner__more a {
  color: #1d5198;
  font-weight: 600;
  text-decoration: none;
}

.home-partner__more a:hover {
  color: #fc6b00;
}

/* ========== 新闻列表 ========== */
.home-news {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(29, 81, 152, 0.1);
}

.home-news__title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  color: #1a2a3a;
}

.home-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-news__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.home-news__item time {
  font-size: 13px;
  color: #888;
  flex: 0 0 auto;
}

.home-news__item a {
  flex: 1 1 200px;
  font-size: 15px;
  font-weight: 600;
  color: #1d5198;
  text-decoration: none;
}

.home-news__item a:hover {
  color: #fc6b00;
}

/* ========== FAQ ========== */
.home-faq {
  padding: 72px 0 80px;
  background: #fff;
}

.home-faq__head {
  text-align: center;
  margin-bottom: 40px;
}

.home-faq__head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
}

.home-faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.home-faq__item {
  border: 1px solid rgba(29, 81, 152, 0.12);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

.home-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: #f8f9fb;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: #1a2a3a;
  text-align: left;
  cursor: pointer;
}

.home-faq__question i {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.home-faq__item.is-open .home-faq__question i {
  transform: rotate(180deg);
}

.home-faq__answer {
  display: none;
  padding: 0 20px 16px;
  font-size: 14px;
  color: #555;
  line-height: 1.75;
}

.home-faq__item.is-open .home-faq__answer {
  display: block;
}

.home-faq__more {
  text-align: center;
  margin-top: 28px;
}

.home-faq__more a {
  color: #1d5198;
  font-weight: 600;
  text-decoration: none;
}

/* ========== 底部 CTA ========== */
.home-cta {
  padding: 64px 0;
  background: linear-gradient(135deg, #1d5198 0%, #0e3a73 60%, #16407a 100%);
  text-align: center;
}

.home-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: #fff;
}

.home-cta p {
  margin: 0 auto 28px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.home-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.home-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-cta__btn--primary {
  background: #fc6b00;
  color: #fff;
}

.home-cta__btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.home-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1100px) {
  .home-core__grid,
  .home-downloads__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-solutions__grid--full {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .home-partner__logo {
    flex: 0 0 calc(25% - 12px);
  }
}

@media (max-width: 768px) {
  .home-core__grid,
  .home-downloads__grid {
    grid-template-columns: 1fr;
  }

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

  .home-partner__logo {
    flex: 0 0 calc(33.333% - 11px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-core-card:hover,
  .home-download-card:hover,
  .home-cta__btn:hover {
    transform: none;
  }
}
