:root {
  --ink: #0f172a;
  --muted: #64748b;
  --accent: #db2777;
  --accent-deep: #be185d;
  --link: #be185d;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --soft: #fdf2f8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.75;
  background: #fff;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

/* ===== 首页 ===== */
.legacy-home header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 24px;
  position: relative;
  z-index: 2;
}

.legacy-home .text-logo,
.legacy-home .footer-text-logo {
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.legacy-home nav a {
  margin-left: 15px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.legacy-home nav .tips-link {
  color: var(--accent);
  font-weight: 700;
}

.legacy-home .banner {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 45%, #fbcfe8 100%);
  text-align: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  margin-top: -60px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 158px 50px 120px;
  position: relative;
}

.legacy-home .banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 28% 38%, rgba(255, 255, 255, 0.55), transparent 55%),
    radial-gradient(ellipse at 72% 62%, rgba(219, 39, 119, 0.1), transparent 50%);
  pointer-events: none;
}

.legacy-home .banner-container {
  position: relative;
  z-index: 1;
}

.legacy-home .update-notice {
  margin-bottom: 40px;
  color: #64748b;
  font-size: 14px;
}

.legacy-home .hero-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  display: block;
  border-radius: 28px;
  object-fit: contain;
  box-shadow: 0 10px 28px rgba(219, 39, 119, 0.2);
}

.legacy-home .main-title {
  font-size: 52px;
  color: var(--accent-deep);
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legacy-home .slogan {
  font-size: 28px;
  color: #475569;
  margin: 0 0 36px;
  font-weight: 700;
}

.legacy-home .button-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.legacy-home .start-chat-button,
.legacy-home .get-app-button {
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #f9f9f9;
  border-radius: 20px;
  padding: 22px 28px;
  text-align: left;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 0 0 1px #f1f5f9, 0 2px 4px rgba(0, 0, 0, 0.05), 0 12px 24px rgba(0, 0, 0, 0.05);
  width: 280px;
}

.legacy-home .start-chat-button:hover,
.legacy-home .get-app-button:hover {
  background-color: #fdf2f8;
  transform: translateY(-2px);
}

.legacy-home .button-content h3 {
  color: var(--accent);
  margin: 0 0 10px;
  font-size: 18px;
}

.legacy-home .button-content p {
  color: #64748b;
  font-size: 15px;
  margin: 0;
  line-height: 1.55;
}

.legacy-home footer {
  background-color: #f8f9fa;
  padding: 48px 20px 32px;
}

.legacy-home .footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto 24px;
}

.legacy-home .link-column {
  text-align: left;
}

.legacy-home .link-column h4 {
  color: #333;
  margin: 0 0 12px;
  font-size: 15px;
}

.legacy-home .link-column a {
  display: block;
  margin-bottom: 12px;
  text-decoration: none;
  color: #666;
  font-size: 14px;
  transition: color 0.25s ease;
}

.legacy-home .link-column a:hover {
  color: var(--accent);
}

.legacy-home .copyright {
  color: #666;
  font-size: 13px;
  margin: 8px 0 0;
}

/* ===== 内容区 ===== */
.home-content {
  padding: 56px 0 40px;
  background: #fff;
}

.section-block {
  margin-bottom: 48px;
}

.section-block h2 {
  font-size: 26px;
  margin: 0 0 14px;
  color: var(--ink);
}

.section-block > p,
.section-block .lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 820px;
  margin: 0 0 22px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafbfd;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--accent);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.article-preview-list {
  display: grid;
  gap: 16px;
}

.article-preview {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-preview:hover {
  border-color: #f9a8d4;
  box-shadow: 0 10px 24px rgba(219, 39, 119, 0.12);
}

.article-preview h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--ink);
}

.article-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.article-preview .meta {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: #94a3b8;
}

.cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fdf2f8, #fce7f3);
  border: 1px solid #fbcfe8;
}

.cta-bar p {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #db2777);
  box-shadow: 0 8px 20px rgba(219, 39, 119, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-outline {
  color: var(--accent-deep);
  background: #fff;
  border: 1px solid #f9a8d4;
}

/* ===== 内页通用 ===== */
.inner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
}

.inner-header .text-logo {
  color: #0f172a;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.inner-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.inner-nav a {
  text-decoration: none;
  color: #475569;
  font-size: 14px;
  padding: 6px 4px;
}

.inner-nav a:hover,
.inner-nav a.active {
  color: var(--accent);
}

.page-hero {
  padding: 48px 0 28px;
  background: linear-gradient(180deg, #fdf2f8 0%, #fff 100%);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
}

.page-hero .lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 760px;
}

.page-body {
  padding: 20px 0 64px;
}

.download-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.download-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fafbfd;
}

.download-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.download-card p {
  color: var(--muted);
  margin: 0 0 18px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.platform-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.platform-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.platform-list li:last-child {
  border-bottom: none;
}

.tips-box {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid #fbcfe8;
  background: #fff;
}

.tips-box h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.tips-box ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.tips-box li {
  margin-bottom: 8px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}

.article-main {
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.article-main .meta {
  color: #94a3b8;
  font-size: 13px;
  margin-bottom: 18px;
}

.article-main h1 {
  margin: 0 0 16px;
  font-size: clamp(26px, 4vw, 36px);
}

.article-main h2 {
  margin: 32px 0 12px;
  font-size: 22px;
}

.article-main p,
.article-main li {
  color: #475569;
}

.article-main ul {
  padding-left: 20px;
}

.side-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafbfd;
  position: sticky;
  top: 76px;
}

.side-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.side-card a {
  display: block;
  text-decoration: none;
  color: #475569;
  font-size: 14px;
  margin-bottom: 10px;
}

.side-card a:hover {
  color: var(--accent);
}

.sitemap-list {
  columns: 2;
  column-gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-list li {
  break-inside: avoid;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfd;
}

.sitemap-list a {
  text-decoration: none;
  color: var(--accent-deep);
  font-weight: 600;
}

.sitemap-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.site-footer-simple {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: #f8f9fa;
  text-align: center;
  color: #666;
  font-size: 13px;
}

.site-footer-simple a {
  color: #475569;
  text-decoration: none;
  margin: 0 8px;
}

.site-footer-simple a:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .feature-grid,
  .download-panel,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }

  .sitemap-list {
    columns: 1;
  }
}

@media (max-width: 680px) {
  .legacy-home header,
  .inner-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .legacy-home nav a {
    margin: 0 12px 0 0;
  }

  .legacy-home .banner {
    margin-top: -20px;
    padding: 100px 18px 72px;
  }

  .legacy-home .hero-icon {
    width: 96px;
    height: 96px;
    margin-bottom: 16px;
    border-radius: 22px;
  }

  .legacy-home .main-title {
    font-size: 36px;
  }

  .legacy-home .slogan {
    font-size: 22px;
  }

  .legacy-home .button-container {
    flex-direction: column;
    align-items: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .cta-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
