/* ================================================
   Page: Home
   页面专属样式，作用域限定 .page-home
   移动端优先
   ================================================ */
.page-home {
  --home-card-border: rgba(10, 26, 47, 0.12);
  --home-dark-line: rgba(255, 255, 255, 0.14);
  --home-gap: 24px;
}

/* ---------- Hero ---------- */
.page-home .hero {
  position: relative;
  display: flex;
  min-height: 620px;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-primary);
  color: var(--c-text-on-dark);
}

.page-home .hero-bg,
.page-home .hero-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-home .hero-bg {
  object-fit: cover;
  opacity: 0.1;
}

.page-home .hero-flow {
  opacity: 0.75;
}

.page-home .hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 56px;
}

.page-home .hero-main {
  position: relative;
  padding: 40px 24px;
  isolation: isolate;
}

.page-home .hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 20, 42, 0.92), rgba(26, 58, 92, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: skewX(-2.4deg);
  z-index: -1;
}

.page-home .hero-crumb {
  display: inline-flex;
  gap: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--c-accent);
  margin-bottom: 18px;
}

.page-home .hero-crumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-home .hero-crumb a:hover {
  color: var(--c-secondary);
}

.page-home .hero-tag {
  display: inline-block;
  padding: 5px 12px;
  margin-bottom: 22px;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.page-home .hero-title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  line-height: 1.14;
  margin: 0 0 20px;
  color: var(--c-text-on-dark);
}

.page-home .hero-title-en {
  display: block;
  margin-top: 8px;
  font-family: var(--font-latin);
  font-weight: 500;
  font-size: 0.42em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

.page-home .hero-lead {
  max-width: 30em;
  margin: 0 0 28px;
  font-size: 1.04rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.84);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .hero .btn {
  border-radius: 0;
}

.page-home .hero .btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.page-home .hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
  background: transparent;
}

.page-home .hero .btn-outline:hover {
  border-color: #fff;
  color: var(--c-secondary);
}

.page-home .hero-side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 32px 28px 30px;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.3s var(--ease);
}

.page-home .hero-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  z-index: -1;
  transition: clip-path 0.3s var(--ease);
}

.page-home .hero-side::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-right: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.page-home .hero-side:hover {
  transform: translateY(-4px);
}

.page-home .hero-side:hover::before {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%);
}

.page-home .hero-side-label {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.24rem;
  line-height: 1.35;
}

.page-home .hero-side-sub {
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0.92;
  padding-right: 28px;
}

.page-home .hero-side-arrow {
  margin-top: auto;
  font-family: var(--font-latin);
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.92);
  transition: transform 0.3s var(--ease);
}

.page-home .hero-side:hover .hero-side-arrow {
  transform: translateX(6px);
}

/* ---------- 通用章节头 ---------- */
.page-home .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.page-home .section-kicker {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-latin);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-secondary);
}

.page-home .section-title {
  margin: 0;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.3;
  color: var(--c-text);
}

.page-home .section-more {
  white-space: nowrap;
  padding-bottom: 2px;
  color: var(--c-link);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 0.2s ease;
}

.page-home .section-more:hover {
  color: var(--c-secondary);
}

/* ---------- 更新公告 ---------- */
.page-home .announcements {
  padding: 88px 0;
  background: var(--c-bg);
}

.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.page-home .filter-btn {
  border: 1px solid var(--c-border);
  border-radius: 0;
  padding: 8px 14px;
  background: #fff;
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.page-home .filter-btn:hover {
  border-color: var(--c-accent);
}

.page-home .filter-btn.is-active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

.page-home .is-hidden {
  display: none !important;
}

.page-home .announcement-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 20px 26px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--home-card-border);
  border-left: 0;
  border-top: 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.page-home .announcement-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.page-home .announcement-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--c-secondary);
}

.page-home .announcement-bar-doc {
  background: #1A5FB4;
}

.page-home .announcement-bar-fix {
  background: var(--c-accent);
}

.page-home .announcement-bar-release {
  background: #FFB04F;
}

.page-home .announcement-body h3 {
  margin: 0 0 6px;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--c-text);
}

.page-home .announcement-body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #2a415e;
}

.page-home .announcement-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-home .announcement-tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(11, 31, 58, 0.12);
  background: rgba(11, 31, 58, 0.08);
  color: var(--c-primary);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.page-home .announcement-time {
  font-family: var(--font-latin);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-accent);
}

/* ---------- 资料库四宫格 ---------- */
.page-home .library {
  padding: 88px 0 96px;
  background: var(--gradient-primary);
  color: var(--c-text-on-dark);
}

.page-home .library .section-title {
  color: var(--c-text-on-dark);
}

.page-home .library .section-kicker {
  color: var(--c-secondary);
}

.page-home .library-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-top: 20px;
}

.page-home .library-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 24px 28px;
  background: rgba(26, 58, 92, 0.4);
  border: 1px solid var(--home-dark-line);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.page-home .library-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 92, 53, 0.55);
  background: rgba(26, 58, 92, 0.62);
}

.page-home .library-index {
  position: absolute;
  top: -12px;
  left: 18px;
  z-index: 2;
  padding: 4px 8px;
  background: var(--c-secondary);
  color: #fff;
  font-family: var(--font-latin);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.page-home .media-frame.library-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--home-dark-line);
  background: rgba(11, 31, 58, 0.25);
}

.page-home .library-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .library-faq-media {
  background: rgba(255, 255, 255, 0.08);
}

.page-home .library-faq-media svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62%;
  height: 62%;
}

.page-home .library-card-body h3 {
  margin: 0 0 10px;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.18rem;
  line-height: 1.45;
  color: #fff;
}

.page-home .library-card-body p {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.page-home .library-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-bottom: 2px;
  color: var(--c-secondary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 92, 53, 0.5);
  transition: gap 0.25s var(--ease), color 0.25s ease, border-color 0.25s ease;
}

.page-home .library-link:hover {
  gap: 12px;
  color: var(--c-secondary-2);
  border-color: var(--c-secondary-2);
}

/* ---------- 快速定位小贴士 ---------- */
.page-home .quick-help {
  padding: 88px 0;
  background-color: var(--c-bg);
  background-image:
    linear-gradient(rgba(138, 155, 178, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 155, 178, 0.14) 1px, transparent 1px);
  background-size: 32px 32px;
}

.page-home .quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: start;
}

.page-home .quick-steps {
  position: relative;
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0 0 0 32px;
  list-style: none;
}

.page-home .quick-steps::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--c-accent);
  opacity: 0.45;
}

.page-home .quick-steps li {
  position: relative;
  padding-top: 4px;
}

.page-home .quick-step-num {
  position: absolute;
  left: -32px;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--c-accent);
  background: var(--c-bg);
  color: var(--c-secondary);
  font-family: var(--font-latin);
  font-size: 0.64rem;
  font-weight: 700;
}

.page-home .quick-steps h3 {
  margin: 0 0 6px;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--c-text);
}

.page-home .quick-steps p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #2a415e;
}

/* 右栏：常见说明与联系入口 */
.page-home .quick-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--gradient-primary);
  color: #fff;
}

.page-home .quick-aside::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 4px;
  background: var(--gradient-accent);
}

.page-home .quick-aside h3 {
  margin: 0 0 10px;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.32rem;
  line-height: 1.4;
  color: #fff;
}

.page-home .quick-aside-desc {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.page-home .quick-contact-list {
  display: grid;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.page-home .quick-contact-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
  line-height: 1.5;
}

.page-home .quick-contact-list li span {
  font-family: var(--font-latin);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.page-home .quick-contact-list a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-home .quick-contact-list a:hover {
  color: var(--c-secondary);
}

.page-home .quick-response {
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--c-secondary);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- 平板 ---------- */
@media (min-width: 680px) {
  .page-home .announcement-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
  }

  .page-home .announcement-meta {
    justify-content: flex-end;
  }
}

@media (min-width: 860px) {
  .page-home .quick-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 56px;
  }
}

/* ---------- 桌面 ---------- */
@media (min-width: 980px) {
  .page-home .hero {
    min-height: 680px;
  }

  .page-home .hero-inner {
    grid-template-columns: 1.5fr 0.85fr;
    gap: 56px;
    padding-top: 100px;
    padding-bottom: 88px;
  }

  .page-home .hero-main {
    padding: 52px 48px;
  }

  .page-home .hero-side {
    align-self: start;
    justify-self: end;
    width: 100%;
    max-width: 320px;
    min-height: 210px;
    margin-top: 120px;
  }

  .page-home .announcements,
  .page-home .library,
  .page-home .quick-help {
    padding: 100px 0;
  }

  .page-home .library-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-top: 26px;
  }

  .page-home .library-grid::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 9%;
    right: 9%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34) 12%, rgba(255, 255, 255, 0.34) 88%, transparent);
  }

  .page-home .library-card::before {
    content: "";
    position: absolute;
    top: -19px;
    left: 50%;
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.28);
  }
}
