:root {
  --navy: #0A3D6B;
  --navy-deep: #08305A;
  --yellow: #FFE600;
  --yellow-bright: #FFD700;
  --yellow-lemon: #FFF44F;
  --white: #F5F5F5;
  --grey: #B0C4DE;
  --red: #FF3B30;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--navy);
  color: var(--white);
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14.5px;
  line-height: 1.85;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,230,0,0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 12px 12px;
  pointer-events: none;
  z-index: 0;
}
a { text-decoration: none; color: inherit; transition: all 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
section { padding: 80px 0; position: relative; z-index: 1; }
h2 { font-size: 32px; font-weight: 900; margin-bottom: 48px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
h2 .brand-accent { color: var(--yellow); }

.top-border { height: 4px; background: var(--yellow); width: 100%; position: relative; z-index: 2; }
.bottom-border { height: 4px; background: var(--yellow); width: 100%; position: relative; z-index: 2; }

/* Broadcast Bar */
.broadcast-bar { background: var(--navy-deep); overflow: hidden; height: 40px; display: flex; align-items: center; font-size: 13px; position: relative; z-index: 2; }
.broadcast-inner { display: flex; align-items: center; width: 100%; white-space: nowrap; }
.broadcast-dot { width: 8px; height: 8px; background: var(--yellow); border-radius: 50%; margin: 0 16px; animation: blink 1.5s infinite; flex-shrink: 0; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.broadcast-track { display: flex; align-items: center; animation: marquee 20s linear infinite; }
.broadcast-text { color: var(--grey); margin-right: 40px; }
.broadcast-pill { background: rgba(255,255,255,0.15); color: var(--white); border-radius: 20px; padding: 2px 12px; font-size: 11px; margin-left: auto; margin-right: 24px; flex-shrink: 0; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(10,61,107,0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--yellow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.logo-area { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-img { height: 34px; width: auto; border-radius: 8px; }
.logo-text { font-size: 19px; font-weight: 900; white-space: nowrap; }
.logo-text .y { color: var(--yellow); }
.logo-text .w { color: var(--white); }
.main-nav { display: flex; gap: 28px; font-size: 14px; }
.main-nav a { position: relative; padding: 6px 0; color: var(--grey); }
.main-nav a:hover { color: var(--yellow); }
.main-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--yellow); transition: width 0.3s; }
.main-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.search-box { display: flex; align-items: center; background: var(--navy); border: 1px solid var(--yellow); border-radius: 6px; overflow: hidden; height: 34px; }
.search-box input { background: transparent; border: none; outline: none; color: var(--white); padding: 0 12px; width: 140px; font-size: 13px; }
.search-box input::placeholder { color: var(--grey); }
.search-box:focus-within { box-shadow: 0 0 12px rgba(255,230,0,0.6); }
.search-btn { background: var(--yellow); color: var(--navy); border: none; height: 100%; padding: 0 14px; font-weight: 900; cursor: pointer; }
.login-link { font-size: 14px; color: var(--grey); }
.login-link:hover { color: var(--white); }
.register-btn { background: var(--yellow); color: var(--navy); font-weight: 900; padding: 8px 18px; border-radius: 6px; font-size: 14px; border: none; cursor: pointer; display: inline-block; }
.register-btn:hover { background: var(--yellow-bright); box-shadow: 0 0 12px rgba(255,230,0,0.5); }

/* Hero */
.hero { padding: 80px 0; background: linear-gradient(135deg, rgba(10,61,107,1) 0%, rgba(8,48,90,1) 100%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; left: 50%; width: 800px; height: 800px; background: radial-gradient(circle, rgba(255,230,0,0.08) 0%, transparent 70%); transform: translateX(-50%); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-tag { display: inline-flex; align-items: center; border: 1px solid var(--yellow); color: var(--yellow); border-radius: 20px; padding: 4px 16px; font-size: 13px; margin-bottom: 24px; }
.hero h1 { font-size: 44px; font-weight: 900; line-height: 1.3; margin-bottom: 24px; }
.hero h1 .line1 { color: var(--white); }
.hero h1 .line2 { background: linear-gradient(90deg, var(--yellow), var(--yellow-lemon)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: block; }
.hero-desc { color: var(--grey); font-size: 15px; margin-bottom: 12px; max-width: 500px; }
.hero-btns { display: flex; gap: 16px; margin-top: 32px; }
.btn-primary { background: var(--yellow); color: var(--navy); font-weight: 900; padding: 14px 32px; border-radius: 8px; font-size: 16px; display: inline-block; }
.btn-primary:hover { background: var(--yellow-bright); box-shadow: 0 0 20px rgba(255,230,0,0.6); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--white); border: 1px solid var(--white); padding: 14px 32px; border-radius: 8px; font-size: 16px; display: inline-block; }
.btn-secondary:hover { border-color: var(--yellow); color: var(--yellow); }

/* 3D Carousel */
.carousel-3d { position: relative; height: 480px; perspective: 1200px; display: flex; align-items: center; justify-content: center; }
.carousel-track { position: relative; width: 220px; height: 320px; transform-style: preserve-3d; transition: transform 0.6s ease; }
.carousel-card { position: absolute; top: 0; left: 0; width: 220px; height: 320px; border-radius: 12px; overflow: hidden; border: 4px solid #fff; box-shadow: 4px 4px 0 #000; transition: all 0.6s ease; }
.carousel-card img { width: 100%; height: 100%; object-fit: cover; }
.carousel-card.pos-0 { transform: translateX(0) translateZ(100px) scale(1); z-index: 3; }
.carousel-card.pos-1 { transform: translateX(140px) translateZ(-100px) rotateY(-25deg) scale(0.8); z-index: 2; filter: blur(1px); }
.carousel-card.pos-2 { transform: translateX(280px) translateZ(-250px) rotateY(-40deg) scale(0.6); z-index: 1; filter: blur(2px); }
.carousel-card.pos-3 { transform: translateX(-140px) translateZ(-100px) rotateY(25deg) scale(0.8); z-index: 2; filter: blur(1px); }
.carousel-card.pos-4 { transform: translateX(-280px) translateZ(-250px) rotateY(40deg) scale(0.6); z-index: 1; filter: blur(2px); }
.carousel-card.pos-5 { transform: translateX(420px) translateZ(-400px) scale(0.4); z-index: 0; filter: blur(3px); }
.carousel-card:hover { transform: translateX(0) translateZ(150px) scale(1.05) !important; z-index: 10 !important; filter: blur(0) !important; }
.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.5); font-size: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 20; }
.carousel-nav:hover { background: var(--yellow); color: var(--navy); }
.carousel-nav.prev { left: 0; }
.carousel-nav.next { right: 0; }
.float-pill { position: absolute; background: rgba(10,61,107,0.8); border: 1px solid var(--yellow); color: var(--yellow); border-radius: 20px; padding: 6px 14px; font-size: 12px; z-index: 15; }
.float-pill.left { top: 40px; left: -20px; }
.float-pill.right { bottom: 40px; right: -20px; }

/* Hot Grid */
.hot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.comic-card { background: linear-gradient(180deg, rgba(10,61,107,1), rgba(8,48,90,1)); border: 1px solid var(--yellow); border-radius: 20px; padding: 12px; transition: all 0.3s; position: relative; }
.comic-card:hover { border-color: var(--yellow-bright); box-shadow: 0 0 20px rgba(255,230,0,0.3); transform: translateY(-6px) rotate(1deg); }
.card-cover { position: relative; aspect-ratio: 3/4; border: 3px solid #fff; border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-badge { position: absolute; top: 8px; right: 8px; background: var(--yellow); color: var(--navy); font-size: 11px; font-weight: 900; padding: 2px 8px; transform: rotate(6deg); border-radius: 4px; }
.card-score { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.7); color: var(--yellow); font-size: 11px; padding: 2px 8px; border-radius: 12px; }
.card-info h3 { font-size: 16px; font-weight: 900; color: var(--white); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-info .meta { font-size: 12px; color: var(--grey); margin-bottom: 8px; }
.card-tag { display: inline-block; background: var(--yellow); color: var(--navy); font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 4px; }
.hot-tag { background: var(--red); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 4px; transform: rotate(-5deg); display: inline-block; font-style: italic; }

/* Categories */
.cat-scroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 16px; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill { flex-shrink: 0; border: 1px solid var(--yellow); color: var(--yellow); background: var(--navy); padding: 8px 24px; border-radius: 30px; font-size: 15px; font-weight: 900; cursor: pointer; }
.cat-pill:hover { background: var(--yellow); color: var(--navy); }

/* Deep Read */
.deep-read { background: rgba(8,48,90,0.5); border-radius: 20px; padding: 40px; border: 1px solid rgba(255,230,0,0.3); }
.article-cols { column-count: 2; column-gap: 48px; }
.article-cols p { margin-bottom: 20px; color: var(--grey); font-size: 15px; text-align: justify; }
.article-cols p:first-child::first-letter { font-size: 3em; float: left; color: var(--yellow); line-height: 0.8; padding-right: 8px; font-weight: 900; }
.quote-box { break-inside: avoid; background: #fff; color: var(--navy); padding: 24px; border-radius: 12px; border: 3px solid var(--navy); position: relative; font-weight: 900; font-size: 16px; margin: 20px 0; }
.quote-box::after { content: ''; position: absolute; bottom: -15px; left: 40px; border-width: 15px 15px 0; border-style: solid; border-color: var(--navy) transparent transparent transparent; }
.quote-box .quote-mark { color: var(--yellow); font-size: 30px; line-height: 1; }

/* Rankings */
.rank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.rank-panel { background: linear-gradient(180deg, rgba(10,61,107,1), rgba(8,48,90,1)); border-radius: 16px; padding: 24px; border: 1px solid rgba(255,230,0,0.2); }
.rank-head { background: var(--yellow); color: var(--navy); font-weight: 900; display: inline-block; padding: 4px 16px; border-radius: 4px; margin-bottom: 20px; font-size: 15px; }
.rank-list li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.rank-num { font-size: 28px; font-weight: 900; font-style: italic; color: rgba(255,255,255,0.2); width: 30px; }
.rank-list li:nth-child(1) .rank-num, .rank-list li:nth-child(2) .rank-num, .rank-list li:nth-child(3) .rank-num { color: transparent; -webkit-text-stroke: 1px var(--yellow); text-shadow: 0 0 10px rgba(255,230,0,0.5); }
.rank-info { flex: 1; }
.rank-title { font-size: 15px; font-weight: 900; color: var(--white); }
.rank-sub { font-size: 12px; color: var(--grey); }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,230,0,0.15); border-radius: 20px; padding: 32px; position: relative; overflow: hidden; }
.step-num { font-size: 64px; font-weight: 900; position: absolute; top: 10px; left: 20px; background: linear-gradient(180deg, rgba(255,230,0,0.15), transparent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.step-card h3 { margin-top: 40px; font-size: 20px; color: var(--yellow); margin-bottom: 12px; }
.step-card p { color: var(--grey); font-size: 14px; }

/* Comments */
.comment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.comment-card { background: linear-gradient(180deg, rgba(10,61,107,1), rgba(8,48,90,1)); border: 1px solid rgba(255,230,0,0.3); border-radius: 16px; padding: 24px; position: relative; }
.comment-tag { position: absolute; top: -12px; left: 20px; background: rgba(255,230,0,0.2); color: var(--yellow); font-size: 11px; padding: 2px 10px; border-radius: 10px; border: 1px solid var(--yellow); }
.comment-text { font-size: 14px; color: var(--white); margin-bottom: 12px; margin-top: 6px; }
.comment-user { font-size: 12px; color: var(--grey); }

/* Download */
.download-section { background: linear-gradient(90deg, rgba(10,61,107,1), rgba(8,48,90,1)); border-top: 1px solid var(--yellow); border-bottom: 1px solid var(--yellow); padding: 80px 0; }
.dl-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.dl-tag { display: inline-flex; border: 1px solid var(--yellow); color: var(--yellow); border-radius: 20px; padding: 4px 16px; font-size: 13px; margin-bottom: 24px; }
.dl-left h2 { font-size: 32px; margin-bottom: 24px; }
.dl-desc { color: var(--grey); font-size: 15px; margin-bottom: 32px; }
.dl-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.dl-feature { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--white); }
.dl-feature::before { content: ''; width: 10px; height: 10px; background: var(--yellow); flex-shrink: 0; }
.dl-btns { display: flex; gap: 16px; align-items: center; }
.qr-box { width: 80px; height: 80px; border: 2px solid var(--yellow); border-radius: 8px; padding: 4px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.qr-box span { background: var(--yellow); }
.qr-box span:nth-child(odd) { background: transparent; }
.dl-right { position: relative; display: flex; justify-content: center; }
.css-phone { width: 260px; height: 520px; border: 2px solid var(--yellow); border-radius: 40px; transform: rotate(8deg); box-shadow: 0 0 30px rgba(255,230,0,0.4); background: var(--navy); position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.css-phone::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(var(--yellow) 1px, transparent 1px); background-size: 16px 16px; opacity: 0.1; }
.phone-screen { position: relative; z-index: 2; text-align: center; width: 100%; padding: 0 20px; }
.phone-title { font-size: 48px; font-weight: 900; color: var(--yellow); margin-bottom: 20px; text-shadow: 0 0 10px rgba(255,230,0,0.5); }
.phone-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; width: 100%; }
.phone-bar-inner { height: 100%; background: var(--yellow); width: 50%; box-shadow: 0 0 10px var(--yellow); animation: progress 2s infinite alternate; }
@keyframes progress { 0% { width: 20%; } 100% { width: 90%; } }
.phone-badge { position: absolute; top: 40px; left: -20px; background: var(--red); color: #fff; font-size: 12px; font-weight: 900; padding: 4px 12px; border-radius: 4px; transform: rotate(-10deg); z-index: 3; }
.dl-note { font-size: 12px; color: var(--grey); margin-top: 16px; }

/* Footer */
.site-footer { background: var(--navy-deep); border-top: 1px solid var(--yellow); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 48px; }
.footer-col h4 { font-size: 16px; color: var(--white); margin-bottom: 20px; font-weight: 900; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 13px; color: var(--grey); }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--grey); flex-wrap: wrap; gap: 12px; }
.footer-time { color: rgba(255,255,255,0.3); }

/* Mobile Bottom Nav */
.mobile-nav { display: none; }

@media (max-width: 1024px) {
  .hero h1 { font-size: 36px; }
  .hot-grid { grid-template-columns: repeat(3, 1fr); }
  .rank-grid { grid-template-columns: 1fr; }
  .dl-inner { grid-template-columns: 1fr; gap: 40px; }
  .dl-right { display: none; }
  .main-nav { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 48px 0; }
  h2 { font-size: 24px; margin-bottom: 32px; }
  .hero { padding: 48px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-btns { justify-content: center; }
  .hero-desc { margin: 0 auto 12px; }
  .carousel-3d { height: 380px; }
  .carousel-track { width: 160px; height: 240px; }
  .carousel-card { width: 160px; height: 240px; }
  .float-pill { display: none; }
  .hot-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .article-cols { column-count: 1; }
  .steps-grid { grid-template-columns: 1fr; gap: 20px; }
  .comment-grid { grid-template-columns: 1fr; }
  .header-actions .search-box { display: none; }
  .header-actions .login-link { display: none; }
  .dl-btns { flex-direction: column; align-items: stretch; }
  .dl-btns .btn-primary, .dl-btns .btn-secondary { width: 100%; text-align: center; }
  .qr-box { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(8,48,90,0.95); border-top: 1px solid var(--yellow); justify-content: space-around; padding: 10px 0; z-index: 99; }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; font-size: 10px; color: var(--grey); gap: 4px; }
  .mobile-nav a.active { color: var(--yellow); }
  .mobile-nav .icon { width: 20px; height: 20px; border: 1px solid currentColor; border-radius: 4px; }
}