:root {
  --bg-main: #fcfaf6;
  --text-main: #212121;
  --text-muted: #666666;
  --brand-yellow: #ffc107;
  --brand-orange: #ff5722;
  --brand-dark: #1a1a1a;
  --brand-purple: #673ab7;
  --brand-teal: #009688;
  --brand-blue: #3f51b5;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --border-radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px; /* space for floating window */
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* Header */
.main-header {
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 20px;
  color: var(--brand-dark);
  white-space: nowrap;
}

.brand-logo img {
  height: 32px;
  width: 32px;
  border-radius: 6px;
}

.nav-menu {
  display: flex;
  gap: 20px;
  font-size: 15px;
  color: var(--text-muted);
}

.nav-menu a {
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--brand-orange);
  font-weight: 500;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--brand-dark);
  cursor: pointer;
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1.3;
}

.hero h1 span {
  color: var(--brand-orange);
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background-color: var(--brand-orange);
  color: #ffffff;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  transition: transform 0.2s, background-color 0.2s;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.btn-download:hover {
  background-color: #e64a19;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--brand-dark);
  border: 1px solid #cccccc;
  box-shadow: none;
}

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

.hero-gallery {
  display: flex;
  gap: 15px;
  justify-content: center;
  position: relative;
}

.hero-gallery img {
  width: 30%;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.hero-gallery img:nth-child(1) { transform: translateY(20px); }
.hero-gallery img:nth-child(2) { transform: translateY(-10px); z-index: 2; width: 35%; }
.hero-gallery img:nth-child(3) { transform: translateY(20px); }

.marquee-wrap {
  background-color: var(--brand-dark);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  font-weight: 600;
  font-size: 14px;
}

.marquee-text {
  display: inline-block;
  animation: scrollLeft 20s linear infinite;
}

.marquee-text span {
  margin: 0 20px;
  background: linear-gradient(90deg, #ffc107, #ff5722);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Section Common */
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--brand-dark);
}

.section-title h2 {
  display: inline-block;
  border-bottom: 4px solid var(--brand-yellow);
  padding-bottom: 8px;
}

.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Original */
.bg-original {
  background-color: #f0f7ff;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.card-item {
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.card-item:hover {
  transform: translateY(-5px);
}

.card-item img {
  width: 100%;
  height: 260px;
}

.card-info {
  padding: 12px;
}

.card-info h3 {
  font-size: 16px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  background: #e0f2f1;
  color: var(--brand-teal);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Magic / Timeline */
.bg-magic {
  background-color: #fbf8f1;
}

.timeline-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.timeline-left {
  flex: 1;
  position: sticky;
  top: 80px;
}

.timeline-left img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.timeline-right {
  flex: 1.5;
  position: relative;
  padding-left: 20px;
  border-left: 2px dashed #ccc;
}

.time-item {
  position: relative;
  margin-bottom: 24px;
}

.time-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--brand-orange);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--brand-orange);
}

.time-label {
  font-weight: bold;
  color: var(--brand-orange);
  font-size: 16px;
  margin-bottom: 4px;
}

.time-content {
  background: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  font-size: 14px;
}

/* Hot */
.bg-hot {
  background-color: #fdf4f4;
}

.hot-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hot-row {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  align-items: center;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hot-row img {
  width: 80px;
  height: 100px;
  border-radius: 8px;
}

.hot-row-info {
  padding-left: 16px;
}

.hot-row-info h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.hot-rank {
  font-size: 24px;
  font-weight: bold;
  color: var(--brand-orange);
  text-align: center;
}

/* New */
.bg-new {
  background-color: #f8fcf8;
}

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

.new-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border-radius: var(--border-radius);
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.new-card img {
  width: 100px;
  height: 140px;
  border-radius: 8px;
}

.new-card div {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.new-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

/* VIP */
.bg-vip {
  background-color: #302b3d;
  color: #fff;
}

.bg-vip .section-title h2 {
  color: #fff;
  border-bottom-color: #ffc107;
}

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

.vip-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--border-radius);
  padding: 24px;
  text-align: center;
}

.vip-card h3 {
  font-size: 20px;
  color: #ffc107;
  margin-bottom: 12px;
}

.vip-card ul {
  text-align: left;
  font-size: 14px;
  color: #ccc;
}

.vip-card li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.vip-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4caf50;
}

/* Privacy & Feedback */
.bg-privacy {
  background-color: #e8f5e9;
}

.privacy-layout {
  display: flex;
  gap: 40px;
}

.privacy-left {
  flex: 1;
}

.privacy-left h3 {
  font-size: 22px;
  margin-bottom: 16px;
  color: #2e7d32;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.faq-item h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--brand-dark);
}

.faq-item p {
  font-size: 14px;
  color: var(--text-muted);
}

.privacy-right {
  flex: 1;
}

.feedback-form {
  background: #fff;
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
}

.feedback-form button {
  padding: 12px;
  background-color: var(--brand-teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

/* Download Section */
.bg-download {
  background-color: #fff3e0;
}

.download-layout {
  display: flex;
  gap: 40px;
  align-items: center;
}

.download-steps {
  flex: 1;
}

.step-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--brand-orange);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.step-text h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.step-text p {
  font-size: 14px;
  color: var(--text-muted);
}

.download-btns-lg {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-lg {
  padding: 16px;
  background: #fff;
  color: var(--brand-dark);
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  border: 2px solid transparent;
  transition: all 0.2s;
}

.btn-lg:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

/* Comments */
.bg-comments {
  background-color: #fafafa;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-item {
  display: flex;
  gap: 12px;
  background: #fff;
  padding: 16px;
  border-radius: var(--border-radius);
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #eee;
  flex-shrink: 0;
}

.comment-content h4 {
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--brand-blue);
}

.comment-content p {
  font-size: 14px;
  color: var(--text-main);
}

/* Footer */
.site-footer {
  background: #222;
  color: #888;
  padding: 40px 20px 100px; /* space for floating */
  font-size: 13px;
  text-align: center;
}

.footer-links {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: #bbb;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  line-height: 2;
}

/* Floating Download */
.floating-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid #ffe082;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  border-radius: 40px;
  padding: 8px 16px 8px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 999;
  width: max-content;
  max-width: 90%;
}

.floating-download img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.float-text h4 {
  font-size: 14px;
  color: var(--brand-dark);
  margin: 0;
}

.float-text p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

.btn-float {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-yellow));
  color: #fff;
  padding: 10px 18px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-box {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.modal-box h3 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--text-main);
}

.copy-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 16px;
  text-align: center;
  color: #666;
  background: #f5f5f5;
}

.modal-box button {
  background: var(--brand-orange);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
}

/* Responsive */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}

.mobile-nav a {
  padding: 12px 20px;
  display: block;
  border-bottom: 1px solid #f9f9f9;
}

@media (max-width: 1023px) {
  .hero { grid-template-columns: 1fr; }
  .hero-gallery { display: none; }
  .timeline-layout { flex-direction: column; }
  .timeline-left { position: relative; top: 0; }
  .new-grid { grid-template-columns: 1fr; }
  .vip-grid { grid-template-columns: 1fr 1fr; }
  .privacy-layout { flex-direction: column; }
  .download-layout { flex-direction: column; }
  .download-btns-lg { width: 100%; }
}

@media (max-width: 767px) {
  .nav-menu { display: none; }
  .mobile-menu-btn { display: block; }
  .mobile-nav.active { display: flex; }
  
  .hero h1 { font-size: 24px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .vip-grid { grid-template-columns: 1fr; }
  .hot-row { grid-template-columns: 60px 1fr; }
  .hot-rank { display: none; }
  .hot-row img { width: 60px; height: 80px; }
  .download-btns-lg { grid-template-columns: 1fr; }
  
  .floating-download { width: 100%; max-width: 100%; border-radius: 0; bottom: 0; padding: 10px 16px; justify-content: space-between; }
  
  .section-wrap { padding: 40px 15px; }
  .hero { padding: 30px 15px; }
}