/* ==========================================================================
   南京峡煜跃网络科技 - 专业沉稳科技美学 (Clean, Modern & Engineering-driven)
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* 哑光冷色与黑炭层次 */
  --bg-base: #090a0f;
  --bg-card: #11131a;
  --bg-card-hover: #161822;
  --bg-subtle: rgba(255, 255, 255, 0.03);
  
  --border-line: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);

  /* 点缀色：克制的天空蓝与冷灰 */
  --accent-blue: #38bdf8;
  --accent-indigo: #6366f1;
  --accent-cyan: #22d3ee;
  
  /* 文字 */
  --text-main: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  --max-width: 1040px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-line);
  height: 64px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 语言切换器 */
.lang-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-full);
  padding: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  background: var(--bg-card-hover);
  color: #fff;
  font-weight: 600;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
}

.mobile-toggle svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   Hero 首屏
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 88px 0 76px;
  border-bottom: 1px solid var(--border-line);
}

.hero-container {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

/* 品牌图腾暗纹（精准锚定在版心主要内容区域右侧） */
.hero-watermark {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 440px;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* 通透冷蓝+紫韵科技环境光晕，烘托右侧视觉焦点 */
.watermark-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, rgba(99, 102, 241, 0.08) 45%, transparent 70%);
  border-radius: 50%;
  filter: blur(32px);
}

.watermark-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.22; /* 显著提亮：从 0.08 提高到 0.22，清晰呈现峡谷与跃升图形 */
  filter: drop-shadow(0 0 32px rgba(56, 189, 248, 0.35)) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5));
  mask-image: radial-gradient(ellipse at 55% 50%, black 75%, rgba(0, 0, 0, 0.5) 90%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at 55% 50%, black 75%, rgba(0, 0, 0, 0.5) 90%, transparent 100%);
  transition: opacity var(--transition);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--accent-blue);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 按钮规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: #ffffff;
  color: #000000;
}

.btn-primary:hover {
  background: #e2e8f0;
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-line);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
}

/* ==========================================================================
   Flagship Products (产品矩阵)
   ========================================================================== */
.products-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-line);
}

.section-header {
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), background-color var(--transition);
}

.product-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.product-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app-store-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border-line);
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}

.product-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.app-icon-img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.product-card:hover .app-icon-img {
  transform: scale(1.04);
}

.product-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.product-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.product-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.product-points {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-points li {
  font-size: 0.86rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 18px;
}

.product-points li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--text-dim);
}

.product-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  transition: color var(--transition);
}

.product-link:hover {
  color: var(--accent-blue);
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-line);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.store-badge-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--border-hover);
  color: #fff;
}

/* ==========================================================================
   About Section (关于)
   ========================================================================== */
.about-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-line);
}

.about-card {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-paragraph {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 820px;
}

.about-paragraph:last-of-type {
  margin-bottom: 0;
}

.about-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 10px;
}

.principle-item {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.principle-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.principle-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   FAQ Section (问答与公开说明 - SEO / GEO 友好)
   ========================================================================== */
.faq-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-line);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.faq-q {
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.45;
}

.faq-a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Contact Section (联系)
   ========================================================================== */
.contact-section {
  padding: 80px 0;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 36px;
  max-width: 720px;
}

.contact-header {
  margin-bottom: 24px;
}

.email-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-line);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
}

.email-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.email-value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-blue);
}

.email-actions {
  display: flex;
  gap: 10px;
}

.toast-tip {
  margin-top: 12px;
  font-size: 0.82rem;
  color: #34d399;
  display: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-line);
  padding: 48px 0 36px;
  background: #06070a;
  font-size: 0.85rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px;
}

.footer-brand {
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.footer-desc {
  color: var(--text-muted);
  max-width: 380px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a, .footer-icp a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover, .footer-icp a:hover {
  color: var(--text-main);
}

.sep {
  color: var(--text-dim);
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  max-width: 580px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.05rem;
  color: #fff;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.modal-body p {
  margin-bottom: 14px;
}

/* ==========================================================================
   Pipeline (研发管线与预热)
   ========================================================================== */
.pipeline-wrap {
  margin-top: 48px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px dashed var(--border-line);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
}

.pipeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.pulse-blue {
  background: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue);
}

.pipeline-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.pipeline-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 820px;
  margin-bottom: 24px;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.pipeline-item {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: border-color var(--transition);
}

.pipeline-item:hover {
  border-color: var(--border-hover);
}

.stage-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.stage-tag.alpha {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.stage-tag.proto {
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.stage-tag.plan {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-line);
}

.pipeline-item-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.pipeline-item-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.pipeline-footer {
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
}

.pipeline-tip {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .pipeline-grid {
    grid-template-columns: 1fr;
  }
  .about-principles {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    display: none;
  }
  .nav-menu.open {
    display: flex;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-line);
  }
  .mobile-toggle {
    display: block;
  }
  .hero-container {
    min-height: auto;
    display: block;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-watermark {
    width: 240px;
    height: 240px;
    right: -20px;
    top: auto;
    bottom: -20px;
    transform: none;
  }
  .watermark-logo {
    opacity: 0.09;
  }
  .watermark-glow {
    width: 220px;
    height: 220px;
    filter: blur(24px);
    background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  }
  .footer-right {
    align-items: flex-start;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-watermark {
    width: 340px;
    height: 340px;
    right: -10px;
  }
  .hero-content {
    max-width: 520px;
  }
}
