/* ============================================================
   LumeShare 官网 — 基于 memmy.cn 编译样式的微调
   FEATURES / HOW IT WORKS 保留 memmy.cn 的滚动动画（见 site-anim.js）
   ============================================================ */

/* ---------- 全站禁止文字选中 ---------- */
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
input, textarea, select {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* ---------- Hero 标题适配（LumeShare 比 Memmy 长） ---------- */
.hero-content h1 { font-size: clamp(72px, 12.8vw, 236px) !important; }
@media (max-width: 900px) {
  .hero-content h1 { font-size: clamp(64px, 13.5vw, 120px) !important; }
}
.hero-content h1 > .memmy-hero-rice:nth-child(4) { left: -0.46em !important; bottom: -0.1em !important; }
.hero-content h1 > .memmy-hero-rice:nth-child(5) { left: 4.05em !important; top: -0.36em !important; }
.hero-content h1 > .memmy-hero-rice:nth-child(6) { right: -0.5em !important; bottom: -0.05em !important; }

/* ---------- 子页面（更新日志 / 个人中心 / 协议） ---------- */
.ls-main {
  position: relative;
  z-index: 20;
  min-height: 100svh;
  padding: calc(64px + var(--landing-section-y-tight)) var(--landing-gutter) var(--landing-section-y);
}
.ls-container { width: 100%; max-width: var(--landing-content-max); margin: 0 auto; }
.ls-head { margin: 0 0 clamp(24px, 3vw, 42px); }
.ls-head p.ls-kicker {
  margin: 0 0 12px;
  color: #3aa893;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 950;
  font-size: clamp(13px, 1.1vw, 16px);
}
.ls-head h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #242424;
}
.ls-head .ls-sub {
  margin: 14px 0 0;
  color: #8a8a8a;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.75;
  max-width: 680px;
}
.ls-panel {
  background: #fff;
  border: 1px solid #cce0db;
  border-radius: 24px;
  padding: clamp(20px, 2.4vw, 34px);
  box-shadow: 0 2px 8px rgba(12, 42, 36, 0.05);
}
.ls-log { display: grid; gap: 16px; }
.ls-log-item {
  background: #fff;
  border: 1px solid #cce0db;
  border-radius: 24px;
  padding: clamp(20px, 2.2vw, 30px);
  box-shadow: 0 2px 8px rgba(12, 42, 36, 0.05);
}
.ls-log-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ls-version {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: #242424;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.ls-date { color: #a8a8a8; font-size: 13px; font-weight: 500; }
.ls-log-body {
  margin-top: 14px;
  color: #5f5751;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.85;
  white-space: pre-wrap;
}
.ls-empty {
  padding: clamp(40px, 6vw, 72px) 20px;
  text-align: center;
  color: #a8a8a8;
  font-size: 15px;
  background: #fff;
  border: 1px dashed #cce0db;
  border-radius: 24px;
}

/* profile */
.ls-profile { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.ls-side {
  background: #fff;
  border: 1px solid #cce0db;
  border-radius: 24px;
  padding: 12px;
  display: grid;
  gap: 4px;
  position: sticky;
  top: 84px;
}
.ls-side-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: transparent;
  border: 0;
  color: #5f5751;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.ls-side-item.is-active { background: #242424; color: #fff; }
.ls-side-out {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  margin-top: 6px;
  padding: 0 14px;
  border-radius: 12px;
  background: transparent;
  border: 0;
  color: #c0392b;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}
.ls-side-out:hover { background: #fdecec; }
.ls-avatar { display: flex; justify-content: center; margin-bottom: 22px; }
.ls-avatar img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f8f7;
  border: 4px solid #fff;
  box-shadow: 0 12px 30px rgba(12, 42, 36, 0.14);
}
.ls-note {
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #f1f8f7;
  border: 1px solid #dcebe7;
  display: grid;
  gap: 12px;
}
.ls-note-text { color: #5f5751; font-size: 13.5px; line-height: 1.75; }
.ls-note-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ls-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #cce0db;
  background: #fff;
  color: #242424;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.ls-btn:hover { border-color: #242424; }
.ls-field { margin-top: 14px; }
.ls-label {
  display: block;
  margin-bottom: 8px;
  color: #a8a8a8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ls-box {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 12px;
  background: #f1f8f7;
  border: 1px solid #dcebe7;
  font-size: 14.5px;
  font-weight: 600;
  color: #242424;
}

@media (max-width: 860px) {
  .ls-profile { grid-template-columns: 1fr; }
  .ls-side { position: static; display: flex; flex-wrap: wrap; }
  .ls-side-item, .ls-side-out { flex: 1; min-width: 130px; justify-content: center; margin-top: 0; }
}

/* 协议正文 */
.ls-prose { color: #5f5751; font-size: 14.5px; line-height: 1.95; white-space: pre-wrap; word-break: break-word; }

/* 语言切换按钮 */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #cce0db;
  color: #5f5751;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.lang-switch:hover { border-color: #242424; color: #242424; }

/* ---------- 社区 5 张入口卡 ---------- */
.community-grid { grid-template-columns: repeat(5, minmax(0, 184px)) !important; }
@media (max-width: 1100px) { .community-grid { grid-template-columns: repeat(3, minmax(0, 220px)) !important; } }
@media (max-width: 767px) { .community-grid { grid-template-columns: repeat(2, minmax(0, 220px)) !important; } }
@media (max-width: 480px) { .community-grid { grid-template-columns: 1fr !important; } }


/* ---------- 下载入口：点击按钮直接下载，弹窗暂时隐藏（DOM 保留，后续可恢复） ---------- */
.download-dropdown-menu { display: none !important; }
.download-dropdown-arrow { display: none !important; }

.download-dropdown-trigger .download-dropdown-arrow,
.download-dropdown .download-dropdown-arrow { display: none !important; }


/* ---------- 首页关键词板块：图标装饰（对齐 memmy 布局） ---------- */
.keyword-section .kw-icon {
  display: block;
  width: 100%;
  height: 100%;
}
.keyword-section .qoder-sticker .kw-icon {
  height: auto;
}

/* ---------- 首页关键词板块：与 memmy 一致的漂浮动画 ---------- */
@keyframes keyword-drift {
  0%, to { transform: translateZ(0) rotate(var(--rotate, 0deg)); }
  50% { transform: translate3d(0, -14px, 0) rotate(calc(var(--rotate, 0deg) + 4deg)); }
}
.keyword-section .qoder-sticker,
.keyword-section .keyword-card-memory,
.keyword-section .keyword-polaroid {
  animation: keyword-drift 6.5s ease-in-out infinite;
  will-change: transform;
}
.keyword-section .qoder-folder { --rotate: -10deg; animation-delay: 0.1s; }
.keyword-section .qoder-globe { --rotate: 2deg; animation-delay: 0.35s; }
.keyword-section .keyword-card-memory { --rotate: 8deg; animation-delay: 0.55s; }
.keyword-section .keyword-polaroid { --rotate: 8deg; animation-delay: 0.75s; }

/* ---------- 滚动性能优化 ---------- */
.landing-header {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: rgba(241, 248, 247, 0.97) !important;
}
.how-works-card {
  will-change: transform;
  backface-visibility: hidden;
}
.feature-polaroid {
  backface-visibility: hidden;
}
