/* 寻欢社区官网 xhsqgw.xfxunhuan.cn 样式（2026-10-25，会话xhsqgw）
   设计令牌对齐项目 android tokens.xml：brand #FF6A00 / #E85D00 / 底 #f5f6f8 */

:root {
  --primary: #FF6A00;
  --primary-dark: #E85D00;
  --primary-warm: #FFF4EC;
  --primary-light: #FFE4D1;
  --bg: #f5f6f8;
  --card: #FFFFFF;
  --text: #1F2329;
  --text-2: #4E5969;
  --text-3: #86909C;
  --border: #EEF0F3;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(31, 35, 41, 0.06);
  --shadow-lg: 0 12px 36px rgba(255, 106, 0, 0.14);
  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: block; flex-shrink: 0; border-radius: 10px; }
.hero-logo {
  display: inline-block;
  width: 120px;
  height: auto;
  margin-bottom: 18px;
  border-radius: 26px;
  box-shadow: 0 10px 28px rgba(255, 106, 0, 0.18);
}
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: 0.5px; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-2); font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-links .nav-cta {
  color: #fff;
  background: var(--primary);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-links .nav-cta:hover { background: var(--primary-dark); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(600px 260px at 50% -40px, var(--primary-light), transparent 70%),
    linear-gradient(180deg, #FFF8F2 0%, var(--bg) 100%);
  padding: 84px 20px 72px;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  font-size: 13px;
  color: var(--primary-dark);
  background: var(--primary-warm);
  border: 1px solid var(--primary-light);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero-title {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-slogan { font-size: 22px; color: var(--text); margin-top: 10px; font-weight: 600; }
.hero-desc { font-size: 16px; color: var(--text-2); margin-top: 16px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-3); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn-primary { color: #fff; background: var(--primary); box-shadow: var(--shadow-lg); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { color: var(--primary-dark); background: #fff; border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: var(--primary-warm); }
.btn-block { width: 100%; }

/* ---------- 区块通用 ---------- */
.section-inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.section-title { font-size: 30px; font-weight: 800; text-align: center; }
.section-sub { font-size: 15px; color: var(--text-3); text-align: center; margin-top: 8px; }

/* ---------- 功能 ---------- */
.features { padding: 72px 0 80px; }
.feature-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: var(--primary-warm);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  margin-bottom: 16px;
}
.icon-board { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6A00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='2'/%3E%3Crect x='14' y='3' width='7' height='7' rx='2'/%3E%3Crect x='3' y='14' width='7' height='7' rx='2'/%3E%3Crect x='14' y='14' width='7' height='7' rx='2'/%3E%3C/svg%3E"); }
.icon-post { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6A00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.85 2.85 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z'/%3E%3C/svg%3E"); }
.icon-msg { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6A00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-9 8.35 8.5 8.5 0 0 1-3.67-.79L3 21l1.9-5.1A8.38 8.38 0 0 1 3 11.5a8.5 8.5 0 0 1 18 0Z'/%3E%3C/svg%3E"); }
.icon-medal { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6A00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='14' r='6'/%3E%3Cpath d='M15.5 8.5 17 2l-5 3-5-3 1.5 6.5'/%3E%3C/svg%3E"); }
.icon-gift { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6A00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13'/%3E%3Cpath d='M5 12v9h14v-9'/%3E%3Cpath d='M12 8a3.5 3.5 0 0 0-7-1 3.5 3.5 0 0 0 7 1Zm0 0a3.5 3.5 0 0 1 7-1 3.5 3.5 0 0 1-7 1Z'/%3E%3C/svg%3E"); }
.icon-image { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6A00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-4.5-4.5L6 21'/%3E%3C/svg%3E"); }
.icon-web { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6A00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M12 3a13.5 13.5 0 0 1 0 18 13.5 13.5 0 0 1 0-18Z'/%3E%3C/svg%3E"); }

.feature-card h3 { font-size: 17px; font-weight: 700; }
.feature-card p { font-size: 14px; color: var(--text-2); margin-top: 8px; }

/* ---------- 下载 ---------- */
.download { padding: 0 0 88px; }
.download-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.download-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.download-card-head { display: flex; align-items: center; gap: 14px; }
.download-card-head h3 { font-size: 18px; font-weight: 700; }
.download-card-head p { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.card-app { border-color: var(--primary-light); box-shadow: var(--shadow); }
.update-list { display: flex; flex-direction: column; gap: 9px; }
.update-list li {
  font-size: 13.5px;
  color: var(--text-2);
  padding-left: 20px;
  position: relative;
}
.update-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); background: #fff; padding: 34px 20px 40px; }
.footer-inner { max-width: 1080px; margin: 0 auto; text-align: center; }
.footer-brand { font-size: 16px; font-weight: 700; }
.footer-logo { vertical-align: -5px; margin-right: 6px; border-radius: 6px; }
.footer-links { margin-top: 10px; font-size: 14px; color: var(--text-2); }
.footer-links a:hover { color: var(--primary); }
.footer-links .dot { margin: 0 8px; color: var(--text-3); }
.footer-copy { margin-top: 12px; font-size: 13px; color: var(--text-3); }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 64px 20px 56px; }
  .hero-title { font-size: 40px; }
  .hero-slogan { font-size: 18px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; }
  .nav-links .nav-cta { text-align: center; margin-top: 6px; }
  .feature-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 26px; }
}
