/* PC 端法律条款/隐私协议页面样式 */
.legal-container {
  max-width: 1200px;
  margin: 0 auto 6rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2.8rem;
  line-height: 1.8;
}
.legal-container h1 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.3rem;
}
.legal-container .update-date {
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 2rem;
}
.legal-container h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}
.legal-container p {
  margin-bottom: 0.8rem;
  color: #444;
  text-align: justify;
}
.legal-container ul {
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}
.legal-container ul li {
  margin-bottom: 0.4rem;
  color: #444;
}
@media (max-width: 576px) {
  .legal-container {
    padding: 1.5rem 1.2rem;
    margin: 0 0.5rem 6rem;
  }
  .legal-container h1 {
    font-size: 1.5rem;
  }
}
/* ============ 导航栏容器（与首页三栏等宽对齐） ============ */
.nav-container {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  padding: 0.5rem;
  display: grid;
  grid-template-columns: 16rem 1fr 16rem;
  gap: 0.5rem;
  align-items: center;
}
/* 导航链接悬浮下划线（bg-success 颜色） */
.nav-hover-underline {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--bs-success);
  text-decoration-thickness: 2px;
  color: var(--bs-success);
}
.nav-hover-underline:hover {
  color: RGBA(20, 108, 67, var(--bs-link-opacity, 1));
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--bs-teal);
  text-decoration-thickness: 2px;
}
/* ============ 首页布局（PC 三栏） ============ */
#home_app {
  min-height: calc(100vh - 8rem);
}
.home-layout {
  display: grid;
  grid-template-columns: 16rem 1fr 16rem;
  gap: 0.5rem;
  padding: 0.5rem;
  max-width: 1600px;
  margin: 0 auto;
}
/* 左侧栏 */
.home-left,
.home-right {
  background: #fff;
  border-radius: 0.3rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 0.5rem;
  position: sticky;
  top: 5.7rem;
  align-self: start;
}
.home-search {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}
.home-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}
.home-categories > li {
  margin-bottom: 0.2rem;
}
.home-cat-title {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  user-select: none;
  color: var(--bs-success);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 0.2rem;
}
.home-cat-title:hover {
  background: rgba(25, 135, 84, 0.08);
}
.home-cat-title.collapsed + .home-tools {
  display: none;
}
.home-tools {
  list-style: none;
  padding-left: 0.5rem;
  margin: 0.2rem 0;
}
.home-tools li {
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 0.2rem;
}
.home-tools li:hover {
  background: rgba(25, 135, 84, 0.08);
}
.home-tools li.active {
  background: rgba(25, 135, 84, 0.15);
  color: var(--bs-success);
  font-weight: 600;
}
.home-tools li .bi-star {
  cursor: pointer;
  margin-left: auto;
}
.home-tools li .bi-star-fill {
  cursor: pointer;
  margin-left: auto;
}
/* 主工作区 */
.home-main-workbench {
  background: #fff;
  border-radius: 0.3rem;
  padding: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.home-result,
.home-input {
  border: 1px solid #dee2e6;
  border-radius: 0.3rem;
  padding: 0.5rem;
  margin-top: 0.5rem;
}
.home-result-header,
.home-section-title {
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}
.home-result-body {
  min-height: 8rem;
  border: 1px solid #dee2e6;
  border-radius: 0.2rem;
  padding: 0.5rem;
  background: #fff;
  font-size: 1.05rem;
  color: #1a1a2e;
  word-break: break-word;
  white-space: pre-wrap;
  overflow-x: auto;
}
.home-result-body.empty {
  background: #fafafa;
}
.home-result-loading {
  display: flex;
  align-items: center;
  color: var(--bs-success);
  font-weight: 500;
}
.home-result-text {
  margin: 0;
  font-family: inherit;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 20rem;
}
.home-result-placeholder {
  color: #adb5bd;
  text-align: left;
}
.home-input textarea {
  width: 100%;
  min-height: 6rem;
  resize: vertical;
  border: 1px solid #dee2e6;
  border-radius: 0.2rem;
  padding: 0.3rem;
  font-family: inherit;
  font-size: 1.05rem;
  background: #fafafa;
}
.home-result-actions,
.home-input-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.3rem;
  margin-top: 0.3rem;
  align-items: start;
}
.home-tags {
  display: flex;
  flex-wrap: wrap;
}
.home-tags .badge {
  padding: 0.3rem 0.6rem;
  font-weight: 500;
  cursor: pointer;
}
.home-placeholder {
  height: 7rem;
  background: #f8f9fa;
  border: 1px dashed #ced4da;
  border-radius: 0.3rem;
}
.home-recommended ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.home-recommended li {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.home-recommended li:hover {
  background: rgba(25, 135, 84, 0.05);
}
.home-recommended li.active {
  background: rgba(25, 135, 84, 0.15);
  color: var(--bs-success);
  font-weight: 600;
}
.home-rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #adb5bd;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.home-rank-num.rank-1 {
  background: #dc3545;
}
.home-rank-num.rank-2 {
  background: #fd7e14;
}
.home-rank-num.rank-3 {
  background: #ffc107;
  color: #1a1a2e;
}
.home-ad {
  min-height: 12rem;
  background: #f8f9fa;
  border: 1px dashed #ced4da;
  border-radius: 0.3rem;
  margin-top: 0.3rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 1.05rem;
}
/* ============ 文本对比（Diff）表格样式 ============ */
.diff-table-wrapper {
  border: 1px solid #dee2e6;
  border-radius: 0.3rem;
  overflow-x: auto;
  max-height: 30rem;
  overflow-y: auto;
}
.diff-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}
.diff-cell {
  padding: 2px 6px;
  white-space: pre-wrap;
  word-break: break-all;
  vertical-align: top;
}
.diff-same {
  background: #fff;
  color: #333;
}
.diff-insert {
  background: #e6ffed;
  color: #1a7f37;
}
.diff-delete {
  background: #ffeef0;
  color: #cb2431;
}
.diff-table tr:hover .diff-cell {
  background-color: #f6f8fa;
}
/* loading 旋转 */
.spin {
  display: inline-block;
  animation: spin-animation 1s linear infinite;
}
@keyframes spin-animation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/* ============ 使用指南页面样式 ============ */
.guide-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}
.guide-content p {
  margin-bottom: 0.8rem;
  color: #444;
  text-align: justify;
}
.guide-content ul {
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}
.guide-content ul li {
  margin-bottom: 0.4rem;
  color: #444;
}
.guide-content pre {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.3rem;
  padding: 1rem;
  font-size: 0.95rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.guide-content code {
  background: #f0f0f0;
  padding: 0.1rem 0.3rem;
  border-radius: 0.2rem;
  font-size: 0.9em;
  color: #198754;
}
.guide-content pre code {
  background: none;
  padding: 0;
  color: #333;
}
.guide-content strong {
  color: #1a1a2e;
}
@media (max-width: 576px) {
  .guide-content h3 {
    font-size: 1.2rem;
  }
}
/* ============ 首页底部 SEO 区块 ============ */
.home-seo {
  margin-top: 0.5rem;
  background: #fff;
  border-radius: 0.3rem;
  padding: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.home-seo-card {
  background: #fff;
  border-radius: 0.3rem;
  padding: 1rem 0;
  line-height: 1.8;
}
.home-seo-card h2 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #1a1a2e;
}
.home-seo-card h3 {
  font-size: 1.05rem;
  color: #1a1a2e;
  margin-top: 1.2rem;
}
.home-seo-intro {
  color: #444;
  margin-bottom: 0;
}
.home-seo-sub {
  margin-bottom: 0.5rem;
}
.home-seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.home-seo-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 2rem;
  font-size: 0.85rem;
  color: #198754;
  text-decoration: none;
  transition: all 0.2s;
}
.home-seo-tag:hover {
  background: #198754;
  color: #fff;
  border-color: #198754;
}
.home-seo-faq dt {
  font-weight: 600;
  color: #1a1a2e;
  margin-top: 0.6rem;
}
.home-seo-faq dd {
  color: #6c757d;
  margin-bottom: 0.3rem;
}
/* ============ 工具页通用引导语 + 了解更多卡片 ============ */
.tool-page-guide {
  font-size: 0.92rem;
  background: #f8f9fa;
  border-left: 3px solid #198754;
  padding: 0.5rem 0.75rem;
  border-radius: 0.2rem;
}
.tool-learn-more {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}
.tool-learn-more h5 {
  color: #1a1a2e;
}
/*# sourceMappingURL=common.css.map */