/* 自中后台 official/index.vue 抽出的介绍页样式（无构建依赖） */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'PingFang SC',
    'Hiragino Sans GB',
    'Microsoft YaHei',
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

.official-page {
  min-height: 100vh;
  background: #f7f9fc;
  color: #1d2129;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background: rgb(255 255 255 / 72%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: #e5e6eb;
  box-shadow: 0 4px 20px rgb(0 0 0 / 4%);
}

.header-inner,
.section-inner,
.hero-inner,
.footer-inner,
.cta-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-logo,
.footer-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-name {
  font-size: 16px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-right: auto;
}

.nav-links a {
  font-size: 14px;
  color: #4e5969;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #165dff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.link-docs {
  font-size: 14px;
  color: #4e5969;
  text-decoration: none;
}

.link-docs:hover {
  color: #165dff;
}

/* 按钮（对齐 Element Plus primary/round/large 观感） */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid #dcdfe6;
  border-radius: 999px;
  background: #fff;
  color: #606266;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}

.btn:hover {
  color: #165dff;
  border-color: #b3c7ff;
  background: #f5f8ff;
}

.btn-primary {
  color: #fff;
  background: #165dff;
  border-color: #165dff;
}

.btn-primary:hover {
  color: #fff;
  background: #4080ff;
  border-color: #4080ff;
}

.btn-large {
  padding: 12px 28px;
  font-size: 15px;
}

.btn-ghost-on-dark {
  color: #fff;
  background: rgb(255 255 255 / 14%);
  border-color: rgb(255 255 255 / 35%);
}

.btn-ghost-on-dark:hover {
  color: #fff;
  background: rgb(255 255 255 / 22%);
  border-color: rgb(255 255 255 / 55%);
}

.btn-icon {
  font-size: 18px;
  line-height: 1;
}

.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgb(22 93 255 / 12%), transparent 40%),
    radial-gradient(circle at 80% 0%, rgb(114 46 209 / 10%), transparent 35%),
    linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #165dff;
  background: rgb(22 93 255 / 8%);
  border: 1px solid rgb(22 93 255 / 16%);
  border-radius: 999px;
}

.hero-title {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(90deg, #165dff, #722ed1);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 680px;
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 1.8;
  color: #4e5969;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 720px;
}

.stat-item {
  padding: 16px 18px;
  background: rgb(255 255 255 / 80%);
  border: 1px solid #e5e6eb;
  border-radius: 12px;
}

.stat-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.stat-item span {
  font-size: 13px;
  color: #86909c;
}

.section {
  padding: 80px 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head.left {
  margin: 0 0 32px;
  text-align: left;
}

.section-tag {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #165dff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
}

.section-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #4e5969;
}

.features-section {
  background: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 24px;
  background: #f7f9fc;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgb(22 93 255 / 8%);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  font-size: 24px;
  border-radius: 12px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.feature-card p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #4e5969;
}

.feature-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.8;
  color: #86909c;
}

.advantages-section {
  background: #fff;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.advantage-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: #f7f9fc;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.advantage-card:hover {
  border-color: #c8d9ff;
  box-shadow: 0 12px 32px rgb(22 93 255 / 8%);
}

.advantage-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 22px;
  color: #165dff;
  background: rgb(22 93 255 / 8%);
  border-radius: 12px;
}

.advantage-body h3 {
  margin: 2px 0 8px;
  font-size: 17px;
}

.advantage-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #4e5969;
}

.workflow-section {
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3ff 100%);
}

.workflow-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workflow-step {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 14px;
}

.step-index {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #165dff, #4080ff);
  border-radius: 10px;
}

.step-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.step-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #4e5969;
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.arch-card {
  padding: 24px;
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 16px;
}

.arch-card.highlight {
  background: linear-gradient(180deg, #165dff 0%, #4080ff 100%);
  border-color: transparent;
  color: #fff;
}

.arch-card h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  padding: 6px 10px;
  font-size: 12px;
  background: #f2f3f5;
  border-radius: 999px;
}

.arch-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.9;
}

.arch-card.highlight .arch-list {
  color: rgb(255 255 255 / 92%);
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.scenario-card {
  padding: 24px 20px;
  text-align: center;
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 14px;
}

.scenario-icon {
  display: block;
  margin-bottom: 12px;
  font-size: 32px;
  color: #165dff;
}

.scenario-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.scenario-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #4e5969;
}

.cta-section {
  padding: 72px 0;
}

.cta-inner {
  padding: 48px 32px;
  text-align: center;
  background: linear-gradient(135deg, #165dff, #722ed1);
  border-radius: 24px;
  color: #fff;
}

.cta-inner h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 32px);
}

.cta-inner p {
  margin: 0 0 24px;
  color: rgb(255 255 255 / 88%);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.site-footer {
  padding: 32px 0 24px;
  background: #101828;
  color: rgb(255 255 255 / 72%);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-brand strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
}

.footer-brand p {
  margin: 0;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 14px;
  color: rgb(255 255 255 / 72%);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding-top: 16px;
  font-size: 12px;
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.icp-slot {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.icp-link {
  color: inherit;
  text-decoration: none;
}

.icp-link:hover {
  color: #fff;
}

.police-link,
.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.police-badge,
.footer-badge {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.icp-slot:empty {
  display: none;
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .feature-grid,
  .arch-grid,
  .advantage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-actions .link-docs {
    display: none;
  }

  .hero-stats,
  .feature-grid,
  .arch-grid,
  .advantage-grid,
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
