/* Dramix 官网 — 静态页，可部署至任意静态托管 */

:root {
  --bg-deep: #07080c;
  --bg-card: #12141c;
  --bg-elevated: #1a1d28;
  --text: #f0f2f7;
  --text-muted: #8b92a8;
  --accent: #7c6cf0;
  --accent-soft: rgba(124, 108, 240, 0.15);
  --accent-glow: rgba(124, 108, 240, 0.45);
  --border: rgba(255, 255, 255, 0.06);
  --radius: 16px;
  --font-sans: "DM Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Outfit", var(--font-sans);
  --font-ar: "Noto Sans Arabic", "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -40%, var(--accent-glow), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 50%, rgba(99, 102, 241, 0.08), transparent),
    radial-gradient(circle at 0% 80%, rgba(124, 108, 240, 0.06), transparent 42%);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
  background: rgba(7, 8, 12, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.brand:hover {
  text-decoration: none;
  color: #fff;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: #000 !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-appstore:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.12);
}

html[dir="rtl"] body {
  font-family: var(--font-ar);
}

html[dir="rtl"] .brand,
html[dir="rtl"] .hero h1,
html[dir="rtl"] .highlights-title,
html[dir="rtl"] section h2,
html[dir="rtl"] .page-header h1,
html[dir="rtl"] .cta-band-inner h2,
html[dir="rtl"] .dmca-success-panel h3 {
  font-family: var(--font-ar);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-switcher label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#dramix-lang-select {
  appearance: none;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 32px 8px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  max-width: min(220px, 46vw);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b92a8' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

html[dir="rtl"] #dramix-lang-select {
  padding: 8px 12px 8px 32px;
  background-position: left 10px center;
}

#dramix-lang-select:hover {
  border-color: rgba(124, 108, 240, 0.35);
}

#dramix-lang-select:focus {
  outline: none;
  border-color: rgba(124, 108, 240, 0.55);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
  background: #14171c;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 68%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
  justify-items: center;
  text-align: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 38%);
    gap: 48px 56px;
    justify-items: stretch;
    text-align: left;
  }

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

  .hero-copy .hero-badge {
    margin-left: 0;
  }

  .hero-copy .hero-cta {
    justify-content: flex-start;
  }

  .trust-pills {
    justify-content: flex-start;
  }

  .hero-visual {
    justify-content: flex-end;
    margin-top: 0;
  }
}

.hero-copy {
  width: 100%;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #c4b5fd;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  background: linear-gradient(180deg, #fff 0%, #b8bdd0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 1.15rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.trust-pills {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.trust-pills li {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.link-secondary {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.link-secondary:hover {
  color: var(--text);
}

.hero-visual {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

/* 概念图 PNG 已自带手机外框 */
.hero-device-concept {
  width: min(300px, 88vw);
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.5));
}

@media (min-width: 900px) {
  .hero-device-concept {
    width: 100%;
    max-width: 320px;
  }
}

/* 首页：体验层次（对标常见 App 官网的多段叙事） */
.highlights {
  padding: 72px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(18, 20, 28, 0.65) 0%, var(--bg-deep) 100%);
}

.highlights-eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a5b4fc;
  text-align: center;
}

.highlights-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-align: center;
}

.highlights-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.highlight-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .highlight-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.highlight-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.highlight-card:hover {
  border-color: rgba(124, 108, 240, 0.35);
  transform: translateY(-2px);
}

.highlight-step {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 14px;
}

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

.highlight-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* 底部强 CTA */
.cta-band {
  padding: 72px 0 88px;
  text-align: center;
  background: linear-gradient(135deg, rgba(124, 108, 240, 0.22) 0%, rgba(18, 20, 28, 0.95) 48%, var(--bg-deep) 100%);
  border-top: 1px solid rgba(124, 108, 240, 0.2);
}

.cta-band-inner h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.cta-band-inner p {
  margin: 0 auto 28px;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
}

.btn-appstore-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* Sections */
section {
  padding: 64px 0;
}

section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-align: center;
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 48px;
  font-size: 1rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

.feature-card:hover {
  border-color: rgba(124, 108, 240, 0.35);
  background: var(--bg-elevated);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 1.25rem;
}

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

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

/* Legal / inner pages */
.page-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  margin: 0 0 8px;
}

.page-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.prose {
  padding: 40px 0 80px;
  max-width: 720px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
  text-align: left;
}

.prose p,
.prose li {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose .note {
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(124, 108, 240, 0.25);
  color: #c4b5fd;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* DMCA form */
.dmca-form-box {
  margin: 28px 0 40px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.dmca-form-box > p.dmca-form-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 20px;
}

.dmca-field {
  margin-bottom: 20px;
}

.dmca-field label {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.dmca-field input[type="email"],
.dmca-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
}

.dmca-field input:focus,
.dmca-field textarea:focus {
  outline: none;
  border-color: rgba(124, 108, 240, 0.55);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.dmca-field textarea {
  min-height: 140px;
  resize: vertical;
}

.dmca-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.dmca-check input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.dmca-check label {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.5;
}

.dmca-submit {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #8b7cf7);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.dmca-submit:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.dmca-success-panel {
  display: none;
  margin: 28px 0 40px;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid rgba(52, 211, 153, 0.35);
  text-align: center;
}

.dmca-success-panel.is-visible {
  display: block;
}

.dmca-success-panel h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #6ee7b7;
}

.dmca-success-panel p {
  color: var(--text-muted);
  margin: 0 0 20px;
  font-size: 0.95rem;
}

.dmca-success-panel button.link-like {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.dmca-form-box.is-hidden {
  display: none;
}

/* Footer */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--text);
}

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

@media (max-width: 640px) {
  .site-nav .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }
}
