/* Lucent 用户端官网静态页 — Apple 风格视觉 */

:root {
  --bg: #000000;
  --bg-subtle: #0d0d0d;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6e6e73;
  --accent: #2997ff;
  --accent-hover: #5eb0ff;
  --cta-bg: #0071e3;
  --cta-bg-hover: #0077ed;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-pill: 100px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --shadow-soft: 0 8px 40px rgba(0, 0, 0, 0.45);
  --content-max: min(1068px, 92vw);
  --content-narrow: min(720px, 92vw);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font);
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.page-account .container {
  max-width: var(--content-narrow);
}

/* —— Legal / long-form pages —— */
body.legal-page .hero,
body.legal-page .section {
  text-align: left;
}

body.legal-page .section h2 {
  text-align: left;
}

body.legal-page .section h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.35rem 0 0.65rem;
  text-align: left;
}

body.legal-page .section h3:first-of-type {
  margin-top: 0.5rem;
}

body.legal-page .legal-meta {
  font-size: 0.9375rem;
  color: var(--text-tertiary);
  margin-bottom: 0;
}

body.legal-page .legal-meta a {
  color: var(--accent);
  text-decoration: none;
}

body.legal-page .legal-meta a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

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

/* —— Language pill (frosted) —— */
.lang-switcher {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 2000;
  display: flex;
  gap: 0;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: rgba(22, 22, 23, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 8px 16px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.lang-btn:focus-visible,
.submit-btn:focus-visible,
.secondary-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* —— Header —— */
header {
  position: relative;
  padding: clamp(5.5rem, 14vw, 8.5rem) 0 clamp(3rem, 8vw, 4.5rem);
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(41, 151, 255, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.5rem);
}

.logo-wrap {
  width: clamp(72px, 18vw, 96px);
  height: clamp(72px, 18vw, 96px);
  border-radius: 22%;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

header h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--text);
  max-width: 18ch;
}

header .subtitle {
  font-size: clamp(1.0625rem, 2.2vw, 1.375rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text-secondary);
  max-width: 36ch;
  line-height: 1.4;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 0.35rem;
}

.cta .store-actions {
  margin-top: 1.5rem;
}

.app-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.65rem;
  border-radius: var(--radius-pill);
  background: #f5f5f7;
  color: #1d1d1f;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.app-store-link:hover {
  background: #fff;
  transform: scale(1.02);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}

.app-store-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* —— Hero —— */
.hero {
  margin: clamp(2.5rem, 6vw, 4rem) auto;
  padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.hero h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--text-secondary);
  letter-spacing: -0.015em;
  max-width: 52ch;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

.hero p:last-child {
  margin-bottom: 0;
}

/* —— Highlight strip —— */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: clamp(2rem, 5vw, 3rem) 0;
}

.highlight-box {
  text-align: center;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.highlight-box:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.highlight-box .num {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.highlight-box .label {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
  line-height: 1.45;
}

/* —— Feature grid —— */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: clamp(2rem, 5vw, 3rem) 0;
}

.feature-card {
  padding: clamp(1.75rem, 4vw, 2.25rem);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.feature-card h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  line-height: 1.55;
}

/* —— Sections —— */
.section {
  margin: clamp(2rem, 5vw, 3rem) auto;
  padding: clamp(2rem, 4.5vw, 3rem) clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.section h2 {
  font-size: clamp(1.625rem, 3.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.15;
  color: var(--text);
  text-align: center;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  padding-bottom: 0;
  border-bottom: none;
}

.section p,
.section li {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.page-account .section p,
.page-account .section li {
  font-size: 1rem;
}

.section ul,
.section ol {
  margin: 1rem 0 0.5rem;
  padding-left: 1.35rem;
}

.section li {
  margin-bottom: 0.65rem;
}

.section p:last-child,
.section li:last-child {
  margin-bottom: 0;
}

.section strong {
  color: var(--text);
  font-weight: 600;
}

/* —— Values —— */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 1.75rem;
}

.value-item {
  text-align: center;
  padding: 1.75rem 1.35rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.value-item:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.value-item h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.value-item p {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin: 0;
  line-height: 1.5;
}

/* —— Workflow —— */
.workflow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 1.75rem;
}

.workflow-step {
  flex: 1;
  min-width: 160px;
  max-width: 240px;
  text-align: center;
  padding: 1.65rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.workflow-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 50%;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
}

.workflow-step h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.workflow-step p {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin: 0;
  line-height: 1.5;
}

/* —— Service types —— */
.service-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 1.75rem;
}

.service-type-card {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.service-type-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.service-type-card h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-type-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

/* —— FAQ —— */
.faq-list {
  margin-top: 1.5rem;
}

.faq-item {
  padding: 1.35rem 1.5rem;
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

/* —— CTA —— */
.cta {
  margin: clamp(2.5rem, 6vw, 4rem) auto;
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-xl);
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border);
}

.cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
  border: none;
  padding: 0;
}

.cta p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  letter-spacing: -0.015em;
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

.cta p:last-child {
  margin-bottom: 0;
  color: var(--text-tertiary);
  font-size: 0.9375rem;
}

/* —— Footer —— */
footer {
  margin-top: clamp(3rem, 8vw, 5rem);
  padding: 2.75rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  text-align: center;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

footer p {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.5;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

footer a:hover {
  color: var(--accent-hover);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
  justify-content: center;
  margin-top: 0.35rem;
}

/* —— Account deletion page —— */
.notice-box {
  margin-top: 1.75rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  background: rgba(41, 151, 255, 0.08);
  border: 1px solid rgba(41, 151, 255, 0.22);
}

.notice-box p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  letter-spacing: -0.015em;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(41, 151, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.15);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

.submit-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.95rem 1.25rem;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #fff;
  background: var(--cta-bg);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.submit-btn:hover:not(:disabled) {
  background: var(--cta-bg-hover);
}

.submit-btn:active:not(:disabled) {
  transform: scale(0.99);
}

.submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-contact-note {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.form-contact-note strong {
  color: var(--text);
  font-weight: 600;
  word-break: break-all;
  margin-left: 0.35rem;
}

#method2-form-block.is-hidden {
  display: none;
}

#method2-success {
  display: none;
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}

#method2-success.visible {
  display: block;
}

.success-mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.35rem;
  border-radius: 50%;
  background: rgba(52, 199, 89, 0.12);
  border: 1px solid rgba(52, 199, 89, 0.45);
  color: #34c759;
  font-size: 2.5rem;
  line-height: 72px;
  font-weight: 500;
}

#method2-success h3 {
  font-size: clamp(1.375rem, 3vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 1rem;
}

#method2-success .success-detail {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.55;
  text-align: left;
  max-width: 36rem;
  margin: 0 auto 1.35rem;
  letter-spacing: -0.012em;
}

.ref-box {
  font-family: "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0 auto 1.35rem;
  padding: 1.1rem 1.2rem;
  background: rgba(0, 0, 0, 0.45);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  word-break: break-all;
  text-align: left;
}

.ref-box .ref-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
  font-family: var(--font);
}

.secondary-btn {
  margin-top: 0.25rem;
  padding: 0.65rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(41, 151, 255, 0.4);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.secondary-btn:hover {
  background: rgba(41, 151, 255, 0.1);
  border-color: var(--accent);
}

.email-template {
  margin-top: 1.35rem;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}

.email-template h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.email-template ul {
  margin: 0;
  padding-left: 1.2rem;
}

.email-template li {
  margin-bottom: 0.65rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.email-template li:last-child {
  margin-bottom: 0;
}

/* —— Responsive —— */
@media (max-width: 734px) {
  .lang-switcher {
    top: 10px;
    right: 10px;
  }

  .hero,
  .section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

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

  .workflow {
    flex-direction: column;
    align-items: stretch;
  }

  .workflow-step {
    max-width: none;
  }

  .values,
  .service-types {
    grid-template-columns: 1fr;
  }

  header {
    padding-top: 4.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
