/* ============================================================
   DDrobot 官网全局样式
   视觉基调：浅色科技白 + 品牌橙（潮玩 × 科技 × AI × 机器人）
   ============================================================ */

:root {
  /* 品牌色 */
  --brand-orange: #FF6A00;
  --brand-orange-deep: #FF4D00;
  --brand-orange-light: #FFA64D;
  --brand-orange-bg: #FFF3E8;

  /* 科技蓝 / 青（点缀 AI 感） */
  --tech-blue: #1B6BFF;
  --tech-cyan: #00C2FF;

  /* 中性色（浅色主题） */
  --bg: #FFFFFF;
  --bg-soft: #F7F8FB;
  --bg-card: #FFFFFF;
  --text-main: #1A1D24;
  --text-secondary: #5A6070;
  --text-muted: #9AA0AE;
  --line: #EBEDF2;

  /* 深色点缀块（用于 hero 等科技氛围区） */
  --bg-dark: #10131A;
  --bg-dark-2: #181C25;
  --text-on-dark: #FFFFFF;

  /* 阴影 / 圆角 */
  --shadow-sm: 0 2px 8px rgba(16, 19, 26, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 19, 26, 0.10);
  --shadow-glow: 0 0 24px rgba(255, 106, 0, 0.35);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* 字体 */
  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-num: "DIN Alternate", "Bahnschrift", "Helvetica Neue", sans-serif;

  /* 布局 */
  --container: 1200px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

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

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

.brand img { width: 40px; height: 40px; }

.brand .brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand .brand-name em { font-style: normal; color: var(--brand-orange); }

.brand .brand-sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 1px;
}

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

.main-nav a {
  position: relative;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 999px;
  transition: color .2s, background .2s;
}

.main-nav a:hover { color: var(--brand-orange); background: var(--brand-orange-bg); }

.main-nav a.active { color: var(--brand-orange); }

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 16px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand-orange);
}

/* 移动端汉堡 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  width: 22px; height: 2px; border-radius: 2px; background: var(--text-main);
  transition: transform .25s, opacity .25s;
}

/* ============ Hero 区块（科技氛围） ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 20%, #1F2430 0%, var(--bg-dark) 55%, var(--bg-dark-2) 100%);
  color: var(--text-on-dark);
  padding: 96px 0 120px;
}

/* 网格背景（科技感） */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* 霓虹光斑 */
.hero::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -120px; top: -120px;
  background: radial-gradient(circle, rgba(255,106,0,0.45) 0%, transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 2; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  font-size: 13px;
  color: #FFD9B3;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.05);
}

.hero h1 {
  margin-top: 28px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.hero h1 .grad {
  background: linear-gradient(90deg, var(--brand-orange-light), var(--brand-orange), var(--tech-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero p.lead {
  margin-top: 20px;
  max-width: 560px;
  font-size: 17px;
  color: rgba(255,255,255,0.75);
}

.hero-cta { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-orange-light), var(--brand-orange-deep));
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { box-shadow: 0 0 32px rgba(255,106,0,0.55); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); }

.btn-outline {
  background: transparent;
  color: var(--brand-orange);
  border: 2px solid var(--brand-orange);
}
.btn-outline:hover { background: var(--brand-orange-bg); }

/* ============ 区块通用 ============ */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }

.section-head .tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--brand-orange-bg);
  color: var(--brand-orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.section-head h2 {
  margin-top: 16px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.3;
}

.section-head p.desc { margin-top: 12px; color: var(--text-secondary); font-size: 16px; }

/* ============ 卡片 ============ */
.card-grid { display: grid; gap: 24px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(255,106,0,0.35); }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  background: var(--brand-orange-bg);
  margin-bottom: 18px;
}

.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-secondary); font-size: 14.5px; }

/* ============ 页脚 ============ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img { width: 44px; height: 44px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; max-width: 320px; margin-top: 12px; }

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  padding: 6px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--brand-orange-light); }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.9;
}
.footer-bottom .company { color: rgba(255,255,255,0.75); font-weight: 600; }
.footer-bottom .sep { margin: 0 8px; color: rgba(255,255,255,0.25); }
/* ICP 备案号（大陆网站合规要求，必须可见可点） */
.footer-bottom .footer-icp { margin-top: 4px; font-size: 12px; }
.footer-bottom .footer-icp a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-bottom .footer-icp a:hover { color: var(--brand-orange-light); text-decoration: underline; }
/* 公安联网备案（编号 + 警徽图标，链接到全国互联网安全管理服务平台） */
.footer-bottom .footer-police { margin-top: 2px; }
.footer-bottom .footer-police a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.4;
  text-align: left;
}
.footer-bottom .footer-police img {
  display: block;
  width: 15px;
  height: 16px;
  flex: 0 0 auto;
  opacity: .9;
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .card-grid.cols-3, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; }
  .menu-toggle { display: flex; }
}

/* 淡入动画 */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp .7s ease both; }

/* ============ 品牌故事页 ============ */
.story-body { max-width: 920px; margin: 0 auto; }

.story-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.story-block:last-child { border-bottom: none; }
.story-block.reverse { direction: rtl; }
.story-block.reverse > * { direction: ltr; }

.story-text h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-main);
}
.story-text h3::before {
  content: "";
  display: inline-block;
  width: 6px; height: 22px;
  background: linear-gradient(180deg, var(--brand-orange-light), var(--brand-orange-deep));
  border-radius: 3px;
  margin-right: 12px;
  vertical-align: -3px;
}
.story-text p { color: var(--text-secondary); font-size: 15.5px; margin-bottom: 14px; }
.story-text p:last-child { margin-bottom: 0; }

.story-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  min-height: 240px;
  border: 1px solid var(--line);
}
.story-figure img { width: 100%; height: 280px; object-fit: cover; }
.story-figure.empty::before {
  content: "🖼️ 图片待替换";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 15px;
  letter-spacing: 1px;
}
.story-figure.empty img { display: none; }
.story-figure figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.85);
  text-align: center;
}

/* ============ 产品页 ============ */
.product-list { display: flex; flex-direction: column; gap: 48px; }

.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s;
}
.product-card:hover { box-shadow: var(--shadow-md); }
.product-card.reverse .product-figure { order: 2; }

.product-figure {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.product-figure img { width: 100%; height: 100%; object-fit: cover; }
.product-figure.empty::before {
  content: "📷 产品图待替换";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 15px;
  letter-spacing: 1px;
}
.product-figure.empty img { display: none; }

.product-tag {
  position: absolute;
  top: 16px; left: 16px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-orange-light), var(--brand-orange-deep));
  box-shadow: var(--shadow-glow);
}

.product-info h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 4px;
}
.product-info h3 .en {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-orange);
  margin-left: 8px;
  letter-spacing: 0.5px;
}
.product-desc { color: var(--text-secondary); font-size: 15px; margin: 12px 0 18px; }

.product-specs { margin-bottom: 24px; }
.product-specs li {
  position: relative;
  padding: 6px 0 6px 4px;
  font-size: 14px;
  color: var(--text-main);
}

.notice {
  margin-top: 40px;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  background: var(--brand-orange-bg);
  border: 1px solid rgba(255,106,0,0.25);
  color: #8A4A00;
  font-size: 14px;
}

/* ============ 技术支持页 ============ */
.support-topic { margin-bottom: 72px; }
.support-topic:last-child { margin-bottom: 0; }

.support-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.support-head .card-icon { margin-bottom: 0; }
.support-head h2 { font-size: 24px; font-weight: 800; }
.support-head p { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }

.doc-card {
  position: relative;
  display: block;
  cursor: pointer;
}
.doc-status { color: var(--text-muted); font-size: 13px; }
.doc-arrow {
  position: absolute;
  top: 28px; right: 28px;
  font-size: 20px;
  color: var(--brand-orange);
  opacity: 0;
  transition: opacity .2s, transform .2s;
}
.doc-card:hover .doc-arrow { opacity: 1; transform: translateX(4px); }

.flash-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  border-left: 4px solid var(--brand-orange);
}
.flash-icon {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--brand-orange-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
}
.flash-body h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.flash-body p { color: var(--text-secondary); font-size: 14.5px; margin-bottom: 20px; max-width: 720px; }
.flash-links { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .story-block,
  .product-card { grid-template-columns: 1fr; gap: 24px; }
  .story-block.reverse { direction: ltr; }
  .product-card.reverse .product-figure { order: 0; }
  .story-figure img { height: 200px; }
  .flash-card { flex-direction: column; }
}

/* ============ 关于 / SEO 内容区（首页） ============ */
.seo-section { padding-top: 72px; }

.seo-prose { max-width: 860px; margin: 0 auto; }
.seo-prose p {
  color: var(--text-secondary);
  font-size: 15.5px;
  margin-bottom: 16px;
}
.seo-prose p:last-child { margin-bottom: 0; }
.seo-prose strong { color: var(--text-main); font-weight: 700; }

/* ============ 常见问题 FAQ（技术支持页） ============ */
.faq-list { max-width: 860px; margin: 0 auto; }

.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-item h3 {
  position: relative;
  padding-left: 26px;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}
.faq-item h3::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px; height: 18px;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-orange-light), var(--brand-orange-deep));
}

.faq-item p { color: var(--text-secondary); font-size: 15px; }
.faq-item p a { color: var(--brand-orange); font-weight: 600; border-bottom: 1px solid rgba(255,106,0,0.35); }
.faq-item p a:hover { border-bottom-color: var(--brand-orange); }
.faq-item p strong { color: var(--text-main); font-weight: 700; }

/* ============ 页脚相关关键词（SEO 内链） ============ */
.footer-keywords {
  padding: 28px 0 4px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-keywords h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
}

.keyword-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.keyword-tags a {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255,255,255,0.62);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  transition: color .2s, background .2s, border-color .2s;
}
.keyword-tags a:hover {
  color: #fff;
  background: rgba(255,106,0,0.18);
  border-color: rgba(255,106,0,0.5);
}

@media (max-width: 900px) {
  .seo-section { padding-top: 48px; }
  .faq-item h3 { font-size: 16px; }
  .keyword-tags a { font-size: 12.5px; padding: 4px 12px; }
}
