/* ===== SUB-PAGE LAYOUT ===== */
.page-main {
  padding-top: 92px;
  min-height: 100vh;
}

.page-hero {
  padding: 48px 0 24px;
  text-align: center;
}

.page-hero-title {
  font-size: 55px;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== PRODUCTS PAGE ===== */
.products-featured {
  padding: 40px 0 20px;
}

.products-list {
  padding: 20px 0 100px;
}

.products-list .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-showcase {
  margin-bottom: 120px;
}

.product-showcase:last-child {
  margin-bottom: 0;
}

/* 外圈：内层 800×300，四边留白形成边框环 */
.product-showcase-frame {
  width: 816px;
  max-width: 100%;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  transition: box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.product-showcase:hover .product-showcase-frame {
  border: 1px solid transparent;
  background:
    transparent padding-box,
    linear-gradient(135deg, #40CEE4 0%, #5B9DFF 18%, #8B7CF6 42%, #C3A0F9 65%, #E879F9 82%, #40CEE4 100%) border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    0 0 18px rgba(64, 206, 228, 0.35),
    0 0 36px rgba(161, 149, 255, 0.22),
    0 4px 24px rgba(64, 206, 228, 0.18);
}

.product-showcase-inner {
  position: relative;
  width: 800px;
  height: 300px;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 20px;
  background: var(--product-bg);
}

.product-showcase-content {
  position: relative;
  z-index: 2;
  width: 38%;
  height: 100%;
  padding: 28px 24px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.product-showcase-content h2 {
  font-size: 32px;
  font-weight: 800;
  color: #141943;
  margin-bottom: 12px;
  line-height: 1.15;
}

.product-showcase-content p {
  font-size: 13px;
  color: rgba(20, 25, 67, 0.72);
  line-height: 1.65;
  margin-bottom: 16px;
  white-space: pre-line;
}

.product-showcase-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 22px;
  border-radius: 999px;
  background: var(--product-btn);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.3s, transform 0.2s;
  width: fit-content;
}

.product-showcase-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.product-showcase-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.product-mockup-main,
.product-mockup-sub {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(20, 25, 67, 0.16));
}

.product-mockup-main {
  left: var(--main-left);
  top: var(--main-top);
  width: var(--main-w);
  height: var(--main-h);
  z-index: 1;
}

.product-mockup-sub {
  left: var(--sub-left);
  top: var(--sub-top);
  width: var(--sub-w);
  height: var(--sub-h);
  z-index: 2;
}

/* ===== SKILLS PAGE ===== */
.skills-hero {
  padding: 48px 0 0;
  text-align: center;
}

.skills-hero-title {
  font-size: 55px;
  font-weight: 800;
  margin-bottom: 12px;
}

.skills-hero-desc {
  font-size: 32px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.skills-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto 120px;
}

.skills-stat-card {
  width: auto;
  min-width: 0;
  height: 120px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.skills-stat-label {
  font-size: 16px;
  color: var(--text-white);
}

.skills-stat-card strong {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.1;
}

.skills-block {
  padding: 48px 0 64px;
  scroll-margin-top: 108px;
}

#assistants.skills-block {
  padding-top: 0;
}

.skills-block--compact {
  padding-top: 24px;
  padding-bottom: 100px;
}

.skills-section-title {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 32px;
}

.skills-section-tabs {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.skills-section-tabs .tab-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 24px;
  font-weight: 400;
  padding: 0;
  cursor: pointer;
  transition: color 0.25s ease;
}

.skills-section-tabs .tab-btn:hover,
.skills-section-tabs .tab-btn.active {
  color: var(--text-white);
}

.assistants-grid {
  display: grid;
  grid-template-columns: repeat(4, 280px);
  gap: 27px;
  justify-content: center;
  margin-bottom: 48px;
}

.assistant-card {
  width: 280px;
  min-height: 276px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.assistant-card:hover {
  border: 1px solid transparent;
  background:
    rgba(255, 255, 255, 0.1) padding-box,
    linear-gradient(135deg, #40CEE4 0%, #5B9DFF 18%, #8B7CF6 42%, #C3A0F9 65%, #E879F9 82%, #40CEE4 100%) border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    0 0 18px rgba(64, 206, 228, 0.35),
    0 0 36px rgba(161, 149, 255, 0.22);
}

.assistant-card-avatar {
  width: 88px;
  height: 88px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.assistant-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.assistant-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.assistant-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  text-align: left;
}

.skills-compact-grid {
  display: grid;
  grid-template-columns: repeat(4, 280px);
  gap: 27px;
  justify-content: center;
  margin-bottom: 48px;
}

.skill-compact-card {
  width: 280px;
  min-height: 98px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  padding: 14px 16px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.skill-compact-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.skill-compact-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.skill-compact-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.skill-compact-body {
  min-width: 0;
}

.skill-compact-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.skill-compact-head h3 {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-compact-body p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.skills-cta-wrap {
  text-align: center;
}

.skills-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 48px;
  padding: 0;
  font-size: 16px;
  border-radius: var(--radius-lg);
  box-sizing: border-box;
}

.skills-cta--wide {
  width: 210px;
  height: 48px;
  padding: 0;
}

.assistant-card.hidden,
.skill-compact-card.hidden {
  display: none;
}

/* ===== NEWS PAGE ===== */
.news-hero {
  padding: 48px 0 0;
  text-align: center;
}

.news-hero-title {
  font-size: 55px;
  font-weight: 800;
  margin-bottom: 12px;
}

.news-hero-desc {
  font-size: 32px;
  color: var(--text-muted);
  margin-bottom: 120px;
}

.news-section {
  padding: 0 0 100px;
}

.news-section-title {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  margin-bottom: 56px;
}

.news-card {
  width: 100%;
  min-height: 360px;
  border-radius: 16px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.14) 100%) padding-box,
    linear-gradient(145deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 100%) border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.news-card-img {
  width: 100%;
  height: 150px;
  flex-shrink: 0;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 14px;
}

.news-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-body p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-card-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: auto;
}

.news-card--hidden {
  display: none;
}

.news-more {
  text-align: center;
}

.news-more--hidden {
  display: none;
}

.news-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 48px;
  padding: 0 48px;
  font-size: 16px;
  border-radius: var(--radius-lg);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.news-detail-hero {
  padding: 32px 0 32px;
}

.news-detail-hero .container {
  max-width: 840px;
}

.news-detail-meta {
  display: flex;
  gap: 16px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  margin-bottom: 16px;
}

.news-detail-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 20px;
}

.news-detail-summary {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  margin-bottom: 32px;
}

.news-detail-cover {
  border-radius: 16px;
  overflow: hidden;
}

.news-detail-cover img {
  width: 100%;
  display: block;
}

.news-detail-content {
  max-width: 840px;
  margin: 0 auto 80px;
  padding: 0 40px;
}

.news-detail-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.9;
  margin-bottom: 18px;
}

.news-detail-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 24px 0;
  display: block;
}

.news-detail-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}

.news-detail-back:hover {
  color: #fff;
}

.news-detail-source {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.news-detail-source a {
  color: #c3a0f9;
  word-break: break-all;
}

.news-detail-source a:hover {
  color: #fff;
}

/* ===== HELP PAGE ===== */
.help-hero {
  padding-bottom: 32px;
}

.help-section {
  padding: 0 40px 100px;
}

.help-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.help-sidebar {
  position: sticky;
  top: 108px;
  align-self: start;
  max-height: calc(100vh - 124px);
}

.help-sidebar-inner {
  max-height: calc(100vh - 124px);
  overflow: auto;
  padding: 20px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.help-sidebar-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.help-toc-list,
.help-toc-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.help-toc-sublist {
  margin: 6px 0 10px 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.help-toc-link {
  display: block;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.2s ease, background 0.2s ease;
}

.help-toc-item--l2 > .help-toc-link {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.help-toc-link:hover:not(.is-active) {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.help-toc-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.help-toc-link:focus {
  outline: none;
}

.help-toc-link:focus-visible:not(.is-active) {
  outline: 2px solid rgba(64, 206, 228, 0.45);
  outline-offset: 1px;
}

.help-main {
  min-width: 0;
}

.help-article {
  padding: 28px 32px 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.help-article h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  margin: 40px 0 16px;
  scroll-margin-top: 108px;
}

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

.help-article h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  margin: 28px 0 12px;
  scroll-margin-top: 108px;
}

.help-article h4 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  margin: 20px 0 10px;
  scroll-margin-top: 108px;
}

.help-article p {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 12px;
}

.help-article p:last-child {
  margin-bottom: 0;
}

.help-article a {
  color: #c3a0f9;
  word-break: break-all;
}

.help-article a:hover {
  color: #fff;
}

.help-tip {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(64, 206, 228, 0.1);
  border: 1px solid rgba(64, 206, 228, 0.25);
}

.help-callout {
  margin: 16px 0 20px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.help-callout p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
}

.help-table-wrap {
  margin: 16px 0 24px;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

.help-table th,
.help-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.help-table th {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.help-table td {
  color: rgba(255, 255, 255, 0.78);
}

.help-table tbody tr:last-child td {
  border-bottom: none;
}

.help-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.help-table-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.help-table-wrap--nested {
  margin: 8px 0 0;
  border: none;
}

.help-figure {
  margin: 16px 0 20px;
}

.help-figure img {
  max-width: 100%;
  border-radius: 12px;
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .product-showcase-frame {
    width: 100%;
    padding: 6px;
    border-radius: 20px;
  }

  .product-showcase-inner {
    width: 100%;
    height: auto;
    min-height: 300px;
  }

  .product-showcase-content {
    width: 100%;
    height: auto;
    padding: 24px;
    text-align: center;
    align-items: center;
  }

  .product-showcase-content h2 {
    font-size: 28px;
  }

  .product-showcase-visual {
    position: relative;
    min-height: 220px;
    margin-top: 12px;
  }

  .product-mockup-main,
  .product-mockup-sub {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    max-width: 90%;
    max-height: 200px;
    margin: 0 auto;
    display: block;
  }

  .product-mockup-sub {
    margin-top: -40px;
  }

  .assistants-grid,
  .skills-compact-grid {
    grid-template-columns: repeat(2, 280px);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero-title {
    font-size: 36px;
  }

  .product-showcase-content h2 {
    font-size: 24px;
  }

  .product-showcase-content p {
    font-size: 12px;
  }

  .product-showcase {
    margin-bottom: 60px;
  }

  .skills-hero-title,
  .skills-section-title {
    font-size: 36px;
  }

  .skills-section-tabs .tab-btn {
    font-size: 18px;
  }

  .skills-stats-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    max-width: none;
    padding-bottom: 4px;
  }

  .skills-stat-card {
    width: 220px;
    min-width: 220px;
    height: 100px;
    flex-shrink: 0;
  }

  .help-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
  }

  .skills-stat-card strong {
    font-size: 28px;
  }

  .assistants-grid,
  .skills-compact-grid {
    grid-template-columns: 1fr;
  }

  .assistant-card,
  .skill-compact-card {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .news-hero-title,
  .news-section-title {
    font-size: 36px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .news-more-btn {
    font-size: 16px;
    height: 48px;
    padding: 0 36px;
  }

  .help-layout {
    grid-template-columns: 1fr;
  }

  .help-sidebar {
    position: static;
    max-height: none;
  }

  .help-sidebar-inner {
    max-height: none;
  }

  .help-article {
    padding: 20px 18px 28px;
  }

  .help-article h2 {
    font-size: 24px;
  }

  .help-article h3 {
    font-size: 20px;
  }
}
