:root {
  --bg-main: #fdfaf6;
  --text-main: #2d2a26;
  --text-muted: #6b6660;
  --pink: #ff8fa3;
  --pink-light: #ffe5ec;
  --blue: #78c2ff;
  --blue-light: #e0f2fe;
  --yellow: #ffd166;
  --yellow-light: #fff9e6;
  --purple: #b392f0;
  --purple-light: #f3e8ff;
  --border-color: #2d2a26;
  --radius: 16px;
  --shadow: 4px 4px 0px var(--border-color);
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(#e0dcd5 1px, transparent 1px);
  background-size: 20px 20px;
}

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

/* Header & Nav */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.brand-logo img {
  height: 36px;
  width: auto;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a {
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s;
}

.nav-links a:hover {
  background: var(--pink-light);
  color: var(--pink);
}

/* Hero Section */
.hero {
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, var(--pink-light) 0%, var(--blue-light) 100%);
  border-bottom: 3px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.4) 10px, rgba(255,255,255,0.4) 20px);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  line-height: 1.2;
  font-weight: 900;
  text-shadow: 2px 2px 0 #fff;
}

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

.hero p {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 32px;
  font-weight: 500;
}

.download-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-download {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--text-main);
  padding: 14px 28px;
  border: 2px solid var(--border-color);
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: var(--shadow);
  transition: transform 0.1s, box-shadow 0.1s;
  cursor: pointer;
}

.btn-download:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--border-color);
}

.btn-download.primary {
  background: var(--pink);
  color: #fff;
}

.btn-download.primary:hover {
  background: #ff708b;
}

/* Section Common */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 900;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 4px solid var(--pink);
  position: relative;
}

.section-title p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 1.05rem;
}

/* Section 1: Comic Panel Wall */
.bg-yellow { background-color: var(--yellow-light); }
.bg-pink { background-color: var(--pink-light); }
.bg-blue { background-color: var(--blue-light); }
.bg-purple { background-color: var(--purple-light); }

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.panel-item {
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s;
  aspect-ratio: 3/4;
}

.panel-item:hover {
  transform: scale(1.03);
  z-index: 2;
}

.panel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.panel-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--yellow);
  color: #000;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 0.8rem;
  border: 2px solid var(--border-color);
  transform: rotate(10deg);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.panel-item:hover .panel-tag {
  opacity: 1;
  transform: rotate(-5deg) scale(1.1);
}

.panel-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
  padding: 20px 10px 10px;
  font-weight: bold;
  font-size: 0.95rem;
}

/* Section 2: Timeline Scroll */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: var(--border-color);
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 40px;
  position: relative;
  margin-bottom: 40px;
  width: 50%;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 40px;
  margin-left: 50%;
}

.timeline-dot {
  position: absolute;
  top: 20px;
  right: -12px;
  width: 20px;
  height: 20px;
  background: var(--yellow);
  border: 3px solid var(--border-color);
  border-radius: 50%;
  z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -12px;
  background: var(--pink);
}

.timeline-content {
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  box-shadow: var(--shadow);
  width: 100%;
  align-items: center;
}

.timeline-content img {
  width: 100px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--border-color);
}

.timeline-text h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.timeline-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.timeline-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.timeline-meta span {
  background: var(--blue-light);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-main);
}

/* Section 3: Cloud Transfer */
.cloud-transfer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.device-bubble {
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  width: 200px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.device-bubble h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--pink);
}

.cloud-line {
  flex: 1;
  height: 4px;
  border-top: 4px dashed var(--border-color);
  margin: 0 20px;
  position: relative;
  display: flex;
  justify-content: center;
}

.sync-bubble {
  position: absolute;
  top: -40px;
  background: var(--yellow);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 8px 16px;
  font-weight: bold;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 2px 2px 0 var(--border-color);
}

.sync-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: var(--yellow);
  border-right: 2px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
  transform: rotate(45deg);
}

/* Section 4: Chat Bubble Matrix */
.chat-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.chat-bubble {
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 16px;
  position: relative;
  box-shadow: 3px 3px 0 var(--border-color);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.chat-bubble::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--border-color);
}

.chat-bubble::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 21px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid #fff;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
  object-fit: cover;
  background: #fff;
}

.chat-content p {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.chat-content .name {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: bold;
}

/* Section 5: FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 2px 2px 0 var(--border-color);
}

.faq-question {
  padding: 20px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--blue-light);
  transition: background 0.2s;
}

.faq-question:hover {
  background: #cce8ff;
}

.faq-question::after {
  content: '＋';
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--pink);
}

.faq-item.active .faq-question::after {
  content: '－';
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #fff;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 500px;
}

/* Section 6: Download Footer */
.download-section {
  background: var(--purple-light);
  border-top: 3px solid var(--border-color);
  text-align: center;
}

.install-steps {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.step-card {
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  width: 200px;
  box-shadow: var(--shadow);
  text-align: left;
}

.step-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--pink);
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.download-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Footer */
.site-footer {
  background: var(--text-main);
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  border-top: 4px solid var(--border-color);
}

.site-footer h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  font-weight: 900;
  color: var(--yellow);
}

.site-footer p {
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.update-time {
  font-size: 0.8rem;
  color: #777;
  margin-top: 20px;
}

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

.modal-overlay.show {
  display: flex;
}

.modal-box {
  background: #fff;
  border: 3px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 4px 4px 0 var(--border-color);
  color: var(--text-main);
}

.modal-box h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.modal-box p {
  font-size: 0.95rem;
  margin-bottom: 16px;
  word-break: break-all;
  background: #f0f0f0;
  padding: 10px;
  border-radius: 8px;
}

.modal-box button {
  background: var(--pink);
  color: #fff;
  border: 2px solid var(--border-color);
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--border-color);
}

.modal-box button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--border-color);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.2rem; }
  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; margin-left: 0 !important; justify-content: flex-start; padding-left: 50px; padding-right: 0; }
  .timeline-item:nth-child(even) { padding-left: 50px; }
  .timeline-dot { left: 10px !important; right: auto !important; }
  .timeline-content { flex-direction: column; text-align: center; }
  .timeline-content img { width: 100%; height: 180px; }
  .cloud-transfer { flex-direction: column; gap: 30px; }
  .cloud-line { width: 4px; height: 40px; border-top: none; border-left: 4px dashed var(--border-color); margin: 10px 0; }
  .sync-bubble { top: 50%; left: 20px; transform: translateY(-50%); }
  .sync-bubble::after { display: none; }
}

@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 12px; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 10px; font-size: 0.85rem; }
  .hero { padding: 40px 20px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .download-group { flex-direction: column; width: 100%; }
  .btn-download { width: 100%; justify-content: center; }
  .section-title h2 { font-size: 1.6rem; }
  .panel-grid { grid-template-columns: repeat(2, 1fr); }
  .chat-matrix { grid-template-columns: 1fr; }
  .install-steps { flex-direction: column; align-items: center; }
  .step-card { width: 100%; max-width: 300px; }
  .download-btns { flex-direction: column; align-items: center; }
  .download-btns .btn-download { width: 100%; max-width: 300px; }
}