:root {
  --bg-main: #f8f6f0;
  --bg-dark: #1a1512;
  --text-dark: #2b2622;
  --text-light: #5c544d;
  --accent: #d93838;
  --accent-grad: linear-gradient(135deg, #ff4b4b, #ff8a00, #ffd000);
  --card-bg: #ffffff;
  --border-color: #e6e0d6;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 16px rgba(0,0,0,0.06);
}
* { 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-main);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Header & Nav */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-dark);
}
.brand img {
  height: 32px;
  width: auto;
  border-radius: var(--radius-sm);
}
.nav-desktop {
  display: none;
}
.nav-desktop ul {
  display: flex;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--text-light);
}
.nav-desktop li {
  cursor: pointer;
  padding: 6px 4px;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 2px solid transparent;
}
.nav-desktop li:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 8px;
}
.mobile-nav {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 20px;
}
.mobile-nav.active { display: block; }
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-nav li {
  font-size: 1rem;
  color: var(--text-dark);
  padding: 8px;
  background: var(--bg-main);
  border-radius: var(--radius-sm);
  text-align: center;
}

/* Hero Section */
.hero {
  background: var(--bg-main);
  padding: 40px 20px;
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}
.hero-content h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text-dark);
}
.hero-content p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 24px;
}
.hero-carousel {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  height: 100%;
}
.carousel-track img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-nav {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
}
.carousel-dot.active {
  background: #ffffff;
}
.marquee-wrap {
  background: var(--bg-dark);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
  margin-top: 30px;
  border-radius: var(--radius-md);
}
.marquee-text {
  display: inline-block;
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: marquee 15s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, opacity 0.2s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); opacity: 0.9; }
.btn-android { background: #3ddc84; color: #fff; }
.btn-ios { background: #000000; color: #fff; }
.btn-web { background: #0078d4; color: #fff; }
.btn-harmony { background: #b1002b; color: #fff; }

/* Common Section Styles */
section {
  padding: 50px 20px;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--text-dark);
  text-align: center;
}
.section-title span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 400;
  margin-top: 6px;
}

/* New Today Section */
.section-new-today { background: #fff3e0; }
.scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}
.scroll-row::-webkit-scrollbar { height: 6px; }
.scroll-row::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.card-horizontal {
  flex: 0 0 200px;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}
.card-horizontal img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.card-horizontal .info {
  padding: 12px;
}
.card-horizontal .info h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-horizontal .info p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Weekly Schedule Section */
.section-schedule { background: #e8f5e9; }
.schedule-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
.schedule-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.timeline-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.timeline-time {
  font-weight: 700;
  color: var(--accent);
  min-width: 60px;
  font-size: 1.1rem;
}
.timeline-content {
  background: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  flex: 1;
  box-shadow: var(--shadow);
}
.timeline-content h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-light);
}
.schedule-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.poster-small {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.poster-small img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Trending Section */
.section-trending { background: #ede7f6; }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.trending-feature {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.trending-feature img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.trending-feature .text {
  padding: 20px;
}
.trending-feature .text h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.trending-feature .text p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 12px;
}
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trending-item {
  background: #fff;
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
}
.trending-item h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.trending-item p {
  font-size: 0.8rem;
  color: var(--text-light);
}
.rank-badge {
  background: var(--accent-grad);
  color: #fff;
  font-weight: 700;
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.9rem;
}

/* All Series Section */
.section-all { background: #fdf2f2; }
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.masonry-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.masonry-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.masonry-card .info {
  padding: 12px;
}
.masonry-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.tags {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.tag {
  background: #f0e6e6;
  color: var(--accent);
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
}
.date-text {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Submission Section */
.section-submit { background: #e0f7fa; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow);
}
.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--accent);
}
.faq-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Comments Section */
.section-comments { background: #fff9c4; }
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.comment-card {
  background: #fff;
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 12px;
  box-shadow: var(--shadow);
}
.comment-card .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.comment-card .content h3 {
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--text-dark);
}
.comment-card .content p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Protection & Feedback Section */
.section-safety { background: #f3e5f5; }
.info-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
.safety-box {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.safety-box h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.safety-box p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 16px;
}
.minor-guide-list {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-light);
  font-size: 0.9rem;
}
.minor-guide-list li { margin-bottom: 8px; }
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feedback-form input, .feedback-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
}
.feedback-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

/* Download Section */
.section-download {
  background: var(--bg-dark);
  color: #fff;
}
.download-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.step-card {
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: var(--radius-md);
}
.step-card h3 {
  color: #ff8a00;
  margin-bottom: 8px;
}
.step-card p {
  color: #ccc;
  font-size: 0.9rem;
}
.section-download .btn-group {
  justify-content: center;
}
.section-download .btn-web { background: #0078d4; }
.section-download .btn-harmony { background: #b1002b; }

/* Footer */
.site-footer {
  background: #111;
  color: #666;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.8rem;
}
.footer-nav {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-nav a { color: #999; }
.footer-nav a:hover { color: #fff; }
.footer-desc {
  margin-bottom: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.footer-copy {
  margin-bottom: 8px;
}
.beian-link {
  color: #888;
}
.update-time {
  display: block;
  margin-top: 6px;
  color: #555;
}

/* Floating Download Window */
.floating-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 10px 20px;
  border-radius: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 900;
  border: 1px solid var(--border-color);
}
.floating-download img {
  width: 28px; height: 28px;
  border-radius: 50%;
}
.floating-download a {
  background: var(--accent-grad);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Baidu Copy Modal */
.copy-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.copy-modal-overlay.active {
  display: flex;
}
.copy-modal {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 400px;
  text-align: center;
}
.copy-modal p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.copy-modal input {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-align: center;
  background: #f8f6f0;
}
.copy-modal button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 20px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
}

/* Responsive */
@media (min-width: 768px) {
  .header-top { padding: 16px 40px; }
  .nav-desktop { display: block; }
  .mobile-menu-btn, .mobile-nav { display: none !important; }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-content h1 { font-size: 2.5rem; }
  .hero-carousel { height: 400px; }
  .schedule-layout { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .masonry-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .info-split { grid-template-columns: 1fr 1fr; }
  .download-steps { grid-template-columns: repeat(3, 1fr); }
  .section-title { font-size: 2rem; }
}

@media (min-width: 1024px) {
  .masonry-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
  .schedule-right { grid-template-columns: repeat(2, 1fr); }
}