/* ============================================
   海马云AI - 开放平台企业服务 样式表
   Figma 1:1 还原
   浏览器兼容: Chrome 64+, Safari 13.1+, Firefox 78+, Edge 79+
   ============================================ */

/* ---- Font Face ---- */
@font-face { font-family: 'Outfit'; src: url('../fonts/Outfit-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../fonts/Outfit-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../fonts/Outfit-SemiBold.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../fonts/Outfit-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }

/* ---- CSS Custom Properties ---- */
:root {
  --color-text: #171717;
  --color-text-secondary: rgba(23, 23, 23, 0.7);
  --color-text-tertiary: #666666;
  --color-white: #FFFFFF;
  --color-bg-section: #F8FAFC;

  --font-cn: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-num: 'Outfit', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --shadow-card: 0px 10px 48px 0px rgba(44, 89, 144, 0.1);
  --radius-card: 24px;

  --container-width: 1320px;
  --container-padding: 32px;

  --transition-normal: 300ms ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-cn); font-size: 16px; line-height: 1.6; color: var(--color-text); background: #fff; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 var(--container-padding); }

/* ---- 通用 Section Header ---- */
.section-header { margin-bottom: 60px; }
.section-title { font-family: var(--font-cn); font-size: 48px; font-weight: 600; color: var(--color-text); line-height: 1.4; margin-bottom: 16px; }
.section-subtitle { font-size: 24px; color: #707071; line-height: 24px; }

/* ==========================================
   1. 导航
   ========================================== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 88px; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background var(--transition-normal), backdrop-filter var(--transition-normal); }
.nav.scrolled { background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1856px; margin: 0 auto; padding: 0 48px; height: 100%; }
.nav-logo { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 16px; color: #707071; padding: 4px 0; position: relative; }
.nav-link.active { color: #171717; font-weight: 600; }
.nav-btn-login { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; width: 80px; height: 36px; font-size: 16px; font-weight: 500; color: #171717; background: #F5F5F5; border-radius: 8px; border: 1px solid rgba(0,0,0,0.08); transition: background 150ms; }
.nav-btn-login:hover { background: #E8E8E8; }

/* ==========================================
   2. Hero
   ========================================== */
.hero { position: relative; width: 100%; height: 100vh; display: flex; flex-direction: column; padding-top: 88px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background-image: url('../images/hero-bg.png'); background-position: center; background-repeat: no-repeat; }
.hero-bg-gradient { display: none; }
.hero-particles { display: none; }
.hero-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 var(--container-padding); }
.hero-content { max-width: 600px; margin-top: auto; margin-bottom: auto; }
.hero-title { color: var(--color-text); margin-bottom: 16px; }
.hero-title-bold { font-weight: 600; font-size: 60px; display: block; line-height: 90px; }
.hero-title-light { font-weight: 400; font-size: 60px; display: block; line-height: 90px; }
.hero-desc { font-size: 18px; color: #787878; line-height: 36px; margin: 0 0 48px; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; font-size: 16px; font-weight: 500; border-radius: 40px; transition: background 150ms, border-color 150ms, color 150ms, transform 150ms; cursor: pointer; border: none; line-height: 1.5; width: 160px; position: relative; }
.btn-primary-solid { background: #171717; color: #FFFFFF; }
.btn-outline-dark { background: #fff; color: #171717; border: 1px solid #171717; }
.btn-text { display: inline-block; transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.btn::after { content: ''; position: absolute; right: 24px; top: 50%; width: 16px; height: 16px; background-color: currentColor; mask-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 9H15L12 6' stroke='white' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); mask-size: contain; mask-repeat: no-repeat; mask-position: center; -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 9H15L12 6' stroke='white' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; transform: translateY(-50%) translateX(-8px); opacity: 0; transition: opacity 300ms ease, transform 300ms ease; }
.btn:hover .btn-text { transform: translateX(-10px); }
.btn:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ==========================================
   3. 数据指标区
   ========================================== */
.stats { padding: 60px 0; position: relative; z-index: 2; margin: 0 calc(-1 * var(--container-padding)); width: auto; }
.stats .container { padding: 0; }
.stats-grid { display: flex; gap: 24px; }
.stat-card { flex: 0 0 312px; height: 200px; background: rgba(255,255,255,0.84); border-radius: var(--radius-card); padding: 40px 32px; box-shadow: 0px 10px 48px 0px rgba(44, 89, 144, 0.1); transition: transform var(--transition-normal), box-shadow var(--transition-normal); text-align: center; }
.stat-card.fade-in:hover { transform: translateY(-10px); box-shadow: 0px 10px 48px 0px rgba(44, 89, 144, 0.2); }
.stat-number { font-family: var(--font-num); font-size: 48px; font-weight: 600; color: var(--color-text); line-height: 1.1; margin-bottom: 12px; }
.stat-number .stat-unit { font-size: 24px; font-weight: 600; }
.stat-label { font-size: 16px; color: var(--color-text-secondary); line-height: 1.4; }

.products { padding: 70px 0; background: #FAFAFA; scroll-margin-top: 100px; }
.products .container { padding: 0; }
.products-grid { display: flex; gap: 32px; }
.product-card { position: relative; width: 418px; height: 524px; background: var(--color-white); border: 1px solid #F0F0F0; border-radius: var(--radius-card); overflow: hidden; transition: transform var(--transition-normal), box-shadow var(--transition-normal); }
.product-card.fade-in:hover { transform: translateY(-10px); box-shadow: 0px 10px 48px 0px rgba(44, 89, 144, 0.2); }
.product-text { position: relative; z-index: 1; padding: 40px 40px 96px; }
.product-name { font-family: var(--font-cn); font-size: 32px; font-weight: 600; line-height: 42px; color: var(--color-text); margin-bottom: 16px; }
.product-desc { font-size: 16px; font-weight: 400; line-height: 34px; color: var(--color-text); opacity: 0.7; text-align: justify; overflow-wrap: break-word; word-break: break-word; letter-spacing: -0.056em; }
.product-img { position: absolute; z-index: 0; }
/* 云游戏 - 图片位置: x:48 y:242, 尺寸 321×257 */
.product-img-gaming { left: 0; bottom: 0; width: 100%; height: 300px; object-fit: cover; }
/* 云电脑 - 图片位置: x:25 y:226, 尺寸 369×298 */
.product-img-pc { left: 25px; bottom: 0px; width: 369px; height: 298px; object-fit: cover; }
/* 云手机 - 图片位置: x:7 y:207, 尺寸 404×323 */
.product-img-phone { left: 7px; bottom: -6px; width: 404px; height: 323px; object-fit: cover; }

/* ==========================================
   5. 全栈服务能力
   ========================================== */
.services { padding: 70px 0 12px; background: #FAFAFA; scroll-margin-top: 100px; }
.services-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }
.services-title { font-size: 48px; font-weight: 600; color: #171717; line-height: 1.3; margin-bottom: 16px; }
.services-subtitle { font-size: 24px; font-weight: 400; color: #707071; line-height: 1.6; }
.services-arrows { display: flex; gap: 12px; flex-shrink: 0; margin-bottom: 6px; }
.services-arrow { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: none; background: none; cursor: pointer; color: #171717; border-radius: 50%; transition: color 150ms, background 150ms; }
.services-arrow:hover:not(:disabled) { background: rgba(0,0,0,0.06); }
.services-arrow:disabled { color: #D0D0D0; cursor: not-allowed; }
.services-scroll { width: 100%; overflow: hidden; }
.services-track { display: flex; gap: 24px; padding: 48px 0 72px; will-change: transform; transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.service-card { position: relative; flex-shrink: 0; width: 410px; height: 736px; background: #fff; border: 1px solid #F0F0F0; border-radius: var(--radius-card); overflow: hidden; transition: transform var(--transition-normal), box-shadow var(--transition-normal); }
.service-card.fade-in:hover { transform: translateY(-10px); box-shadow: 0px 10px 48px 0px rgba(44, 89, 144, 0.2); border-color: transparent; }
.service-card-image-wrap { width: 410px; height: 410px; overflow: hidden; flex-shrink: 0; }
.service-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-card-img-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 50%, rgba(255,255,255,1) 90%); pointer-events: none; }
.service-card-content { position: absolute; left: 40px; right: 40px; top: 430px; display: flex; flex-direction: column; gap: 32px; }
.service-card-title { font-size: 32px; font-weight: 600; line-height: 42px; color: var(--color-text); }
.service-card-list { display: flex; flex-direction: column; gap: 20px; list-style: none; padding: 0; margin: 0; }
.service-card-item { display: flex; gap: 12px; font-size: 16px; font-weight: 400; line-height: 150%; color: #666666; font-family: var(--font-cn); }
.service-card-item-wide { align-items: flex-start; line-height: 200%; }
.service-card-dot { width: 5px; height: 5px; background: #171717; border-radius: 50%; flex-shrink: 0; margin-top: 10px; }
.service-card-item-wide .service-card-dot { margin-top: 15px;}
/* ==========================================
   6. 行业认可
   ========================================== */
.recognition { padding: 70px 0 140px; background: #FAFAFA; scroll-margin-top: 100px; }
.recognition .container { padding: 0; }
.recognition-grid { display: flex; gap: 32px; }
.recognition-card { position: relative; width: 418px; height: 280px; background: var(--color-white); border: 1px solid #F0F0F0; border-radius: var(--radius-card); overflow: hidden; transition: transform var(--transition-normal), box-shadow var(--transition-normal); }
.recognition-card.fade-in:hover { transform: translateY(-10px); box-shadow: 0px 10px 48px 0px rgba(44, 89, 144, 0.2); border-color: transparent; }
.recognition-card-bg { position: absolute; inset: 0; z-index: 0; width: inherit; }
/* 装饰渐变 - 左侧 */
.recognition-deco { position: absolute; width: 110px; height: 220px; top: 30px; border-radius: 0; }
.recognition-deco-left { left: 20px; background: linear-gradient(179deg, rgba(216,241,231,1) 0%, rgba(129,203,170,0) 100%); }
.recognition-deco-right { left: 286px; background: linear-gradient(179deg, rgba(216,241,231,1) 0%, rgba(129,203,170,0) 100%); }
.recognition-deco-left-blue { left: 20px; background: linear-gradient(179deg, rgba(204,242,254,1) 0%, rgba(175,219,231,0) 100%); }
.recognition-deco-right-blue { left: 286px; background: linear-gradient(179deg, rgba(204,242,254,1) 0%, rgba(175,219,231,0) 100%); }
.recognition-deco-left-orange { left: 20px; background: linear-gradient(179deg, rgba(255,218,205,1) 0%, rgba(241,198,184,0) 100%); }
.recognition-deco-right-orange { left: 286px; background: linear-gradient(179deg, rgba(255,218,205,1) 0%, rgba(241,198,184,0) 100%); }
/* Mask 图片 */
.recognition-mask { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
/* 卡片文字层 */
.recognition-card-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 32px 0; gap: 20px; text-align: center; }
.recognition-number { font-family: var(--font-num); font-size: 48px; font-weight: 600; line-height: 36px; color: var(--color-text); text-align: center; }
.recognition-title-text { font-family: var(--font-cn); font-size: 20px; font-weight: 400; line-height: 2.4; color: var(--color-text); text-align: center; }
.recognition-source { font-family: var(--font-cn); font-size: 14px; font-weight: 300; line-height: 28px; color: var(--color-text); opacity: 0.7; text-align: center; }

/* ==========================================
   8. Footer
   ========================================== */
/* ==========================================
   7. Footer
   ========================================== */
.footer { background: #FFFFFF; padding: 60px 0; color: rgba(0,0,0,0.4); }
.footer-inner { max-width: 1600px; margin: 0 auto; padding: 0 32px; display: flex; flex-direction: column; align-items: stretch; gap: 40px; }
.footer-contact { font-size: 16px; line-height: 150%; text-align: center; color: rgba(0,0,0,0.4); }
.footer-contact .email { color: rgba(0,0,0,0.8); }
.footer-bottom { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom-item { font-size: 14px; line-height: 150%; color: rgba(0,0,0,0.4); }

/* ==========================================
   动画
   ========================================== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ==========================================
   响应式
   ========================================== */
@media (max-width: 1440px) {
  :root { --container-width: 1120px; }
  .stats-grid { flex-wrap: wrap; justify-content: center; }
  .products-grid { gap: 20px; }
  .recognition-grid { gap: 20px; }
  .product-card { width: 360px; height: 480px; }
  .recognition-card { width: 360px; height: 260px; }
  .services-title { font-size: 40px; }
  .services-subtitle { font-size: 20px; }
}

@media (max-width: 1280px) {
  :root { --container-width: 960px; }
  .products-grid { gap: 20px; }
  .product-card { width: 310px; height: 440px; }
  .product-img-gaming { left: 20px; bottom: 15px; width: 270px; height: 220px; }
  .product-img-pc { left: 10px; bottom: 0; width: 290px; height: 240px; }
  .product-img-phone { left: 0; bottom: 0; width: 310px; height: 260px; }
  .recognition-grid { gap: 20px; }
  .recognition-card { width: 310px; height: 240px; }
  .recognition-number { font-size: 36px; }
  .recognition-title-text { font-size: 16px; }
  .service-card { width: 340px; height: 620px; }
  .service-card-image-wrap { width: 340px; height: 340px; }
  .service-card-content { top: 360px; left: 32px; right: 32px; }
  .services-title { font-size: 36px; }
  .services-subtitle { font-size: 18px; }
}

@media (max-width: 1024px) {
  :root { --container-width: 100%; --container-padding: 24px; }
  .hero-title-bold, .hero-title-light { font-size: 40px; line-height: 1.3; }
  .hero-desc { font-size: 16px; line-height: 1.6; }
  .nav-links { gap: 24px; }
  .nav-link { font-size: 14px; }
  .stats-grid { flex-wrap: wrap; }
  .stat-card { flex: 0 0 calc(50% - 12px); height: 200px; }
  .products-grid { flex-direction: column; align-items: center; }
  .product-card { width: 418px; height: 524px; }
  .recognition-grid { flex-direction: column; align-items: center; }
  .recognition-card { width: 418px; height: 280px; }
  .service-card { width: 300px; height: 560px; }
  .service-card-image-wrap { width: 300px; height: 300px; }
  .service-card-content { top: 320px; left: 28px; right: 28px; gap: 24px; }
  .service-card-title { font-size: 28px; line-height: 36px; }
  .service-card-item { font-size: 14px; }
  .services-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .services-arrows { align-self: flex-end; }
  .services-title { font-size: 32px; }
  .services-subtitle { font-size: 16px; }
  .footer-contact { text-align: left; }
}

@media (max-width: 768px) {
  :root { --container-padding: 20px; }
  .hero { height: auto; }
  .hero-title-bold, .hero-title-light { font-size: 32px; line-height: 1.3; }
  .hero-desc { font-size: 15px; line-height: 1.6; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .section-title { font-size: 32px; }
  .section-subtitle { font-size: 16px; }
  .stats-grid { flex-direction: column; }
  .stat-card { flex: 1; height: auto; min-height: 140px; }
  .stat-number { font-size: 32px; }
  .stat-number .stat-unit { font-size: 24px; }
  .products-grid { flex-direction: column; align-items: center; }
  .product-card { width: 100%; max-width: 418px; height: auto; min-height: 400px; }
  .recognition-grid { flex-direction: column; align-items: center; }
  .recognition-card { width: 100%; max-width: 418px; height: 260px; }
  .service-card { width: 280px; height: 520px; }
  .service-card-image-wrap { width: 280px; height: 280px; }
  .service-card-content { top: 300px; left: 24px; right: 24px; gap: 24px; }
  .service-card-title { font-size: 24px; line-height: 32px; }
  .service-card-item { font-size: 13px; }
  .service-card-item-wide { line-height: 180%; }
  .services-title { font-size: 28px; }
  .services-subtitle { font-size: 15px; }
}

@media (max-width: 480px) {
  :root { --container-padding: 16px; }
  .nav-inner { padding: 0 16px; }
  .nav-logo img { width: 120px; height: auto; }
  .nav-links { gap: 8px; }
  .nav-link { font-size: 13px; }
  .nav-link:nth-child(2) { display: none; }
  .hero-title-bold, .hero-title-light { font-size: 22px; line-height: 1.4; }
  .hero-bg { background-size: cover; }
  .section-title { font-size: 22px; margin-bottom: 12px; }
  .section-subtitle { font-size: 14px; line-height: 1.5; }
  .products { padding: 40px 0; }
  .services { padding: 40px 0 12px; }
  .recognition { padding: 40px 0 60px; }
  .stats { padding: 32px 0; }
  .product-card { width: 100%; height: auto; }
  .recognition-card { width: 100%; height: auto; min-height: 240px; }
  .service-card { width: 280px; height: 480px; }
  .service-card-image-wrap { width: 280px; height: 280px; }
  .service-card-content { top: 280px; left: 20px; right: 20px; gap: 20px; }
  .service-card-title { font-size: 20px; line-height: 28px; }
  .service-card-item { font-size: 12px; }
  .services-title { font-size: 24px; }
  .services-subtitle { font-size: 14px; }
}

@media (max-width: 375px) {
  .nav-links { gap: 6px; }
  .nav-link { font-size: 12px; }
  .nav-link:nth-child(3) { display: none; }
  .hero-title-bold, .hero-title-light { font-size: 20px; }
  .product-text { padding: 24px 24px 80px; }
  .product-name { font-size: 26px; line-height: 36px; }
  .product-desc { font-size: 14px; line-height: 28px; }
  .service-card { width: 260px; height: 460px; }
  .service-card-image-wrap { width: 260px; height: 260px; }
  .service-card-content { top: 270px; left: 16px; right: 16px; gap: 16px; }
}
