/* ===== TwiNote 官网样式表（本地化） ===== */
/* 设计主题：SNS 社交风格日记 - 蓝色系，简洁大气 */

:root {
  --c-primary: #1d9bf0;
  --c-primary-dark: #0a6cbd;
  --c-primary-deep: #0a4f8f;
  --c-accent: #7c3aed;
  --c-accent-soft: #a78bfa;
  --c-bg: #ffffff;
  --c-bg-soft: #f6f9fd;
  --c-bg-card: #ffffff;
  --c-text: #0f172a;
  --c-text-muted: #64748b;
  --c-border: #e6edf5;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 107, 189, 0.16);
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1160px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 通用区块标题 ===== */
.section { padding: 96px 0; }
.section-soft { background: var(--c-bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--c-primary);
  background: #e8f4fe;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-head p {
  margin-top: 16px;
  color: var(--c-text-muted);
  font-size: 16px;
}

/* ===== 顶部导航 ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--c-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.brand span { background: linear-gradient(90deg, var(--c-primary-dark), var(--c-accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  font-size: 15px;
  color: var(--c-text-muted);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  background: none;
  border: none;
  font-family: inherit;
}
.nav-link:hover { color: var(--c-primary); background: #eef6ff; }
.nav-cta {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(29, 155, 240, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(29, 155, 240, 0.45); background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark)) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-text); border-radius: 2px; transition: 0.3s; }
.nav-toggle span + span { margin-top: 6px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 72px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(124, 58, 237, 0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(29, 155, 240, 0.14), transparent 55%),
    linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary-dark);
  margin-bottom: 24px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-primary); box-shadow: 0 0 0 4px rgba(29, 155, 240, 0.2); }
.hero h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--c-primary) 0%, var(--c-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  margin-top: 22px;
  font-size: 18px;
  color: var(--c-text-muted);
  max-width: 520px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff;
  box-shadow: 0 12px 28px rgba(29, 155, 240, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(29, 155, 240, 0.5); }
.btn-ghost { background: #fff; color: var(--c-text); border: 1px solid var(--c-border); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--c-primary); color: var(--c-primary); box-shadow: var(--shadow-md); }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.stat .num { font-size: 30px; font-weight: 800; color: var(--c-text); letter-spacing: -0.02em; }
.stat .num .grad { background: linear-gradient(120deg, var(--c-primary), var(--c-accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .label { font-size: 13px; color: var(--c-text-muted); margin-top: 2px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual img { width: 100%; max-width: 400px; filter: drop-shadow(0 30px 50px rgba(10, 107, 189, 0.22)); }
.hero-visual .blob {
  position: absolute;
  inset: 8% 6%;
  background: radial-gradient(circle at 50% 40%, rgba(124, 58, 237, 0.18), transparent 65%);
  filter: blur(30px);
  z-index: -1;
}

/* ===== 功能卡片 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 30px; height: 30px; }
.fi-blue { background: #e8f4fe; color: var(--c-primary); }
.fi-purple { background: #f3e8ff; color: var(--c-accent); }
.fi-amber { background: #fef3c7; color: #d97706; }
.fi-green { background: #dcfce7; color: #16a34a; }
.fi-pink { background: #fce7f3; color: #db2777; }
.fi-sky { background: #e0f2fe; color: #0369a1; }
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--c-text-muted); font-size: 15px; }

/* ===== 亮点（编号） ===== */
.highlights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.highlight-card {
  position: relative;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.highlight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.highlight-card::before {
  content: attr(data-num);
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 64px;
  font-weight: 800;
  color: #eef4fb;
  line-height: 1;
  z-index: 0;
}
.highlight-card > * { position: relative; z-index: 1; }
.highlight-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.highlight-card p { color: var(--c-text-muted); font-size: 15px; }

/* ===== 截图画廊 ===== */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: end;
}
.shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  background: #0f172a;
}
.shot:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-lg); }
.shot img { width: 100%; height: auto; }
.shot:nth-child(2) { transform: translateY(28px); }
.shot:nth-child(2):hover { transform: translateY(20px) scale(1.02); }

/* ===== 下载区 ===== */
.download {
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(124, 58, 237, 0.16), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(29, 155, 240, 0.22), transparent 60%),
    linear-gradient(135deg, #0a4f8f 0%, #0a6cbd 50%, #5b21b6 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.download h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.02em; }
.download p { margin-top: 14px; color: rgba(255, 255, 255, 0.85); font-size: 16px; }
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--c-primary-dark);
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  margin-top: 26px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s var(--ease);
}
.dl-btn:hover { transform: translateY(-3px); }
.dl-btn svg { width: 22px; height: 22px; }
.dl-meta { display: flex; gap: 24px; margin-top: 26px; flex-wrap: wrap; }
.dl-meta div { font-size: 13px; color: rgba(255, 255, 255, 0.8); }
.dl-meta strong { display: block; font-size: 17px; color: #fff; font-weight: 700; }
.dl-visual { display: flex; justify-content: center; }
.dl-visual img { width: 200px; height: 200px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3)); }

/* ===== FAQ ===== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq-item[open] { border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 22px 26px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--c-primary);
  font-weight: 400;
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 26px 24px; color: var(--c-text-muted); font-size: 15px; }

/* ===== 用户评价 ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.review-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stars { color: #fbbf24; letter-spacing: 2px; margin-bottom: 14px; font-size: 15px; }
.review-card blockquote { font-size: 15px; color: var(--c-text); line-height: 1.75; }
.reviewer { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.reviewer .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 16px;
}
.reviewer .name { font-weight: 700; font-size: 14px; }
.reviewer .role { font-size: 12px; color: var(--c-text-muted); }

/* ===== 页脚 ===== */
.footer { background: #0b1220; color: #94a3b8; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .brand img { width: 36px; height: 36px; }
.footer-about p { font-size: 14px; line-height: 1.8; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 600; }
.footer-col a { display: block; font-size: 14px; color: #94a3b8; padding: 6px 0; cursor: pointer; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--c-primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 13px; flex-wrap: wrap; gap: 12px; }

/* ===== 滚动出现动画 ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-badge, .hero-actions, .hero-stats { justify-content: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-visual img { max-width: 320px; }
  .features-grid, .highlights-grid, .shots-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .download { grid-template-columns: 1fr; padding: 48px 32px; text-align: center; }
  .dl-btn, .dl-meta { margin-left: auto; margin-right: auto; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--c-border); padding: 12px 16px; gap: 4px; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-links .nav-link { width: 100%; text-align: left; }
  .nav-toggle { display: block; }
  .features-grid, .highlights-grid, .shots-grid, .reviews-grid, .footer-grid { grid-template-columns: 1fr; }
  .shot:nth-child(2) { transform: none; }
  .shot:nth-child(2):hover { transform: translateY(-8px) scale(1.02); }
  .hero-stats { gap: 24px; }
  .download { padding: 40px 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ===== 导航激活态（多页面） ===== */
.nav-link.active,
.nav-link[aria-current="page"] {
  color: var(--c-primary);
  background: #eef6ff;
  font-weight: 600;
}
.nav-link.active.nav-cta,
.nav-link[aria-current="page"].nav-cta {
  color: #fff !important;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
}

/* ===== 内页 Banner ===== */
.page-banner {
  position: relative;
  padding: 72px 0 40px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(900px 380px at 80% -20%, rgba(124, 58, 237, 0.10), transparent 60%),
    radial-gradient(700px 380px at 0% 0%, rgba(29, 155, 240, 0.14), transparent 55%),
    linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
}
.page-banner h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-top: 6px;
}
.page-banner h1 .grad {
  background: linear-gradient(120deg, var(--c-primary) 0%, var(--c-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-banner p {
  margin: 18px auto 0;
  color: var(--c-text-muted);
  font-size: 17px;
  max-width: 660px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--c-text-muted);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--c-primary); transition: opacity 0.2s var(--ease); }
.breadcrumb a:hover { opacity: 0.75; }
.breadcrumb span.sep { margin: 0 8px; color: #cbd5e1; }

/* ===== “查看全部” 链接 ===== */
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-weight: 600;
  color: var(--c-primary);
  font-size: 15px;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.more-link:hover { gap: 12px; color: var(--c-accent); }
.more-link svg { width: 18px; height: 18px; }
.section-foot { text-align: center; }

/* ===== 截图大图展示（内页） ===== */
.shots-large { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: end; }
.shots-large .shot:nth-child(2) { transform: none; }
.shots-large .shot:nth-child(2):hover { transform: translateY(-8px) scale(1.02); }
.shot-caption { text-align: center; margin-top: 16px; }
.shot-caption h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.shot-caption p { font-size: 13px; color: var(--c-text-muted); }

/* ===== 内页内容段落（用于亮点/功能详情） ===== */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { color: var(--c-text-muted); font-size: 16px; margin-bottom: 16px; }

@media (max-width: 960px) {
  .shots-large { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .page-banner { padding: 56px 0 32px; }
  .shots-large { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
}
