:root {
  --bg-deep: #0A3D6B;
  --bg-footer: #08305A;
  --yellow-main: #FFE600;
  --yellow-bright: #FFD700;
  --yellow-lemon: #FFF44F;
  --text-white: #F5F5F5;
  --text-gray: #B0C4DE;
  --accent-red: #FF3B30;
  --card-grad: linear-gradient(145deg, #0D4A7E, #082F52);
  --glow-yellow: 0 0 12px rgba(255, 230, 0, 0.3);
  --glow-yellow-strong: 0 0 20px rgba(255, 230, 0, 0.6);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-white);
  line-height: 1.85;
  overflow-x: hidden;
  position: relative;
}
/* 背景网纹与光晕 */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 230, 0, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 10% 20%, rgba(255, 230, 0, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* 全局容器 */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}
h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.3;
}
h2 {
  font-size: 32px;
  color: var(--text-white);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}
h2 .badge-hot {
  background: var(--yellow-main);
  color: var(--bg-deep);
  font-size: 14px;
  padding: 2px 10px;
  border-radius: 4px;
  transform: rotate(-6deg);
  font-style: italic;
  font-weight: 900;
  display: inline-block;
}

/* 顶部滚动播报条 */
.top-marquee {
  background: #072A4A;
  border-bottom: 1px solid rgba(255, 230, 0, 0.3);
  color: var(--yellow-main);
  font-size: 13px;
  padding: 6px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 5;
}
.marquee-dot {
  width: 8px; height: 8px;
  background: var(--yellow-main);
  border-radius: 50%;
  margin: 0 16px;
  animation: dotFlash 1.5s infinite alternate;
  flex-shrink: 0;
}
@keyframes dotFlash {
  0% { opacity: 0.3; box-shadow: none; }
  100% { opacity: 1; box-shadow: 0 0 8px var(--yellow-main); }
}
.marquee-content {
  white-space: nowrap;
  animation: scrollText 15s linear infinite;
  display: inline-block;
}
@keyframes scrollText {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-tag {
  background: rgba(255,255,255,0.1);
  color: var(--text-white);
  padding: 1px 8px;
  border-radius: 12px;
  font-size: 11px;
  margin-left: 12px;
}

/* 吸顶导航栏 */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 61, 107, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--yellow-main);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img {
  height: 36px;
  width: 36px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255,230,0,0.5);
  object-fit: cover;
}
.brand-text {
  font-size: 19px;
  font-weight: 900;
}
.brand-text .yidan { color: var(--yellow-main); }
.brand-text .manhua { color: var(--text-white); }
.nav-links {
  display: flex;
  gap: 24px;
  font-size: 15px;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--text-white);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--yellow-main); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow-main);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.search-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-box {
  display: flex;
  background: rgba(10, 61, 107, 0.6);
  border: 1px solid var(--yellow-main);
  border-radius: 20px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.search-box:focus-within {
  box-shadow: 0 0 12px rgba(255, 230, 0, 0.6);
}
.search-box input {
  background: transparent;
  border: none;
  color: var(--text-white);
  padding: 6px 12px;
  outline: none;
  width: 140px;
  font-size: 13px;
}
.search-box input::placeholder { color: var(--text-gray); }
.search-btn {
  background: linear-gradient(135deg, var(--yellow-main), var(--yellow-bright));
  border: none;
  color: var(--bg-deep);
  padding: 0 14px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
}
.login-text {
  color: var(--text-white);
  font-size: 14px;
  cursor: pointer;
}
.login-text:hover { color: var(--yellow-main); }
.btn-register {
  background: linear-gradient(135deg, var(--yellow-main), var(--yellow-bright));
  color: var(--bg-deep);
  font-weight: bold;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

/* 首屏 Hero */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #0A3D6B 0%, #072A4A 100%);
  overflow: visible;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.hero-text {
  flex: 1;
  min-width: 0;
}
.hero-tag {
  display: inline-block;
  border: 1px solid var(--yellow-main);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  color: var(--yellow-main);
  margin-bottom: 20px;
  background: rgba(255,230,0,0.05);
}
.hero h1 {
  font-size: 44px;
  line-height: 1.3;
  margin-bottom: 24px;
}
.hero h1 .line1 { display: block; }
.hero h1 .line2 {
  display: block;
  background: linear-gradient(90deg, var(--yellow-main), var(--yellow-lemon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  color: var(--text-gray);
  font-size: 15px;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-main {
  background: var(--yellow-main);
  color: var(--bg-deep);
  font-weight: 900;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 16px;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255,230,0,0.4);
}
.btn-sub {
  background: transparent;
  color: var(--text-white);
  border: 1px solid rgba(255,255,255,0.4);
  font-weight: bold;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 16px;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.btn-sub:hover {
  border-color: var(--yellow-main);
  color: var(--yellow-main);
}

/* 3D 轮播 */
.hero-visual {
  flex: 1;
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}
.carousel-3d {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}
.carousel-item {
  position: absolute;
  width: 170px;
  height: 240px;
  border-radius: 12px;
  border: 3px solid #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  transition: all 0.5s ease;
  overflow: hidden;
  background: #1a1a2e;
}
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-item[data-pos="0"] {
  transform: translateX(0) scale(1.1) rotateY(0deg);
  z-index: 10;
  filter: blur(0);
}
.carousel-item[data-pos="-1"] {
  transform: translateX(-140px) scale(0.85) rotateY(25deg);
  z-index: 9;
  filter: blur(1px);
}
.carousel-item[data-pos="1"] {
  transform: translateX(140px) scale(0.85) rotateY(-25deg);
  z-index: 9;
  filter: blur(1px);
}
.carousel-item[data-pos="-2"] {
  transform: translateX(-240px) scale(0.65) rotateY(35deg);
  z-index: 8;
  filter: blur(2px);
}
.carousel-item[data-pos="2"] {
  transform: translateX(240px) scale(0.65) rotateY(-35deg);
  z-index: 8;
  filter: blur(2px);
}
.carousel-item[data-pos="-3"], .carousel-item[data-pos="3"] {
  opacity: 0;
  pointer-events: none;
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--yellow-main);
  color: var(--yellow-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  font-size: 20px;
  transition: background 0.3s;
  user-select: none;
}
.carousel-nav:hover { background: rgba(255,230,0,0.2); }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

/* 悬浮胶囊 */
.floating-tag {
  position: absolute;
  background: rgba(10, 61, 107, 0.9);
  border: 1px solid var(--yellow-main);
  color: var(--text-white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  z-index: 30;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.tag-left { top: 15%; left: -10px; }
.tag-right { bottom: 15%; right: -20px; }

/* 今日精选漫画网格 */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card-item {
  background: var(--card-grad);
  border: 1px solid rgba(255,230,0,0.3);
  border-radius: 20px;
  padding: 12px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
}
.card-item:hover {
  transform: translateY(-6px) rotate(1deg);
  border-color: var(--yellow-main);
  box-shadow: var(--glow-yellow-strong);
}
.card-cover-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #fff;
  margin-bottom: 12px;
  aspect-ratio: 3/4;
}
.card-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.card-item:hover .card-cover-wrap img { transform: scale(1.05); }
.card-tag-update {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--yellow-main);
  color: var(--bg-deep);
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  transform: rotate(6deg);
}
.card-tag-score {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(10,61,107,0.8);
  color: var(--yellow-main);
  font-size: 12px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 10px;
}
.card-info h3 {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-info .meta {
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 8px;
}
.card-info .category {
  display: inline-block;
  background: var(--yellow-main);
  color: var(--bg-deep);
  font-size: 11px;
  font-weight: bold;
  padding: 1px 8px;
  border-radius: 10px;
}

/* 分类横滑条 */
.category-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }
.cat-tag {
  flex-shrink: 0;
  border: 1px solid var(--yellow-main);
  color: var(--yellow-main);
  background: transparent;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.cat-tag:hover {
  background: var(--yellow-main);
  color: var(--bg-deep);
}

/* 深度长文 */
.article-area {
  background: var(--card-grad);
  border: 1px solid rgba(255,230,0,0.3);
  border-radius: 20px;
  padding: 40px;
  column-count: 2;
  column-gap: 40px;
}
.article-area p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-gray);
  margin-bottom: 20px;
  text-align: justify;
}
.article-area p:first-of-type::first-letter {
  font-size: 3em;
  color: var(--yellow-main);
  float: left;
  line-height: 1;
  margin-right: 6px;
  font-weight: 900;
}
.quote-box {
  border: 1px solid var(--yellow-main);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
  color: var(--yellow-main);
  font-weight: bold;
  font-size: 15px;
  background: rgba(255,230,0,0.03);
  text-align: center;
  break-inside: avoid;
}

/* 排行榜 */
.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.rank-panel {
  background: var(--card-grad);
  border: 1px solid rgba(255,230,0,0.3);
  border-radius: 20px;
  padding: 24px;
}
.rank-title {
  background: var(--yellow-main);
  color: var(--bg-deep);
  display: inline-block;
  padding: 4px 14px;
  border-radius: 6px;
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 20px;
}
.rank-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
  font-size: 14px;
}
.rank-list li:last-child { border-bottom: none; }
.rank-num {
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
  color: rgba(255,255,255,0.2);
  width: 32px;
}
.rank-num.top {
  color: var(--yellow-main);
  text-shadow: 0 0 8px rgba(255,230,0,0.6);
}
.rank-list img {
  width: 36px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #fff;
}

/* 三步上手 */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--card-grad);
  border: 1px solid rgba(255,230,0,0.3);
  border-radius: 20px;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}
.step-num {
  font-size: 44px;
  font-weight: 900;
  color: rgba(255,230,0,0.15);
  line-height: 1;
  margin-bottom: 16px;
  font-style: italic;
}
.step-card h3 {
  font-size: 18px;
  color: var(--text-white);
  margin-bottom: 8px;
}
.step-card p {
  font-size: 14px;
  color: var(--text-gray);
}

/* 留言板 */
.msg-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.msg-card {
  background: var(--card-grad);
  border: 1px solid rgba(255,230,0,0.2);
  border-radius: 16px;
  padding: 20px;
  position: relative;
}
.msg-tag {
  background: rgba(255,255,255,0.15);
  color: var(--yellow-main);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  margin-bottom: 8px;
  display: inline-block;
}
.msg-text {
  font-size: 14px;
  color: var(--text-white);
  margin-bottom: 8px;
}
.msg-user {
  font-size: 12px;
  color: var(--text-gray);
  text-align: right;
}

/* 下载区 */
.download-section {
  background: linear-gradient(135deg, #072A4A, #0A3D6B);
  border-top: 4px solid var(--yellow-main);
  border-bottom: 4px solid var(--yellow-main);
}
.download-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.dl-text {
  flex: 1;
}
.dl-tag {
  border: 2px solid var(--yellow-main);
  border-radius: 20px;
  padding: 4px 16px;
  color: var(--yellow-main);
  font-size: 14px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 16px;
}
.dl-text h2 {
  font-size: 36px;
  margin-bottom: 16px;
}
.dl-desc {
  font-size: 15px;
  color: var(--text-gray);
  margin-bottom: 24px;
  max-width: 500px;
}
.dl-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
.dl-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-white);
}
.dl-feature-item::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--yellow-main);
  flex-shrink: 0;
}
.dl-btns {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.qr-box {
  width: 48px; height: 48px;
  border: 1px solid var(--yellow-main);
  border-radius: 6px;
  display: inline-block;
  background: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(255,230,0,0.2) 4px, rgba(255,230,0,0.2) 6px),
              repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(255,230,0,0.1) 4px, rgba(255,230,0,0.1) 6px);
  box-shadow: 0 0 8px rgba(255,230,0,0.4);
}
.dl-note {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 16px;
  display: block;
}
/* 赛博手机 */
.cyber-phone-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 800px;
}
.cyber-phone {
  width: 240px;
  height: 480px;
  border: 2px solid var(--yellow-main);
  border-radius: 30px;
  transform: rotateY(-8deg) rotateX(2deg) rotateZ(-8deg);
  background: #051E33;
  box-shadow: 0 0 40px rgba(255,230,0,0.3);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cyber-phone::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255,230,0,0.2) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.5;
}
.phone-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--yellow-main);
  z-index: 2;
  margin-bottom: 20px;
}
.phone-bar {
  width: 60%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  z-index: 2;
  overflow: hidden;
}
.phone-bar::after {
  content: '';
  display: block;
  width: 50%;
  height: 100%;
  background: var(--yellow-main);
  border-radius: 3px;
  animation: loadBar 3s infinite alternate;
}
@keyframes loadBar {
  0% { width: 20%; }
  100% { width: 90%; }
}
.phone-bubble {
  position: absolute;
  top: 20px; left: 20px;
  background: var(--accent-red);
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 10px;
  z-index: 3;
}

/* 页脚 */
footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--yellow-main);
  padding: 60px 0 30px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: var(--text-white);
  font-size: 16px;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text-gray);
  margin-bottom: 8px;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--yellow-main); }
.footer-bottom {
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 20px;
}
.footer-bottom time {
  display: inline-block;
  margin-top: 4px;
}

/* 响应式 */
@media (max-width: 1024px) {
  .grid-cards { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 36px; }
  .hero-visual { height: 400px; }
  .carousel-item { width: 140px; height: 200px; }
  .carousel-item[data-pos="-1"] { transform: translateX(-110px) scale(0.85) rotateY(25deg); }
  .carousel-item[data-pos="1"] { transform: translateX(110px) scale(0.85) rotateY(-25deg); }
  .carousel-item[data-pos="-2"] { transform: translateX(-190px) scale(0.65) rotateY(35deg); }
  .carousel-item[data-pos="2"] { transform: translateX(190px) scale(0.65) rotateY(-35deg); }
  .article-area { column-count: 1; }
  .download-inner { flex-direction: column; gap: 40px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  section { padding: 48px 0; }
  h2 { font-size: 24px; margin-bottom: 32px; }
  .hero-inner { flex-direction: column; }
  .hero h1 { font-size: 30px; }
  .hero-visual { height: 300px; width: 100%; }
  .carousel-item { width: 110px; height: 160px; border-width: 2px; }
  .carousel-item[data-pos="-1"] { transform: translateX(-80px) scale(0.85) rotateY(20deg); }
  .carousel-item[data-pos="1"] { transform: translateX(80px) scale(0.85) rotateY(-20deg); }
  .carousel-item[data-pos="-2"] { transform: translateX(-140px) scale(0.65) rotateY(30deg); }
  .carousel-item[data-pos="2"] { transform: translateX(140px) scale(0.65) rotateY(-30deg); }
  .floating-tag { display: none; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .rank-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .msg-board { grid-template-columns: 1fr; }
  .dl-text h2 { font-size: 26px; }
  .dl-btns { flex-direction: column; align-items: stretch; }
  .dl-btns .btn-main, .dl-btns .btn-sub { width: 100%; text-align: center; }
  .qr-box { display: none; }
  .cyber-phone { width: 180px; height: 360px; }
  .phone-title { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .nav-links { display: none; }
  .search-area .login-text, .search-area .btn-register { display: none; }
  .search-box input { width: 90px; }
}