/* ==========================================================================
   暖蜜官网样式（参考参考站视觉风格 + 暖蜜 App 色系 #a78bfa → #22d3ee）
   纯原生 CSS，无任何依赖
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --color-bg-1: #0d0d1a;
  --color-bg-2: #16162a;
  --color-bg-3: #1a1a2e;
  --color-primary: #a78bfa;
  --color-secondary: #22d3ee;
  --color-text: #f3f4f6;
  --color-text-muted: rgba(255, 255, 255, 0.6);
  --color-text-faint: rgba(255, 255, 255, 0.3);
  --color-border: rgba(167, 139, 250, 0.2);
  --gradient-primary: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);
  --gradient-bg: linear-gradient(180deg, #0d0d1a 0%, #16162a 100%);
  --gradient-bg-hero: linear-gradient(180deg, #3b0d5c 0%, #5a189a 30%, #7c3aed 60%, #a855f7 90%, #c084fc 100%);
  --shadow-card: 0 8rpx 32rpx rgba(124, 58, 237, 0.45);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition: all 0.25s ease;
  --container-max: 1200px;
  --container-padding: 24px;
  --header-height: 72px;
}

/* ---------- 基础重置 ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--gradient-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { opacity: 0.85; }

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ---------- 通用容器 ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ==========================================================================
   顶部导航
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 100;
  background: rgba(13, 13, 26, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-text);
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gradient-primary);
}

.nav-menu {
  display: flex;
  gap: 36px;
}
.nav-menu a {
  color: var(--color-text-muted);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
  transform: translateX(-50%);
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-text);
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* ==========================================================================
   主区
   ========================================================================== */
main {
  padding-top: var(--header-height);
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 16px;
  margin-bottom: 56px;
}

/* ==========================================================================
   首页 Hero
   ========================================================================== */
.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: var(--gradient-bg-hero);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(167, 139, 250, 0.4), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(34, 211, 238, 0.3), transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px var(--container-padding);
  max-width: 720px;
}
.hero-tagline {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 8px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: 96px;
  font-weight: 800;
  letter-spacing: 12px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 32px rgba(124, 58, 237, 0.5);
}
.hero-slogan {
  font-size: 28px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}
.hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 48px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(167, 139, 250, 0.55);
  opacity: 1;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

/* 滚轮提示 */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  letter-spacing: 2px;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50%      { transform: translate(-50%, 8px); opacity: 1; }
}

/* ==========================================================================
   特性卡片（首页）
   ========================================================================== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(167, 139, 250, 0.4);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}
.feature-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   下载区
   ========================================================================== */
.download-section {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(34, 211, 238, 0.05));
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.download-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.download-info h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}
.download-info p {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 28px;
  line-height: 1.8;
}
.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.qr-box {
  text-align: center;
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.qr-img {
  width: 200px;
  height: 200px;
  background: #fff;
  border-radius: var(--radius-md);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 13px;
  /* 后续替换为真实二维码图：<img src="static/img/qrcode.png" /> */
}
.qr-tip {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   关于我们
   ========================================================================== */
.about-hero {
  text-align: center;
  padding: 100px 24px 60px;
}
.about-hero h1 {
  font-size: 48px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.about-hero p {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.about-section {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.about-section h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--color-primary);
}
.about-section p {
  color: var(--color-text-muted);
  line-height: 1.9;
  margin-bottom: 12px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.value-item {
  text-align: center;
  padding: 28px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.value-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
}
.value-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.value-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.value-desc {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   联系我们表单
   ========================================================================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}
.contact-info h2 {
  font-size: 28px;
  margin-bottom: 20px;
}
.contact-info p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.8;
}
.contact-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
}
.contact-item-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.contact-item-title {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.contact-item-value {
  font-size: 15px;
  color: var(--color-text);
}

.contact-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.08);
}
textarea.form-control {
  height: 120px;
  padding: 12px 16px;
  resize: vertical;
}
.form-actions { text-align: right; }
.form-error {
  color: #fb7185;
  font-size: 13px;
  margin-top: 8px;
  display: none;
}
.form-error.show { display: block; }

/* ==========================================================================
   协议 / 隐私政策（长文阅读）
   ========================================================================== */
.article {
  max-width: 860px;
  margin: 40px auto 80px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  line-height: 1.9;
}
.article h1 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.article .meta {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-faint);
  margin-bottom: 32px;
}
.article h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--gradient-primary);
}
.article h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 18px 0 8px;
  color: var(--color-text);
}
.article p {
  margin-bottom: 12px;
  color: var(--color-text-muted);
  font-size: 14px;
}
.article strong { color: var(--color-text); }

/* ==========================================================================
   底部
   ========================================================================== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 24px 32px;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-links a {
  color: var(--color-text-muted);
  font-size: 14px;
}
.footer-copyright {
  color: var(--color-text-faint);
  font-size: 13px;
  line-height: 1.8;
}
.footer-copyright a {
  color: var(--color-text-muted);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 768px) {
  :root { --header-height: 60px; }
  .nav-menu { display: none; }
  .menu-toggle { display: flex; }
  .hero-title { font-size: 56px; letter-spacing: 6px; }
  .hero-slogan { font-size: 20px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }
  .download-card { grid-template-columns: 1fr; gap: 32px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 24px; }
  .about-hero h1 { font-size: 32px; }
  .article { padding: 24px; }
  .footer { padding-bottom: 80px; }  /* 给移动端留出 home bar */
}

/* ==========================================================================
   工具类
   ========================================================================== */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }