:root {
  --bg-dark: #0a0a0c;
  --bg-card: #16161a;
  --bg-card-hover: #1f1f24;
  --primary: #d92534;
  --primary-hover: #b81e2b;
  --text-main: #f2f2f5;
  --text-muted: #9a9aa2;
  --border: #2a2a30;
  --gradient-accent: linear-gradient(135deg, #d92534 0%, #7a1123 100%);
  --gradient-dark: linear-gradient(180deg, #16161a 0%, #0a0a0c 100%);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 70px;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}
.brand img {
  height: 32px;
  width: auto;
}
.nav-links {
  display: none;
  gap: 20px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav-links a:hover {
  color: var(--text-main);
}

/* Hero */
.hero {
  padding: 40px 0;
  background: var(--gradient-dark);
  text-align: center;
}
.hero h1 {
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #fff, #ffb3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hero-carousel::-webkit-scrollbar {
  display: none;
}
.hero-carousel img {
  width: 200px;
  height: 280px;
  border-radius: 12px;
  scroll-snap-align: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

/* Sections Common */
section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.sec-title {
  font-size: 22px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}
.sec-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Daily Update */
.daily-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.daily-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.daily-item {
  display: flex;
  gap: 12px;
  background: var(--bg-card);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.daily-item:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}
.daily-poster {
  width: 60px;
  height: 84px;
  border-radius: 6px;
  flex-shrink: 0;
}
.daily-info h3 {
  font-size: 16px;
  margin-bottom: 4px;
}
.daily-info p {
  font-size: 13px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tag-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.tag {
  font-size: 11px;
  padding: 2px 6px;
  background: rgba(217, 37, 52, 0.15);
  color: #ff8a93;
  border-radius: 4px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 24px;
  margin-top: 20px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.tl-item {
  position: relative;
  margin-bottom: 24px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--bg-dark);
}
.tl-time {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.tl-content {
  font-size: 14px;
  color: var(--text-main);
}

/* Ranking */
.ranking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.rank-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  padding: 12px;
  border-radius: 10px;
}
.rank-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--border);
  font-style: italic;
  width: 30px;
  text-align: center;
}
.rank-card:nth-child(1) .rank-num,
.rank-card:nth-child(2) .rank-num,
.rank-card:nth-child(3) .rank-num {
  color: var(--primary);
}
.rank-img {
  width: 80px;
  height: 110px;
  border-radius: 8px;
  flex-shrink: 0;
}
.rank-info h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

/* Magic Edit */
.magic-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.magic-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.magic-card img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s;
}
.magic-card:hover img {
  transform: scale(1.05);
}
.magic-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 10px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.magic-overlay h3 {
  font-size: 14px;
  text-align: center;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.faq-q {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after {
  content: "+";
  font-size: 18px;
  color: var(--text-muted);
}
.faq-item.active .faq-q::after {
  content: "-";
}
.faq-a {
  padding: 0 16px 14px;
  font-size: 14px;
  color: var(--text-muted);
  display: none;
}
.faq-item.active .faq-a {
  display: block;
}

/* Community */
.community-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.msg-card {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  gap: 12px;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-accent);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}
.msg-body {
  flex: 1;
}
.msg-name {
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 4px;
}
.msg-text {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 6px;
}
.msg-time {
  font-size: 12px;
  color: var(--text-muted);
}

/* Wish List */
.wish-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.wish-item {
  background: var(--bg-card);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}
.wish-item span {
  color: var(--primary);
  font-weight: bold;
}

/* Platform News */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-item {
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
  display: flex;
  gap: 12px;
  font-size: 14px;
}
.news-date {
  color: var(--primary);
  font-weight: bold;
  flex-shrink: 0;
}

/* Download */
.download-sec {
  text-align: center;
  background: var(--gradient-accent);
  border-radius: 16px;
  padding: 40px 20px;
  margin: 40px 16px;
}
.download-sec h2 {
  font-size: 24px;
  margin-bottom: 12px;
  border: none;
  justify-content: center;
}
.download-sec h2::before {
  display: none;
}
.download-sec p {
  font-size: 14px;
  margin-bottom: 24px;
  opacity: 0.9;
}
.btn-download {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  font-weight: bold;
  padding: 12px 32px;
  border-radius: 30px;
  font-size: 16px;
  transition: transform 0.2s;
}
.btn-download:hover {
  transform: scale(1.05);
}

/* Floating Button */
.float-btn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: #fff;
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(217, 37, 52, 0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 16px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
footer p {
  margin-bottom: 8px;
}
footer a {
  color: var(--text-muted);
}
footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hero h1 { font-size: 36px; }
  .hero-carousel img { width: 240px; height: 340px; }
  .daily-layout { grid-template-columns: 1fr 1fr; gap: 40px; }
  .ranking-grid { grid-template-columns: repeat(2, 1fr); }
  .magic-wall { grid-template-columns: repeat(3, 1fr); }
  .community-grid { grid-template-columns: repeat(2, 1fr); }
  .download-sec { margin: 40px auto; max-width: 800px; }
}

@media (min-width: 1024px) {
  .hero-carousel img { width: 280px; height: 400px; }
  .daily-layout { grid-template-columns: 3fr 2fr; }
  .ranking-grid { grid-template-columns: repeat(3, 1fr); }
  .magic-wall { grid-template-columns: repeat(4, 1fr); }
  .community-grid { grid-template-columns: repeat(3, 1fr); }
}