/* =====================================================================
   TUTORIAL PAGE — Mobile-first (xs < 576px)
   Design references:
   - XS (<576): 1582_129344 design (480px)
   - SM (>=576): 1582_127729 design (576px)
   - MD (>=768): 1582_125350 design (768px)
   - LG (>=992): 1582_123598 design (992px)
   - XL (>=1200): 1582_121912 design (1200px)
   - XXL (>=1400): 1582_120225 design (1400px)
   - XXXL (>=1920): 1556_101513 design (1920px)
   ===================================================================== */

:root {
  --t-blue: #26a7fe;
  --t-green: #02cb64;
  --t-orange: #ff8026;
  --t-t-1: #000000e5;
  --t-t-2: #000000b2;
  --t-t-3: #00000080;
  --t-title: #132a3f;
  --t-card-bg: #26a7fe14;
  --t-card-border: #26a7fe29;
  --t-gradient: linear-gradient(180deg, #26a7fe 0%, #02cb64 100%);
}

.tutorial-page {
  background: #ffffff;
  font-family: Figtree, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.t-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  border-radius: 999px;
  padding: 10px 36px;
  width: 240px;
  min-width: max-content;
  height: 58px;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  /* 背景色交由通用 nb-state-primary 提供 */
}

.t-btn:hover {
  color: #ffffff;
  opacity: 0.9;
}

.t-btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.t-btn-icon-wrap {
  display: flex;
  align-items: center;
  padding: 3px;
  overflow: hidden;
}

/* =====================================================================
   HERO — XS (<576px)
   ===================================================================== */
.t-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 20px;
  overflow: hidden;
}

.t-hero-bg {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  border-radius: 20px;
  background-color: #ffffff;
  padding: 80px 20px;
  overflow: hidden;
  background-image: url(../images/common/review-bg.svg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.t-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 16px;
}

.t-hero-title {
  text-align: center;
  line-height: 72px;
  color: var(--t-title);
  font-size: 48px;
  font-weight: 800;
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere; /* wrap inside the hero card on small screens */
}

.t-hero-breadcrumb {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  /* No side margins on small screens: the old 176px margins inflated the
     flex-column min-content width and pushed the hero title wider than the
     visible card, so it got clipped instead of wrapping. Restored >=768px. */
  margin: 0;
  min-width: 0;
}

.t-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 4px;
  border-radius: 4px;
  padding: 4px;
  height: 32px;
}

.t-breadcrumb-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.t-breadcrumb-text {
  font-size: 18px;
  line-height: 29px;
  color: var(--t-t-3);
}

.t-breadcrumb-arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.t-breadcrumb-active {
  background: var(--t-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  padding: 2px 4px;
  font-size: 18px;
  line-height: 29px;
  color: transparent;
}

.t-hero-breadcrumb a.t-breadcrumb-text:hover {
  background: var(--t-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =====================================================================
   PRODUCT INTRO — XS (<576px)
   ===================================================================== */
.t-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  padding: 100px 20px;
}

.t-intro-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  border: 1px solid var(--t-card-border);
  border-radius: 20px;
  background: var(--t-card-bg);
  padding: 39px;
  row-gap: 40px;
}

.t-intro-img {
  flex-shrink: 0;
  width: 254px;
  height: auto;
  object-fit: cover;
}

.t-intro-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  row-gap: 16px;
}

.t-intro-title {
  flex-shrink: 0;
  align-self: stretch;
  font-size: 36px;
  font-weight: 600;
  color: var(--t-t-1);
  margin: 0;
}

.t-intro-desc {
  flex-shrink: 0;
  align-self: stretch;
  font-size: 18px;
  line-height: 29px;
  font-weight: 400; /* now an h3 — reset UA bold to keep the original look */
  color: var(--t-t-2);
  margin: 0;
}

.t-intro-tips {
  flex-shrink: 0;
  align-self: stretch;
  max-width: 360px;
  font-size: 18px;
  line-height: 29px;
  color: #000000;
  margin: 0;
}

.t-tips-highlight {
  color: var(--t-orange);
}

.t-tips-gray {
  color: var(--t-t-2);
}

.t-tips-underline {
  color: var(--t-t-3);
  text-decoration: underline;
}

/* =====================================================================
   CONTENT WRAPPER (steps + sidebar)
   ===================================================================== */
.t-content-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 20px;
  row-gap: 80px;
}

/* =====================================================================
   TUTORIAL STEPS — XS (<576px)
   ===================================================================== */
.t-steps {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  row-gap: 80px;
}

.t-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  row-gap: 32px;
}

.t-step-heading {
  flex-shrink: 0;
  align-self: stretch;
  font-size: 36px;
  font-weight: 600;
  line-height: 54px;
  color: var(--t-t-1);
  margin: 0;
  overflow-wrap: anywhere; /* long tokens (e.g. MP3/M4A/FLAC/WAV/OGG/AIFF) wrap on small screens */
}

.t-step-title {
  flex-shrink: 0;
  align-self: stretch;
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  color: #000000;
  margin: 0;
}

.t-step-num {
  color: var(--t-blue);
  font-weight: 600;
}

.t-step-text {
  flex-shrink: 0;
  align-self: stretch;
  font-size: 18px;
  line-height: 27px;
  color: var(--t-t-2);
  margin: 0;
}

.t-step-img {
  flex-shrink: 0;
  align-self: stretch;
  width: 100%;
  height: auto; /* aspect-ratio keeps the whole screenshot visible, never cropped */
}

/* Callout box */
.t-step-callout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  border-radius: 20px;
  background: var(--t-card-bg);
  padding: 24px;
  row-gap: 20px;
}

.t-callout-title {
  flex-shrink: 0;
  align-self: stretch;
  font-size: 18px;
  font-weight: 600;
  line-height: 27px;
  color: var(--t-t-1);
  margin: 0;
}

.t-callout-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  row-gap: 10px;
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.t-callout-item {
  font-size: 18px;
  line-height: 27px;
  color: #000000;
}

.t-callout-item::marker {
  color: var(--t-blue);
}

.t-callout-bold {
  font-weight: 700;
  color: var(--t-t-2);
}

.t-callout-link {
  color: var(--t-blue);
  text-decoration: underline;
}

.t-callout-learn {
  color: var(--t-blue);
}

.t-callout-link-bold {
  font-weight: 700;
  color: var(--t-blue);
}

/* Video card */
.t-video-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  border: 1px solid #d6d6d6;
  border-radius: 20px;
  overflow: hidden;
}

.t-video-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  background: #f5f5f5;
  padding: 24px;
  row-gap: 24px;
}

.t-video-title {
  flex-shrink: 0;
  align-self: stretch;
  font-size: 24px;
  font-weight: 600;
  line-height: 43px;
  color: var(--t-t-1);
  margin: 0;
}

.t-video-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  padding: 24px;
}

.t-video-placeholder {
  flex-shrink: 0;
  align-self: stretch;
  background: #d9d9d9;
  height: auto;
}

/* iframe 显示高度参考 seo-column: 统一 315px; 宽度沿用内联的 100% 铺满 */
.t-video-placeholder iframe {
  display: block;
  width: 100%;
  height: 315px;
}

/* =====================================================================
   SIDEBAR — XS/SM/MD/LG: hidden; XL+: visible
   ===================================================================== */
.t-sidebar {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 0;
  width: 100%;
}

/* Sidebar video */
.t-sidebar-video {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  border: 1px solid #d6d6d6;
  border-radius: 20px;
  overflow: hidden;
}

.t-sidebar-video-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  background: #f5f5f5;
  padding: 24px;
}

.t-sidebar-video-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 43px;
  color: var(--t-t-1);
  margin: 0;
}

.t-sidebar-video-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  padding: 24px;
  row-gap: 10px;
}

.t-sidebar-video-img {
  align-self: stretch;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 侧栏 iframe 原内联 height:auto 会塌成 150px 默认高, 改为 16/9 等比高度（同 seo-column 处理） */
.t-sidebar-video-body iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
}

.t-sidebar-video-info {
  display: flex;
  align-items: center;
  column-gap: 10px;
}

.t-sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.t-sidebar-video-meta {
  display: flex;
  flex-direction: column;
}

.t-sidebar-channel {
  font-size: 14px;
  font-weight: 600;
  color: var(--t-t-1);
  margin: 0;
}

.t-sidebar-subs {
  font-size: 12px;
  color: var(--t-t-3);
  margin: 0;
}

/* Sidebar product */
.t-sidebar-product {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  border: 1px solid var(--t-card-border);
  border-radius: 20px;
  background-image: url(../images/tutorial/tutorial-sidebar-product.svg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 24px;
  row-gap: 16px;
  margin-top: 20px;
}

.t-sidebar-product-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: auto;
}

.t-sidebar-product-info {
  display: flex;
  flex-direction: column;
  row-gap: 4px;
}

.t-sidebar-product-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--t-t-1);
  margin: 0;
}

.t-sidebar-product-desc {
  font-size: 14px;
  line-height: 20px;
  color: var(--t-t-2);
  margin: 0;
}

.t-sidebar-product-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  row-gap: 10px;
}

.t-btn-sm {
  padding: 8px 24px;
  height: 44px;
  font-size: 16px;
}

.t-btn-outline {
  background: transparent;
  border: 1px solid var(--t-blue);
  color: var(--t-blue);
}

.t-btn-outline:hover {
  color: var(--t-blue);
  opacity: 0.8;
}

/* Sidebar FAQ */
.t-sidebar-faq {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  border: 1px solid #d6d6d6;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 20px;
}

.t-sidebar-faq-header {
  display: flex;
  align-items: center;
  align-self: stretch;
  background: #f5f5f5;
  padding: 16px 24px;
}

.t-sidebar-faq-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--t-t-1);
  margin: 0;
}

.t-sidebar-faq-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  padding: 24px;
  padding-left: 44px;
  row-gap: 12px;
  list-style: disc;
  margin: 0;
}

.t-sidebar-faq-item {
  font-size: 18px;
  line-height: 32px;
  color: #00000099;
  margin: 0;
  cursor: pointer;
}



.t-sidebar-faq-item:hover {
  color: var(--t-blue);
}

/* =====================================================================
   RECOMMEND — XS (<576px)
   ===================================================================== */
.t-recommend {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  padding: 100px 20px;
  row-gap: 40px;
}

.t-recommend-title {
  flex-shrink: 0;
  align-self: stretch;
  text-align: center;
  font-size: 48px;
  font-weight: 700;
  line-height: 67px;
  color: var(--t-t-1);
  margin: 0;
}

.t-recommend-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  row-gap: 20px;
}

.t-rec-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  border: 1px solid #d6d6d6;
  border-radius: 40px;
  overflow: hidden;
}

.t-rec-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  padding: 60px 40px 40px;
  row-gap: 30px;
}

.t-rec-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  row-gap: 10px;
}

.t-rec-icon {
  flex-shrink: 0;
  border-radius: 50%;
  width: 80px;
  height: 80px;
}

.t-rec-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
}

.t-rec-name {
  flex-shrink: 0;
  align-self: stretch;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  line-height: 34px;
  color: var(--t-t-1);
  margin: 0;
}

.t-rec-desc-wrap {
  display: flex;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  padding: 10px;
}

.t-rec-desc {
  flex-grow: 1;
  max-width: 340px;
  text-align: center;
  font-size: 16px;
  line-height: 29px;
  color: var(--t-t-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.t-rec-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  padding: 0 10px;
}

.t-rec-price {
  display: flex;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  column-gap: 8px;
  background: #26a7fe0a;
  height: 80px;
}

.t-rec-price-label {
  font-size: 24px;
  font-weight: 700;
  line-height: 34px;
  color: var(--t-t-1);
}

.t-rec-price-value {
  background: linear-gradient(180deg, #f93845 0%, #fd708a 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 24px;
  font-weight: 700;
  line-height: 34px;
  color: transparent;
}

/* =====================================================================
   SM (>=576px)
   ===================================================================== */
@media (min-width: 576px) {
  .t-hero-title {
    font-size: 48px;
  }
}

/* =====================================================================
   MD (>=768px)
   ===================================================================== */
@media (min-width: 768px) {
  .t-intro-desc,
  .t-intro-tips {
    max-width: 100%;
  }
}

/* =====================================================================
   LG (>=992px)
   ===================================================================== */
@media (min-width: 992px) {
 
}

/* =====================================================================
   XL (>=1200px) — Sidebar appears, horizontal product intro
   ===================================================================== */
@media (min-width: 1200px) {
  /* Product intro goes horizontal */
  .t-intro {
    padding: 100px 40px;
  }

  .t-intro-card {
    flex-direction: row;
    align-items: flex-start;
    padding: 60px;
    column-gap: 60px;
  }

  /* Content wrapper: steps + sidebar */
  .t-content-wrap {
    flex-direction: row;
    align-items: flex-start;
    padding: 0 40px;
    column-gap: 40px;
  }

  .t-steps {
    flex: 1;
  }

  /* Show sidebar */
  .t-sidebar {
    display: flex;
    flex-shrink: 0;
    width: 300px;
  }

  /* Recommend grid: 3 columns */
  .t-recommend {
    padding: 100px 40px;
  }

  .t-recommend-grid {
    flex-direction: row;
    column-gap: 20px;
  }

  .t-rec-card {
    flex: 1;
  }
}

/* =====================================================================
   XXL (>=1400px)
   ===================================================================== */
@media (min-width: 1400px) {
  .t-intro {
    padding: 100px 60px;
  }

  .t-content-wrap {
    padding: 0 60px;
    column-gap: 60px;
  }

  .t-sidebar {
    width: 340px;
  }

  .t-recommend {
    padding: 100px 60px;
  }
}

/* =====================================================================
   XXXL (>=1920px)
   ===================================================================== */
@media (min-width: 1600px) {
  .t-intro {
    padding: 100px 240px;
  }

  .t-content-wrap {
    padding: 0 240px;
  }

  .t-recommend {
    padding: 100px 240px;
  }
}

@media (min-width: 1920px) {
  .t-hero-bg{
    padding: 80px 220px;
  }
  .t-intro {
    padding: 100px 320px;
  }

  .t-intro-card {
    padding: 80px;
    column-gap: 80px;
  }
  .t-content-wrap {
    padding: 0 320px;
    column-gap: 80px;
  }

  .t-sidebar {
    width: 360px;
  }

  .t-recommend {
    padding: 100px 320px;
  }
}

/* Mobile (<420px): hero title font-size 48px */
@media (max-width: 420px) {
  .t-hero-title {
    font-size: 48px;
  }
}

/* ≤768: 视频改为 16/9 等比高度（同 seo-column 处理） */
@media (max-width: 768px) {
  .t-video-placeholder iframe {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
