/* ==========================================================
   朗科算力调度平台 — 静态克隆样式
   主色 #0F62F0 / #1565EF，字体思源黑体
   ========================================================== */

:root {
  --primary: #0f62f0;
  --primary-btn: #1565ef;
  --primary-btn-hover: #5090fe;
  --text: #333;
  --text-secondary: rgba(51, 51, 51, 0.6);
  --bg-light: #f7faff;
  --card-bg: #f6f9ff;
  --border: rgba(51, 51, 51, 0.08);
  --font: "Source Han Sans CN", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "微软雅黑", sans-serif;
}

* { box-sizing: border-box; }

body, html {
  font-family: var(--font);
  margin: 0;
  padding: 0;
  color: var(--text);
  background: #fff;
}

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

/* ======================= 顶部导航 ======================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 12px 33px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-logo { display: block; height: 20px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
}

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  opacity: 0.6;
  transition: color 0.2s, opacity 0.2s;
  white-space: nowrap;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active { color: var(--primary); opacity: 1; }
.nav-link.highlight { color: var(--primary); opacity: 0.9; }

.caret { transition: transform 0.2s; }
.has-dropdown:hover .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 8px;
  min-width: 168px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--text);
  opacity: 0.75;
}

.dropdown a:hover { color: var(--primary); opacity: 1; background: #f5f8ff; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
}

.btn-console {
  background: var(--primary-btn);
  color: #fff;
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-console:hover { background: var(--primary-btn-hover); }

.action-link { font-size: 14px; color: var(--text); opacity: 0.65; }
.action-link:hover { color: var(--primary); opacity: 1; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: #003da6;
}

/* ======================= 轮播 ======================= */
.carousel { position: relative; overflow: hidden; }

.carousel-track { display: flex; transition: transform 0.6s ease; }

.carousel-slide { min-width: 100%; }
.carousel-slide img { display: block; width: 100%; height: auto; aspect-ratio: 2160 / 840; object-fit: cover; }

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  display: flex;
  justify-content: center;
  gap: 24px;
  z-index: 2;
}

.carousel-dots button {
  width: 143px;
  height: 4px;
  border: 0;
  border-radius: 4px;
  padding: 0;
  cursor: pointer;
  background: rgba(15, 98, 240, 0.2);
  transition: background 0.3s;
}

.carousel-dots button.active { background: var(--primary); }

/* ======================= 终端演示 ======================= */
.terminal-banner { position: relative; }

.terminal-bg { display: block; width: 100%; height: auto; }

.terminal-window {
  position: absolute;
  left: 65.93vw;
  top: 8.5vw;
  width: 25.37vw;
  border-radius: 0.55vw;
  overflow: hidden;
  box-shadow: 0.21vw 0.18vw 0.9vw rgba(120, 150, 200, 0.35);
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 0.45vw;
  background: linear-gradient(180deg, #fff, #cbdbf7);
  padding: 0.55vw 1vw 0.5vw;
}

.terminal-titlebar .dot { width: 0.42vw; height: 0.42vw; border-radius: 50%; }
.dot.red { background: #ed4444; }
.dot.yellow { background: #eab206; }
.dot.green { background: #23c45d; }

.terminal-body {
  background: #f9fcff;
  height: 10.2vw;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 0.3vw 1vw 1vw;
  display: flex;
  flex-direction: column;
  font-size: 0.838vw;
  line-height: 1.55;
}

.terminal-body::-webkit-scrollbar { display: none; }
.terminal-body::after { content: ""; display: block; flex-shrink: 0; height: 0.8vw; }

.t-line { word-break: break-all; color: #666; white-space: pre-wrap; }
.t-line.c1 { color: #2d8cf0; }
.t-line.c2 { color: #19be6b; }
.t-line.c3 { color: #f90; }
.t-line.c4 { color: #666; }
.t-line.c5 { color: #ed4014; }

.t-cursor { animation: blink 1s infinite; margin-left: 2px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ======================= 优势卡片 ======================= */
.advantage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 50px;
}

.section-title {
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 36px;
  text-align: center;
  background-image: url("../assets/textbg.png");
  background-size: 100% 100%;
  padding: 18px 44px 20px;
}

.section-title em { font-style: normal; color: var(--primary); }

.card-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  padding: 0 15px;
  margin-bottom: 30px;
}

.card {
  width: calc(50% - 15px);
  max-width: 740px;
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);
}

.card img { display: block; width: 100%; }

/* ======================= 宣传视频 ======================= */
.video-section {
  margin-top: 50px;
  background: var(--bg-light);
  padding: 50px 30px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-section .section-title { background: none; padding: 0; margin-bottom: 40px; }

.video-wrapper { width: 1000px; max-width: 100%; }
.video-wrapper video { display: block; width: 100%; background: #000; border-radius: 8px; }

/* ======================= 合作伙伴 ======================= */
.partners {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 0 30px;
}

.partners .section-title { background: none; padding: 0; margin: 0; }

.partner-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 30px;
}

.partner-card {
  flex: 1;
  max-width: 300px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  text-align: center;
  padding-top: 17px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.partner-card:hover {
  box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px);
}

.partner-card img {
  display: inline-block;
  height: 56px;
  width: auto;
  max-width: 82%;
  object-fit: contain;
}

.partner-card::after {
  content: "";
  display: block;
  margin-top: 17px;
  background: var(--card-bg);
  height: 0;
}

/* ======================= 咨询 CTA ======================= */
.consult {
  margin-top: 60px;
  background: url("../assets/consult-bg.png") center / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px 36px;
}

.consult-text {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.7;
  margin: 28px 0;
  max-width: 720px;
}

.consult-btn {
  background: #fff;
  color: var(--primary);
  font-size: 16px;
  font-weight: 500;
  padding: 11px 76px;
  border-radius: 2px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.consult-btn:hover { box-shadow: 0 6px 18px rgba(15, 98, 240, 0.35); transform: translateY(-1px); }

/* ======================= 页脚 ======================= */
.site-footer { padding: 60px 40px 0; }

.footer-columns { display: flex; align-items: stretch; }

.footer-col { flex: 1; padding: 0 30px; }
.footer-col:first-child { padding-left: 0; }
.footer-col:last-child { padding-right: 0; max-width: 360px; }

.footer-logo { display: inline-flex; align-items: center; margin-bottom: 18px; }
.footer-logo-img { display: block; height: 26px; width: auto; }
.footer-logo-img.lkun { height: 30px; }

.footer-col p { margin: 6px 0; font-size: 12px; color: var(--text-secondary); line-height: 20px; }

.footer-qrs { display: flex; gap: 16px; margin-top: 16px; }
.footer-qrs img { width: 84px; height: 84px; display: block; }

.footer-divider {
  width: 0.5px;
  border-left: 0.5px solid var(--border);
  margin: 10px 29px;
}

.co-brand { display: flex; align-items: center; gap: 10px; }
.co-brand-img { height: 34px; width: auto; }
.co-brand-x-img { height: 11px; width: auto; }
.co-brand-netac { height: 17px; width: auto; }

.footer-bottom {
  margin-top: 34px;
  border-top: 1px solid var(--border);
  padding: 19px 0 22px;
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-bottom a { color: var(--text-secondary); margin-right: 1vw; }
.footer-bottom a:hover { color: var(--primary); }
.footer-bottom a.gongan { display: inline-flex; align-items: center; gap: 3px; margin-right: 0; }
.footer-bottom .gongan img { height: 17px; width: 16px; }

/* ======================= 底部悬浮快捷入口 ======================= */
.footer-modal {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 9999;
  background: url("../assets/modal-bg.png") center / cover no-repeat;
  padding: 15px 20px 15px 0;
  animation: fade-in 0.8s ease both;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.footer-modal-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.modal-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 14px 34px;
  cursor: pointer;
  border-radius: 4px;
}

.modal-item .modal-icon { display: inline-flex; width: 32px; height: 32px; }
.modal-item .modal-text { font-size: 18px; font-weight: 600; line-height: 28px; color: var(--text); transition: color 0.2s; }
.modal-item:hover .modal-text { color: var(--primary); }

.modal-item.coupon {
  background: url("../assets/modal-btn.png") 0 0 / 100% 100% no-repeat;
}

.modal-item.coupon .modal-text { color: var(--primary); }

.modal-close {
  position: absolute;
  right: 15px;
  top: 5px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
  opacity: 0.8;
}
.modal-close:hover { opacity: 1; }

/* ======================= 滚动渐入 ======================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ======================= 响应式（移动端） ======================= */
@media (max-width: 1200px) {
  .nav-link { padding: 10px 10px; }
  .nav-link.highlight { display: none; }
}

@media (max-width: 992px) {
  .main-nav {
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
    display: none;
  }

  .main-nav.open { display: flex; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 18px; display: none; }
  .has-dropdown:hover .dropdown { display: block; }

  .menu-toggle { display: flex; }
  .btn-console { display: none; }

  .carousel-dots { bottom: 10px; gap: 10px; }
  .carousel-dots button { width: 40px; }

  .terminal-window {
    left: 8vw;
    top: auto;
    bottom: 6vw;
    width: 60vw;
  }

  .terminal-body { font-size: 2vw; height: 24vw; }

  .card-grid { flex-direction: column; gap: 16px; margin-bottom: 16px; }
  .card { width: 100%; }

  .partner-row { flex-wrap: wrap; gap: 12px; }
  .partner-card { flex: 1 1 calc(50% - 12px); }
  .partner-card img { height: 40px; }

  .footer-columns { flex-direction: column; gap: 26px; }
  .footer-divider { display: none; }
  .footer-col { padding: 0; }

  .footer-modal-wrapper { gap: 8px; }
  .modal-item { padding: 8px 14px; border-radius: 3px; }
  .modal-item .modal-text { font-size: 13px; line-height: 20px; }
  .modal-item .modal-icon { width: 22px; height: 22px; }
  .modal-item .modal-icon svg { width: 22px; height: 22px; }
}

@media (max-width: 767px) {
  .header-inner { padding: 10px 16px; }
  .header-actions { gap: 10px; }
  .action-link { font-size: 13px; }

  .section-title { font-size: 18px; padding: 14px 20px 16px; margin-bottom: 20px; }

  .consult-text { font-size: 16px; margin: 18px 0; }
  .consult-btn { padding: 9px 44px; font-size: 14px; }

  .site-footer { padding: 36px 20px 0; }
  .footer-bottom { padding-bottom: 84px; }
}
