/**
 * 印创软件官网 · 内容区块样式
 * 首屏、功能、界面展示、套餐、案例、常见问题、联系表单
 */

/* ========== 通用区块 ========== */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -.01em;
}

.section-head p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.placeholder {
  grid-column: 1 / -1;
  padding: 32px 0;
  color: var(--faint);
  text-align: center;
  font-size: 14px;
}

/* ========== 首屏 ========== */
.hero {
  padding: 76px 0 84px;
  background:
    radial-gradient(900px 380px at 78% -8%, var(--brand-soft), transparent 70%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 12px;
}

.hero h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  letter-spacing: -.02em;
}

.hero h1 em {
  display: block;
  margin-top: 6px;
  color: var(--brand);
  font-style: normal;
}

.hero-desc {
  max-width: 30em;
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
}

.hero-points {
  margin-top: 20px;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.hero-points li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat;
}

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

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-stats b {
  display: block;
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.hero-stats span {
  color: var(--muted);
  font-size: 13px;
}

/* 首屏示意卡片 */
.hero-visual {
  position: relative;
  display: grid;
  gap: 16px;
}

.mock-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.mock-order {
  padding: 20px;
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.mock-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.tag-blue {
  background: var(--brand-soft);
  color: var(--brand);
}

.mock-rows {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
  font-size: 13px;
}

.mock-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.mock-rows dt {
  color: var(--faint);
}

.mock-rows dd {
  color: var(--text);
  text-align: right;
}

.mock-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.mock-flow span {
  flex: 1;
  padding: 6px 0;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--faint);
  text-align: center;
}

.mock-flow .done {
  background: #ecfdf5;
  color: var(--success);
}

.mock-flow .active {
  background: var(--brand);
  color: #fff;
}

.mock-money {
  width: 82%;
  margin-left: auto;
  padding: 18px 20px;
}

.mock-label {
  color: var(--faint);
  font-size: 12px;
}

.mock-value {
  display: block;
  margin: 4px 0 12px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
}

.mock-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}

.mock-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
}

.mock-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

/* ========== 数量背书 ========== */
.metrics {
  padding: 40px 0;
  border-bottom: 1px solid var(--line-soft);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}

.metrics-grid b {
  display: block;
  color: var(--brand);
  font-size: 28px;
  font-weight: 600;
}

.metrics-grid span {
  color: var(--muted);
  font-size: 14px;
}

/* ========== 功能网格 ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}

.feature-icon svg {
  width: 19px;
  height: 19px;
}

.feature-card h3 {
  font-size: 16px;
}

.feature-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* ========== 界面展示 ========== */
/* 截图在上、标签横排在下 */
.shots {
  display: grid;
  gap: 20px;
}

.shots-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.shots-tabs button {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.shots-tabs button:hover {
  border-color: #cbd5e1;
  color: var(--ink);
}

.shots-tabs button.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 500;
}

.shots-stage {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  /* 图片未加载完时撑住高度，避免容器塌成一条线 */
  min-height: 280px;
}

.shot {
  display: none;
}

.shot.active {
  display: block;
}

.shot img {
  width: 100%;
}

.shot-caption {
  padding: 14px 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
}

.shot-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 320px;
  color: var(--faint);
  font-size: 14px;
}

/* ========== 套餐 ========== */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.plan-card.popular {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.plan-badge {
  position: absolute;
  top: -11px;
  left: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
}

.plan-name {
  font-size: 17px;
}

.plan-desc {
  margin-top: 6px;
  min-height: 42px;
  color: var(--muted);
  font-size: 13px;
}

.plan-price {
  margin: 16px 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}

.plan-price b {
  font-size: 30px;
  font-weight: 600;
}

.plan-price span {
  color: var(--faint);
  font-size: 13px;
}

.plan-features {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 14px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text);
}

.plan-features li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

.plan-card .btn {
  margin-top: auto;
}

/* ========== 客户案例 ========== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.case-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.case-quote {
  color: var(--text);
  font-size: 15px;
}

.case-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.case-meta img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--bg-alt);
}

.case-meta strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.case-meta span {
  color: var(--faint);
  font-size: 12px;
}

/* ========== 常见问题 ========== */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-item p {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 14px;
}

/* ========== 联系与试用表单 ========== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: start;
}

.contact-side h3 {
  font-size: 17px;
}

.contact-about {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.contact-list li {
  display: grid;
  gap: 2px;
}

.contact-list b {
  color: var(--ink);
  font-size: 15px;
}

.contact-list span {
  color: var(--faint);
  font-size: 12px;
}

.contact-qr {
  width: 132px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 13px;
}

.field i {
  color: #dc2626;
  font-style: normal;
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.field textarea {
  resize: vertical;
}

.form-tip {
  margin-top: 12px;
  color: var(--faint);
  font-size: 12px;
  text-align: center;
}

/* ========== 响应式 ========== */
@media (max-width: 960px) {
  .hero-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 460px;
  }

  /* 标签多了放不下时横向滚动，不换行挤压 */
  .shots-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

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

  .hero {
    padding: 48px 0 60px;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-stats {
    gap: 24px;
  }

  .contact-form {
    padding: 20px;
  }
}
