:root {
  --brand-purple: #7c3aed;
  --brand-purple-light: #f3e8ff;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --radius-sm: 6px;
  --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-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background-color: var(--brand-purple);
  color: #fff;
}
.btn-primary:hover {
  background-color: #6d28d9;
}
.btn-outline {
  background-color: transparent;
  color: var(--brand-purple);
  border-color: var(--brand-purple);
}
.btn-outline:hover {
  background-color: var(--brand-purple-light);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-area img {
  height: 32px;
  width: auto;
  border-radius: 6px;
}
.logo-area span {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 1px;
}
.main-nav {
  display: flex;
  gap: 24px;
}
.main-nav a {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}
.main-nav a:hover {
  color: var(--brand-purple);
}

/* Hero Section */
.hero-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-color) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-text h1 {
  font-size: 42px;
  line-height: 1.3;
  margin-bottom: 20px;
  font-weight: 800;
}
.hero-text h1 span {
  color: var(--brand-purple);
}
.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 480px;
}
.hero-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-purple);
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}
.download-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.download-group .btn {
  flex: 1;
  min-width: 140px;
}
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  max-height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.1);
  background-color: var(--card-bg);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Common Section */
.section {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header h2 {
  font-size: 32px;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

/* Library Grid */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}
.tag {
  padding: 6px 18px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.tag.active, .tag:hover {
  background-color: var(--brand-purple-light);
  border-color: var(--brand-purple);
  color: var(--brand-purple);
}
.grid-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.comic-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.2s;
}
.comic-card:hover {
  transform: translateY(-4px);
}
.comic-cover {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.comic-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comic-info {
  padding: 12px;
}
.comic-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comic-chapter {
  font-size: 13px;
  color: var(--text-muted);
}

/* Smart Read */
.tri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-purple-light);
  color: var(--brand-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 20px;
}
.feature-box h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
.feature-box p {
  font-size: 14px;
  color: var(--text-muted);
}

/* 4K Split */
.split-console {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
}
.split-side {
  position: relative;
  aspect-ratio: 16/9;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.split-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(0.8);
}
.split-side.hd img {
  filter: none;
}
.split-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
}
.split-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--brand-purple);
  transform: translateX(-50%);
  z-index: 10;
}
.split-line::after {
  content: '↔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: var(--brand-purple);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.4);
}

/* Community */
.data-stream {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stream-card {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  gap: 20px;
}
.stream-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.stream-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stream-info {
  flex: 1;
}
.stream-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.stream-tags {
  display: flex;
  gap: 8px;
}
.stream-tag {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-color);
  padding: 2px 8px;
  border-radius: 4px;
}
.stream-progress {
  width: 120px;
}
.progress-bar {
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.progress-fill {
  height: 100%;
  background: var(--brand-purple);
  border-radius: 3px;
}
.progress-text {
  font-size: 12px;
  color: var(--brand-purple);
  text-align: right;
  font-weight: 600;
}

/* Creation Interact */
.task-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.panel-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.panel-box h3 {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.vote-item {
  margin-bottom: 20px;
}
.vote-title {
  font-size: 14px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.vote-bar {
  height: 8px;
  background: var(--bg-color);
  border-radius: 4px;
  overflow: hidden;
}
.vote-fill {
  height: 100%;
  background: var(--brand-purple);
}
.fanart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fanart-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-color);
}
.fanart-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.fanart-likes {
  padding: 8px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
}
.faq-cats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-cat-btn {
  padding: 12px 16px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 15px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.faq-cat-btn.active {
  background: var(--brand-purple-light);
  color: var(--brand-purple);
  font-weight: 600;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-q {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-a {
  padding: 0 20px 16px;
  color: var(--text-muted);
  font-size: 14px;
  display: block;
}

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h4 {
  font-size: 20px;
  margin-bottom: 16px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
  max-width: 400px;
}
.footer-links h5 {
  font-size: 16px;
  margin-bottom: 16px;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px;
  width: 90%;
  max-width: 400px;
  text-align: center;
}
.modal-box p {
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--text-main);
}
.modal-box input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-muted);
  background: var(--bg-color);
  text-align: center;
}
.modal-box .btn {
  width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 20px;
  }
  .hero-text h1 {
    font-size: 32px;
  }
  .grid-wall {
    grid-template-columns: repeat(3, 1fr);
  }
  .tri-grid {
    grid-template-columns: 1fr;
  }
  .task-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    max-height: 400px;
  }
  .hero-stats {
    flex-wrap: wrap;
  }
  .grid-wall {
    grid-template-columns: repeat(2, 1fr);
  }
  .split-console {
    grid-template-columns: 1fr;
  }
  .split-line {
    display: none;
  }
  .faq-layout {
    grid-template-columns: 1fr;
  }
  .faq-cats {
    flex-direction: row;
    overflow-x: auto;
  }
  .faq-cat-btn {
    white-space: nowrap;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .stream-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .stream-progress {
    width: 100%;
  }
}