/* 殇痕画质助手官网样式表
 * 主色：#4fc3f7 | 背景：白色 | 风格：极简专业
 */

:root {
  --primary: #4fc3f7;
  --primary-dark: #29b6f6;
  --primary-light: #e1f5fe;
  --text: #1a1a2e;
  --text-secondary: #5a5a6e;
  --text-muted: #8a8a9a;
  --bg: #ffffff;
  --bg-soft: #f8fbfd;
  --border: #eef2f5;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.04);
  --shadow: 0 10px 30px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 20px 50px rgba(26, 26, 46, 0.12);
  --max-width: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.main-nav a {
  font-weight: 600;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-dark);
}

.main-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 500;
  transition: transform 0.2s, background 0.2s;
}

.main-nav .nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  gap: 4px;
}

.mobile-menu a {
  padding: 12px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 600;
}

.mobile-menu a:last-child {
  border-bottom: none;
  color: var(--primary-dark);
  font-weight: 500;
}

/* Hero */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse 900px 500px at 20% 20%, rgba(79, 195, 247, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 700px 400px at 85% 70%, rgba(79, 195, 247, 0.05) 0%, transparent 55%),
    var(--bg);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0 0 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(79, 195, 247, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(79, 195, 247, 0.36);
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-large {
  padding: 14px 32px;
  font-size: 1.05rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-meta i {
  color: var(--primary);
  font-size: 1.1rem;
}

.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-media img {
  max-height: 560px;
  width: auto;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

/* Sections */
.section {
  padding: 90px 0;
}

.section:nth-of-type(odd) {
  background: var(--bg-soft);
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  padding: 5px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 1.05rem;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(79, 195, 247, 0.25);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 14px;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin: 0 0 10px;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.showcase-card {
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px 20px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.showcase-card img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.showcase-card figcaption {
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 50%;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* FAQ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary i {
  color: var(--text-muted);
  font-size: 1.3rem;
  transition: transform 0.3s;
}

.faq-item[open] summary i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.faq-answer p {
  margin: 0;
}

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(79, 195, 247, 0.25);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.review-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50%;
  font-size: 1.2rem;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.review-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.review-stars {
  display: flex;
  gap: 2px;
  color: #ffb300;
  font-size: 0.85rem;
}

.review-head .time {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.review-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Download */
.download {
  padding: 100px 0;
}

.download-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.download-card img {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 18px;
}

.download-card h2 {
  margin: 0 0 12px;
  font-size: 1.7rem;
  font-weight: 700;
}

.download-desc {
  color: var(--text-secondary);
  margin: 0 0 28px;
  font-size: 1rem;
}

.download-actions {
  margin-bottom: 24px;
}

.download-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.download-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.download-tip i {
  color: var(--primary);
}

/* Footer */
.site-footer {
  padding: 48px 0 32px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--primary-dark);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
  text-align: center;
}

/* Legal pages */
.legal-page {
  max-width: 760px;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
  font-weight: 600;
  color: var(--text);
}

.legal-page p,
.legal-page ul {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-page ul {
  padding-left: 22px;
}

.legal-page li {
  margin-bottom: 8px;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 100px 24px;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .hero-media img {
    max-height: 480px;
  }

  .feature-grid,
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu.open {
    display: flex;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .section {
    padding: 64px 0;
  }

  .feature-grid,
  .showcase-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    gap: 20px;
  }

  .download-card {
    padding: 40px 24px;
  }

  .footer-nav {
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
