/* ==========================================================================
   多姿态网络科技有限公司 官网全站样式
   风格：浅色简洁风 · 白底 + 浅灰分区 + 蓝紫渐变点缀
   ========================================================================== */

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --accent: #7c3aed;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(31, 41, 55, 0.06);
  --shadow-hover: 0 8px 24px rgba(79, 70, 229, 0.14);
  --max-width: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   顶部导航
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.logo:hover { color: var(--text); }

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}

.logo-img {
  height: 46px;
  width: auto;
  display: block;
}
.footer-brand .logo-img {
  height: 52px;
}

/* TL;DR 一句话结论 */
.tldr {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid var(--border, #e5e7eb);
  border-left: 4px solid #6366f1;
  background: linear-gradient(90deg, rgba(99,102,241,.07), rgba(124,58,237,.04));
  border-radius: 10px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text, #1f2937);
}
.tldr-label {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--grad, linear-gradient(90deg,#4f46e5,#7c3aed));
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  vertical-align: middle;
}

/* FAQ 常见问题 */
.faq {
  margin: 34px 0 8px;
  padding: 22px 24px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  background: #fafaff;
}
.faq h2 { margin: 0 0 14px; font-size: 20px; }
.faq h3 { margin: 18px 0 6px; font-size: 16.5px; color: #4338ca; }
.faq p { margin: 0 0 4px; line-height: 1.85; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
}
.nav-menu a:hover { color: var(--primary); background: var(--bg-soft); }
.nav-menu a.active { color: var(--primary); font-weight: 600; }

.nav-cta {
  background: var(--grad) !important;
  color: #fff !important;
  font-weight: 600;
}
.nav-cta:hover { opacity: 0.9; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Hero 首屏
   -------------------------------------------------------------------------- */
.hero {
  padding: 90px 0 70px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 45% at 50% -8%, rgba(124, 58, 237, 0.10), transparent),
    radial-gradient(ellipse 45% 40% at 82% 12%, rgba(79, 70, 229, 0.08), transparent),
    var(--bg-soft);
}

.hero-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.hero h1 .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4); }

.btn-outline {
  background: #fff;
  color: var(--primary);
  border-color: #c7d2fe;
}
.btn-outline:hover { color: var(--primary-dark); border-color: var(--primary); transform: translateY(-2px); }

.btn-sm { padding: 8px 18px; font-size: 14px; border-radius: 8px; }

/* --------------------------------------------------------------------------
   通用 Section
   -------------------------------------------------------------------------- */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }

.section-head { text-align: center; margin-bottom: 46px; }

.section-head h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }

.section-head p { color: var(--text-light); font-size: 16px; max-width: 600px; margin: 0 auto; }

/* --------------------------------------------------------------------------
   产品卡片矩阵
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.25s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: #c7d2fe;
}
.product-card:hover::before { opacity: 1; }

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
  color: #fff;
}

.icon-dns  { background: linear-gradient(135deg, #2563eb, #38bdf8); }
.icon-login { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.icon-bbs  { background: linear-gradient(135deg, #059669, #34d399); }
.icon-api  { background: linear-gradient(135deg, #ea580c, #fb923c); }
.icon-bot  { background: linear-gradient(135deg, #db2777, #f472b6); }
.icon-pan  { background: linear-gradient(135deg, #0891b2, #67e8f9); }

.product-card h3 { font-size: 19px; margin-bottom: 8px; }
.product-card h3 a { color: var(--text); }
.product-card h3 a:hover { color: var(--primary); }

.product-card .desc {
  font-size: 14px;
  color: var(--text-light);
  flex: 1;
  margin-bottom: 18px;
}

.product-card .link-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.site-url {
  font-size: 13px;
  color: var(--text-light);
  font-family: "SF Mono", Consolas, monospace;
}

/* --------------------------------------------------------------------------
   生态联动
   -------------------------------------------------------------------------- */
.eco-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.eco-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  width: 170px;
  text-align: center;
  box-shadow: var(--shadow);
}

.eco-step .eco-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.eco-step h4 { font-size: 15px; margin-bottom: 4px; }
.eco-step p { font-size: 12.5px; color: var(--text-light); line-height: 1.5; }

.eco-arrow {
  display: flex;
  align-items: center;
  font-size: 22px;
  color: var(--primary);
  padding: 0 8px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   数据信任区
   -------------------------------------------------------------------------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 30px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-item .num {
  font-size: 36px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-item .label { font-size: 14px; color: var(--text-light); margin-top: 6px; }

/* --------------------------------------------------------------------------
   三步上手
   -------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  position: relative;
}

.step-card .step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-card h3 { font-size: 17px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-light); }

/* --------------------------------------------------------------------------
   博客 / 文章
   -------------------------------------------------------------------------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.article-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}

.article-card h3 { font-size: 17px; margin-bottom: 10px; line-height: 1.5; }
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--primary); }

.article-card .excerpt {
  font-size: 14px;
  color: var(--text-light);
  flex: 1;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary);
  font-size: 12.5px;
  margin-right: 6px;
}

/* 文章正文页 */
.article-page { padding: 56px 0 72px; }

.article-page .article-head { margin-bottom: 30px; }
.article-page h1 { font-size: 32px; line-height: 1.4; margin-bottom: 14px; }

.article-body { max-width: 780px; }

.article-body h2 { font-size: 22px; margin: 34px 0 14px; padding-left: 12px; border-left: 4px solid var(--primary); }
.article-body h3 { font-size: 18px; margin: 26px 0 10px; }
.article-body p { margin-bottom: 16px; color: #374151; }
.article-body ul, .article-body ol { margin: 0 0 16px 24px; color: #374151; }
.article-body li { margin-bottom: 6px; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
  margin: 0 0 16px;
  padding: 14px 20px;
  background: var(--bg-soft);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  color: var(--text-light);
}
.article-body code {
  font-family: "SF Mono", Consolas, monospace;
  background: #f3f4f6;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.9em;
  color: var(--accent);
}
.article-body table { border-collapse: collapse; margin-bottom: 16px; width: 100%; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 9px 14px; font-size: 14px; text-align: left; }
.article-body th { background: var(--bg-soft); }

.article-nav {
  max-width: 780px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   内页 Banner（产品/关于等页面顶部）
   -------------------------------------------------------------------------- */
.page-banner {
  padding: 58px 0 46px;
  background:
    radial-gradient(ellipse 55% 60% at 50% -10%, rgba(79, 70, 229, 0.09), transparent),
    var(--bg-soft);
  text-align: center;
}

.page-banner h1 { font-size: 34px; margin-bottom: 12px; }
.page-banner p { color: var(--text-light); max-width: 620px; margin: 0 auto; font-size: 16px; }

.breadcrumb {
  font-size: 13.5px;
  color: var(--text-light);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }

/* --------------------------------------------------------------------------
   产品详情页
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.feature-item h3 { font-size: 16px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.feature-item h3::before { content: "✓"; color: var(--primary); font-weight: 800; }
.feature-item p { font-size: 14px; color: var(--text-light); }

.scene-list { list-style: none; max-width: 760px; margin: 0 auto; }
.scene-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.scene-list .scene-no {
  font-weight: 800;
  color: var(--primary);
  font-size: 18px;
  min-width: 28px;
}

.cta-box {
  text-align: center;
  padding: 56px 24px;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
}
.cta-box h2 { font-size: 28px; margin-bottom: 10px; }
.cta-box p { opacity: 0.9; margin-bottom: 26px; font-size: 16px; }
.cta-box .btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.cta-box .btn-white:hover { transform: translateY(-2px); color: var(--accent); }

/* --------------------------------------------------------------------------
   关于 / 联系页
   -------------------------------------------------------------------------- */
.about-body { max-width: 820px; margin: 0 auto; }
.about-body h2 { font-size: 22px; margin: 32px 0 12px; }
.about-body p { color: #374151; margin-bottom: 14px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  text-align: center;
}
.contact-card .c-icon { font-size: 30px; margin-bottom: 10px; }
.contact-card h3 { font-size: 16px; margin-bottom: 6px; }
.contact-card p { font-size: 14px; color: var(--text-light); word-break: break-all; }

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 56px 0 0;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr 1.6fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { line-height: 1.8; max-width: 260px; margin-bottom: 18px; }

.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #374151; border-radius: 50%;
  color: #9ca3af; font-size: 15px; transition: all 0.2s;
}
.footer-social a:hover { color: #fff; border-color: transparent; background: var(--grad); }

.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #9ca3af; }
.footer-col a:hover { color: #fff; }

.footer-sub .sub-tip { color: #6b7280; margin-bottom: 12px; line-height: 1.6; }
.subscribe-form { display: flex; gap: 0; }
.subscribe-form input {
  flex: 1; min-width: 0;
  background: #1f2937; border: 1px solid #374151;
  border-right: none; border-radius: 8px 0 0 8px;
  padding: 9px 12px; color: #fff; font-size: 13px; outline: none;
}
.subscribe-form input::placeholder { color: #6b7280; }
.subscribe-form input:focus { border-color: var(--primary); }
.subscribe-form button {
  background: var(--grad); color: #fff; border: none;
  border-radius: 0 8px 8px 0; padding: 0 16px;
  font-size: 16px; cursor: pointer;
}
.subscribe-form button:hover { opacity: 0.9; }

.footer-bar { border-top: 1px solid #1f2937; padding: 16px 0; }
.footer-quicklinks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-quicklinks a { color: #9ca3af; font-size: 13.5px; }
.footer-quicklinks a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 18px 0 40px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}
.footer-beian {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 8px 16px; margin-bottom: 10px;
}
.footer-beian a { color: #6b7280; display: inline-flex; align-items: center; gap: 5px; }
.footer-beian a:hover { color: #fff; }
.footer-beian .gov-icon { font-size: 14px; }
.footer-bottom a { color: #6b7280; }
.footer-bottom a:hover { color: #fff; }
.footer-copy { line-height: 1.9; }
.footer-copy .ad-notice { color: #4b5563; }

/* --------------------------------------------------------------------------
   博客分类导航 / 文章副标题 / 空分类
   -------------------------------------------------------------------------- */
.cat-nav {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 28px;
}
.cat-nav a {
  display: inline-block; padding: 7px 16px;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--muted, #6b7280); font-size: 14px;
  background: #fff; transition: all .2s;
}
.cat-nav a:hover { color: var(--primary); border-color: var(--primary); }
.cat-nav a.active {
  color: #fff; background: var(--grad); border-color: transparent;
}
.article-subtitle {
  margin: 14px 0 0; font-size: 16px; line-height: 1.8;
  color: #4b5563;
}
.empty-tip { color: #9ca3af; padding: 24px 0; }

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .product-grid, .article-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 34px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 10px 20px 16px;
    box-shadow: var(--shadow);
    gap: 2px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 11px 12px; }

  .product-grid, .article-grid, .steps-grid, .feature-grid,
  .contact-grid, .stats-row { grid-template-columns: 1fr; }

  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 25px; }
  .page-banner h1 { font-size: 26px; }
  .article-page h1 { font-size: 25px; }

  .eco-arrow { display: none; }
  .eco-step { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 18px; margin-bottom: 10px; }
  .eco-step .eco-icon { margin-bottom: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand, .footer-sub { grid-column: 1 / -1; }
}
