﻿:root {
  --primary: #007aff;
  --primary-dark: #005ecb;
  --bg: #f3f5f9;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --success: #16a34a;
  --danger: #dc2626;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #007aff, #5856d6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.nav {
  margin-left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1 1 auto;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: #eff6ff;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 18px;
}

.lang-toggle {
  margin-left: auto;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  line-height: 1.3;
}

.lang-toggle:hover {
  border-color: #bfdbfe;
  color: var(--primary);
  background: #eff6ff;
}

/* 顶栏右侧：登录 / 用户信息 */
.header-auth {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff !important;
  font-size: 14px;
  text-decoration: none !important;
  line-height: 1.3;
  transition: background .15s ease;
}

.header-login-btn:hover,
.header-login-btn.is-active {
  background: var(--primary-dark);
  color: #fff !important;
}

.header-user {
  margin-left: 8px;
  position: relative;
  flex-shrink: 0;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.version-line {
  margin-top: 16px;
  font-size: 14px;
}

.content-block {
  margin-top: 28px;
}

.page-intro {
  margin-bottom: 20px;
}

.start-list {
  margin: 0;
  padding-left: 1.2em;
}

.capability-list {
  display: grid;
  gap: 16px;
}

.capability-item h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.capability-item p {
  margin: 0;
  color: var(--muted);
}

.scenarios-grid {
  grid-template-columns: repeat(2, 1fr);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--muted);
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin: 0;
  padding: 0 22px 18px;
  color: var(--muted);
}

[data-lang-block][hidden] {
  display: none !important;
}

.header-user-btn {
  appearance: none;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 4px;
  border-radius: 999px;
  cursor: pointer;
  color: #374151;
  max-width: 220px;
}

.header-user-btn:hover {
  background: #f3f4f6;
}

.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(145deg, #93c5fd, #3b82f6);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-user-name {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  padding: 8px;
  z-index: 30;
}

.header-user-menu[hidden] {
  display: none !important;
}

.header-user-meta {
  padding: 8px 10px 10px;
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 4px;
}

.header-user-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: #374151;
  font-size: 14px;
  text-decoration: none;
}

.header-user-menu a:hover {
  background: #f8fafc;
  color: var(--primary);
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-bottom: 28px;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-card h1 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.25;
}

.hero-card .subtitle {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  background: #eef2ff;
  color: var(--primary);
}

.btn-secondary:hover {
  background: #dbeafe;
  text-decoration: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-item {
  background: var(--card);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.feature-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-title {
  margin: 0 0 18px;
  font-size: 24px;
}

.form-card {
  max-width: 520px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

.captcha-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.captcha-row input {
  flex: 1;
  min-width: 0;
}

.captcha-send-btn {
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 110px;
  padding: 0 14px;
}

.captcha-send-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0;
  font-size: 14px;
}

.form-message {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.form-message.info { background: #eff6ff; color: #1d4ed8; }
.form-message.success { background: #ecfdf5; color: var(--success); }
.form-message.error { background: #fef2f2; color: var(--danger); }

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.download-card {
  background: var(--card);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.download-card h3 { margin-top: 0; }

.download-meta {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 16px;
}

.legal-card h2 {
  margin: 28px 0 12px;
  font-size: 20px;
  border-left: 4px solid var(--primary);
  padding-left: 10px;
}

.legal-card h3 {
  margin: 18px 0 8px;
  font-size: 17px;
}

.legal-card p,
.legal-card li {
  color: #374151;
}

.legal-card ul,
.legal-card ol {
  padding-left: 22px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 14px;
}

th, td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

th { background: #f8fafc; }

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.footer-links span {
  margin: 0 8px;
  color: #d1d5db;
}

.footer-beian {
  margin: 6px 0 0;
}

.footer-beian a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.footer-beian a:hover {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .hero-section,
  .feature-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .hero-card h1 { font-size: 28px; }

  .nav-toggle { display: inline-block; }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 16px;
    flex-direction: column;
    margin-left: 0;
    flex: none;
  }

  .nav.open { display: flex; }

  .header-inner { position: relative; }

  .header-auth,
  .header-user {
    margin-left: 0;
  }

  .lang-toggle {
    margin-left: 8px;
  }

  .header-user-name {
    max-width: 96px;
  }

  .scenarios-grid {
    grid-template-columns: 1fr;
  }
}

/* 用户反馈页 */
.feedback-body {
  font-family: "Noto Sans SC", "DM Sans", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1200px 480px at 12% -10%, rgba(0, 122, 255, 0.16), transparent 60%),
    radial-gradient(900px 420px at 90% 8%, rgba(14, 165, 233, 0.12), transparent 55%),
    linear-gradient(180deg, #eef4fb 0%, #f5f7fb 42%, #f3f5f9 100%);
}

.feedback-shell {
  padding-top: 20px;
}

.feedback-hero {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
  min-height: 280px;
}

.feedback-kicker {
  margin: 0 0 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2563eb;
  font-weight: 700;
}

.feedback-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.feedback-lead {
  margin: 0 0 22px;
  max-width: 34em;
  color: #475569;
  font-size: 16px;
  line-height: 1.75;
}

.feedback-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.feedback-hero-panel {
  position: relative;
  min-height: 220px;
}

.feedback-hero-orb {
  position: absolute;
  inset: 18% 8% 10% 18%;
  border-radius: 40% 60% 55% 45%;
  background: linear-gradient(145deg, #38bdf8 0%, #2563eb 55%, #0f766e 100%);
  opacity: 0.88;
  animation: fb-float 7s ease-in-out infinite;
}

.feedback-hero-card {
  position: absolute;
  right: 8%;
  bottom: 12%;
  max-width: 220px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  animation: fb-rise 6.5s ease-in-out infinite;
}

.feedback-hero-card span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}

.feedback-hero-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
  color: #0f172a;
}

@keyframes fb-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes fb-rise {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.feedback-board {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}

.feedback-board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.feedback-board-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  color: #0f172a;
}

.feedback-board-head p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feedback-loading {
  color: var(--muted);
  margin: 8px 0;
}

.feedback-item {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 18px 14px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}

.feedback-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.feedback-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
}

.feedback-author {
  font-weight: 600;
  color: #334155;
}

.feedback-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.feedback-badge.pending { background: #fff7ed; color: #c2410c; }
.feedback-badge.done { background: #ecfdf5; color: #047857; }
.feedback-badge.closed { background: #f1f5f9; color: #475569; }
.feedback-badge.anon { background: #eff6ff; color: #1d4ed8; }

.feedback-content {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.75;
  color: #1e293b;
  font-size: 15px;
}

.feedback-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.feedback-section-title {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.feedback-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feedback-thumb {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  width: 88px;
  height: 88px;
  overflow: hidden;
  cursor: zoom-in;
  background: #fff;
}

.feedback-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feedback-reply {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border-left: 3px solid var(--primary);
}

.feedback-reply.notify {
  border-left-color: #0ea5e9;
}

.feedback-reply-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
}

.feedback-reply-tag {
  font-weight: 600;
  color: var(--primary);
}

.feedback-reply.notify .feedback-reply-tag {
  color: #0284c7;
}

.feedback-reply-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: #111827;
}

.feedback-reply-body {
  white-space: pre-wrap;
  line-height: 1.7;
  color: #374151;
  font-size: 14px;
}

.feedback-actions {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
}

.feedback-like-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s, transform .15s;
}

.feedback-like-btn:hover {
  border-color: #fda4af;
  color: #e11d48;
  transform: translateY(-1px);
}

.feedback-like-btn.is-liked {
  border-color: #fda4af;
  background: #fff1f2;
  color: #e11d48;
}

.feedback-like-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.feedback-like-icon {
  font-size: 14px;
  line-height: 1;
}

.feedback-like-count {
  font-weight: 700;
  min-width: 1.2em;
}

.feedback-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0 28px;
}

.feedback-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.pager-info {
  color: var(--muted);
  font-size: 14px;
}

.fb-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
}

.fb-modal[hidden] {
  display: none !important;
}

.fb-modal-panel {
  width: min(560px, 100%);
  max-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  animation: fb-modal-in .22s ease-out;
}

@keyframes fb-modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.fb-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #eef2f7;
}

.fb-modal-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.fb-modal-head p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.fb-modal-close {
  appearance: none;
  border: none;
  background: #f1f5f9;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}

.fb-modal-body {
  padding: 16px 20px 20px;
  overflow-y: auto;
}

.feedback-notice {
  margin: 0 0 16px;
  padding: 11px 12px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 13px;
  line-height: 1.6;
}

.feedback-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.feedback-file-btn {
  cursor: pointer;
  margin: 0;
}

.feedback-upload-hint {
  font-size: 13px;
  color: var(--muted);
}

.feedback-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.feedback-preview-item {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.feedback-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feedback-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.fb-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.feedback-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.feedback-lightbox[hidden] {
  display: none !important;
}

.feedback-lightbox img {
  max-width: min(960px, 100%);
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.feedback-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  appearance: none;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
}

@media (max-width: 860px) {
  .feedback-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .feedback-hero-panel {
    min-height: 180px;
  }

  .feedback-board-head {
    flex-direction: column;
    align-items: stretch;
  }

  .feedback-board-head .btn {
    width: 100%;
  }
}


