* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #f8f9fc;
  color: #1a1d29;
  min-height: 100vh;
}

/* 统一左右留边 */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 40px;
  max-width: 1080px;
  margin: 0 auto;
}

/* 顶部导航 */
.site-header {
  flex: 0 0 auto;
  padding: 16px 0 50px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1a1d29;
  font-weight: 600;
  font-size: 18px;
}

.brand-mark {
  color: #6744f0;
  font-size: 25px;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  color: #555;
  font-size: 16px;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: #1a1d29;
}

/* 交互区 */
.app {
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 0 0 32px;
  min-height: 60vh;   /* 从 60vh 调小 */
  max-height: 75vh;
}

.panel {
  flex: 1 1 0;
  min-width: 0;
  background: #fff;
  border: 1.5px solid #e6e8f0;
  border-radius: 14px;
  overflow: hidden;
}

.panel-input {
  display: flex;
  flex-direction: column;
}

#inputText {
  flex: 1;
  width: 100%;
  padding: 20px;
  font-size: 18px;
  line-height: 1.6;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font-family: inherit;
}

.panel-output {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 输出列表 */
.output-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.output-item {
  padding: 10px 0;
}

.output-text {
  font-size: 18px;
  line-height: 1.6;
  outline: none;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 8px;
}

.output-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

/* 按钮 */
.btn-action {
  font-size: 13px;
  padding: 6px 16px;
  min-width: 76px;
  border-radius: 8px;
  border: 1px solid #e6e8f0;
  background: #fafbfd;
  color: #555;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-action:hover {
  background: #f0f2f8;
  border-color: #cfd4e4;
}

.btn-action.copied {
  background: #e8f5e9;
  border-color: #a5d6a7;
  color: #2e7d32;
}

/* Styles 覆盖层 */
.similar-overlay {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 14px;
  overflow-y: auto;
  padding: 20px;
  z-index: 10;
}

.similar-item {
  padding: 10px 0;
  font-size: 18px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.similar-item .similar-text {
  margin-bottom: 8px;
  outline: none;
}

/* 主页精简信息区 */
.home-info {
  flex: 0 0 auto;
  max-width: 900px;
  margin: 0 auto;
  padding: 15px 0 32px;
  
}

.home-info .tagline {
  font-size: 16px;
  color: #1a1d29;
  margin-bottom: 16px;
}

.home-info .benefits {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.home-info .benefits li {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.home-info .home-link {
  margin-bottom: 28px;
}

.home-info .home-link a {
  color: #6744f0;
  text-decoration: none;
  font-size: 16px;
}

.home-info .home-link a:hover {
  text-decoration: underline;
}

.home-info h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 24px;
}

.home-info p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 12px;
}

.home-info .details-intro {
  font-size: 16px;
  color: #555;
  margin: 16px 0 8px;
}

.home-info .details {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.home-info .details li {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.home-info .blog-link {
  font-size: 16px;
  color: #555;
  margin-bottom: 24px;
}

.home-info .blog-link a {
  color: #6744f0;
  text-decoration: none;
}

.home-info .blog-link a:hover {
  text-decoration: underline;
}

/* 页脚 */
.site-footer {
  flex: 0 0 auto;
  text-align: center;
  padding: 24px 0 32px;
  font-size: 13px;
  color: #aaa;
  border-top: 1px solid #e6e8f0;
}

/* 文档页（操作说明、博客） */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 0 48px;
}

.doc h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
}

.doc .doc-intro {
  font-size: 16px;
  color: #555;
  margin-bottom: 32px;
}

.doc h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 12px;
}

.doc h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 10px;
}

.doc p,
.doc li {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.doc ol,
.doc ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.doc li {
  margin-bottom: 6px;
}

.doc p { margin-bottom: 16px; }

.doc a {
  color: #6744f0;
  text-decoration: none;
}

.doc a:hover {
  text-decoration: underline;
}

/* 截图占位 */
.doc-figure {
  margin: 16px 0 20px;
}

.figure-placeholder {
  background: #eef0f6;
  border: 1px dashed #c9cfe0;
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  color: #8890a6;
}

.doc-figure figcaption {
  font-size: 13px;
  color: #888;
  margin-top: 8px;
  text-align: center;
}

/* 表格 */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.doc-table th {
  text-align: left;
  font-weight: 600;
  color: #1a1d29;
  padding: 10px 12px;
  border-bottom: 1.5px solid #e6e8f0;
}

.doc-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef0f6;
  color: #444;
  vertical-align: top;
}

.doc-table tr:last-child td {
  border-bottom: none;
}

.doc-note {
  font-size: 14px;
  color: #666;
  background: #f4f6fb;
  border-radius: 8px;
  padding: 12px 16px;
}

/* 桌面/移动文字切换 */
.desktop-only { display: block; }
.mobile-only { display: none; }

/* 截图 */
.doc-figure {
  margin: 16px 0 20px;
  max-width: 100%;
}
.doc-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e6e8f0;
}

/* 博客列表 */
.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  padding: 16px 0;
  border-bottom: 1px solid #eef0f6;
}

.post-list li:last-child {
  border-bottom: none;
}

.post-list a {
  font-size: 18px;
  font-weight: 600;
  color: #1a1d29;
  text-decoration: none;
}

.post-list a:hover {
  color: #6744f0;
}

.post-meta {
  font-size: 14px;
  color: #666;
  margin-top: 6px;
}

/* 博客正文 */
.post-back {
  font-size: 14px;
  margin-bottom: 24px;
}

.post-back a {
  color: #6744f0;
  text-decoration: none;
}

.post-back a:hover {
  text-decoration: underline;
}

.doc blockquote {
  border-left: 3px solid #6744f0;
  background: #f4f6fb;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  border-radius: 0 6px 6px 0;
}

/* 移动端文字切换 */
@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: block; }
}

@media (max-width: 768px) {
  .doc {
    padding: 24px 0 36px;
  }
  .doc h1 { font-size: 24px; }
  .doc h2 { font-size: 20px; }
  .doc-table { font-size: 13px; }
  .doc-table th,
  .doc-table td { padding: 8px; }
}

@media (max-width: 768px) {
  .page { padding: 0 20px; }
  .site-header { padding: 16px 0 12px; }
  .brand { font-size: 16px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 13px; }
  .app { flex-direction: column; min-height: auto; padding: 0 0 12px; gap: 12px; }
  .panel-input { flex: 0 0 auto; }
  #inputText { flex: 0 0 auto; min-height: 40px; max-height: 60px; overflow-y: auto; padding: 16px; font-size: 17px; }
  .panel-output { flex: 1 1 auto; min-height: 50vh; }
  .output-text { font-size: 20px; }
  .output-list { padding: 16px; }
  .home-info { padding: 40px 0 24px; }
  .home-info .tagline { font-size: 16px; }
}