* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --purple: #A68BFF;
  --bg-white: #FFFFFF;
  --bg-purple-gray: #F7F5FA;
  --yellow: #FFD166;
  --text-main: #2D2A35;
  --text-sub: #8A8794;
  --radius: 16px;
  --radius-lg: 24px;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-title {
  font-size: 24px;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 32px;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--purple);
  border-radius: 2px;
}
.btn-primary {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 999px;
  transition: transform 0.2s, background 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); background: #9374f0; }
.btn-outline {
  display: inline-block;
  border: 1px solid var(--purple);
  color: var(--purple);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--purple); color: #fff; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #EEEAF5;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 32px; width: auto; }
.brand span { font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 15px; color: var(--text-sub); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--purple); }
.nav-search {
  display: flex;
  align-items: center;
  background: var(--bg-purple-gray);
  border-radius: 999px;
  padding: 8px 16px;
  width: 200px;
}
.nav-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 100%;
  color: var(--text-main);
}
.nav-search input::placeholder { color: var(--text-sub); }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-main); }

/* Hero */
.hero {
  text-align: center;
  padding: 72px 0 56px;
  background: linear-gradient(180deg, #FDFCFF 0%, #FFFFFF 100%);
}
.hero h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.hero h1 em { font-style: normal; color: var(--purple); }
.hero p {
  font-size: 17px;
  color: var(--text-sub);
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-actions { display: flex; justify-content: center; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.hero-gallery figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(166,139,255,0.16);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  background: var(--bg-purple-gray);
}
.hero-gallery figure:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 44px rgba(166,139,255,0.26);
}
.hero-gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }

/* Features */
.features { padding: 56px 0; background: var(--bg-white); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-white);
  border: 1px solid #EEEAF5;
  border-radius: var(--radius);
  padding: 28px 22px;
  height: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover { border-color: var(--purple); box-shadow: 0 8px 24px rgba(166,139,255,0.12); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(166,139,255,0.14);
  color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-sub); }

/* Daily update */
.daily { padding: 56px 0; background: var(--bg-purple-gray); }
.daily-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.daily-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #EEEAF5;
}
.daily-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.daily-card .daily-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.daily-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.daily-card p { font-size: 13px; color: var(--text-sub); margin-bottom: 12px; flex: 1; }
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,209,102,0.22);
  color: #B8871A;
  width: fit-content;
}

/* Categories */
.categories { padding: 64px 0; }
.cat-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.cat-col h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #EEEAF5;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.cat-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-purple-gray);
}
.cat-item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.cat-item p { font-size: 13px; text-align: center; padding: 10px 6px; font-weight: 500; }

/* Hot topics */
.hot { padding: 64px 0; background: var(--bg-purple-gray); }
.hot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hot-card {
  background: var(--bg-white);
  border: 1px solid #EEEAF5;
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.2s, transform 0.2s;
}
.hot-card:hover { border-color: var(--purple); transform: translateY(-4px); }
.hot-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(166,139,255,0.14);
  color: var(--purple);
  width: fit-content;
  margin-bottom: 14px;
}
.hot-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; line-height: 1.45; }
.hot-card p { font-size: 14px; color: var(--text-sub); margin-bottom: 20px; flex: 1; }
.hot-meta { font-size: 13px; color: var(--purple); font-weight: 600; }

/* Creator wall */
.creator { padding: 64px 0; }
.creator-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #EEEAF5;
  background: var(--bg-white);
}
.creator-left {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #FBFAFE;
}
.creator-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(166,139,255,0.2);
}
.creator-name { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.creator-quote {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 20px;
}
.creator-likes { font-size: 14px; color: var(--text-sub); }
.creator-likes strong { color: var(--yellow); }
.creator-right { position: relative; }
.creator-right img { width: 100%; height: 100%; object-fit: cover; }
.creator-read {
  position: absolute;
  bottom: 20px; right: 20px;
}

/* Community */
.community { padding: 64px 0; background: var(--bg-purple-gray); }
.community-grid {
  columns: 4;
  column-gap: 20px;
}
.msg-card {
  break-inside: avoid;
  background: var(--bg-white);
  border: 1px solid #EDE7F8;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.msg-card p { font-size: 14px; color: var(--text-main); margin-bottom: 10px; }
.msg-user { font-size: 13px; color: var(--text-sub); display: flex; align-items: center; gap: 6px; }
.msg-star { color: var(--yellow); font-weight: 700; }

/* Download */
.download {
  background: var(--purple);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.download-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}
.download-text h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.download-text p { font-size: 16px; opacity: 0.9; margin-bottom: 24px; }
.download .btn-primary { background: #fff; color: var(--purple); }
.download .btn-primary:hover { background: #F2EDFF; }
.download-phones { display: flex; gap: 16px; }
.download-phones img {
  width: 140px;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

/* Footer */
footer {
  padding: 36px 0 28px;
  border-top: 1px solid #EEEAF5;
  text-align: center;
  font-size: 13px;
  color: var(--text-sub);
}
footer p { margin-bottom: 8px; }
footer a { color: var(--text-sub); }
footer a:hover { color: var(--purple); }
.footer-time { margin-top: 6px; font-size: 12px; color: #B8B4C2; }

/* Floating */
.float-download {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 200;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(166,139,255,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.float-download:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(166,139,255,0.62); }

/* Responsive */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .daily-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-columns { grid-template-columns: 1fr; gap: 36px; }
  .hot-grid { grid-template-columns: repeat(2, 1fr); }
  .community-grid { columns: 3; }
  .download-inner { flex-direction: column; text-align: center; }
  .download-phones { justify-content: center; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-search { display: none; }
  .menu-toggle { display: block; }
  .nav-wrap.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    padding: 16px 24px;
    border-bottom: 1px solid #EEEAF5;
    gap: 16px;
  }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .hero-gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .feature-grid { grid-template-columns: 1fr; }
  .daily-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hot-grid { grid-template-columns: 1fr; }
  .creator-card { grid-template-columns: 1fr; }
  .creator-left { padding: 32px 24px; }
  .community-grid { columns: 2; column-gap: 14px; }
  .download-phones img { width: 120px; }
  .float-download { right: 16px; bottom: 18px; padding: 12px 20px; font-size: 14px; }
  .section-title { font-size: 20px; }
}
@media (max-width: 420px) {
  .community-grid { columns: 1; }
  .daily-grid { grid-template-columns: 1fr; }
}