/* 应用官网 - 暗金风公共样式 */

:root {
  --bg: #151210;
  --bg-2: #1f1c18;
  --bg-3: #2a2621;
  --text: #faf6ef;
  --text-2: #d8d0c4;
  --text-3: #a8a095;
  --accent: #d4a863;
  --accent-dark: #b08644;
  --accent-light: #e8c78e;
  --border: rgba(212, 168, 99, 0.22);
  --white: #ffffff;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.45), 0 0 40px -12px rgba(212, 168, 99, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 80% 0%, rgba(212, 168, 99, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 0% 60%, rgba(212, 168, 99, 0.05) 0%, transparent 30%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand {
  font-family: "Space Grotesk", "PingFang SC", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, .btn { border: none; background: none; cursor: pointer; font-family: inherit; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.8rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.2s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--bg);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(201, 160, 92, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-secondary:hover {
  background: rgba(201, 160, 92, 0.1);
  color: var(--accent-light);
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

/* 头部 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(21, 18, 16, 0.5);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.header.scrolled {
  background: rgba(21, 18, 16, 0.95);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.nav {
  display: flex;
  gap: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
}

.nav a { position: relative; }
.nav a:hover { color: var(--accent); }
.nav a.active { color: var(--accent); }
.nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.nav a.nav-highlight {
  color: var(--accent);
  font-weight: 700;
}

.nav a.nav-highlight:hover { color: var(--accent-light); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle { display: none; color: var(--text); }

/* 通用容器 */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 页面通用标题区 */
.page-header {
  padding: 8rem 0 4rem;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* 首屏 */
.hero {
  position: relative;
  padding: 10rem 0 6rem;
  background:
    linear-gradient(135deg, rgba(21, 18, 16, 0.62) 0%, rgba(21, 18, 16, 0.38) 100%),
    url("../images/hero-bg.png") center/cover no-repeat;
  color: var(--text);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-2);
  margin-bottom: 2rem;
  max-width: 460px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-2);
}

.hero-links a {
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s var(--ease);
}

.hero-links a:hover {
  color: var(--accent-light);
}

.hero-links span {
  color: var(--text-3);
}

.hero-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.5);
  background: var(--bg-2);
  border: 1px solid var(--border);
}

.hero-image img { width: 100%; height: auto; display: block; }

/* 介绍 */
.intro {
  padding: 5rem 0;
  text-align: center;
}

.intro h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--text);
}

.intro p {
  color: var(--text-2);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* 特色 */
.features {
  padding: 5rem 0;
  background: var(--bg);
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 3rem;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: var(--text-2);
  max-width: 600px;
  margin: -2rem auto 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.feature-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

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

/* 图片展示 */
.gallery {
  padding: 5rem 0;
  background: var(--bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
  color: var(--text);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
}

/* 灯箱 */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  cursor: pointer;
}

/* 关于我们 */
.about-section {
  padding: 5rem 0;
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-2);
  margin-bottom: 1rem;
}

.about-image {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-image img { width: 100%; height: auto; display: block; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.stat-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-number {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label { color: var(--text-2); }

/* 下载注册页 */
.download-page {
  padding: 4rem 0 5rem;
  background: var(--bg);
}

.download-page .container {
  max-width: 1000px;
}

.download-register-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.download-panel,
.register-panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.download-panel h2,
.register-panel h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.download-panel p,
.register-panel p {
  text-align: center;
  color: var(--text-2);
}

.download-buttons-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.register-panel .login-link {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-2);
}

.register-panel .login-link a {
  color: var(--accent);
  font-weight: 600;
}

.register-panel .login-link a:hover {
  color: var(--accent-light);
}
.download-page {
  padding: 5rem 0;
  background: var(--bg-2);
}

.download-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 4rem;
}

.download-qr-large {
  background: var(--bg-3);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow);
}

.download-qr-large img {
  width: 220px;
  height: 220px;
  border-radius: 16px;
}

.download-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.download-info p {
  color: var(--text-2);
  margin-bottom: 1.5rem;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.auth-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.auth-tab {
  padding: 0.75rem 1.5rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-2);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.auth-tab.active,
.auth-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.auth-form {
  display: none;
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.auth-form.active { display: block; }

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-2);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

/* 客服 */
.contact-page {
  padding: 5rem 0;
  background: var(--bg);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.contact-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  background: var(--bg-3);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid var(--border);
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.contact-card p {
  color: var(--text-2);
  font-size: 0.95rem;
  word-break: break-all;
}

.contact-qr {
  margin-top: 1rem;
}

.contact-qr img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
}

/* 底部 CTA */
.cta {
  padding: 4rem 0;
  text-align: center;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta p {
  color: var(--text-2);
  margin-bottom: 1.5rem;
}

/* 底部 */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-3);
  font-size: 0.9rem;
  background: var(--bg-2);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--accent); }

/* Focus 样式 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* 响应式 */
@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }

  .nav.open { display: flex; }
  .menu-toggle { display: grid; place-items: center; }

  .hero-grid,
  .about-grid,
  .contact-wrapper,
  .download-register-row {
    grid-template-columns: 1fr;
  }

  .hero-image,
  .about-image { order: -1; }

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

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

@media (max-width: 640px) {
  .hero { padding: 8rem 0 4rem; }
  .page-header { padding: 7rem 0 3rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .gallery-grid,
  .features-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .download-qr-large img { width: 180px; height: 180px; }
}

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