/* AI评语助手官网 — 玫瑰暖色，对齐 PINGYU_MINIPRO */
:root {
  --py-primary: #c97b84;
  --py-primary-dark: #b86b74;
  --py-primary-light: #f5e6e8;
  --py-primary-soft: #fdf5f6;
  --py-accent: #9b7bb8;
  --py-accent-light: #f3eef8;
  --py-bg: #fdf8f6;
  --py-bg-alt: #faf3f1;
  --py-card: #ffffff;
  --py-text: #3d3535;
  --py-muted: #8a7f7f;
  --py-border: #f0e4e4;
  --py-gradient: linear-gradient(135deg, #d4a5a5 0%, #c97b84 50%, #b86b74 100%);
  --py-shadow: 0 4px 24px rgba(201, 123, 132, 0.08);
  --py-shadow-lg: 0 12px 40px rgba(201, 123, 132, 0.14);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 64px;
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-w: 1080px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  background: var(--py-bg);
  color: var(--py-text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--py-primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(253, 248, 246, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--py-border);
  transition: box-shadow 0.2s;
}

.site-header.scrolled { box-shadow: var(--py-shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--py-text);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover { text-decoration: none; }

.logo svg { width: 36px; height: 36px; flex-shrink: 0; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.logo-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--py-text);
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--py-muted);
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--py-muted);
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--py-primary-dark);
  background: var(--py-primary-light);
  text-decoration: none;
}

.nav-cta {
  background: var(--py-primary-light) !important;
  color: var(--py-primary-dark) !important;
  font-weight: 600;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--py-text);
  border-radius: 1px;
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}

.hero-orb-1 {
  width: 320px;
  height: 320px;
  background: #f5c6cb;
  top: -80px;
  right: 10%;
}

.hero-orb-2 {
  width: 260px;
  height: 260px;
  background: #e8d5f0;
  bottom: -60px;
  left: 5%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(240px, 280px);
  gap: 48px;
  align-items: center;
}

.hero-content { text-align: left; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--py-border);
  color: var(--py-primary-dark);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.hero-badge::before {
  content: "✦";
  color: var(--py-accent);
  font-size: 0.7rem;
}

.hero h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: var(--py-text);
}

.hero-tagline {
  font-size: 0.95rem;
  color: var(--py-primary-dark);
  font-weight: 500;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--py-primary);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--py-muted);
  max-width: 520px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  border: none;
  cursor: pointer;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--py-gradient);
  color: #fff;
  box-shadow: 0 6px 20px rgba(201, 123, 132, 0.35);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 8px 28px rgba(201, 123, 132, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.9);
  color: var(--py-primary-dark);
  border: 1.5px solid var(--py-border);
  box-shadow: var(--py-shadow);
}

.btn-outline:hover { background: #fff; }

.search-hint {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 10px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--py-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  box-shadow: var(--py-shadow);
}

.search-hint strong {
  color: var(--py-primary-dark);
  font-size: 1rem;
  padding: 2px 10px;
  background: var(--py-primary-light);
  border-radius: 6px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--py-border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--py-muted);
}

.hero-qr { display: flex; justify-content: center; }

/* QR */
.qr-card {
  margin: 0;
  padding: 20px;
  background: var(--py-card);
  border: 1px solid var(--py-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--py-shadow-lg);
  text-align: center;
  position: relative;
}

.qr-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(201, 123, 132, 0.35), rgba(155, 123, 184, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.qr-card img {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 10px;
}

.qr-card--hero img { width: 210px; height: 210px; }
.qr-card--lg img { width: 240px; height: 240px; }

.qr-card figcaption {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--py-primary-dark);
  line-height: 1.5;
}

.qr-or {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--py-muted);
}

.scan-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-top: 44px;
  padding: 32px;
  background: var(--py-card);
  border: 1px solid var(--py-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--py-shadow);
}

.scan-block-text { text-align: left; max-width: 380px; }
.scan-block-text h3 { font-size: 1.1rem; margin-bottom: 8px; }
.scan-block-text p { font-size: 0.9rem; color: var(--py-muted); margin-bottom: 0; }
.scan-block-text ul { margin: 12px 0 0; padding-left: 1.2rem; font-size: 0.875rem; color: var(--py-muted); }
.scan-block-text li { margin-bottom: 6px; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--py-bg-alt); }

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--py-accent);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  margin-bottom: 10px;
  font-weight: 700;
}

.section-head p {
  color: var(--py-muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--py-card);
  border: 1px solid var(--py-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--py-shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--py-shadow-lg);
  border-color: rgba(201, 123, 132, 0.25);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--py-primary-light), var(--py-accent-light));
  border-radius: 14px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--py-muted);
  line-height: 1.65;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 8px;
}

.step {
  text-align: center;
  padding: 28px 20px;
  background: var(--py-card);
  border: 1px solid var(--py-border);
  border-radius: var(--radius);
  box-shadow: var(--py-shadow);
  position: relative;
}

.step-num {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  background: var(--py-gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(201, 123, 132, 0.3);
}

.step h3 { font-size: 1rem; margin-bottom: 8px; font-weight: 600; }
.step p { font-size: 0.85rem; color: var(--py-muted); line-height: 1.6; }

/* CTA banner */
.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding: 32px 36px;
  background: var(--py-gradient);
  border-radius: var(--radius-lg);
  color: #fff;
  box-shadow: var(--py-shadow-lg);
}

.cta-banner-text h3 { font-size: 1.2rem; margin-bottom: 6px; color: #fff; }
.cta-banner-text p { font-size: 0.9rem; opacity: 0.92; margin: 0; color: #fff; }

.cta-banner .btn-primary {
  background: #fff;
  color: var(--py-primary-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.cta-banner .btn-primary:hover {
  background: var(--py-primary-light);
  color: var(--py-primary-dark);
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--py-border);
  background: var(--py-card);
  box-shadow: var(--py-shadow);
}

table { width: 100%; border-collapse: collapse; font-size: 0.925rem; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--py-border); }
th { background: var(--py-primary-light); font-weight: 600; color: var(--py-primary-dark); }
tr:last-child td { border-bottom: none; }
tr.highlight td { background: rgba(245, 230, 232, 0.4); }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: var(--py-card);
  border: 1px solid var(--py-border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item.open {
  border-color: rgba(201, 123, 132, 0.3);
  box-shadow: var(--py-shadow);
}

.faq-q {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--py-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-q::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--py-primary);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-q::after { content: "−"; }

.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--py-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-item.open .faq-a { display: block; }

/* AI summary */
.ai-summary {
  background: var(--py-card);
  border: 1px solid var(--py-border);
  border-left: 4px solid var(--py-primary);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--py-shadow);
}

.ai-summary h2 { font-size: 1.15rem; margin-bottom: 16px; color: var(--py-primary-dark); }
.ai-summary p, .ai-summary li { font-size: 0.93rem; color: var(--py-text); }
.ai-summary ul { padding-left: 1.25rem; margin: 12px 0; }
.ai-summary li { margin-bottom: 6px; }
.ai-summary code {
  font-size: 0.85em;
  padding: 2px 6px;
  background: var(--py-primary-light);
  border-radius: 4px;
}

/* Scenarios */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.scenario-card {
  background: var(--py-card);
  border: 1px solid var(--py-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--py-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.scenario-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--py-gradient);
}

.scenario-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--py-shadow-lg);
}

.scenario-card h3 { font-size: 1rem; margin-bottom: 8px; font-weight: 600; padding-left: 4px; }
.scenario-card .q {
  font-size: 0.82rem;
  color: var(--py-accent);
  margin-bottom: 10px;
  font-weight: 500;
  font-style: italic;
  padding-left: 4px;
}
.scenario-card p { font-size: 0.88rem; color: var(--py-muted); padding-left: 4px; line-height: 1.65; }

/* Page hero */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 48px) 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--py-border);
  background: linear-gradient(180deg, var(--py-bg) 0%, var(--py-bg-alt) 100%);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(201, 123, 132, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.45rem, 4vw, 2rem); margin-bottom: 12px; font-weight: 700; }
.page-hero p { color: var(--py-muted); font-size: 0.95rem; max-width: 560px; margin: 0 auto; }

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px 14px;
  background: var(--py-primary-light);
  color: var(--py-primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

.prose h2 {
  font-size: 1.2rem;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--py-primary-light);
  font-weight: 600;
}

.prose h3 { font-size: 1.02rem; margin: 24px 0 8px; font-weight: 600; }
.prose p, .prose li { font-size: 0.94rem; color: var(--py-text); margin-bottom: 12px; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 16px; }
.prose li { margin-bottom: 6px; }
.prose .scan-block { margin-top: 32px; }
.prose .back-link { margin-top: 12px; font-size: 0.9rem; }

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #4a3f3f 0%, #3d3535 100%);
  color: rgba(255, 255, 255, 0.88);
  padding: 48px 0 28px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand strong { font-size: 1.1rem; color: #fff; }

.footer-brand p {
  font-size: 0.875rem;
  opacity: 0.72;
  margin-top: 10px;
  max-width: 300px;
  line-height: 1.6;
}

.footer-links { display: flex; gap: 48px; }

.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  opacity: 0.55;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.875rem;
  margin-bottom: 10px;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  opacity: 0.6;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
}

.footer-bottom a { color: inherit; }

.footer-compact {
  padding: 32px 0;
}

.footer-compact .footer-bottom {
  border-top: none;
  padding-top: 0;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 10px;
  opacity: 0.75;
}

.footer-compact .footer-bottom a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.footer-compact .footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hero-content { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .search-hint { justify-content: center; }
  .hero-tags { justify-content: center; }
  .hero-tagline { border-left: none; padding-left: 0; }

  .steps { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }

  .scan-block { flex-direction: column; text-align: center; padding: 28px 20px; }
  .scan-block-text { text-align: center; max-width: none; }
  .scan-block-text ul { list-style: none; padding-left: 0; }
}

@media (max-width: 768px) {
  .menu-btn { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(253, 248, 246, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--py-border);
    flex-direction: column;
    padding: 12px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
    box-shadow: var(--py-shadow-lg);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a { width: 100%; text-align: center; padding: 12px; }

  .logo-sub { display: none; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 24px; }

  .cta-banner { text-align: center; justify-content: center; padding: 28px 24px; }
  .cta-banner .btn-primary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .feature-card:hover, .scenario-card:hover { transform: none; }
}
