/* HMCC/HHME 2026 首页 — Figma 设计稿还原 (node 66:2) */

:root {
  --home-red: #c00027;
  --home-red-dark: #8c1724;
  --home-red-footer: #a4181d;
  --home-bg-pink: #fff6f5;
  --home-text-muted: #747474;
  --home-text-light: #949494;
  --home-max: 1636px;
}

body.home-figma {
  margin: 0;
  padding: 0;
  background: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #222;
}

/* ========== 顶栏 ========== */
.home-header {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.home-header-inner {
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 32px 24px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-sizing: border-box;
}
.home-header-logo {
  flex: 0 0 auto;
  width: 158px;
}
.home-header-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.home-header-title {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 20px;
  border-left: 1px solid #ddd;
}
.home-header-title h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 4.8px;
  color: #000;
}
.home-header-title p {
  margin: 8px 0 0;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 2px;
  color: var(--home-text-light);
  text-transform: uppercase;
}
.home-header-partners {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  padding-left: 20px;
  border-left: 1px solid #ddd;
}
.home-header-partners img {
  display: block;
  height: 68px;
  width: auto;
  object-fit: contain;
}
.home-header-partners .logo-ccf {
  height: 69px;
  margin-right: 20px;
  image-rendering: -webkit-optimize-contrast;
}
.home-header-partners .logo-hnu {
  height: 68px;
  padding-left: 20px;
  border-left: 1px solid #ddd;
}

/* ========== 主导航 ========== */
.home-nav {
  background: #fff;
  border-bottom: 1px solid #f5f5f5;
}
.home-nav-inner {
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
  box-sizing: border-box;
}
.home-nav-item {
  position: relative;
  padding: 18px 24px 14px;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.home-nav-item:hover {
  color: var(--home-red);
}
.home-nav-item.is-active {
  color: var(--home-red);
  font-weight: 700;
}
.home-nav-item.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--home-red);
  border-radius: 1px;
}

/* ========== Hero ========== */
.home-hero {
  position: relative;
  display: grid;
  width: 100%;
  overflow: hidden;
  background: #f5ecec;
  aspect-ratio: 1024 / 320;
  max-height: 560px;
  min-height: 240px;
  isolation: isolate;
}
.home-hero-media,
.home-hero-content {
  grid-area: 1 / 1;
  min-width: 0;
}
.home-hero-media {
  position: relative;
  z-index: 0;
  overflow: hidden;
}
.home-hero-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.home-hero-img--lq {
  filter: blur(3px);
  transform: none;
  z-index: 0;
}
.home-hero-img--hq {
  opacity: 0;
  z-index: 1;
  transition: opacity 0.35s ease;
  image-rendering: auto;
}
.home-hero-img--hq.is-loaded {
  opacity: 1;
}
.home-hero-media.is-hq-loaded .home-hero-img--lq {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.home-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  align-self: stretch;
  padding-top: clamp(16px, 4vw, 56px);
  pointer-events: none;
}
.home-hero-content-inner {
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 7.3vw, 141px);
  box-sizing: border-box;
  width: 100%;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
.home-hero-dates {
  margin: 0 0 8px;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 700;
  color: var(--home-red-dark);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.home-hero-dates .sep {
  display: inline-block;
  width: clamp(36px, 4vw, 69px);
  height: 3px;
  background: var(--home-red-dark);
  vertical-align: middle;
  margin: 0 12px 4px;
}
.home-hero-location {
  margin: 0 0 10px;
  font-size: clamp(16px, 1.6vw, 24px);
  color: #393939;
  font-weight: 500;
  line-height: 1.4;
}
.home-hero-location .dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: #000;
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 8px;
}
.home-hero-divider {
  width: 48px;
  height: 4px;
  background: var(--home-red);
  margin: 0 0 12px;
}
.home-hero-slogan {
  margin: 0 0 6px;
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 600;
  color: #000;
  letter-spacing: 0.05em;
  line-height: 1.35;
}
.home-hero-slogan .dot-sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #000;
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 14px 3px;
}
.home-hero-slogan-en {
  margin: 0 0 clamp(12px, 2vw, 20px);
  font-size: clamp(13px, 1.2vw, 18px);
  line-height: 1.45;
  color: #646464;
  max-width: min(544px, 90%);
}
.home-hero-cta {
  display: inline-block;
  padding: clamp(10px, 1.2vw, 14px) clamp(28px, 3vw, 40px);
  background: var(--home-red);
  color: #fff;
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  line-height: 1.3;
  box-shadow: 0 2px 8px rgba(192, 0, 39, 0.25);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.home-hero-cta:hover {
  background: #a00020;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(192, 0, 39, 0.35);
}

/* ========== 三栏卡片 ========== */
.home-cards-section {
  position: relative;
  z-index: 3;
  background: var(--home-bg-pink);
  padding: 68px 0 72px;
}
.home-cards-inner {
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 0 142px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 65px;
  box-sizing: border-box;
}
.home-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px 32px;
  box-shadow: 0 2px 12px rgba(192, 0, 39, 0.06);
  min-height: 370px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.home-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.home-card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.home-card-icon-wrap {
  position: relative;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}
.home-card-icon-wrap .icon-bg {
  width: 50px;
  height: 50px;
}
.home-card-icon-wrap .icon-fg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 25px;
  height: 25px;
  object-fit: contain;
}
.home-card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #000;
}
.home-card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #aaa;
  text-decoration: none;
  flex-shrink: 0;
}
.home-card-more:hover {
  color: var(--home-red);
}
.home-card-more img {
  width: 5px;
  height: 10px;
}
.home-card-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.home-card-text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--home-text-muted);
  text-align: justify;
}
.home-card-text:last-child {
  margin-bottom: 0;
}

/* 新闻列表 */
.home-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-news-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0e8e8;
  font-size: 14px;
  line-height: 1.6;
}
.home-news-list li:last-child {
  border-bottom: none;
}
.home-news-list a {
  color: var(--home-text-muted);
  text-decoration: none;
  font-weight: 500;
  flex: 1;
}
.home-news-list a:hover {
  color: var(--home-red);
}
.home-news-list .date {
  color: var(--home-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* 重要日期 */
.home-date-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-date-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0e8e8;
  font-size: 14px;
}
.home-date-list li:last-child {
  border-bottom: none;
}
.home-date-list .label {
  color: var(--home-text-muted);
}
.home-date-list .val {
  color: var(--home-red);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}
.home-date-list .val.stack {
  line-height: 1.45;
  white-space: normal;
}

/* ========== 页脚 ========== */
.home-footer {
  position: relative;
  height: 100px;
  background: var(--home-red-footer);
  overflow: hidden;
}
.home-footer-bg {
  position: absolute;
  right: 0;
  top: 0;
  width: 69%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
}
.home-footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 0 178px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}
.home-footer-left {
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
}
.home-footer-left a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.home-footer-left a:hover {
  text-decoration: underline;
}
.home-footer-left .maint {
  font-size: 16px;
  margin-top: 4px;
  opacity: 0.95;
}
.home-footer-right {
  text-align: right;
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
}
.home-footer-right a {
  color: #fff;
  text-decoration: none;
  margin: 0 6px;
}
.home-footer-right a:hover {
  text-decoration: underline;
}
.home-footer-right .sep {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 2px;
}

/* ========== 响应式 ========== */
@media screen and (max-width: 1400px) {
  .home-hero-content-inner,
  .home-cards-inner,
  .home-footer-inner {
    padding-left: 48px;
    padding-right: 48px;
  }
}

@media screen and (max-width: 1100px) {
  .home-cards-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .home-header-inner {
    flex-wrap: wrap;
  }
  .home-header-partners {
    border-left: none;
    padding-left: 0;
  }
}

@media screen and (max-width: 768px) {
  .home-header-inner {
    padding: 20px 16px;
    gap: 16px;
  }
  .home-header-title {
    border-left: none;
    padding-left: 0;
    order: 3;
    width: 100%;
  }
  .home-header-title h1 {
    font-size: 18px;
    letter-spacing: 2px;
  }
  .home-header-logo {
    width: 120px;
  }
  .home-header-partners img {
    height: 48px;
  }
  .home-nav-inner {
    padding: 0 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .home-nav-item {
    padding: 14px 16px 12px;
    font-size: 14px;
  }
  .home-hero-content-inner {
    padding: 20px 16px;
  }
  .home-hero {
    aspect-ratio: 1024 / 320;
    max-height: none;
    min-height: 0;
  }
  .home-hero-slogan-en {
    display: none;
  }
  .home-hero-slogan .dot-sep {
    margin: 0 8px 3px;
  }
  .home-cards-section {
    padding: 40px 0;
  }
  .home-card {
    min-height: auto;
    padding: 20px;
  }
  .home-footer {
    height: auto;
    min-height: 100px;
  }
  .home-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 16px;
    gap: 12px;
  }
  .home-footer-right {
    text-align: left;
  }
}

/* ========== 内页通用（site-page） ========== */
body.site-page {
  margin: 0;
  padding: 0;
  background: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #222;
}

body.site-page .main-newsdate,
body.site-page .main-news,
body.site-page .schedule-page,
body.site-page .keynote-page,
body.site-page .org-page {
  background: #fff;
}

body.site-page .centerSubtitle,
body.site-page .schedule-page .section-title,
body.site-page .keynote-page .section-title,
body.site-page .org-page .section-header::before {
  background-color: var(--home-red);
  color: var(--home-red);
}

body.site-page .schedule-page .section-title,
body.site-page .keynote-page .section-title {
  background-color: var(--home-red);
}

body.site-page .centerSubtitle {
  background: transparent;
}

body.site-page .main-newsdate h1,
body.site-page .schedule-page .page-header,
body.site-page .keynote-page .page-header,
body.site-page .org-page .section-header h2 {
  color: #222;
}

body.site-page .layui-nav {
  background: var(--home-red);
}

body.site-page .main-product p.title span,
body.site-page .layui-container p.title span,
body.site-page .main-service p.title span,
body.site-page .home-more-link,
body.site-page .home-date-row .val,
body.site-page .keynote-placeholder-title,
body.site-page .schedule-item h4,
body.site-page .org-page .tab-content-container {
  color: var(--home-red);
}

body.site-page .org-page .tab-content-container {
  border-color: rgba(192, 0, 39, 0.12);
}

body.site-page .org-page .tab-content-container .org-page-note--inner {
  border-left-color: var(--home-red);
}

body.site-page .home-col-hr,
body.site-page hr.home-col-hr {
  background-color: var(--home-red);
}

body.site-page .layui-table tbody tr:hover,
body.site-page .schedule-item:hover {
  background-color: var(--home-bg-pink);
}

body.site-page .site-footer-fullbleed iframe {
  height: 100px !important;
}

body.site-page .main-newsdate {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  box-sizing: border-box;
}

body.site-page .main-newsdate .introBott a,
body.site-page .main-newsdate .info-box a:not(.reg-btn),
body.site-page .main-newsdate p a:not(.reg-btn) {
  color: var(--home-red);
}

body.site-page .main-newsdate a.reg-btn,
body.site-page .main-newsdate a.reg-btn:hover {
  color: #fff;
}

body.site-page .landing-actions {
  text-align: center;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

body.site-page .landing-btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

body.site-page .landing-btn-primary {
  background: var(--home-red);
  color: #fff;
}

body.site-page .landing-btn-primary:hover {
  background: #a00020;
  color: #fff;
  transform: translateY(-1px);
}

body.site-page .landing-btn-secondary {
  background: #fff;
  color: var(--home-red);
  border: 2px solid var(--home-red);
}

body.site-page .landing-btn-secondary:hover {
  background: var(--home-bg-pink);
  color: var(--home-red);
}

body.site-page .landing-hero {
  background: linear-gradient(135deg, var(--home-red-dark) 0%, var(--home-red) 50%, #d4602e 100%);
}
