/* Inner pages & homepage stack matrix */

.page-header {
  padding: 100px 0 60px;
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(0, 212, 255, 0.05) 100%);
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.page-tagline {
  color: var(--primary-color);
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.page-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 860px;
  margin: 0 auto;
}

.page-icon-large {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 3rem;
  color: #fff;
}

.content-section {
  padding: 70px 0;
}

.content-section.alt-bg {
  background: rgba(0, 212, 255, 0.03);
}

.content-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
}

.content-block h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.content-block p,
.content-block li {
  color: var(--text-secondary);
  line-height: 1.8;
}

.content-block ul {
  padding-left: 20px;
}

.feature-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card-sm {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.3s ease;
}

.feature-card-sm:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
}

.feature-card-sm i {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 14px;
}

.feature-card-sm h4 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.feature-card-sm p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  color: var(--primary-dark);
}

/* Stack matrix (homepage) */
.stack-section {
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.02) 0%, var(--bg-dark) 100%);
}

.stack-intro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 48px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.stack-layers {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stack-layer {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px 28px;
  transition: border-color 0.3s ease;
}

.stack-layer:hover {
  border-color: rgba(0, 212, 255, 0.4);
}

.stack-layer-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 12px;
  border-right: 1px solid var(--border-color);
}

.stack-layer-num {
  font-size: 0.75rem;
  color: var(--primary-color);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.stack-layer-name {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
}

.stack-layer-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.stack-item {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
  transition: all 0.3s ease;
}

.stack-item:hover {
  border-color: var(--primary-color);
  background: rgba(0, 212, 255, 0.05);
}

.stack-item-type {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-color);
  margin-bottom: 6px;
}

.stack-item-type.platform {
  color: var(--secondary-color);
}

.stack-item h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.stack-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Pain points & advantages */
.pain-grid,
.advantage-grid,
.coop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.pain-card,
.advantage-card,
.coop-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.pain-card i,
.advantage-card i,
.coop-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 14px;
}

.pain-card h4,
.advantage-card h4,
.coop-card h4 {
  margin-bottom: 8px;
}

.pain-card p,
.advantage-card p,
.coop-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Solution cards on homepage */
.scenario-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.scenario-card-link .scenario-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
  border: 1px solid transparent;
  border-radius: 12px;
  overflow: hidden;
}

.scenario-card-link:hover .scenario-card {
  transform: translateY(-6px);
  border-color: var(--primary-color);
}

.scenario-desc {
  padding: 12px 16px 16px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* App download */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.download-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
}

.download-card i {
  font-size: 3rem;
  margin-bottom: 16px;
}

.download-card.android i { color: #3DDC84; }
.download-card.ios i { color: #007AFF; }
.download-card.harmony i { color: #FF6B00; }

.download-card h4 {
  margin-bottom: 8px;
}

.download-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.3s ease;
}

.btn-download:hover {
  opacity: 0.9;
}

.cert-validity {
  text-align: center;
  color: var(--text-secondary);
  margin-top: -10px;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.industry-tag {
  padding: 6px 14px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Homepage — ZYT-style hero & platform showcase */

.hero-split {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
}

.hero-split .hero-inner {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-split .hero-content {
  text-align: left;
  max-width: none;
  padding: 0;
}

.hero-split .hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-split .hero-description {
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-split .hero-buttons {
  justify-content: flex-start;
}

.hero-visual-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.15);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 60px rgba(0, 212, 255, 0.08);
  aspect-ratio: 16 / 10;
  background: #0d1117;
}

.hero-visual-wrap picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-visual-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: opacity 0.6s ease;
  opacity: 0;
}

.hero-visual-wrap img.is-loaded {
  opacity: 1;
}

.hero-visual-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.hero-visual-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero-visual-dot.active {
  background: var(--primary-color);
  width: 24px;
  border-radius: 4px;
}

/* Full-width platform showcase */
.platform-showcase {
  padding: 0;
  background: var(--bg-dark);
}

.showcase-header {
  text-align: center;
  padding: 80px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.showcase-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.showcase-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.showcase-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 20px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.showcase-tab {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.showcase-tab:hover,
.showcase-tab.active {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(0, 212, 255, 0.08);
}

.showcase-panels {
  position: relative;
}

.showcase-panel {
  display: none;
  animation: fadeIn 0.5s ease;
}

.showcase-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.showcase-media {
  position: relative;
  width: 100%;
  max-height: 75vh;
  overflow: hidden;
  background: #000;
}

.showcase-media picture {
  display: block;
  width: 100%;
}

.showcase-media img {
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.showcase-info {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.showcase-info h3 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.showcase-tagline {
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 20px;
}

.showcase-info p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.showcase-features {
  list-style: none;
  padding: 0;
}

.showcase-features li {
  color: var(--text-secondary);
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.95rem;
}

.showcase-features li::before {
  content: '✓';
  color: var(--accent-color);
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* Video player section */
.video-player-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(0, 212, 255, 0.04) 50%, var(--bg-dark) 100%);
}

.video-player-header {
  text-align: center;
  margin-bottom: 40px;
}

.video-player-header .section-title {
  margin-bottom: 12px;
}

.video-player-header .section-subtitle {
  margin-bottom: 0;
}

.video-player-wrap {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.06);
  background: #000;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease;
  z-index: 2;
}

.video-play-overlay:hover {
  background: rgba(0, 0, 0, 0.55);
}

.video-play-overlay.is-hidden {
  display: none;
}

.video-play-overlay.is-loading {
  cursor: wait;
}

.video-play-overlay.is-loading .play-icon {
  opacity: 0.6;
}

.video-play-overlay.is-loading .play-label::after {
  content: '（加载中…）';
  margin-left: 4px;
  color: var(--primary-color);
}

.video-play-overlay .play-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  padding-left: 4px;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.45);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.video-play-overlay:hover .play-icon {
  transform: scale(1.06);
}

.video-play-overlay .play-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.video-player {
  width: 100%;
  display: block;
  max-height: 70vh;
  background: #000;
}

.video-player:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.stack-item-thumb {
  width: 100%;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #0d1117;
}

.stack-item-thumb picture {
  display: block;
  width: 100%;
  height: 100%;
}

.stack-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 992px) {
  .hero-split .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-split .hero-content {
    text-align: center;
  }

  .hero-split .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-split .hero-buttons {
    justify-content: center;
  }

  .showcase-info {
    grid-template-columns: 1fr;
    padding-bottom: 60px;
  }
}

@media (max-width: 768px) {
  .stack-layer {
    grid-template-columns: 1fr;
  }

  .stack-layer-label {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .showcase-tabs {
    gap: 8px;
  }

  .showcase-tab {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}
