:root {
  --bg-main: #0f111a;
  --bg-card: #1a1d2b;
  --bg-card-hover: #222639;
  --text-primary: #f0f2f8;
  --text-secondary: #9aa3b5;
  --accent-pink: #ff4d6d;
  --accent-purple: #8a2be2;
  --accent-cyan: #00f0ff;
  --accent-gradient: linear-gradient(135deg, #ff4d6d, #8a2be2);
  --border-color: #2d3348;
  --radius-md: 12px;
  --radius-lg: 20px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-area img { height: 32px; width: 32px; border-radius: 8px; object-fit: cover; }
.logo-area span { font-size: 18px; font-weight: 700; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-menu { display: none; }
.desktop-nav { display: flex; gap: 20px; font-size: 14px; color: var(--text-secondary); }
.desktop-nav a { transition: color 0.2s; }
.desktop-nav a:hover { color: var(--accent-pink); }
.mobile-toggle {
  display: block;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}
.mobile-menu a {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: var(--bg-card-hover); color: var(--accent-pink); }

/* Hero */
.hero {
  padding: 40px 16px;
  background: linear-gradient(180deg, #0f111a 0%, #1a1d2b 100%);
  position: relative;
  overflow: hidden;
}
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.hero-text h1 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 16px;
  font-weight: 800;
}
.hero-text h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.hero-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.hero-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.hero-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255, 77, 109, 0.3); }
.btn-pink { background: var(--accent-pink); color: #fff; }
.btn-purple { background: var(--accent-purple); color: #fff; }
.btn-cyan { background: var(--accent-cyan); color: #000; }
.btn-outline { background: transparent; border: 1px solid var(--accent-pink); color: var(--accent-pink); }

/* Marquee */
.marquee-wrapper {
  background: #05050a;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-text {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(90deg, #ff4d6d, #ffb347, #00f0ff, #ff4d6d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: marquee 20s linear infinite;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Sections Common */
.section-container { max-width: 1200px; margin: 0 auto; padding: 40px 16px; }
.section-title { font-size: 24px; margin-bottom: 20px; font-weight: 700; text-align: center; }
.section-title span { color: var(--accent-pink); }

/* About Section */
.about-section { background: #141624; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.about-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}
.about-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--accent-cyan); }
.about-card p { font-size: 14px; color: var(--text-secondary); }

/* Qixi Section */
.qixi-section { background: #1c1829; }
.qixi-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.qixi-item {
  background: var(--bg-card-hover);
  border-left: 4px solid var(--accent-pink);
  padding: 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.qixi-item h4 { font-size: 16px; margin-bottom: 6px; }
.qixi-item p { font-size: 13px; color: var(--text-secondary); }

/* Contrast Section */
.contrast-section { background: #0f1a1a; }
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.contrast-card {
  background: rgba(255,255,255,0.03);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid #2a4040;
}
.contrast-card h4 { font-size: 16px; margin-bottom: 8px; color: #4df8c8; }
.contrast-card p { font-size: 13px; color: #8cb8b8; }

/* Reversal Section */
.reversal-section { background: #1f1522; }
.reversal-split {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.reversal-img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  max-height: 400px;
}
.reversal-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.reversal-text p { font-size: 14px; color: var(--text-secondary); }

/* FAQ Section */
.faq-section { background: #11141a; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
details.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
}
details.faq-item summary {
  padding: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: '+'; color: var(--accent-pink); font-size: 20px; }
details.faq-item[open] summary::after { content: '-'; }
details.faq-item p { padding: 0 16px 16px; font-size: 14px; color: var(--text-secondary); }

/* Comments */
.comments-section { background: #1a1520; }
.comment-list { display: flex; flex-direction: column; gap: 16px; }
.comment-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius-md);
}
.comment-item img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.comment-content h4 { font-size: 14px; color: var(--text-secondary); margin-bottom: 4px; }
.comment-content p { font-size: 14px; }

/* Download Section */
.download-section { background: linear-gradient(180deg, #0f111a, #2a1530); text-align: center; }
.download-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 30px;
}
.download-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.download-card h3 { font-size: 18px; }
.download-card p { font-size: 13px; color: var(--text-secondary); }
.install-steps {
  text-align: left;
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: var(--radius-lg);
  max-width: 600px;
  margin: 0 auto;
}
.install-steps h3 { margin-bottom: 12px; font-size: 18px; color: var(--accent-cyan); }
.install-steps ol { padding-left: 20px; font-size: 14px; color: var(--text-secondary); }
.install-steps li { margin-bottom: 8px; }

/* Floating Download */
.floating-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 29, 43, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent-pink);
  border-radius: 30px;
  padding: 8px 16px 8px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  width: 90%;
  max-width: 400px;
}
.floating-download img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.floating-text { flex: 1; display: flex; flex-direction: column; }
.floating-text span:first-child { font-size: 13px; font-weight: 700; color: #fff; }
.floating-text span:last-child { font-size: 11px; color: var(--text-secondary); }
.floating-btn {
  background: var(--accent-pink);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  white-space: nowrap;
}

/* Footer */
.site-footer {
  background: #05050a;
  padding: 40px 16px 80px;
  font-size: 12px;
  color: #555b6e;
  text-align: center;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.footer-links a { color: #555b6e; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-secondary); }
.footer-about {
  width: 100%;
  max-width: 800px;
  text-align: left;
  margin-top: 10px;
}
.footer-about summary {
  cursor: pointer;
  font-size: 12px;
  color: #555b6e;
  outline: none;
}
.footer-about summary:hover { color: var(--text-secondary); }
.footer-about-content {
  margin-top: 10px;
  padding: 12px;
  background: #0a0b10;
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
}
.footer-about-content a { color: #555b6e; }
.footer-about-content a:hover { color: var(--accent-pink); }
.footer-icp { margin-top: 10px; }
.footer-icp a { color: #555b6e; text-decoration: none; }
.footer-icp a:hover { color: var(--text-secondary); }
.footer-time { margin-top: 8px; font-size: 11px; color: #444; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 360px;
  text-align: center;
  border: 1px solid var(--accent-pink);
}
.modal-box p { font-size: 15px; margin-bottom: 16px; color: #fff; }
.modal-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  background: #0f111a;
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
}
.modal-close {
  background: var(--accent-pink);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}

/* Responsive */
@media (min-width: 768px) {
  .header-inner { padding: 12px 24px; }
  .desktop-nav { display: flex; }
  .mobile-toggle { display: none; }
  .hero-content { flex-direction: row; align-items: center; }
  .hero-text { flex: 1; }
  .hero-visual { flex: 1; }
  .hero-images { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .contrast-grid { grid-template-columns: repeat(2, 1fr); }
  .reversal-split { flex-direction: row; align-items: center; }
  .reversal-img { width: 45%; }
  .reversal-text { width: 55%; }
  .download-cards { grid-template-columns: repeat(2, 1fr); }
  .floating-download { width: auto; }
}
@media (min-width: 1024px) {
  .hero-text h1 { font-size: 42px; }
  .hero-content { gap: 50px; }
  .about-grid { grid-template-columns: repeat(3, 1fr); }
  .contrast-grid { grid-template-columns: repeat(3, 1fr); }
  .download-cards { grid-template-columns: repeat(4, 1fr); }
}