/* 组件样式：Hero、卡片、对比、步骤、下载、FAQ、表格、联系、CTA */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, #fff 0%, var(--color-hero-end) 100%);
  text-align: center;
}

.hero-compact {
  padding: 48px 0 56px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-badge);
  color: var(--color-primary-hover);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero h1 .hl {
  color: var(--color-primary);
}

.hero > .container > p,
.hero-lead {
  font-size: 18px;
  color: var(--color-text-light);
  margin-bottom: 32px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stat .num {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary);
}

.hero-stat .lbl {
  font-size: 13px;
  color: var(--color-text-light);
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--color-badge);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  color: var(--color-text-light);
  font-size: 14px;
  line-height: 1.7;
}

/* 左右图文 */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-row.is-reverse .feature-visual {
  order: -1;
}

.feature-text h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 16px;
}

.feature-text p {
  color: var(--color-text-light);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.feature-text ul {
  margin-top: 18px;
  list-style: none;
}

.feature-text li {
  padding: 8px 0;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-text li::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: 700;
}

.feature-visual {
  background: linear-gradient(135deg, #ecfdf5, #f0f9ff);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.feature-visual .emoji {
  font-size: 80px;
  line-height: 1;
}

.feature-visual strong {
  font-size: 18px;
}

/* 步骤 */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px 24px 28px;
  position: relative;
}

.step-num {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 8px 0;
}

.step p {
  font-size: 13px;
  color: var(--color-text-light);
}

/* 下载卡片 */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dl-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.dl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.dl-card img {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
}

.dl-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.dl-meta {
  color: var(--color-text-light);
  font-size: 13px;
  margin-bottom: 18px;
}

.dl-card .btn {
  width: 100%;
}

/* 文章与安装步骤 */
.article {
  max-width: 880px;
  margin: 0 auto;
}

.article h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 40px 0 16px;
}

.article h2:first-child {
  margin-top: 0;
}

.article h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
}

.article p {
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.article ul,
.article ol {
  margin: 16px 0 16px 24px;
  color: var(--color-text-light);
}

.article li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.article strong {
  color: var(--color-text);
}

/* FAQ：无 JS 也可展开 */
.faq-group {
  max-width: 880px;
  margin: 0 auto 40px;
}

.faq-group > h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0 28px;
}

.faq-item summary {
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 24px;
  color: var(--color-primary);
  font-weight: 300;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-a {
  padding: 0 0 22px;
  color: var(--color-text-light);
  line-height: 1.8;
  font-size: 14px;
}

/* 表格 */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

th {
  background: var(--color-bg-soft);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

/* 联系 */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
}

.contact-block {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-block h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.contact-block > p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.contact-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-item h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form h2 {
  font-size: 20px;
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--color-text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form .btn {
  width: 100%;
}

/* 底部 CTA */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--color-primary);
}

.cta-section .btn-primary:hover {
  color: var(--color-primary-hover);
}

.cta-section .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-section .btn-secondary:hover {
  color: #fff;
  border-color: #fff;
}

/* 404 */
.page-404 {
  text-align: center;
  padding: 80px 0 100px;
}

.page-404 h1 {
  font-size: 42px;
  margin: 16px 0;
}

.page-404 p {
  color: var(--color-text-light);
  margin-bottom: 28px;
}

/* 提示条 */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: var(--shadow-lg);
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1023px) {
  .hero h1 { font-size: 36px; }
  .hero-lead,
  .hero > .container > p { font-size: 16px; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.is-reverse .feature-visual { order: 0; }
  .dl-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cta-section h2 { font-size: 28px; }
}

@media (max-width: 767px) {
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 28px; }
  .steps { grid-template-columns: 1fr; }
  .page-404 h1 { font-size: 30px; }
}
