/* =========================================================
   云笔记 主页 — 纯静态品牌展示页
   品牌绿 #07C160(与 App 一致) · PC 为主,响应式
   ========================================================= */

:root {
  --brand: #07c160;
  --brand-dark: #06ad56;
  --brand-soft: #e8f8f0;
  --text: #1f2329;
  --text-secondary: #5a6068;
  --text-muted: #8a919c;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --border: #e8eaed;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 35, 25, 0.08);
  --container: 1120px;
}

* { 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; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.brand-name { font-size: 18px; font-weight: 700; letter-spacing: 0.5px; }

.brand-slogan {
  font-size: 13px;
  color: var(--text-muted);
  border-left: 1px solid var(--border);
  padding-left: 10px;
  margin-left: 2px;
}

.site-nav { display: flex; gap: 28px; }

.site-nav a {
  font-size: 15px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--brand-soft) 0%, #ffffff 100%);
  padding: 88px 0 72px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 1px;
}

.hero-sub {
  margin: 20px 0 32px;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 28px;
  border-radius: 23px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }

.btn-ghost {
  background: #fff;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.btn-ghost:hover { background: var(--brand-soft); }

/* 手机示意框(CSS 绘制,占位) */
.hero-visual { display: flex; flex-direction: column; align-items: center; }

.phone {
  width: 260px;
  height: 520px;
  border-radius: 36px;
  background: #111418;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(10, 30, 20, 0.28);
  border: 2px solid #2a2f36;
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 27px;
  background: #f7f7f7;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #111;
}

.phone-battery {
  width: 18px;
  height: 9px;
  border: 1.5px solid #111;
  border-radius: 3px;
  position: relative;
}
.phone-battery::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 2px;
  width: 2px;
  height: 4px;
  background: #111;
  border-radius: 0 1px 1px 0;
}
.phone-battery::before {
  content: "";
  position: absolute;
  inset: 1.5px;
  width: 60%;
  background: var(--brand);
  border-radius: 1px;
}

.phone-appbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 700;
  background: #fff;
}

.phone-add {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  line-height: 22px;
  text-align: center;
  font-weight: 600;
}

.phone-note {
  margin: 12px 14px 0;
  padding: 12px 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pn-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; }

.pn-line {
  height: 8px;
  border-radius: 4px;
  background: #e9ebee;
  margin-top: 6px;
}
.pn-line.w90 { width: 90%; }
.pn-line.w85 { width: 85%; }
.pn-line.w80 { width: 80%; }
.pn-line.w75 { width: 75%; }
.pn-line.w60 { width: 60%; }

.pn-img {
  margin-top: 10px;
  height: 84px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e3f6ec, #cdeedb);
  color: var(--brand);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(7, 193, 96, 0.5);
}

.phone-share {
  margin: auto 14px 14px;
  height: 42px;
  border: none;
  border-radius: 21px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.caption {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.caption em { color: var(--brand); font-style: normal; font-weight: 600; }

/* ---------- 功能亮点 ---------- */
.features { padding: 88px 0; }

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 1px;
}

.section-sub {
  text-align: center;
  margin: 12px auto 48px;
  font-size: 15px;
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(7, 193, 96, 0.4);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg { width: 24px; height: 24px; }

.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }

.feature-card p { font-size: 14px; color: var(--text-secondary); }

/* ---------- 分享效果演示 ---------- */
.demo {
  padding: 88px 0 96px;
  background: var(--bg-soft);
}

.demo-wrap { max-width: 640px; margin: 0 auto; }

.moments {
  background: #f7f7f7;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.moments-head {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.moments-item {
  display: flex;
  gap: 12px;
  padding: 20px 18px 16px;
}

.moments-avatar {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.moments-body { flex: 1; min-width: 0; }

.moments-name { font-size: 15px; font-weight: 700; color: #576b95; }

.moments-text { font-size: 15px; margin: 6px 0 10px; }

/* 微信链接卡片:标题 + 绿边缩略图 */
.wechat-card {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.wc-text {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wc-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.wc-thumb {
  flex: none;
  width: 96px;
  min-height: 72px;
  border-left: 2px solid var(--brand);
  background: linear-gradient(135deg, #cdeedb, #f2faf5);
  color: var(--brand);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 4px 4px 0;
}

.moments-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.demo-note {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #1f2329;
  color: #aeb4bd;
  padding: 48px 0 40px;
  text-align: center;
}

.footer-brand { font-size: 20px; font-weight: 700; color: #fff; }

.footer-slogan { margin: 8px 0 16px; font-size: 14px; }

.footer-copy { font-size: 13px; color: #7c838d; }

/* ---------- 滚动浮现(JS 增强,无 JS 不隐藏内容) ---------- */
.reveal { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero { padding: 64px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 28px; }
}

@media (max-width: 640px) {
  .brand-slogan { display: none; }
  .site-nav { gap: 18px; }
  .hero h1 { font-size: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .features, .demo { padding: 64px 0; }
  .phone { width: 230px; height: 460px; }
  .wc-thumb { width: 84px; }
}
