html {
  height: 100%;
  scroll-behavior: smooth;
}

.doc-home {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 56px;
  box-sizing: border-box;
  background: linear-gradient(165deg, #e8f5f3 0%, #f4f6f8 38%, #eef1f5 100%);
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.doc-home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: #009688;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 30;
}

.doc-home-brand {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.doc-home-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.doc-home-nav-link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.2s;
}

.doc-home-nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.doc-btn {
  display: inline-block;
  box-sizing: border-box;
  padding: 0 18px;
  line-height: 36px;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.doc-btn:hover {
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.doc-btn:active {
  transform: translateY(1px);
}

.doc-btn-header {
  background: #fff;
  color: #009688;
  border-color: #fff;
  font-weight: 500;
  line-height: 32px;
  padding: 0 16px;
}

.doc-btn-header:hover {
  background: #f0fffe;
  color: #00796b;
}

.doc-btn-lg {
  line-height: 44px;
  padding: 0 24px;
  font-size: 15px;
}

.doc-btn-primary {
  background: #009688;
  color: #fff;
  border-color: #009688;
}

.doc-btn-primary:hover {
  background: #00796b;
  border-color: #00796b;
  color: #fff;
}

.doc-btn-outline {
  background: #fff;
  color: #009688;
  border-color: #009688;
}

.doc-btn-outline:hover {
  background: #e0f2f1;
  color: #00695c;
}

/* Carousel（与顶栏同色系、内容区同宽） */
.doc-home-carousel-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px 0;
  box-sizing: border-box;
}

.doc-home-carousel {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d9ebe9;
  box-shadow: 0 2px 12px rgba(0, 150, 136, 0.1);
}

.doc-home-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.doc-home-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-home-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.doc-home-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.doc-home-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.75) 42%, rgba(224, 242, 241, 0.35) 100%);
}

.doc-home-slide-bg-1 {
  background: linear-gradient(120deg, #e0f2f1 0%, #f0faf9 55%, #e8f5f3 100%);
}

.doc-home-slide-bg-2 {
  background: linear-gradient(120deg, #e8f5f3 0%, #f5fbfa 50%, #edf7f6 100%);
}

.doc-home-slide-bg-3 {
  background: linear-gradient(120deg, #d5eeec 0%, #f0faf9 45%, #e0f2f1 100%);
}

.doc-home-slide-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 0 56px;
  text-align: center;
  color: #333;
}

.doc-home-slide-tag {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #00796b;
  background: rgba(0, 150, 136, 0.1);
  border: 1px solid rgba(0, 150, 136, 0.25);
  border-radius: 4px;
}

.doc-home-slide-content h2 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #009688;
}

.doc-home-slide-content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

.doc-home-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 1px solid #c5e0dd;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #009688;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0, 150, 136, 0.12);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.doc-home-carousel-btn:hover {
  background: #009688;
  border-color: #009688;
  color: #fff;
}

.doc-home-carousel-prev {
  left: 12px;
}

.doc-home-carousel-next {
  right: 12px;
}

.doc-home-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.doc-home-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #b2dfdb;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.doc-home-carousel-dot.is-active {
  background: #009688;
  transform: scale(1.15);
}

.doc-home-main {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px 48px;
  box-sizing: border-box;
}

/* Stats strip */
.doc-home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.doc-home-stat {
  background: #fff;
  border-radius: 8px;
  padding: 20px 18px;
  border: 1px solid #e8eceb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.doc-home-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 150, 136, 0.12);
}

.doc-home-stat-num {
  font-size: 12px;
  font-weight: 700;
  color: #009688;
  letter-spacing: 0.05em;
}

.doc-home-stat strong {
  font-size: 16px;
  color: #222;
}

.doc-home-stat span:last-child {
  font-size: 13px;
  color: #777;
  line-height: 1.5;
}

/* Sections */
.doc-home-section {
  margin-bottom: 48px;
}

.doc-home-section-alt {
  background: rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  padding: 36px 28px;
  border: 1px solid #e8eceb;
}

.doc-home-section-head {
  text-align: center;
  margin-bottom: 28px;
}

.doc-home-section-head h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 600;
  color: #222;
}

.doc-home-section-head p {
  margin: 0;
  font-size: 15px;
  color: #666;
}

.doc-home-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.doc-home-card {
  background: #fff;
  border-radius: 10px;
  padding: 26px 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition: transform 0.2s, box-shadow 0.2s;
}

.doc-home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 150, 136, 0.1);
}

.doc-home-card-icon {
  display: block;
  font-size: 28px;
  margin-bottom: 12px;
  line-height: 1;
}

.doc-home-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #009688;
}

.doc-home-card > p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.65;
  color: #666;
}

.doc-home-card-list {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 13px;
  color: #555;
  line-height: 1.8;
}

.doc-home-card-list li {
  margin-bottom: 2px;
}

/* Workflow steps */
.doc-home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.doc-home-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  padding: 20px 22px;
  border-radius: 8px;
  border: 1px solid #e8eceb;
}

.doc-home-step-no {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #009688, #00796b);
  border-radius: 50%;
}

.doc-home-step h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #222;
}

.doc-home-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

/* Roles */
.doc-home-roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.doc-home-role {
  background: #fff;
  padding: 20px 18px;
  border-radius: 8px;
  border: 1px solid #eee;
  text-align: center;
}

.doc-home-role p {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #666;
}

.doc-home-role-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  background: #f0f0f0;
  color: #666;
}

.doc-home-role-tag-op {
  background: #e3f2fd;
  color: #1565c0;
}

.doc-home-role-tag-rev {
  background: #fff3e0;
  color: #e65100;
}

.doc-home-role-tag-adm {
  background: #e8f5e9;
  color: #2e7d32;
}

/* Footer */
.doc-home-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  text-align: center;
  padding: 14px 24px;
  font-size: 13px;
  color: #888;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e6e6e6;
  box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.04);
}

.doc-home-footer p {
  margin: 0;
  line-height: 1.6;
}

.doc-home-copyright {
  color: #666;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .doc-home-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .doc-home-features {
    grid-template-columns: 1fr;
  }

  .doc-home-roles {
    grid-template-columns: repeat(2, 1fr);
  }

  .doc-home-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .doc-home-header {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .doc-home-nav-link {
    display: none;
  }

  .doc-home-brand {
    font-size: 16px;
  }

  .doc-home-main {
    padding: 28px 16px 40px;
  }

  .doc-home-carousel-wrap {
    padding: 16px 16px 0;
  }

  .doc-home-carousel {
    height: 220px;
  }

  .doc-home-slide-content {
    padding: 0 40px;
  }

  .doc-home-slide-content h2 {
    font-size: 22px;
  }

  .doc-home-slide-content p {
    font-size: 13px;
  }

  .doc-home-carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .doc-home-carousel-prev {
    left: 8px;
  }

  .doc-home-carousel-next {
    right: 8px;
  }

  .doc-home-stats {
    grid-template-columns: 1fr;
  }

  .doc-home-roles {
    grid-template-columns: 1fr;
  }

  .doc-home-section-alt {
    padding: 24px 16px;
  }

  .doc-home-copyright {
    white-space: normal;
    font-size: 12px;
  }
}
