/* ========================================
   Pro CSS - SheetNext 企业服务页样式
   适配首页晨间简约风格
======================================== */

.pro {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(238, 240, 242, 0.3) 35%, rgba(238, 240, 242, 0.8) 100%);
}

/* ---- Hero Section ---- */
.pro-hero {
  padding: 56px 0 44px;
  position: relative;
  overflow: hidden;
}

.pro-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(249, 251, 253, 0.86) 70%, rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
}

.pro-hero .hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(55, 53, 47, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 53, 47, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 75%);
  pointer-events: none;
}

.pro-hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.pro-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7c3aed;
  padding: 4px 14px;
  background: rgba(139, 92, 246, 0.08);
  border-radius: 999px;
}

.pro-hero-badge i {
  font-size: 14px;
}

.pro-hero-title {
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.025em;
  color: var(--color-text);
}

.pro-hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  max-width: 760px;
  margin-bottom: 4px;
  line-height: 1.65;
}

.pro-hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.pro-hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.pro-hero-cta .btn i { font-size: 16px; }

/* ---- Section Common (overrides) ---- */
.section {
  padding: 52px 0;
}

.section-header {
  margin-bottom: 28px;
}

.section-header.center {
  margin: 0 auto 26px;
}

/* ---- Features Section ---- */
.section-features {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-white);
}

.section-features::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(35, 131, 226, 0.25), transparent);
}

.pro-feat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pro-feat-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 32px 24px;
  background: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(35, 131, 226, 0.12);
  border-radius: 10px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  height: 100%;
}

.pro-feat-card:hover .pro-feat-card-inner {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12), 0 0 18px rgba(35, 131, 226, 0.08);
}

.pro-feat-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 26px;
}

.pro-feat-card-inner h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}

.pro-feat-card-inner p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.65;
}

.pro-feat-card[data-color="blue"] .pro-feat-icon {
  background: rgba(35, 131, 226, 0.1);
  color: #2383e2;
}
.pro-feat-card[data-color="blue"]:hover .pro-feat-card-inner { border-color: rgba(35, 131, 226, 0.3); }

.pro-feat-card[data-color="violet"] .pro-feat-icon {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
}
.pro-feat-card[data-color="violet"]:hover .pro-feat-card-inner { border-color: rgba(139, 92, 246, 0.3); }

.pro-feat-card[data-color="cyan"] .pro-feat-icon {
  background: rgba(6, 182, 212, 0.1);
  color: #0891b2;
}
.pro-feat-card[data-color="cyan"]:hover .pro-feat-card-inner { border-color: rgba(6, 182, 212, 0.3); }

.pro-feat-card[data-color="amber"] .pro-feat-icon {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}
.pro-feat-card[data-color="amber"]:hover .pro-feat-card-inner { border-color: rgba(245, 158, 11, 0.3); }

/* ---- Code Integration Section ---- */
.section-code {
  position: relative;
}

.section-code .section-header.center {
  max-width: 720px;
}

.section-code .section-title {
  white-space: nowrap;
  line-height: 1.12;
  margin-bottom: 10px;
}

.code-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.code-guide-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 24px;
}

.code-guide-actions .btn {
  min-width: 220px;
  justify-content: center;
}

.code-card {
  background: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(35, 131, 226, 0.12);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.code-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.code-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #fff;
  border-radius: 10px 10px 0 0;
}

.code-card-header.blue {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0b6bcb 100%);
}

.code-card-header.green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.code-card-header i {
  font-size: 18px;
}

.code-block {
  padding: 20px;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #e2e8f0;
  background: #1e293b;
  overflow-x: auto;
  white-space: pre-wrap;
  flex: 1;
}

.code-block .ck { color: #7dd3fc; }
.code-block .cf { color: #fbbf24; }
.code-block .cs { color: #86efac; }
.code-block .cc { color: #64748b; }

/* ---- Partners Section ---- */
.pro-partners {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pro-partners-wrapper {
  width: 100%;
  max-width: 920px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.pro-partners-track {
  display: flex;
  align-items: center;
  gap: 42px;
  width: max-content;
  will-change: transform;
}

.pro-partners-track-left {
  animation: pro-scroll-left 30s linear infinite;
}

.pro-partners-track-right {
  animation: pro-scroll-right 30s linear infinite;
}

.pro-partners-wrapper:hover .pro-partners-track {
  animation-play-state: paused;
}

.pro-partner-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pro-partner-item img {
  height: 38px;
  width: auto;
  max-width: 156px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.pro-partner-item:hover img {
  filter: grayscale(0%) opacity(1);
  transform: translateY(-1px);
}

@keyframes pro-scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes pro-scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ---- Use Cases Section ---- */
.section-usecases {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.92) 100%);
}

.section-usecases::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(35, 131, 226, 0.22), transparent);
}

.usecase-compact {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid rgba(35, 131, 226, 0.14);
  background: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.usecase-compact-lead {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 14px;
}

.usecase-compact-lead i {
  font-size: 16px;
  color: #2383e2;
}

.usecase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.usecase-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(35, 131, 226, 0.14);
  background: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  color: var(--color-text-light);
  transition: all 0.25s ease;
}

.usecase-tag i {
  font-size: 14px;
  color: #2563eb;
}

.usecase-tag:hover {
  color: var(--color-text);
  border-color: rgba(35, 131, 226, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(35, 131, 226, 0.12);
}

.usecase-compact-footnote {
  margin-top: 14px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---- Pricing & Compare Section ---- */
.section-pricing {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.92) 55%, rgba(255, 255, 255, 0.96) 100%);
}

.section-pricing::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(35, 131, 226, 0.25), transparent);
}

.pro-open-source-note {
  margin: 0 auto 14px;
  max-width: 960px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(35, 131, 226, 0.16);
  background: rgba(35, 131, 226, 0.06);
  font-size: 13px;
  color: var(--color-text-light);
}

.pro-open-source-note span {
  color: var(--color-text);
  font-weight: 600;
  margin-right: 6px;
}

.pro-open-source-note a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.compare-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid rgba(35, 131, 226, 0.14);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.pro-compare-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.pro-compare-table thead th {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.pro-compare-table thead th:first-child {
  text-align: left;
  min-width: 220px;
}

.pro-compare-table tbody td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--color-text-light);
  border-bottom: 1px solid rgba(35, 131, 226, 0.1);
  text-align: center;
  background: #fff;
}

.pro-compare-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  background: rgba(248, 251, 255, 0.76);
}

.pro-compare-table tbody tr:hover td {
  background: rgba(248, 251, 255, 0.9);
}

.pro-compare-table tbody tr:hover td:first-child {
  background: rgba(241, 247, 255, 0.96);
}

.compare-category td {
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e3a8a;
  background: rgba(35, 131, 226, 0.12) !important;
}

.compare-check,
.compare-limit,
.compare-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.compare-check {
  color: #065f46;
  background: rgba(16, 185, 129, 0.16);
}

.compare-limit {
  color: #92400e;
  background: rgba(245, 158, 11, 0.16);
}

.compare-cross {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.14);
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.license-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(35, 131, 226, 0.12);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.license-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.license-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-light);
}

.license-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.14);
}

.license-price-blur {
  color: #64748b;
  background: rgba(100, 116, 139, 0.1);
  font-weight: 600;
}

.license-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.license-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.license-card li i {
  color: #10b981;
  font-size: 16px;
  line-height: 1.3;
}

/* ---- Contact Section ---- */
.section-tail {
  position: relative;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.85) 0%, rgba(243, 248, 255, 0.96) 100%);
}

.section-contact {
  border: 0;
}

.section-contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(35, 131, 226, 0.22), transparent);
}

.pro-contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  background: linear-gradient(165deg, #ffffff 0%, #f5f9ff 100%);
  border: 1px solid rgba(35, 131, 226, 0.14);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.pro-contact-main h2 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.pro-contact-main > p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 14px;
}

.pro-contact-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pro-contact-info p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.pro-contact-info .muted {
  color: var(--color-text-muted);
  font-size: 12px;
}

.pro-contact-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pro-contact-qrcode {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(35, 131, 226, 0.2);
}

.pro-contact-side span {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---- FAQ Section ---- */
.section-pro-faq {
  position: relative;
  background: linear-gradient(180deg, rgba(245, 250, 255, 0.9) 0%, rgba(241, 247, 255, 0.98) 100%);
}

.pro-faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pro-faq-item {
  border: 1px solid rgba(35, 131, 226, 0.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.pro-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
}

.pro-faq-question i {
  font-size: 18px;
  color: var(--color-text-muted);
  transition: transform 0.25s ease;
}

.pro-faq-item.active .pro-faq-question i {
  transform: rotate(180deg);
}

.pro-faq-answer-wrap {
  height: 0;
  overflow: hidden;
  transition: height 0.28s ease;
}

.pro-faq-answer {
  padding: 0 18px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-light);
}

/* ---- CTA Section ---- */
.section-tail-cta {
  background: radial-gradient(900px 300px at 50% 0%, rgba(35, 131, 226, 0.10) 0%, transparent 70%),
              linear-gradient(180deg, rgba(242, 247, 255, 0.98) 0%, rgba(238, 244, 253, 0.98) 100%);
  padding-top: 36px;
  padding-bottom: 56px;
}

.pro-cta {
  margin-top: 0;
  padding: 34px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 42%, #1d4ed8 100%);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.25);
}

.pro-cta-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  max-width: 560px;
}

.pro-cta-desc {
  font-size: 15px;
  color: rgba(226, 232, 240, 0.92);
  max-width: 520px;
  line-height: 1.7;
}

.pro-cta-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pro-cta .btn-primary {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
}

.pro-cta .btn-primary:hover {
  background: #f8fafc;
  border-color: #f8fafc;
}

.pro-cta .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.pro-cta .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
}

.pro-cta-hints {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.pro-cta-hints span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.86);
}

.pro-cta-hints i {
  font-size: 14px;
  color: #86efac;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .pro-feat-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .license-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .usecase-compact {
    padding: 20px;
  }

  .pro-contact-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .pro-hero {
    padding: 54px 0 44px;
  }

  .section {
    padding: 44px 0;
  }

  .section-header {
    margin-bottom: 22px;
  }

  .section-header.center {
    margin: 0 auto 22px;
  }

  .pro-feat-cards {
    grid-template-columns: 1fr;
  }

  .code-cards {
    grid-template-columns: 1fr;
  }

  .section-code .section-title {
    white-space: normal;
    line-height: 1.2;
  }

  .license-grid {
    grid-template-columns: 1fr;
  }

  .usecase-compact {
    padding: 16px;
  }

  .usecase-tags {
    gap: 8px;
  }

  .usecase-tag {
    width: 100%;
    justify-content: flex-start;
  }

  .pro-partners-track {
    gap: 30px;
  }

  .pro-partner-item img {
    height: 32px;
    max-width: 124px;
  }

  .pro-cta {
    padding: 28px 18px;
  }

  .pro-contact-qrcode {
    width: 160px;
    height: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pro-partners-track { animation: none; }
}
