/* ============================================
   多恩谷科技有限公司
   Design skill-driven 暖调重构
   ============================================ */

/* ----- 字体 ----- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300..700&family=DM+Sans:opsz,wght@9..40,300..700&display=swap');

/* ----- CSS 变量 ----- */
:root {
  --font-display: 'Outfit', 'PingFang SC', sans-serif;
  --font-body: 'DM Sans', 'PingFang SC', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;

  --color-primary: #f8f9fc;
  --color-section-alt: #e2e8f0;
  --color-accent: #1a4a72;
  --color-accent-light: rgba(26, 74, 114, 0.08);
  --color-accent-mid: rgba(26, 74, 114, 0.15);
  --color-accent-gradient: linear-gradient(135deg, #1a4a72, #3d7aaa);
  --color-text: #1a1c23;
  --color-text-muted: #6b7280;
  --color-text-light: #9ca3af;
  --color-bg-card: #ffffff;
  --color-bg-card-hover: #f8fafc;
  --color-border: #e5e7eb;
  --color-border-hover: rgba(26, 74, 114, 0.25);
  --color-footer: #0f172a;
  --color-footer-text: #94a3b8;

  --max-width: 1140px;
  --header-height: 64px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 32px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----- Reset & Base ----- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--color-primary);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background: var(--color-section-alt);
}

/* ----- 导航栏 ----- */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: rgba(248, 249, 252, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(248, 249, 252, 0.95);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  padding: 4px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1.5px;
  background: var(--color-accent);
  transition: var(--transition);
}

.nav-links a:hover { color: var(--color-text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--color-accent);
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-sm);
  font-weight: 500 !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 74, 114, 0.25);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
  background: none; border: none;
}

.hamburger span {
  width: 22px; height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================
   Hero 区域 — 左对齐 + 右侧装饰
   ============================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(170deg, #f0f2f7 0%, #f8f9fc 40%, #fcfdff 100%);
}

.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(26, 74, 114, 0.05) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 85% 40%, rgba(61, 122, 170, 0.03) 0%, transparent 55%);
  z-index: 0;
  pointer-events: none;
}

/* 右侧装饰几何图案 */
.hero-decor {
  position: absolute;
  top: 50%; right: 5%;
  transform: translateY(-50%);
  width: 420px; height: 420px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
}

.hero-decor svg { width: 100%; height: 100%; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 120px 28px 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--color-text);
}

.hero-title .highlight {
  color: var(--color-accent);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(26, 74, 114, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26, 74, 114, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-light);
}



/* ============================================
   关于我们
   ============================================ */
#about { background: #edf0f5; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(26, 74, 114, 0.04);
  border: 1px solid var(--color-border);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual svg {
  width: 100%;
  max-width: 460px;
}

.about-text h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--color-text);
}

.about-text p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 18px;
  line-height: 1.75;
}

/* ============================================
   核心业务 — 2列锯齿布局（非3列卡片）
   ============================================ */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.service-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.service-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-hover);
}

.service-item-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.service-item-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-item-icon svg { width: 20px; height: 20px; }
.service-item-icon.primary { background: rgba(26, 74, 114, 0.12); color: #1a4a72; }
.service-item-icon.secondary { background: rgba(26, 74, 114, 0.06); color: #1e3a5f; }

.service-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.service-item p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ============================================
   技术优势 — 2列
   ============================================ */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tech-item {
  display: flex;
  gap: 18px;
  padding: 28px 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.tech-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-hover);
}

.tech-item-marker {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(26, 74, 114, 0.1);
  color: var(--color-accent);
}

.tech-item-text h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

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

/* ============================================
   行业方案 — 2列
   ============================================ */
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.solution-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.solution-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-hover);
}

.solution-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: rgba(26, 74, 114, 0.1);
  color: var(--color-accent);
}

.solution-card-icon svg { width: 20px; height: 20px; }

.solution-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

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

/* ============================================
   通用区块标题
   ============================================ */
.section-header {
  margin-bottom: 52px;
}

.section-header.center { text-align: center; }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--color-text);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 520px;
  line-height: 1.6;
}

.section-header.center .section-subtitle {
  margin: 0 auto;
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
  text-align: center;
  background: var(--color-section-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--color-text);
}

.cta-section p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   页脚
   ============================================ */
.footer {
  background: var(--color-footer);
  padding: 56px 0 28px;border-top:1px solid rgba(255,255,255,0.04);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
  letter-spacing: -0.01em;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--color-footer-text);
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: #fff;
}

.footer-col a {
  display: block;
  font-size: 0.82rem;
  color: var(--color-footer-text);
  margin-bottom: 8px;
}

.footer-col a:hover { color: #3d7aaa; padding-left: 3px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: #64748b;
}

.footer-icp a {
  color: #64748b;
  font-size: 0.78rem;
}

.footer-icp a:hover { color: #3d7aaa; }

.footer-beian { color: #64748b; font-size: 0.78rem; }

/* ============================================
   动画
   ============================================ */
.animate-in {
  --x: 0;
  --y: 24px;
  --s: 1;
  opacity: 0;
  transform: translateX(var(--x)) translateY(var(--y)) scale(var(--s));
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.animate-in.from-left { --x: -30px; --y: 0; }
.animate-in.from-right { --x: 30px; --y: 0; }
.animate-in.scale-in { --s: 0.92; --y: 0; }

.animate-in.visible {
  --x: 0;
  --y: 0;
  --s: 1;
  opacity: 1;
}

/* 每个 region 第一项无延迟，后续递增 */
.service-row { --row-delay: 0s; }
.service-row:nth-child(2) { --row-delay: 0.12s; }
.service-row:nth-child(3) { --row-delay: 0.24s; }

.service-row .animate-in:nth-child(1) { transition-delay: var(--row-delay); }
.service-row .animate-in:nth-child(2) { transition-delay: calc(0.08s + var(--row-delay)); }

.tech-grid .animate-in:nth-child(1) { transition-delay: 0s; }
.tech-grid .animate-in:nth-child(2) { transition-delay: 0.1s; }
.tech-grid .animate-in:nth-child(3) { transition-delay: 0.2s; }
.tech-grid .animate-in:nth-child(4) { transition-delay: 0.3s; }

.solutions-grid .animate-in:nth-child(1) { transition-delay: 0s; }
.solutions-grid .animate-in:nth-child(2) { transition-delay: 0.1s; }
.solutions-grid .animate-in:nth-child(3) { transition-delay: 0.2s; }
.solutions-grid .animate-in:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   侧边导航点
   ============================================ */
.nav-dots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-dots a {
  display: block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  transition:
    background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.nav-dots a:hover {
  background: var(--color-accent);
  transform: scale(1.3);
}

.nav-dots a.active {
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(26, 74, 114, 0.15);
  transform: scale(1.25);
}

/* 提示标签 */
.nav-dots a .tooltip {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border: 1px solid var(--color-border);
}

.nav-dots a:hover .tooltip {
  opacity: 1;
}

@media (max-width: 1220px) {
  .nav-dots { display: none; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-decor { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .hero-title { font-size: 2.2rem; }
  .hero-content { max-width: 100%; padding-top: 100px; }

  .nav-links {
    display: none;
    position: absolute; top: var(--header-height); left: 0; width: 100%;
    background: rgba(248, 247, 244, 0.98);
    flex-direction: column; padding: 24px; gap: 18px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .service-row { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.6rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
