:root {
  --bg-main: #E8F4FD;
  --bg-light: #F5FAFE;
  --bg-lighter: #F0F8FF;
  --brand-blue: #5BA8E8;
  --brand-dark: #2B6CB0;
  --accent-orange: #FF8A65;
  --accent-green: #4ECDC4;
  --text-main: #2D3748;
  --text-muted: #718096;
  --white: #FFFFFF;
  --border-light: #D0E8FA;
  --shadow-hover: 0 8px 24px rgba(91,168,232,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

/* 导航栏 */
.navbar {
  position: sticky;
  top: 0;
  height: 64px;
  background-color: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 100;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 32px;
  width: auto;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: 32px;
}

.nav-links a {
  font-size: 15px;
  color: var(--text-main);
  position: relative;
  padding: 8px 0;
}

.nav-links a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-orange);
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from { width: 0; }
  to { width: 100%; }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-outline {
  border: 1px solid var(--brand-dark);
  color: var(--brand-dark);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-outline:hover {
  background-color: var(--bg-lighter);
}

.btn-primary {
  background-color: var(--accent-orange);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #E8F4FD 0%, #D0E8FA 100%);
  padding: 60px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 540px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  max-width: 60%;
  z-index: 2;
}

.hero-announcement {
  background-color: rgba(255,255,255,0.8);
  color: var(--accent-orange);
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 48px;
  line-height: 1.2;
  color: var(--brand-dark);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 32px;
}

.search-box {
  display: flex;
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 4px;
  max-width: 500px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-size: 15px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.search-box button {
  background-color: var(--accent-orange);
  color: var(--white);
  border: none;
  padding: 0 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  cursor: pointer;
}

.hot-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hot-tag {
  background-color: rgba(255,255,255,0.6);
  color: var(--brand-dark);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.btn-large-primary {
  background-color: var(--accent-orange);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-large-outline {
  background-color: var(--white);
  color: var(--brand-dark);
  border: 1px solid var(--brand-dark);
  padding: 14px 32px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-visual {
  flex: 0 0 40%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.mockup-books {
  position: relative;
  width: 280px;
  height: 380px;
}

.mockup-books img {
  position: absolute;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  object-fit: cover;
}

.mockup-books img:nth-child(1) {
  width: 240px;
  height: 340px;
  top: 20px;
  left: -20px;
  transform: rotate(-8deg);
  z-index: 1;
}

.mockup-books img:nth-child(2) {
  width: 260px;
  height: 360px;
  top: 0;
  left: 40px;
  transform: rotate(4deg);
  z-index: 2;
  border: 4px solid var(--white);
}

/* 快捷入口 */
.quick-entry {
  background-color: var(--white);
  padding: 24px 5%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-bottom: 1px solid var(--border-light);
}

.q-card {
  background-color: var(--bg-lighter);
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.q-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.q-icon {
  font-size: 24px;
}

.q-text h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

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

/* 今日更新 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.section-title {
  font-size: 28px;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title .dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
}

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

.section-link {
  color: var(--brand-blue);
  font-size: 14px;
}

.today-update {
  background-color: var(--bg-light);
  padding: 48px 5%;
}

.scroll-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: none; /* Firefox */
}
.scroll-container::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.comic-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 12px;
  flex: 0 0 180px;
  position: relative;
  transition: transform 0.2s;
  border: 1px solid transparent;
}

.comic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.comic-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background-color: var(--accent-green);
  color: var(--white);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}

.comic-name {
  font-size: 15px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.comic-author {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.comic-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.genre-tag {
  background-color: var(--bg-lighter);
  color: var(--brand-dark);
  padding: 2px 8px;
  border-radius: 4px;
}

/* 热门榜单 */
.ranking-section {
  background-color: var(--white);
  padding: 56px 5%;
  display: flex;
  gap: 40px;
}

.ranking-list-wrap {
  flex: 2;
}

.editor-pick-wrap {
  flex: 1;
}

.ranking-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.ranking-tabs span {
  padding: 12px 0;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-muted);
  position: relative;
}

.ranking-tabs span.active {
  color: var(--text-main);
  font-weight: bold;
}

.ranking-tabs span.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent-orange);
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--border-light);
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-num {
  font-size: 24px;
  font-weight: bold;
  width: 32px;
  text-align: center;
}
.rank-num.n1 { color: var(--accent-orange); font-size: 32px; }
.rank-num.n2, .rank-num.n3 { color: var(--brand-dark); }
.rank-num.n4 { color: var(--text-muted); }

.rank-item img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}

.rank-info {
  flex: 1;
}

.rank-info h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.rank-info p {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.rank-stats {
  text-align: right;
  font-size: 13px;
}

.rank-heat {
  color: var(--accent-orange);
  font-weight: bold;
}

.rank-trend {
  color: var(--accent-green);
  font-size: 12px;
  margin-top: 4px;
}

/* 编辑力荐大卡 */
.editor-card {
  background: linear-gradient(135deg, #E8F4FD, #F5FAFE);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}

.editor-card img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.editor-tag {
  background-color: var(--accent-orange);
  color: var(--white);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 12px;
}

.editor-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.editor-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.editor-quote {
  background-color: rgba(255,255,255,0.6);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--brand-dark);
  border-left: 3px solid var(--brand-blue);
  margin-bottom: 16px;
}

/* 分类探索 */
.categories-section {
  background-color: var(--bg-lighter);
  padding: 56px 5%;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.cat-card {
  background: linear-gradient(to right, var(--bg-lighter), var(--white));
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}

.cat-card:hover {
  background: var(--white);
  border-left-color: var(--accent-orange);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.cat-icon {
  font-size: 28px;
}

.cat-info h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.cat-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.editor-selection-row {
  display: flex;
  gap: 20px;
}

.small-editor-card {
  background-color: var(--white);
  padding: 12px;
  border-radius: var(--radius-md);
  flex: 1;
  display: flex;
  gap: 12px;
  align-items: center;
}

.small-editor-card img {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* 新作速递 */
.new-releases-section {
  background-color: var(--white);
  padding: 56px 5%;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.new-item {
  display: flex;
  gap: 16px;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.2s;
}

.new-item:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-hover);
}

.new-item img {
  width: 80px;
  height: 106px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.new-info h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.new-info .meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.new-info .desc {
  font-size: 13px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.status-tag {
  background-color: #E0F7FA;
  color: #00695C;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}

/* 用户指引与FAQ */
.guide-faq-section {
  background: linear-gradient(to bottom, var(--bg-lighter), var(--bg-light));
  padding: 64px 5%;
}

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

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.step-card {
  background-color: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.step-bg-num {
  position: absolute;
  top: -10px;
  right: 10px;
  font-size: 100px;
  font-weight: bold;
  color: var(--bg-lighter);
  z-index: 0;
  line-height: 1;
}

.step-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.faq-layout {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}

.faq-sidebar {
  flex: 0 0 200px;
}

.faq-sidebar ul li {
  padding: 12px 16px;
  font-size: 15px;
  cursor: pointer;
  border-left: 3px solid transparent;
  color: var(--text-main);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.faq-sidebar ul li.active {
  background-color: var(--bg-light);
  border-left-color: var(--accent-orange);
  font-weight: bold;
}

.faq-content {
  flex: 1;
}

.faq-search {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 15px;
  outline: none;
}

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

.faq-item {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.faq-q {
  padding: 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-a {
  padding: 0 20px 20px;
  font-size: 14px;
  color: var(--text-main);
  display: none;
  line-height: 1.8;
}

.faq-item.open .faq-a {
  display: block;
}
.faq-item.open .faq-q {
  border-left: 3px solid var(--accent-orange);
  color: var(--brand-dark);
}

/* 下载区 */
.download-section {
  background: linear-gradient(to right, var(--brand-dark), #1A4A7A);
  color: var(--white);
  padding: 64px 5%;
  display: flex;
  gap: 40px;
}

.dl-left {
  flex: 1;
}

.dl-left h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.dl-left p.sub {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.dl-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.dl-feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.dl-buttons {
  display: flex;
  gap: 16px;
}

.btn-store {
  background-color: #000;
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: bold;
  width: 180px;
}

.dl-right {
  flex: 1;
}

.dl-info-card {
  background-color: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.dl-info-block {
  margin-bottom: 24px;
}
.dl-info-block:last-child {
  margin-bottom: 0;
}
.dl-info-block h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.dl-info-block p {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.8;
}

/* 页脚 */
footer {
  background-color: var(--bg-main);
  padding: 48px 5% 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-muted);
}
.footer-col a:hover {
  color: var(--brand-dark);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* 开发者响应式 */
@media (max-width: 1024px) {
  .hero-title { font-size: 36px; }
  .quick-entry { grid-template-columns: repeat(2, 1fr); }
  .ranking-section { flex-direction: column; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .download-section { flex-direction: column; }
  .hero-content { max-width: 55%; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-right .btn-outline { display: none; }
  .hero { flex-direction: column; padding: 40px 16px; }
  .hero-content { max-width: 100%; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-visual { display: none; }
  .quick-entry { padding: 16px; }
  .grid-2col { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .editor-selection-row { flex-direction: column; }
  .faq-layout { flex-direction: column; }
  .faq-sidebar { flex: 1; }
  .faq-sidebar ul { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 8px; }
  .faq-sidebar ul li { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
  .faq-sidebar ul li.active { border-bottom-color: var(--accent-orange); }
  .dl-buttons { flex-direction: column; }
  .btn-store { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .scroll-container img { width: 140px; }
  .comic-card { flex: 0 0 140px; }
}