/* ==========================================================================
   DeepSeek 拉丝钛 (Brushed Titanium V2) 风格系统
   设计隐喻：方向性拉丝、冷灰、倒角极小。网页版像精密仪器外壳，
             Harness 接口是钛螺丝阵列，文字蚀刻而非印刷。
   布局规范：
   - 顶栏：宽 1140，贴在上方。左 Logo，右「获取 APP」和中文 / EN。无产品菜单。
   - 首屏：正好一屏高，全部居中。背景是自上而下的浅蓝渐变，上面有淡网格。
   - 公告：最窄，约 560。15px，透明度大约一半，两行就换行。
   - 主标语：「探索未至之境」，46px，常规字重，深蓝灰，不靠加粗。
   - 输入卡片：宽 880，圆角 24，半透明白底。上半是输入，下半左侧是「深度思考 / 智能搜索」，右侧是发送。
   - 三个入口：与输入框间隔 40。胶囊按钮横排：和 DeepSeek 对话、API 开放平台、Harness 桌面端。
   - 页脚：在首屏之外。左栏是备案和社交，右面四列：产品、研究、法务 & 安全、加入我们。
   ========================================================================== */

:root {
  /* 拉丝钛与精密仪器色彩体系 */
  --ti-base-dark: #14171A;
  --ti-chassis-deep: #1A1E23;
  --ti-chassis-panel: #23282F;
  --ti-chassis-surface: #2E343E;
  --ti-metal-border: #3D4653;
  --ti-metal-highlight: #707E91;
  --ti-metal-silver: #A4B1C2;
  --ti-metal-light: #E1E8F0;

  /* 激光冷光束与仪器发光 */
  --ti-cyan-laser: #00D5FF;
  --ti-cyan-laser-dim: rgba(0, 213, 255, 0.12);
  --ti-laser-green: #00FF88;

  /* 首屏专用：自上而下的浅蓝渐变与深蓝灰文字 */
  --ti-sky-grad-top: #E6F0FA;
  --ti-sky-grad-mid: #D2E3F4;
  --ti-sky-grad-bottom: #B9D2EC;
  --ti-hero-headline-color: #243447;
  --ti-grid-line-color: rgba(36, 52, 71, 0.055);

  /* 倒角极小规范 (精密仪器 CNC 切削角) */
  --ti-radius-micro: 2px;
  --ti-radius-tight: 4px;

  /* 字体系统 */
  --font-ti-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-ti-mono: "SF Mono", "Roboto Mono", "Fira Code", Consolas, monospace;
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--ti-base-dark);
}

body {
  font-family: var(--font-ti-sans);
  color: var(--ti-metal-silver);
  background-color: var(--ti-base-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================================
   精密仪器外壳微质感与方向性横向拉丝纹理 (CSS各向异性金属)
   ========================================================================== */
.ti-brushed-anisotropic {
  background-color: var(--ti-chassis-deep);
  background-image: 
    repeating-linear-gradient(90deg, 
      rgba(255, 255, 255, 0.015) 0px, 
      rgba(255, 255, 255, 0.015) 1px, 
      transparent 1px, 
      transparent 2px),
    linear-gradient(180deg, 
      rgba(255, 255, 255, 0.05) 0%, 
      transparent 40%, 
      rgba(0, 0, 0, 0.4) 100%);
}

/* 激光化学蚀刻文字效果 (阴刻/凹雕效果，非印刷) */
.ti-etched-text {
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.9), 0 1px 1px rgba(255, 255, 255, 0.12);
  letter-spacing: 0.03em;
}

/* 精密钛螺丝组件 (.ti-screw) 与螺丝阵列 (.ti-screw-array) */
.ti-screw {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #8B98A8 0%, #303741 75%, #181C21 100%);
  border: 1px solid #1E232A;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.4), 0 1px 2px rgba(0,0,0,0.8);
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.ti-screw::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 1px;
  background: #111417;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 1px rgba(0,0,0,0.9);
}

.ti-screw-array {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   1. 顶栏 (Top Navigation Bar)
   宽 1140，贴在上方。左 Logo，右「获取 APP」和中文 / EN。没有产品菜单。
   ========================================================================== */
.site-topbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-container-1140 {
  width: 1140px;
  max-width: 100%;
  padding: 0 24px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 左侧 Logo (包含 logo.webp) */
.topbar-logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.topbar-logo-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.topbar-brand-title {
  font-family: var(--font-ti-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--ti-hero-headline-color);
  letter-spacing: 0.05em;
}

/* 右侧：「获取 APP」和 中文 / EN (绝对没有产品菜单) */
.topbar-right-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-get-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  font-size: 13px;
  color: #FFFFFF;
  background: #243447;
  border: 1px solid rgba(36, 52, 71, 0.4);
  border-radius: var(--ti-radius-micro);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(36, 52, 71, 0.15);
}

.btn-get-app:hover {
  background: #192533;
  color: var(--ti-cyan-laser);
}

.lang-switch-box {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--ti-hero-headline-color);
  font-weight: 500;
}

.lang-opt.active {
  color: var(--ti-hero-headline-color);
  font-weight: 600;
}

.lang-opt {
  color: rgba(36, 52, 71, 0.6);
  cursor: pointer;
}

.lang-sep {
  opacity: 0.4;
}

/* ==========================================================================
   2. 首屏 (Hero Section)
   正好一屏高，全部居中。背景是自上而下的浅蓝渐变，上面有淡网格。
   ========================================================================== */
.hero-fullview-screen {
  width: 100%;
  height: 100vh;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(180deg, var(--ti-sky-grad-top) 0%, var(--ti-sky-grad-mid) 50%, var(--ti-sky-grad-bottom) 100%);
  overflow: hidden;
  padding: 80px 24px 24px;
}

/* 首屏淡网格遮罩 */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, var(--ti-grid-line-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ti-grid-line-color) 1px, transparent 1px);
}

/* 首屏主内容居中栈 */
.hero-centered-stack {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 1140px;
}

/* 3. 公告 (Notice)
   最窄，约 560。15px，透明度大约一半，两行就换行。 */
.hero-notice-bar {
  width: 560px;
  max-width: 90%;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ti-hero-headline-color);
  opacity: 0.52;
  margin-bottom: 16px;
  word-break: break-word;
}

/* 4. 主标语 (Main Headline)
   「探索未至之境」，46px，常规字重，深蓝灰，不靠加粗。保持唯一 H1 */
.hero-main-slogan {
  font-family: var(--font-ti-sans);
  font-size: 46px;
  font-weight: 400; /* 常规字重，不靠加粗 */
  line-height: 1.25;
  color: var(--ti-hero-headline-color);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

/* 5. 输入卡片 (Input Card)
   宽 880，圆角 24，半透明白底。上半是输入，下半左侧是「深度思考 / 智能搜索」，右侧是发送。 */
.hero-input-card-880 {
  width: 880px;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px; /* 严格要求：圆角 24 */
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 40px rgba(36, 52, 71, 0.08), 0 2px 6px rgba(36, 52, 71, 0.04);
  padding: 20px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-upper-area textarea {
  width: 100%;
  min-height: 60px;
  border: none;
  outline: none;
  background: transparent;
  resize: none;
  font-family: var(--font-ti-sans);
  font-size: 15px;
  color: #1E2B37;
  line-height: 1.6;
}

.input-upper-area textarea::placeholder {
  color: rgba(36, 52, 71, 0.42);
}

.input-lower-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(36, 52, 71, 0.06);
}

/* 下半左侧是「深度思考 / 智能搜索」切换胶囊 */
.input-lower-toggles {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-toggle-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12.5px;
  color: var(--ti-hero-headline-color);
  background: rgba(36, 52, 71, 0.06);
  border: 1px solid rgba(36, 52, 71, 0.1);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.pill-toggle-mode.active {
  background: rgba(36, 52, 71, 0.12);
  border-color: rgba(36, 52, 71, 0.25);
  font-weight: 500;
}

.pill-dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3B82F6;
}

/* 下半右侧是发送按钮 */
.btn-send-trigger {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #243447;
  border: none;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(36, 52, 71, 0.2);
}

.btn-send-trigger:hover {
  background: #1A2533;
  transform: scale(1.05);
}

/* 6. 三个入口 (Three Capsule Portals)
   与输入框间隔 40。胶囊按钮横排：和 DeepSeek 对话、API 开放平台、Harness 桌面端。 */
.hero-portals-row {
  margin-top: 40px; /* 严格要求：与输入框间隔 40 */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.portal-capsule-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border-radius: 100px; /* 胶囊按钮横排 */
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(36, 52, 71, 0.06);
  color: var(--ti-hero-headline-color);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.25s ease;
}

.portal-capsule-btn:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(36, 52, 71, 0.1);
  color: #0066CC;
}

/* ==========================================================================
   首屏之外的内容：精密仪器外壳工件展示、幻方量化底蕴与钛螺丝阵列
   ========================================================================== */
.post-hero-section {
  background-color: var(--ti-base-dark);
  padding: 80px 24px;
  position: relative;
}

.post-hero-container {
  max-width: 1140px;
  margin: 0 auto;
}

/* 拉丝钛机箱精密分区卡片 */
.ti-instrument-chassis {
  background-color: var(--ti-chassis-deep);
  border: 1px solid var(--ti-metal-border);
  border-radius: var(--ti-radius-micro);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  padding: 32px;
  margin-bottom: 40px;
  position: relative;
}

/* 顶部装配边缘与钛螺丝阵列 */
.chassis-top-fastener-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 24px;
  font-family: var(--font-ti-mono);
  font-size: 11px;
  color: var(--ti-metal-silver);
}

.chassis-title {
  font-size: 24px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.chassis-desc {
  font-size: 14.5px;
  color: var(--ti-metal-silver);
  line-height: 1.75;
  margin-bottom: 24px;
}

/* 代码或配置展示面板 (冷灰蚀刻) */
.ti-code-chassis {
  background: #0E1013;
  border: 1px solid #2B323B;
  border-radius: var(--ti-radius-micro);
  padding: 18px 20px;
  font-family: var(--font-ti-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #D3DDE8;
  overflow-x: auto;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.8);
}

/* ==========================================================================
   7. 页脚 (Site Footer)
   在首屏之外。左栏是备案和社交，右面四列：产品、研究、法务 & 安全、加入我们。
   ========================================================================== */
.site-footer-quad {
  background-color: #0E1013;
  border-top: 1px solid var(--ti-metal-border);
  padding: 64px 24px 36px;
  color: var(--ti-metal-silver);
}

.footer-inner-1140 {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
}

/* 左栏是备案和社交 */
.footer-left-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo-row img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.footer-logo-text {
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.05em;
}

.footer-brand-mission {
  font-size: 13px;
  color: #7E8C9E;
  line-height: 1.6;
}

.footer-social-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.social-ti-coin {
  width: 32px;
  height: 32px;
  border-radius: var(--ti-radius-micro);
  background: #1C2026;
  border: 1px solid #2F3642;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #A0B0C4;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.2s;
}

.social-ti-coin:hover {
  background: var(--ti-chassis-surface);
  color: var(--ti-cyan-laser);
  border-color: var(--ti-cyan-laser);
}

.footer-icp-filing {
  font-size: 12px;
  color: #5C6776;
  line-height: 1.7;
}

/* 右面四列：产品、研究、法务 & 安全、加入我们 */
.footer-right-four-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer-col-group h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.footer-col-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-nav li a {
  font-size: 13px;
  color: #7E8C9E;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col-nav li a:hover {
  color: var(--ti-cyan-laser);
}

.footer-bottom-copyright {
  max-width: 1140px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #5C6776;
}

/* ==========================================================================
   网页版与帮助中心定制扩展（精密仪器外壳与钛螺丝阵列）
   ========================================================================== */
.instrument-terminal-wrapper {
  max-width: 1140px;
  margin: 80px auto 48px;
  padding: 0 24px;
}

.chassis-three-column {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 16px;
  background: #111417;
  border: 1px solid var(--ti-metal-border);
  border-radius: var(--ti-radius-micro);
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.instrument-panel {
  background: var(--ti-chassis-deep);
  border: 1px solid #2A313C;
  border-radius: var(--ti-radius-micro);
  padding: 16px;
}

/* 响应式断点 */
@media (max-width: 992px) {
  .footer-inner-1140 {
    grid-template-columns: 1fr;
  }
  .footer-right-four-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .chassis-three-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-main-slogan {
    font-size: 32px;
  }
  .hero-notice-bar {
    width: 100%;
    font-size: 14px;
  }
  .hero-input-card-880 {
    width: 100%;
  }
  .footer-right-four-cols {
    grid-template-columns: 1fr;
  }
}
