@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=ZCOOL+XiaoWei&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --c-red: #FF4B4B;
  --c-gold: #FEE500;
  --c-paper: #FFF9F0;
  --c-ink: #1D1D1F;
  --c-ink-light: #2C2C2E;
  --c-mint: #E0F2F1;
  --c-card-bg: #FFFFFF;
  --c-muted: #8E8E93;

  --border-strong: 2px solid var(--c-ink);
  --shadow-tactile: 3.5px 4.5px 0 var(--c-ink);
  --shadow-hover: 1.5px 2px 0 var(--c-ink);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'ZCOOL XiaoWei', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--c-paper);
  color: var(--c-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image: radial-gradient(rgba(29, 29, 31, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sticky Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 240, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--border-strong);
  padding: 14px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: var(--border-strong);
  box-shadow: 2px 2px 0 var(--c-ink);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.version-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 8px;
  background: var(--c-gold);
  border: var(--border-strong);
  border-radius: var(--radius-full);
  font-weight: 700;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--c-red);
}

.lang-btn {
  background: #fff;
  border: var(--border-strong);
  box-shadow: 2px 2px 0 var(--c-ink);
  color: var(--c-ink);
  padding: 6px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition-fast);
}

.lang-btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--c-ink);
}

.cta-nav {
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--c-red);
  color: #fff;
  border: var(--border-strong);
  box-shadow: var(--shadow-tactile);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.cta-nav:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hover);
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--c-mint);
  border: var(--border-strong);
  box-shadow: 2px 2px 0 var(--c-ink);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--c-ink);
}

.hero-title span.accent-red {
  color: var(--c-red);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #4a4a4f;
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  background: var(--c-ink);
  color: #fff;
  border: var(--border-strong);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-tactile);
  transition: var(--transition-fast);
}

.btn-appstore:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hover);
  background: #000;
}

.btn-appstore svg {
  width: 22px;
  height: 22px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #fff;
  border: var(--border-strong);
  color: var(--c-ink);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-tactile);
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hover);
}

/* Courtroom Simulator (公堂断案) */
.court-simulator {
  background: #fff;
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 6px 8px 0 var(--c-ink);
  max-width: 880px;
  margin: 0 auto 80px;
  text-align: left;
}

.court-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 2px dashed rgba(29, 29, 31, 0.15);
  padding-bottom: 16px;
}

.court-badge {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-red);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dispute-selector {
  margin-bottom: 24px;
}

.selector-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.dispute-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.option-chip {
  padding: 8px 16px;
  background: var(--c-paper);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--c-ink);
  transition: var(--transition-fast);
}

.option-chip.active {
  background: var(--c-gold);
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--c-ink);
}

.convene-court-btn {
  width: 100%;
  padding: 14px;
  background: var(--c-red);
  color: #fff;
  border: var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-tactile);
  cursor: pointer;
  transition: var(--transition-fast);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.convene-court-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hover);
}

/* Verdict Display */
.verdict-card {
  background: var(--c-paper);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 3px 3px 0 var(--c-ink);
  display: none;
}

.verdict-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-family: var(--font-serif);
}

.ratio-bar-wrapper {
  margin-bottom: 20px;
}

.ratio-labels {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.ratio-progress {
  height: 20px;
  background: var(--c-mint);
  border: var(--border-strong);
  border-radius: var(--radius-full);
  overflow: hidden;
  display: flex;
}

.ratio-fill-left {
  background: var(--c-red);
  height: 100%;
  transition: width 0.6s ease;
}

.verdict-quote-box {
  background: #fff;
  border: var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
}

.verdict-punishment {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-red);
  margin-bottom: 8px;
}

.verdict-advice {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

/* Features Section */
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--c-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.feature-card {
  background: #fff;
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-tactile);
  transition: var(--transition-fast);
}

.feature-card:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hover);
}

.feature-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--c-gold);
  border: var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  box-shadow: 2px 2px 0 var(--c-ink);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.feature-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Privacy Banner */
.privacy-banner {
  background: var(--c-mint);
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-tactile);
  padding: 36px;
  margin-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.privacy-info h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.privacy-info p {
  color: #333;
  font-size: 0.95rem;
  max-width: 640px;
}

/* Footer */
footer {
  border-top: var(--border-strong);
  padding: 48px 0 32px;
  background: #fff;
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.footer-links-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a:hover {
  color: var(--c-red);
}

.footer-bottom {
  border-top: 1px solid rgba(29, 29, 31, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--c-muted);
}
