/* =============================================
   腾伟电子集团门户 – 按 UI 设计稿 1:1 还原
   设计画板宽度 1920，内容容器 1734（93 ~ 1827）
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #18366a;
  --navy-deep: #0f172b;
  --blue:      #356dd7;
  --text:      #0d1e3e;
  --muted:     #667085;
  --line:      #e6e8ee;
  --bg-gray:   #f4f6f9;
  --font: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: #fff;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 90.3%;          /* 1734 / 1920 */
  max-width: 1734px;
  margin: 0 auto;
}

/* 区块标题：左对齐（设计稿 x=93） */
.sec-head { margin-bottom: 60px; }
.sec-head h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.sec-head .sec-en {
  display: block;
  margin-top: 12px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: #98a2b3;
}
.sec-head .sec-desc {
  margin-top: 8px;
  font-size: 24px;
  color: var(--muted);
}


/* ==========================================
   顶部导航  设计稿 1920x119
   ========================================== */
.portal-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 119px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 51px 0 44px;
  background: linear-gradient(180deg, rgba(8, 18, 42, 0.55), rgba(8, 18, 42, 0.12));
  transition: background 0.3s;
}
.portal-header.scrolled {
  background: rgba(14, 29, 61, 0.96);
  backdrop-filter: blur(10px);
}

.header-logo { display: flex; align-items: center; gap: 6px; color: #fff; }
.logo-mark {
  width: 56px; height: 28px;
  background: linear-gradient(135deg, #f5a623 0%, #e07a1f 100%);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 3px;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-cn { font-size: 18px; font-weight: 700; letter-spacing: 0.04em; }
.logo-en { font-size: 12px; opacity: 0.8; letter-spacing: 0.08em; }

.header-nav { display: flex; align-items: center; }
.header-nav a {
  width: 176px;               /* 设计稿导航间距 176 */
  text-align: left;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}
.header-nav a:last-child { width: 76px; }
.header-nav a:hover,
.header-nav a.active { color: #fff; }

.header-nav-toggle {
  display: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}


/* ==========================================
   Hero  设计稿 1920x915
   ========================================== */
.portal-hero {
  position: relative;
  height: 915px;
  max-height: 100vh;
  background: url("img/ui/portal-hero.png") center/cover no-repeat;
  overflow: hidden;
}
.portal-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 430px;
  background: linear-gradient(180deg, transparent, rgba(6, 14, 32, 0.85));
}
.hero-inner {
  position: absolute;
  left: 0; right: 0; bottom: 167px;
  z-index: 1;
}
.hero-copy {
  width: 90.3%;
  max-width: 1734px;
  margin: 0 auto;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}
.hero-kicker {
  font-size: 60px;
  font-weight: 800;
  font-style: italic;
  line-height: 82px;
  letter-spacing: 0.06em;
}
.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 72px;
  letter-spacing: 0.06em;
  margin-bottom: 39px;
}
.hero-play {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  color: #fff;
  font-size: 20px;
}
.play-icon {
  width: 32px; height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  padding-left: 2px;
  transition: background 0.25s;
}
.hero-play:hover .play-icon { background: rgba(255, 255, 255, 0.2); }


/* ==========================================
   关于我们  指标条 1896x119 + 图文
   ========================================== */
.about-section {
  position: relative;
  padding: 120px 0 130px;
  overflow: hidden;
  z-index: 1;
}
.about-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  height: 119px;
  margin-bottom: 40px;
  background: #f2f6ff;
  padding: 0 64px;
}
.about-heading .about-en {
  display: block;
  font-size: 40px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.about-heading .about-cn {
  display: block;
  font-size: 24px;
  color: var(--navy);
}
.about-metrics {
  display: flex;
  gap: 96px;
}
.about-metrics > div { text-align: left; }
.metric-num {
  display: block;
  font-size: 48px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.metric-num em { font-style: normal; font-size: 30px; }
.metric-label {
  display: block;
  margin-top: 19px;
  font-size: 16px;
  color: var(--muted);
}

.about-inner { position: static; }
.about-text { width: 670px; max-width: 100%; position: relative; z-index: 1; }
.about-text p {
  font-size: 16px;
  line-height: 32px;
  color: #4a5568;
  text-indent: 2em;
  margin-bottom: 12px;
}
.about-features { list-style: none; margin: 28px 0 32px; }
.about-features li {
  font-size: 16px;
  line-height: 22px;
  color: #334155;
}
.about-features li strong {
  display: block;
  font-weight: 700;
}
.about-features li strong::before {
  content: '◈ ';
  color: var(--navy);
}
.about-features li span { display: block; margin-bottom: 22px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 160px; height: 42px;
  border: 1px solid #cfd4de;
  color: var(--navy);
  font-size: 16px;
  transition: border-color 0.2s;
}
.btn-outline:hover { border-color: var(--navy); }

/* 设计稿：厂房图整幅 1920x934，自 y=1177 起通栏铺排 */
.about-photo {
  position: absolute;
  left: 0;
  top: 262px;
  width: 100vw;
  pointer-events: none;
  z-index: 0;
}
.about-photo img { width: 100%; }


/* ==========================================
   旗下公司  背景 1920x946，卡片 478x535
   ========================================== */
.subs-section {
  position: relative;
  padding: 100px 0 107px;
  background: #000;
}
.subs-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("img/ui/world-map.png") center/cover no-repeat;
}
/* 设计稿该区自上而下由深灰渐亮 */
.subs-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.72) 100%);
}
.subs-section .wrap { position: relative; z-index: 1; }
.subs-section .sec-head h2 { color: #fff; }
.subs-section .sec-head .sec-en { color: rgba(255, 255, 255, 0.5); }
.subs-section .sec-head .sec-desc { color: rgba(255, 255, 255, 0.72); }

.subs-grid {
  display: grid;
  grid-template-columns: repeat(3, 478px);
  justify-content: space-between;
  gap: 30px;
}
.subs-card {
  width: 478px;
  height: 535px;
  max-width: 100%;
  background: #fff;
  padding: 15px 20px 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.subs-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
.subs-card-img {
  width: 100%;
  height: 246px;
  overflow: hidden;
  background: #eef1f6;
  flex-shrink: 0;
}
.subs-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.subs-card:hover .subs-card-img img { transform: scale(1.05); }
.subs-card-img-full {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.subs-card-img-full img {
  object-fit: contain;
  object-position: center;
}
.subs-card:hover .subs-card-img-full img { transform: none; }

.subs-card-head {
  display: flex;
  align-items: baseline;
  gap: 25px;
  margin-top: 29px;
}
.subs-card-head h3 { font-size: 24px; color: #1a1a1a; font-weight: 700; }
.subs-card-head .subs-meta { font-size: 16px; color: var(--muted); }
.subs-card p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 28px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.subs-more {
  margin-top: auto;
  margin-bottom: 39px;
  width: 160px; height: 42px;
  border: 1px solid #d7dbe3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  color: #1a1a1a;
}
.subs-card:hover .subs-more { border-color: var(--navy); color: var(--navy); }


/* ==========================================
   核心能力  1920x994 五联屏，标题叠加
   ========================================== */
.capabilities-section {
  position: relative;
  height: 994px;
  background: url("img/ui/capabilities.png") center/cover no-repeat;
  color: #fff;
}
.cap-head {
  position: absolute;
  top: 123px; left: 0; right: 0;
  text-align: center;
  z-index: 1;
}
.cap-head h2 { font-size: 42px; font-weight: 700; }
.cap-head .sec-en {
  display: block;
  margin-top: 11px;
  font-size: 22px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.6);
}
.cap-head .sec-desc {
  margin-top: 12px;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.8);
}
.cap-panels {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 382px repeat(4, 1fr);
}
.cap-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 40px 184px;
  transition: background 0.3s;
}
.cap-panel:hover { background: rgba(8, 16, 40, 0.35); }
.cap-panel h4 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 19px;
}
.cap-panel p {
  font-size: 15px;
  line-height: 29px;
  color: rgba(255, 255, 255, 0.88);
}


/* ==========================================
   集团动态  458 / 458 / (277+417)  高 532
   ========================================== */
.news-section { padding: 90px 0 100px; background: #f2f2f2; }
.news-grid {
  display: grid;
  grid-template-columns: 458px 458px 1fr;
  gap: 30px;
  align-items: start;
}

/* 左：主推 */
.news-featured {
  height: 532px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 19px 21px 0;
  display: flex;
  flex-direction: column;
}
.news-featured .news-img {
  width: 100%; height: 242px;
  object-fit: cover;
  flex-shrink: 0;
}
.news-featured h3 {
  margin-top: 28px;
  font-size: 20px;
  line-height: 26px;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-featured p {
  margin-top: 30px;
  font-size: 16px;
  line-height: 28px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-date-line {
  margin-top: auto;
  margin-bottom: 32px;
  align-self: flex-end;
  display: flex;
  align-items: baseline;
  gap: 15px;
  font-size: 24px;
  color: var(--navy);
}
.news-date-line em { font-style: normal; }

/* 中：蓝色块 */
.news-blue {
  height: 532px;
  background: var(--blue);
  color: #fff;
  padding: 42px 34px 0;
  display: flex;
  flex-direction: column;
}
.news-blue-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.news-blue-top .news-label { font-size: 24px; font-weight: 700; }
.news-blue-top .news-date-line { margin: 0; color: rgba(255, 255, 255, 0.9); }
.news-blue h3 {
  margin-top: 82px;
  font-size: 20px;
  line-height: 26px;
  font-weight: 500;
}
.news-blue .news-more {
  margin-top: auto;
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
}

/* 右：列表，图 277x160 */
.news-side {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.news-item {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}
.news-item img {
  width: 277px; height: 160px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eef1f6;
}
.news-item-body { flex: 1; min-width: 0; padding-top: 2px; }
.news-item-body h4 {
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item-body p {
  margin-top: 19px;
  font-size: 16px;
  line-height: 26px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item-arrow {
  display: block;
  width: 32px; height: 1px;
  margin-top: 26px;
  background: #98a2b3;
  position: relative;
}
.news-item-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -4px;
  width: 8px; height: 8px;
  border-top: 1px solid #98a2b3;
  border-right: 1px solid #98a2b3;
  transform: rotate(45deg);
}
.news-item:hover .news-item-body h4 { color: var(--navy); }


/* ==========================================
   合作  背景 1920x946
   ========================================== */
.partner-section {
  position: relative;
  min-height: 679px;
  padding: 74px 0 120px;
  background: #fbfbfb;
  overflow: hidden;
}
.partner-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("img/ui/world-map.png") center/cover no-repeat;
  filter: invert(1) grayscale(1);
  opacity: 0.5;
}
.partner-section .wrap { position: relative; z-index: 1; }
.partner-section .sec-head h2 { color: var(--navy); }
.partner-section .sec-head .sec-en { color: #98a2b3; }
.partner-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 100px;
}
.partner-links a {
  min-width: 240px; height: 90px;
  padding: 0 24px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.partner-links a:hover { box-shadow: 0 10px 24px rgba(20, 40, 90, 0.12); }
.partner-links a:hover { transform: translateY(-4px); }


/* ==========================================
   页脚
   ========================================== */
.portal-footer {
  background: var(--navy-deep);
  color: #fff;
  padding: 242px 0 0;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.footer-brand { flex: 1; }
.footer-logo { display: flex; align-items: center; gap: 6px; }
.footer-links { display: flex; gap: 135px; padding-right: 44px; }
.footer-col { display: flex; flex-direction: column; }
.footer-col h5 {
  font-size: 20px;
  font-weight: 700;
  line-height: 29px;
  margin-bottom: 0;
}
.footer-col a, .footer-col span {
  font-size: 16px;
  line-height: 29px;
  color: rgba(255, 255, 255, 0.66);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 267px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 36px 0 21px;
}
.footer-bottom p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}


/* ==========================================
   响应式
   ========================================== */
@media (max-width: 1780px) {
  .subs-grid { grid-template-columns: repeat(3, 1fr); }
  .subs-card { width: 100%; }
  .news-grid { grid-template-columns: 1fr 1fr 1.2fr; }
  .news-item { gap: 24px; }
  .news-item img { width: 200px; height: 116px; }
  .about-photo { position: static; width: 100%; margin-top: 32px; }
  .about-text { width: 100%; }
}

@media (max-width: 1280px) {
  .portal-header { height: 88px; padding: 0 24px; }
  .header-nav a { width: auto; margin-left: 32px; }
  .header-nav a:last-child { width: auto; }
  .portal-hero { height: 620px; }
  .hero-kicker { font-size: 40px; line-height: 56px; }
  .hero-title { font-size: 34px; line-height: 48px; }
  .about-band { height: auto; flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
  .about-metrics { gap: 48px; flex-wrap: wrap; }
  .capabilities-section { height: auto; }
  .cap-head { position: static; padding: 60px 24px 0; }
  .cap-panels { position: static; grid-template-columns: repeat(2, 1fr); }
  .cap-panel { padding: 40px 24px; min-height: 260px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-side { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .portal-header { height: 72px; }
  .header-nav {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(14, 29, 61, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 14px;
  }
  .header-nav.open { display: flex; }
  .header-nav-toggle { display: block; }

  .portal-hero { height: 460px; }
  .hero-inner { bottom: 60px; }
  .hero-kicker { font-size: 26px; line-height: 36px; }
  .hero-title { font-size: 22px; line-height: 34px; margin-bottom: 20px; }
  .sec-head h2 { font-size: 28px; }
  .sec-head .sec-en { font-size: 16px; }
  .sec-head .sec-desc { font-size: 16px; }
  .about-section { padding: 60px 0; }
  .metric-num { font-size: 32px; }
  .subs-grid { grid-template-columns: 1fr; }
  .subs-card { height: auto; padding-bottom: 24px; }
  .subs-more { margin-bottom: 0; }
  .cap-panels { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-featured, .news-blue { height: auto; padding-bottom: 24px; }
  .news-item img { width: 120px; height: 76px; }
  .news-item { gap: 16px; }
  .partner-links { gap: 16px; margin-top: 40px; }
  .partner-links a { min-width: 140px; height: 64px; font-size: 16px; }
  .portal-footer { padding-top: 60px; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 32px; flex-wrap: wrap; padding-right: 0; }
  .footer-bottom { margin-top: 48px; }
}
