:root {
  --white: #ffffff;
  --orange: #ff5f15;
  --dark: #2d2d2d;
  --warm-gray: #f5f5f0;
  --light-orange: #fff3ed;
  --gold: #ffb347;
  --coral: #ff6b6b;
  --green: #2ecc71;
  --shadow-normal: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 24px rgba(255,95,21,0.15);
  --radius-lg: 12px;
  --radius-btn: 8px;
  --radius-tag: 20px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Noto Sans SC', 'PingFang SC', sans-serif;
  background-color: var(--white);
  color: var(--dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* 导航栏 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-area img {
  height: 36px;
  width: auto;
  border-radius: 50%;
}
.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
}
.nav-menu {
  display: flex;
  gap: 28px;
}
.nav-menu a {
  font-size: 15px;
  color: var(--dark);
  padding: 20px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-menu a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.search-box {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--orange);
  border-radius: 20px;
  padding-left: 12px;
  height: 36px;
  overflow: hidden;
}
.search-box input {
  border: none;
  outline: none;
  font-size: 13px;
  width: 180px;
  color: var(--dark);
}
.search-box input::placeholder {
  color: #aaa;
}
.search-btn {
  background: var(--orange);
  border: none;
  color: var(--white);
  height: 100%;
  padding: 0 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition);
}
.search-btn:hover {
  background: #e04f0a;
}

/* 容器 */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部留白 */
.main-content {
  padding-top: 80px;
}

/* Banner */
.banner-section {
  margin-bottom: 24px;
}
.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 480px;
}
.bento-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.bento-item:hover img {
  transform: scale(1.05);
}
.bento-large {
  grid-row: 1 / 3;
  grid-column: 1 / 2;
}
.gradient-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,0.85));
}
.main-title-container {
  position: absolute;
  bottom: 40px;
  right: 24px;
  text-align: right;
}
.main-title-container h1 {
  color: var(--white);
  font-weight: 900;
  font-size: 42px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  line-height: 1.2;
}
.comic-name-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
}
.dots-indicator {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.dot.active {
  background: var(--orange);
}
.small-bento-item .comic-name-tag {
  top: 12px;
  right: 12px;
  bottom: auto;
  left: auto;
  font-size: 13px;
}

/* 分类栏 */
.category-bar {
  display: flex;
  gap: 10px;
  padding: 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-bar::-webkit-scrollbar { display: none; }
.category-tag {
  background: var(--warm-gray);
  color: var(--dark);
  padding: 6px 18px;
  border-radius: var(--radius-tag);
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
}
.category-tag:hover {
  background: var(--light-orange);
}
.category-tag.active {
  background: var(--orange);
  color: var(--white);
}

/* 专题版块 */
.special-topic {
  background: linear-gradient(135deg, #fff3ed, #ffe8d6);
  border-radius: var(--radius-lg);
  padding: 40px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.topic-content {
  position: relative;
  z-index: 2;
}
.topic-badge {
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}
.topic-content h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}
.topic-content p {
  font-size: 16px;
  color: #666;
}
.topic-btn {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, var(--orange), #ff7a42);
  color: var(--white);
  padding: 12px 32px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(255,95,21,0.3);
}
.topic-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,95,21,0.4);
}

/* 最近更新 */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  padding-left: 12px;
  border-left: 4px solid var(--orange);
  line-height: 1.2;
}
.recent-scroll {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 16px 0;
  scrollbar-width: none;
}
.recent-scroll::-webkit-scrollbar { display: none; }
.recent-card {
  width: 160px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.recent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.recent-card .cover-wrap {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
}
.recent-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recent-card .bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  font-size: 14px;
}
.recent-card .update-time {
  color: var(--orange);
  font-size: 12px;
}

/* 核心双列布局 */
.core-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: stretch;
  gap: 24px;
  margin-bottom: 40px;
}
.zone-section {
  margin-bottom: 32px;
}
.zone-title {
  font-size: 20px;
  font-weight: 700;
  padding-left: 12px;
  border-left: 4px solid var(--orange);
  margin-bottom: 16px;
  line-height: 1.2;
}
.comic-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.comic-card {
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.comic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.comic-card .img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}
.comic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.comic-card:hover img {
  transform: scale(1.05);
}
.chapter-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comic-card .card-title {
  font-size: 14px;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.comic-card .card-date {
  font-size: 12px;
  color: #999;
}

/* 排行榜 */
.rank-sidebar {
  position: sticky;
  top: 84px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-normal);
  padding: 20px;
  align-self: start;
}
.rank-sidebar h2 {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
  margin-bottom: 16px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  transition: background var(--transition);
  border-radius: 6px;
}
.rank-item:hover {
  background: var(--light-orange);
}
.rank-num {
  font-size: 18px;
  font-weight: 700;
  width: 24px;
  text-align: center;
}
.rank-num.top-1 { color: #ff4757; }
.rank-num.top-2 { color: #ff6348; }
.rank-num.top-3 { color: #ffa502; }
.rank-item img {
  width: 40px;
  height: 54px;
  border-radius: 4px;
  object-fit: cover;
}
.rank-info {
  flex: 1;
}
.rank-name {
  font-size: 14px;
  margin-bottom: 2px;
}
.rank-heat {
  font-size: 12px;
  color: #999;
}
.rank-item:nth-child(-n+3) {
  background: var(--light-orange);
}

/* 全站风云榜 */
.full-width-section {
  margin-bottom: 40px;
}
.full-width-section .section-header h2 {
  font-size: 24px;
}
.triple-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rank-col {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-normal);
  padding: 20px;
}
.rank-col h3 {
  font-size: 18px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
  margin-bottom: 12px;
}
.rank-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background var(--transition);
}
.rank-list-item:hover {
  background: var(--light-orange);
}
.rank-list-item img {
  width: 40px;
  height: 54px;
  border-radius: 4px;
  object-fit: cover;
}
.rank-text-only {
  flex: 1;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

/* 原创精品 */
.four-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.original-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-normal);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.original-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.original-cover {
  position: relative;
  aspect-ratio: 3/4;
}
.original-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.exclusive-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}
.original-info {
  padding: 12px;
}
.original-info h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.genre-tag {
  display: inline-block;
  background: var(--warm-gray);
  color: #666;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: var(--radius-tag);
  margin-bottom: 6px;
}
.original-info p {
  font-size: 13px;
  color: #999;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 互动投票 */
.vote-box {
  background: linear-gradient(135deg, #fff3ed, #ffe8d6);
  border-radius: 16px;
  padding: 32px;
}
.vote-box h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--orange);
}
.vote-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition);
}
.vote-item:hover {
  background: rgba(255,255,255,0.5);
}
.vote-name {
  width: 120px;
  font-size: 15px;
  font-weight: 500;
}
.vote-bar-wrap {
  flex: 1;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}
.vote-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  border-radius: 4px;
  transition: width 0.5s ease;
}
.vote-count {
  width: 80px;
  font-size: 13px;
  color: #666;
  text-align: right;
}
.vote-percent {
  width: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  text-align: right;
}

/* 大家都在说 */
.say-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
}
.comment-list {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-normal);
  padding: 20px;
}
.comment-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.comment-item:last-child {
  border-bottom: none;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.comment-body {
  flex: 1;
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.comment-name {
  font-size: 14px;
  font-weight: 700;
}
.stars {
  color: var(--orange);
  font-size: 13px;
}
.comment-tag {
  background: var(--warm-gray);
  color: #999;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: var(--radius-tag);
}
.comment-text {
  font-size: 14px;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-normal);
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-box h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid var(--orange);
}
.tag-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-wall span {
  background: var(--warm-gray);
  color: #666;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-tag);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.tag-wall span:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.god-comment {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #666;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
}
.god-comment:last-child {
  border-bottom: none;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.faq-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid #eee;
  overflow: hidden;
  cursor: pointer;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
}
.faq-icon {
  font-size: 20px;
  color: var(--orange);
  transition: transform var(--transition);
}
.faq-card.open .faq-icon {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 16px;
  font-size: 14px;
  color: #666;
}
.faq-card.open .faq-a {
  max-height: 500px;
  padding: 0 16px 16px;
}

/* 多端下载 */
.download-section {
  text-align: center;
  padding: 60px 0;
}
.download-section h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 30px;
}
.download-phones {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.phone-mockup {
  width: 160px;
  height: 320px;
  background: #1a1a1a;
  border-radius: 24px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--dark);
  border-radius: 18px;
  overflow: hidden;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}
.download-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dl-btn {
  padding: 10px 24px;
  border: 1.5px solid var(--orange);
  border-radius: 24px;
  background: var(--white);
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.dl-btn:hover {
  background: var(--orange);
  color: var(--white);
}
.dl-main-btn {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.dl-main-btn:hover {
  background: #e04f0a;
  border-color: #e04f0a;
}

/* 合作商 */
.partner-section {
  text-align: center;
  margin-bottom: 40px;
}
.partner-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}
.partner-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.partner-card {
  background: #fafafa;
  border: 1px solid #eee;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--dark);
  transition: all var(--transition);
}
.partner-card:hover {
  background: var(--white);
  border-color: var(--orange);
  box-shadow: 0 4px 12px rgba(255,95,21,0.1);
}

/* 页脚 */
.footer {
  background: #1a2332;
  color: #fff;
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-col h4 {
  font-size: 15px;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col a {
  font-size: 13px;
  color: #8892a0;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--orange);
}
.footer-desc {
  font-size: 13px;
  color: #8892a0;
  line-height: 1.8;
  margin-top: 12px;
}
.footer-bottom {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #8892a0;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a {
  color: #8892a0;
  transition: color var(--transition);
}
.footer-bottom a:hover {
  color: var(--orange);
}
.update-time {
  font-size: 12px;
  color: #6b7a8d;
}

/* 弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal-overlay.show {
  display: flex;
}
.modal-box {
  width: 600px;
  max-width: 90vw;
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 20px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  line-height: 1;
}
.modal-cover {
  width: 180px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.modal-cover img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.modal-info {
  flex: 1;
}
.modal-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.modal-tag {
  display: inline-block;
  background: var(--light-orange);
  color: var(--orange);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-tag);
  margin-bottom: 8px;
}
.modal-note {
  font-size: 12px;
  color: #999;
  margin-bottom: 12px;
}
.copy-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.copy-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  color: #666;
  outline: none;
}
.copy-btn {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition);
}
.copy-btn:hover {
  background: #e04f0a;
}

/* 移动端底部悬浮栏 */
.mobile-download-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: var(--white);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  z-index: 1500;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
}
.mobile-download-text .line1 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}
.mobile-download-text .line2 {
  font-size: 11px;
  color: #999;
}
.mobile-dl-btn {
  background: var(--orange);
  color: var(--white);
  padding: 10px 24px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 3000;
  display: none;
}
.toast.show { display: block; }

/* 响应式 */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 240px 120px 120px;
    height: auto;
  }
  .bento-large {
    grid-row: 1 / 3;
    grid-column: 1 / 3;
  }
  .core-layout {
    grid-template-columns: 1fr;
  }
  .rank-sidebar {
    position: static;
  }
  .comic-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .triple-cols {
    grid-template-columns: 1fr;
  }
  .four-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .say-grid {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-menu {
    display: none;
  }
  .search-box {
    flex-grow: 1;
    margin-left: 16px;
  }
  .search-box input {
    width: 100%;
  }
}
@media (max-width: 640px) {
  .header {
    padding: 0 12px;
  }
  .brand-name {
    font-size: 16px;
  }
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 120px 120px;
    gap: 6px;
  }
  .bento-large {
    grid-row: 1 / 2;
    grid-column: 1 / 3;
  }
  .main-title-container h1 {
    font-size: 26px;
    bottom: 24px;
    right: 12px;
  }
  .comic-grid-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .four-cols {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .special-topic {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 24px;
    gap: 16px;
  }
  .topic-content h2 {
    font-size: 24px;
  }
  .vote-item {
    flex-wrap: wrap;
  }
  .vote-name {
    width: 100%;
  }
  .modal-box {
    flex-direction: column;
    padding: 16px;
  }
  .modal-cover {
    width: 100%;
  }
  .modal-cover img {
    aspect-ratio: 16/9;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .mobile-download-bar {
    display: flex;
  }
  .main-content {
    padding-bottom: 64px;
  }
  .container {
    padding: 0 12px;
  }
}