:root {
  --white: #ffffff;
  --light-blue: #f0f8ff;
  --sailor-blue: #2c6cb6;
  --sailor-blue-hover: #22568f;
  --vitality-red: #e63946;
  --navy: #1d2b45;
  --navy-light: #3b4c69;
  --gray: #6b7a90;
  --border: #e1ebf5;
  --font-main: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --halftone: radial-gradient(circle, #d0d9e3 1px, transparent 1px);
  --speed-line: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(44, 108, 182, 0.05) 10px, rgba(44, 108, 182, 0.05) 11px);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: var(--halftone);
  background-size: 12px 12px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--sailor-blue);
}

.brand img {
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
}

.nav-links {
  display: none;
  gap: 24px;
  font-size: 15px;
  color: var(--navy-light);
}

.nav-links a:hover {
  color: var(--sailor-blue);
}

.nav-btn {
  background-color: var(--sailor-blue);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(44, 108, 182, 0.2);
}

.nav-btn:hover {
  background-color: var(--sailor-blue-hover);
  transform: scale(1.05);
}

/* Hero */
.hero {
  padding: 40px 0 60px;
}

.hero-container {
  background: linear-gradient(135deg, #e6f2ff 0%, #f8fbff 100%);
  border-radius: 32px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(44, 108, 182, 0.08);
}

.hero-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--speed-line);
  opacity: 0.6;
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 32px;
  line-height: 1.3;
  color: var(--sailor-blue);
  margin-bottom: 16px;
  font-weight: 800;
}

.hero-text p {
  font-size: 16px;
  color: var(--navy-light);
  margin-bottom: 24px;
}

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--sailor-blue);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(44, 108, 182, 0.3);
}

.btn-primary:hover {
  background-color: var(--sailor-blue-hover);
  transform: scale(1.05) translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--vitality-red);
  color: var(--vitality-red);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--vitality-red);
  color: var(--white);
  transform: scale(1.05) translateY(-2px);
}

.hero-image {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-height: 400px;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* Section Global */
section {
  padding: 60px 0;
}

.section-title {
  font-size: 24px;
  color: var(--sailor-blue);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  position: relative;
}

.section-title::after {
  content: '⭐';
  display: block;
  font-size: 16px;
  margin-top: 8px;
  color: var(--vitality-red);
}

/* Weekly Capsule */
.weekly-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.weekly-scroll::-webkit-scrollbar {
  display: none;
}
.weekly-item {
  flex: 0 0 auto;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 10px 24px;
  font-size: 15px;
  color: var(--navy-light);
  cursor: pointer;
  transition: all 0.3s;
}
.weekly-item.active {
  background-color: var(--sailor-blue);
  color: var(--white);
  border-color: var(--sailor-blue);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(44, 108, 182, 0.2);
}

/* Ranking Grid */
.ranking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.top-1 {
  background-color: var(--light-blue);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
.top-1 img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.top-1-info {
  padding: 20px;
}
.top-1-info h3 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 8px;
}
.top-1-info p {
  color: var(--gray);
  font-size: 14px;
}
.ranking-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.rank-card {
  background-color: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.rank-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 20px rgba(44, 108, 182, 0.1);
}
.rank-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.rank-card span {
  display: block;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--navy);
}

/* New Anime Timeline */
.timeline {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 30px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--vitality-red);
}
.timeline-content h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 6px;
}
.timeline-content p {
  color: var(--gray);
  font-size: 14px;
}

/* Tags */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.tag {
  background-color: var(--light-blue);
  color: var(--sailor-blue);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}
.tag:hover {
  background-color: var(--sailor-blue);
  color: var(--white);
  transform: scale(1.1);
}

/* Editor's Picks */
.picks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.pick-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}
.pick-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.pick-info {
  padding: 24px;
}
.pick-info h3 {
  font-size: 20px;
  color: var(--sailor-blue);
  margin-bottom: 12px;
}
.pick-info p {
  color: var(--navy-light);
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.7;
}
.editor-note {
  background-color: #fff3f3;
  border-left: 4px solid var(--vitality-red);
  padding: 12px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--vitality-red);
  font-weight: 600;
}

/* Studio */
.studio-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.studio-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.studio-text {
  padding: 24px;
}
.studio-text h3 {
  font-size: 22px;
  color: var(--sailor-blue);
  margin-bottom: 16px;
}
.studio-text p {
  color: var(--navy-light);
  font-size: 15px;
  line-height: 1.8;
}

/* Screenshot Wall */
.screenshot-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.screenshot-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.screenshot-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}
.screenshot-item:hover img {
  transform: scale(1.05);
}
.danmu-float {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Charm Cloud */
.charm-section {
  background-color: var(--light-blue);
  border-radius: 24px;
  padding: 30px 20px;
}
.charm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.charm-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 12px;
}
.charm-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.charm-card h4 {
  margin-top: 10px;
  font-size: 16px;
  color: var(--sailor-blue);
}
.charm-card p {
  font-size: 13px;
  color: var(--gray);
  padding: 0 10px;
  margin-top: 6px;
}

/* Living Room */
.living-room {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--white);
  border-radius: 24px;
  padding: 20px;
  border: 1px solid var(--border);
}
.living-img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}
.danmu-box {
  background: #f4f8fb;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.danmu-line {
  font-size: 14px;
  color: var(--sailor-blue);
  font-weight: 500;
  padding-left: 16px;
  border-left: 3px solid var(--sailor-blue);
}

/* Comments & Reviews */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.comment-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.comment-card p {
  font-size: 14px;
  color: var(--navy-light);
  margin-bottom: 12px;
}
.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray);
}
.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--light-blue);
}

/* Masterpiece */
.masterpiece {
  background: var(--navy);
  color: var(--white);
  border-radius: 24px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.masterpiece img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.masterpiece-text h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #a6c8ff;
}
.masterpiece-text p {
  font-size: 15px;
  line-height: 1.8;
  color: #d1dff0;
}

/* Column */
.magazine-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mag-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.mag-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.mag-content {
  padding: 20px;
}
.mag-content h3 {
  font-size: 18px;
  color: var(--sailor-blue);
  margin-bottom: 10px;
}
.mag-content p {
  font-size: 14px;
  color: var(--gray);
}

/* Weekly Schedule */
.schedule-board {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.schedule-row {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.schedule-row:last-child {
  border-bottom: none;
}
.schedule-day {
  width: 80px;
  padding: 16px;
  background: var(--light-blue);
  font-weight: 600;
  color: var(--sailor-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.schedule-day.today {
  background: var(--sailor-blue);
  color: var(--white);
}
.schedule-content {
  flex: 1;
  padding: 16px;
  font-size: 14px;
  color: var(--navy-light);
  display: flex;
  align-items: center;
}

/* Download Section */
.download-section {
  background: var(--navy);
  color: var(--white);
  padding: 60px 0;
  margin-top: 40px;
}
.download-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.mockup-img {
  width: 100%;
  border-radius: 20px;
  transform: perspective(1000px) rotateY(-5deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 4px solid rgba(255,255,255,0.1);
}
.download-text h2 {
  font-size: 28px;
  color: #a6c8ff;
  margin-bottom: 16px;
}
.download-text p {
  font-size: 16px;
  color: #d1dff0;
  margin-bottom: 24px;
  line-height: 1.7;
}
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #fff;
}
.feature-item::before {
  content: '✔';
  color: var(--vitality-red);
  font-weight: bold;
}
.faq {
  margin-bottom: 32px;
}
.faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 16px;
  cursor: pointer;
}
.faq-q {
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}
.faq-a {
  display: none;
  margin-top: 10px;
  font-size: 14px;
  color: #a6c8ff;
}
.faq-item.open .faq-a {
  display: block;
}
.download-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.download-btns .btn {
  flex: 1;
  min-width: 140px;
}

/* Footer */
footer {
  background: var(--white);
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--gray);
}
footer p {
  margin-bottom: 8px;
}
footer a {
  color: var(--gray);
}
footer a:hover {
  color: var(--sailor-blue);
}
.update-time {
  font-size: 11px;
  color: #a0aab8;
}

/* Floating Button */
.floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  z-index: 999;
  cursor: pointer;
}
.float-main {
  background: linear-gradient(135deg, var(--sailor-blue) 50%, var(--vitality-red) 50%);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}
.float-main:hover {
  transform: scale(1.05);
}
.float-tooltip {
  position: absolute;
  bottom: 60px;
  right: 0;
  background: var(--white);
  color: var(--navy);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 1px solid var(--border);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.floating-btn:hover .float-tooltip,
.float-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(-5px);
}
.float-panel {
  position: absolute;
  bottom: 60px;
  right: 0;
  background: var(--white);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  gap: 12px;
  width: 200px;
  border: 1px solid var(--border);
}
.float-panel.show {
  display: flex;
}
.float-panel a {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.float-panel .ios-btn {
  background: var(--sailor-blue);
  color: var(--white);
}
.float-panel .android-btn {
  background: var(--vitality-red);
  color: var(--white);
}

/* Responsive */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .hero-container {
    flex-direction: row;
    align-items: center;
    padding: 60px 40px;
  }
  .hero-text {
    flex: 1;
  }
  .hero-image {
    flex: 1;
  }
  .hero-text h1 {
    font-size: 40px;
  }
  .ranking-grid {
    grid-template-columns: 1fr 1fr;
  }
  .picks-grid {
    grid-template-columns: 1fr 1fr;
  }
  .screenshot-wall {
    grid-template-columns: repeat(3, 1fr);
  }
  .charm-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .living-room {
    flex-direction: row;
    align-items: stretch;
  }
  .living-img-wrapper {
    flex: 6;
  }
  .danmu-box {
    flex: 4;
  }
  .masterpiece {
    flex-direction: row;
    align-items: center;
  }
  .masterpiece img {
    width: 40%;
  }
  .masterpiece-text {
    flex: 1;
  }
  .magazine-layout {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .mag-card {
    flex: 1 1 calc(50% - 12px);
    flex-direction: row;
  }
  .mag-card img {
    width: 40%;
    height: auto;
  }
  .mag-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .studio-block {
    flex-direction: row;
  }
  .studio-img {
    width: 40%;
    height: auto;
  }
  .studio-text {
    flex: 1;
  }
  .download-inner {
    flex-direction: row;
    align-items: center;
  }
  .download-left {
    flex: 1;
  }
  .download-right {
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .hero-text h1 {
    font-size: 48px;
  }
  .grid-3 {
    grid-template-columns: repeat(4, 1fr);
  }
  .charm-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .ranking-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ranking-list {
    grid-template-columns: 1fr 1fr;
  }
  .screenshot-wall {
    grid-template-columns: repeat(3, 1fr);
  }
  .mag-card {
    flex: 1 1 calc(33.333% - 16px);
  }
}