﻿/* 内页内容区（帮助 / 文章 / 法律页） */
:root {
  --primary: #6c63ff;
  --primary-hover: #857dff;
  --primary-press: #554dff;
  --primary-light: #eeecff;
  --ink: #0F172A;
  --text: #0F172A;
  --muted: #64748B;
  --bg: #F8F7FF;
  --card: #FFFFFF;
  --border: #E2E8F0;
  /* 与顶栏/页脚 Bootstrap .container（≥1200px = 1200px）对齐，避免内页看起来往里收 */
  --wrap: 1200px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
  box-sizing: border-box;
}
/* 与 Bootstrap .container 各断点同宽，避免内页比顶栏更窄或更宽 */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .wrap { max-width: 960px; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .wrap { max-width: 720px; }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  .wrap { max-width: 540px; }
}
.section { padding: 40px 0 80px; }
.section.alt { background: #fff; }
.section-title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}
.section-desc {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 640px;
}
.sec-head { text-align: center; margin-bottom: 8px; }
.sec-head .section-desc { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.err { color: #B91C1C; }
.ok { color: #15803D; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px;
  margin: 16px 0;
}
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
 
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn.primary { background: var(--primary); color: #fff; }
.btn.soft { background: var(--primary-light); color: var(--primary); }
.btn.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.legal-page { width: 100%; max-width: none; margin: 0; }
.legal-body h3 { margin: 22px 0 10px; font-size: 17px; }
.legal-body p,
.legal-body li { font-size: 15px; line-height: 1.75; color: #334155; }
.legal-body ul { padding-left: 1.2em; margin: 0 0 12px; }
.page-body { font-size: 15px; line-height: 1.75; color: #334155; }
.page-body img { max-width: 100%; height: auto; }
.contact-box {
  background: var(--primary-light);
  border: 1px solid #ddd8ff;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.help-hub {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.help-hub-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}
.help-hub-card:hover {
  border-color: #c9c4ff;
  box-shadow: 0 10px 28px rgba(108, 99, 255, 0.12);
  color: inherit;
}
.help-hub-card h2 { margin: 0 0 8px; font-size: 18px; }
.help-hub-card p { margin: 0; color: var(--muted); font-size: 15px; }
.help-hub-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.help-hub-card .link { display: inline-block; margin-top: 12px; color: var(--primary); font-weight: 700; font-size: 14px; }
.help-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.help-subnav a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: #334155;
  text-decoration: none;
}
.help-subnav a:hover,
.help-subnav a.active {
  color: var(--primary);
  border-color: #c9c4ff;
  background: var(--primary-light);
}
.article-list a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.article-list a:hover { color: var(--primary); }

/* 手册类：纯标题列表 */
.help-title-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.help-title-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.help-title-item:last-child { border-bottom: none; }
.help-title-item:hover {
  background: #f8fafc;
  color: var(--primary);
}
.help-title-text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}
.help-title-date {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* 动态文章类：左图右文；无图则纯文字左对齐 */
.help-media-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.help-media-card {
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.help-media-card:hover {
  border-color: #c9c4ff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.help-media-thumb {
  flex: 0 0 168px;
  width: 168px;
  height: 112px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef2ff;
}
.help-media-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.help-media-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}
.help-media-card.is-text-only {
  padding: 18px 20px;
}
.help-media-card.is-text-only .help-media-body {
  justify-content: flex-start;
}
.help-media-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: inherit;
}
.help-media-card:hover .help-media-title { color: var(--primary); }
.help-media-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.help-media-date {
  margin-top: 10px;
  font-size: 13px;
  color: #94a3b8;
}
@media (max-width: 640px) {
  .help-media-card:not(.is-text-only) {
    flex-direction: column;
    gap: 12px;
  }
  .help-media-thumb {
    flex: none;
    width: 100%;
    height: 160px;
  }
  .help-title-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

.article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  /* 顶栏 position:absolute，无 Banner 时需自留顶距，避免与 header 重叠 */
  /* 宽度只靠 .wrap 的 max-width，切勿再写 max-width:none（会撑满全屏） */
  margin: 0 auto 60px;
  padding-top: calc(80px + 28px);
  align-items: start;
}
.article-side {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow: auto;
}
.article-side-title {
  padding: 12px 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.article-cat { padding: 8px 0; border-bottom: 1px solid #F1F5F9; }
.article-cat.sub { padding-left: 10px; border-bottom: none; }
.article-cat-name {
  display: block;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}
.article-cat-name.on,
.article-cat-name:hover { color: var(--primary); }
.article-cat ul {
  list-style: none;
  margin: 0;
  padding: 0 8px 6px 14px;
}
.article-cat li a {
  display: block;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
}
.article-cat li a:hover,
.article-cat li.active a {
  background: var(--primary-light);
  color: var(--primary);
}
.article-body {
  background: #fff;
  padding: 28px 32px 36px;
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.article-body > h1,
.manual-main > h1 {
  font-size: 28px !important;
  line-height: 1.35;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.article-body > .muted,
.manual-main > .muted {
  font-size: 13px;
  color: #94a3b8;
  margin: 0 0 20px;
}
.article-body > .muted a {
  color: #64748b;
  text-decoration: none;
}
.article-body > .muted a:hover { color: var(--primary); }
.article-body .lead {
  margin: 0 0 22px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #6c63ff;
}
.article-body .lead b { font-weight: 600; color: #0f172a; }
.article-body .content,
.manual-main .content {
  font-size: 15px;
  line-height: 1.85;
  color: #1e293b;
}
.article-body .content > *:first-child,
.manual-main .content > *:first-child { margin-top: 0; }
.article-body .content p,
.manual-main .content p {
  margin: 0 0 1.05em;
}
.article-body .content h2,
.manual-main .content h2 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: #0f172a;
  margin: 1.6em 0 0.65em;
}
.article-body .content h3,
.manual-main .content h3 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: #0f172a;
  margin: 1.4em 0 0.55em;
}
.article-body .content h4,
.manual-main .content h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 1.2em 0 0.45em;
}
.article-body .content ul,
.article-body .content ol,
.manual-main .content ul,
.manual-main .content ol {
  margin: 0 0 1.05em;
  padding-left: 1.35em;
}
.article-body .content li,
.manual-main .content li {
  margin: 0 0 0.35em;
}
.article-body .content strong,
.article-body .content b,
.manual-main .content strong,
.manual-main .content b {
  font-weight: 700;
  color: #0f172a;
}
.article-body .content a,
.manual-main .content a {
  color: #6c63ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body .content img,
.manual-main .content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border-radius: 8px;
}
.article-body .content blockquote,
.manual-main .content blockquote {
  margin: 0 0 1.1em;
  padding: 10px 16px;
  border-left: 3px solid #c7d2fe;
  background: #f8fafc;
  color: #475569;
}
/* 内容页底部 FAQ（参考趣买票：details 折叠） */
.article-faq {
  margin-top: 40px;
  padding-top: 8px;
}
.article-faq > h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}
.faq-stack {
  display: grid;
  gap: 12px;
}
.faq-stack details {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 20px;
  background: #fff;
}
.faq-stack summary {
  list-style: none;
  min-height: 56px;
  padding: 16px 28px 16px 0;
  cursor: pointer;
  color: #0f172a;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.45;
  position: relative;
}
.faq-stack summary::-webkit-details-marker { display: none; }
.faq-stack summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  text-align: center;
  color: #6c63ff;
  font-size: 18px;
  font-weight: 700;
}
.faq-stack details[open] summary::after { content: "−"; }
.faq-stack details p {
  margin: 0 0 16px;
  padding: 0 0 4px;
  font-size: 15px;
  line-height: 1.75;
  color: #475569;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

/* 内容页底部 CTA */
.article-cta {
  margin-top: 36px;
  padding: 28px 30px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(130deg, #4f46e5 0%, #6c63ff 55%, #7c74ff 100%);
  box-shadow: 0 12px 28px rgba(108, 99, 255, 0.22);
}
.article-cta h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}
.article-cta p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}
.article-cta .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 16px;
  padding: 9px 20px;
  border-radius: 10px;
  color: #4f46e5;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.article-cta .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  color: #4338ca;
}
@media (max-width: 560px) {
  .article-cta { padding: 24px 20px; }
  .article-cta .button { width: 100%; }
}

.article-pager {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.article-pager-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}
.article-pager-item:hover {
  border-color: #c9c4ff;
  background: #f5f3ff;
}
.article-pager-item small { font-size: 12px; color: var(--muted); }
.article-pager-item span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.article-pager-item:hover span { color: var(--primary); }

.article-side,
.manual-side {
  border-radius: 12px;
  overflow: hidden;
}
.article-side-title,
.manual-side-title {
  font-size: 14px;
  letter-spacing: 0.02em;
}
.article-cat li a,
.manual-cat li a {
  font-size: 14px;
  line-height: 1.45;
  border-radius: 6px;
}

.manual-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  margin: 0 auto 60px;
  /* 左右边距交给 .wrap，勿再叠加 padding / 勿写 max-width:none */
  padding-top: calc(80px + 28px);
  align-items: start;
}
@media (max-width: 767px) {
  .article-layout { padding-top: calc(70px + 24px); }
  .manual-layout { padding-top: calc(70px + 24px); }
}
.manual-side {
  background: #fff;
  border: 1px solid var(--border);
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  border-radius: 6px;
}
.manual-side-title {
  padding: 12px 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.manual-cat { padding: 8px 0; border-bottom: 1px solid var(--border); }
.manual-cat-name {
  display: block;
  padding: 4px 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.manual-cat ul { list-style: none; margin: 4px 0 0; padding: 0; }
.manual-cat li a {
  display: block;
  padding: 6px 14px 6px 22px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.manual-cat li.active a,
.manual-cat li a:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.manual-main { margin: 0; }

@media (max-width: 900px) {
  .help-hub { grid-template-columns: 1fr; }
  .article-layout,
  .manual-layout { grid-template-columns: 1fr; }
  .article-side,
  .manual-side { position: static; max-height: none; }
}

/* 软件展示详情页：宽度跟随外层 .wrap */
.showcase-detail {
  width: 100%;
}
.showcase-detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.showcase-detail-cover {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}
.showcase-detail-cover img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.showcase-detail-main {
  padding: 28px 32px 36px;
}
.showcase-detail-main > h1 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
  color: #0f172a;
}
.showcase-detail-summary {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.7;
  color: #475569;
}
.showcase-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}
.showcase-detail-body {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.85;
  color: #1e293b;
}
.showcase-detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0;
}
@media (max-width: 640px) {
  .showcase-detail-main { padding: 22px 18px 28px; }
  .showcase-detail-actions .btn { flex: 1 1 auto; text-align: center; }
}

/* 列表分页 */
.geo-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: 28px;
  padding-top: 8px;
}
.geo-pagination-meta {
  font-size: 13px;
  color: var(--muted);
}
.geo-pagination-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.geo-pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
}
a.geo-pagination-btn:hover {
  border-color: #c9c4ff;
  color: var(--primary);
  background: var(--primary-light);
}
.geo-pagination-btn.is-current {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}
