:root {
  --main: #f472b6;
  --accent: #fbbf24;
  --bg: #fff5f7;
  --text: #4a2530;
  --border: #4a2530;
  --shadow: 6px 6px 0px #4a2530;
  --shadow-hover: 10px 10px 0px #4a2530;
}

* { border-radius: 0 !important; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  color: var(--text);
}

.font-mono { font-family: 'Courier New', monospace; }

.progress-bar-top {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--main), var(--accent));
  z-index: 9999;
  transition: width 0.1s;
}

.navbar-custom {
  background: #ffffff;
  border-bottom: 3px solid var(--border);
  box-shadow: 0 4px 0 rgba(74, 37, 48, 0.1);
  padding: 0;
}

.navbar-brand {
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--text) !important;
  letter-spacing: -1px;
  padding: 12px 24px;
  border-right: 3px solid var(--border);
  background: var(--main);
  color: #fff !important;
}

.navbar-toggler {
  border: 2px solid var(--border);
  margin-right: 15px;
}

.nav-link {
  font-weight: 600;
  color: var(--text) !important;
  padding: 16px 18px !important;
  border-right: 1px solid rgba(74, 37, 48, 0.15);
  transition: all 0.2s;
}

.nav-link:hover {
  background: var(--accent);
  color: var(--text) !important;
}

.hero-section {
  background: linear-gradient(135deg, var(--bg) 0%, #ffe4ef 100%);
  border-bottom: 3px solid var(--border);
  padding: 80px 0 60px;
  position: relative;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  max-width: 600px;
  margin-bottom: 30px;
  color: var(--text);
  opacity: 0.85;
}

.hero-buttons .btn {
  padding: 14px 32px;
  font-weight: 700;
  font-size: 1rem;
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.2s;
  margin-right: 12px;
  margin-bottom: 12px;
}

.hero-buttons .btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.btn-main { background: var(--main); color: #fff; }
.btn-accent { background: var(--accent); color: var(--text); }
.btn-outline { background: transparent; color: var(--text); }

.banner-carousel {
  background: #fff;
  border-bottom: 3px solid var(--border);
}

.carousel-item {
  padding: 60px 0;
  background: #fff;
  border-bottom: 3px solid var(--border);
}

.carousel-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.carousel-text h3 {
  font-size: 2.4rem;
  font-weight: 900;
}

.carousel-text p { font-size: 1.1rem; }

.carousel-text .btn {
  margin-top: 15px;
  border: 2px solid var(--border);
  box-shadow: 4px 4px 0 var(--border);
  font-weight: 700;
}

.carousel-indicators button {
  background-color: var(--main) !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 0 !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--main);
  padding: 20px;
  border: 2px solid var(--border);
}

.section-block {
  padding: 70px 0;
  border-bottom: 3px solid var(--border);
}

.section-title {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-title i {
  color: var(--main);
  font-size: 2.2rem;
}

.section-subtitle {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.7;
  margin-bottom: 40px;
}

.filter-sidebar {
  background: #fff;
  border: 3px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}

.filter-sidebar h5 {
  font-weight: 800;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
}

.filter-cats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-cats .form-check {
  padding: 8px 12px;
  border: 2px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}

.filter-cats .form-check:hover {
  background: var(--bg);
  border-color: var(--border);
}

.filter-cats .form-check-input:checked {
  background-color: var(--main);
  border-color: var(--main);
}

.filter-cats .form-check-input {
  border: 2px solid var(--border);
  border-radius: 0 !important;
}

.filter-cats .form-check-label {
  font-weight: 600;
  cursor: pointer;
}

.poster-card {
  background: #fff;
  border: 3px solid var(--border);
  box-shadow: 4px 4px 0 rgba(74, 37, 48, 0.2);
  transition: all 0.3s;
  cursor: pointer;
  margin-bottom: 25px;
  overflow: hidden;
}

.poster-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-hover);
}

.poster-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-bottom: 3px solid var(--border);
}

.poster-info {
  padding: 15px;
}

.poster-title {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  opacity: 0.8;
}

.rating-badge {
  background: var(--accent);
  color: var(--text);
  font-weight: 800;
  padding: 2px 8px;
  border: 2px solid var(--border);
  font-size: 0.9rem;
}

.ranking-table {
  background: #fff;
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
}

.ranking-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 2px solid rgba(74, 37, 48, 0.15);
  transition: background 0.2s;
  cursor: pointer;
  gap: 15px;
}

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

.ranking-item:hover { background: var(--bg); }

.rank-badge {
  font-size: 1.4rem;
  font-weight: 900;
  width: 45px;
  text-align: center;
  font-family: 'Courier New', monospace;
}

.rank-1 { color: #ffd700; }
.rank-2 { color: #c0c0c0; }
.rank-3 { color: #cd7f32; }
.rank-other { color: #bbb; }

.rank-title {
  flex: 1;
  font-weight: 700;
}

.rank-score {
  font-weight: 800;
  background: var(--bg);
  padding: 4px 10px;
  border: 2px solid var(--border);
  font-family: 'Courier New', monospace;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.topic-card {
  background: #fff;
  border: 3px solid var(--border);
  padding: 30px 20px;
  text-align: center;
  box-shadow: 4px 4px 0 rgba(74, 37, 48, 0.2);
  transition: all 0.3s;
  cursor: pointer;
}

.topic-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-hover);
}

.topic-card i {
  font-size: 2.5rem;
  color: var(--main);
  margin-bottom: 15px;
}

.topic-card h5 { font-weight: 800; }

.topic-card p { font-size: 0.9rem; opacity: 0.7; margin-bottom: 0; }

.tips-section {
  background: #fff;
  border-top: 3px solid var(--border);
  border-bottom: 3px solid var(--border);
}

.tips-list {
  list-style: none;
  padding: 0;
}

.tips-list li {
  padding: 12px 0;
  border-bottom: 2px dashed rgba(74, 37, 48, 0.2);
  font-size: 1.05rem;
}

.tips-list li:last-child { border-bottom: none; }

.tips-list i {
  color: var(--main);
  margin-right: 10px;
}

.accordion-button {
  border: 2px solid var(--border) !important;
  box-shadow: none !important;
  font-weight: 700;
  background: #fff !important;
  color: var(--text) !important;
}

.accordion-button:not(.collapsed) {
  background: var(--accent) !important;
  color: var(--text) !important;
}

.accordion-item {
  border: 2px solid var(--border) !important;
  margin-bottom: 10px;
  box-shadow: 3px 3px 0 rgba(74, 37, 48, 0.15);
}

.related-links {
  background: var(--bg);
}

.related-chip {
  display: inline-block;
  padding: 10px 20px;
  margin: 6px;
  background: #fff;
  border: 2px solid var(--border);
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}

.related-chip:hover {
  background: var(--main);
  color: #fff;
}

.friends-links {
  background: #fff;
  border-top: 3px solid var(--border);
  border-bottom: 3px solid var(--border);
  padding: 40px 0;
}

.friends-links .links-area {
  background: var(--bg);
  padding: 20px;
  border: 2px solid var(--border);
  font-size: 0.95rem;
}

.footer-section {
  background: var(--text);
  color: #fff;
  padding: 50px 0 30px;
}

.footer-section a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.footer-section a:hover { text-decoration: underline; }

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  color: #fff;
  opacity: 0.8;
  font-weight: 400;
}

.sidebar-detail {
  position: fixed;
  top: 0; right: -480px;
  width: 480px;
  max-width: 100%;
  height: 100%;
  background: #fff;
  border-left: 4px solid var(--border);
  z-index: 1050;
  transition: right 0.4s ease;
  overflow-y: auto;
  box-shadow: -5px 0 30px rgba(0,0,0,0.2);
}

.sidebar-detail.open { right: 0; }

.detail-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1049;
  display: none;
}

.detail-overlay.show { display: block; }

.detail-content { padding: 30px; }

.detail-close {
  position: absolute;
  top: 15px; right: 15px;
  font-size: 2rem;
  cursor: pointer;
  background: var(--accent);
  border: 2px solid var(--border);
  width: 45px; height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.detail-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.detail-field {
  margin-bottom: 15px;
}

.detail-field .label {
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  opacity: 0.6;
  display: block;
  margin-bottom: 4px;
}

.detail-field .value {
  font-size: 1.05rem;
  font-weight: 500;
}

.detail-field .value.score {
  background: var(--accent);
  padding: 2px 10px;
  font-weight: 800;
  display: inline-block;
  border: 2px solid var(--border);
  font-family: 'Courier New', monospace;
}

.pagination-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.pagination-bar .page-link {
  border: 2px solid var(--border);
  box-shadow: 3px 3px 0 rgba(74, 37, 48, 0.15);
  font-weight: 700;
  color: var(--text);
  background: #fff;
  padding: 8px 16px;
}

.pagination-bar .page-link:hover {
  background: var(--main);
  color: #fff;
  transform: translate(-1px, -1px);
}

.chip-btn {
  display: inline-block;
  padding: 8px 18px;
  border: 2px solid var(--border);
  background: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.chip-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.number-counter {
  font-family: 'Courier New', monospace;
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--main);
}

.stat-item {
  text-align: center;
  padding: 20px;
  border: 3px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .navbar-brand { font-size: 1.4rem; padding: 10px 16px; }
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 2rem; }
  .filter-sidebar { position: static; margin-bottom: 30px; }
  .sidebar-detail { width: 100%; right: -100%; }
  .poster-img { height: 220px; }
  .carousel-content { flex-direction: column; text-align: center; }
}

@media (max-width: 992px) {
  .navbar-nav { padding: 10px 0; }
  .nav-link { border-right: none; border-bottom: 1px solid rgba(74, 37, 48, 0.1); }
}

/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--main), var(--accent));
  z-index: 2000;
  transition: width 0.1s ease-out;
}

/* 数字滚动动画 */
.stat-number {
  font-family: 'Courier New', monospace;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--main);
  line-height: 1;
}

/* --- 子页面追加 --- */
.about-hero { background: var(--bg); padding: 5rem 0 3rem; border-bottom: 3px solid var(--border); }
.about-hero h1 { font-size: 2.8rem; font-weight: 900; color: var(--main); text-shadow: 3px 3px 0 var(--border); margin-bottom: 1rem; }
.about-hero p { font-size: 1.1rem; max-width: 700px; margin: 0 auto; }
.about-section { padding: 4rem 0; }
.about-section:nth-child(even) { background: rgba(244, 114, 182, 0.05); }
.about-card { background: var(--bg); border: 3px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 2rem; height: 100%; transition: all 0.3s ease; }
.about-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.about-card i { font-size: 2.5rem; color: var(--main); margin-bottom: 1.2rem; }
.about-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; }
.about-card p { font-size: 0.95rem; line-height: 1.7; }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--main); border-radius: 3px; }
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item::before { content: ''; position: absolute; left: -2.3rem; top: 0.3rem; width: 1rem; height: 1rem; background: var(--accent); border: 3px solid var(--border); border-radius: 50%; }
.timeline-item h4 { font-size: 1.1rem; font-weight: 700; color: var(--main); margin-bottom: 0.5rem; }
.timeline-item p { font-size: 0.9rem; line-height: 1.6; }
.feature-list { list-style: none; padding: 0; }
.feature-list li { padding: 0.6rem 0; font-size: 0.95rem; border-bottom: 1px dashed rgba(74, 37, 48, 0.2); }
.feature-list li:last-child { border-bottom: none; }
.feature-list li i { color: var(--accent); margin-right: 0.8rem; }
.stats-section { background: var(--main); padding: 3rem 0; border-top: 3px solid var(--border); border-bottom: 3px solid var(--border); }
.stat-label { font-size: 1rem; color: var(--bg); opacity: 0.9; margin-top: 0.5rem; }
.btn-accent:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* --- 子页面追加 --- */
.disclaimer-hero {
            padding: 120px 0 60px;
            background: var(--bg);
        }
.disclaimer-hero h1 {
            font-weight: 900;
            font-size: 2.8rem;
            color: var(--text);
            margin-bottom: 1rem;
        }
.disclaimer-hero p {
            color: var(--text);
            opacity: 0.8;
            font-size: 1.1rem;
        }
.disclaimer-section {
            padding: 60px 0;
            border-bottom: 3px solid var(--border);
        }
.disclaimer-section:last-child {
            border-bottom: none;
        }
.disclaimer-section h2 {
            font-weight: 800;
            font-size: 1.8rem;
            color: var(--main);
            margin-bottom: 1.5rem;
        }
.disclaimer-section p {
            color: var(--text);
            line-height: 1.8;
            margin-bottom: 1rem;
        }
.disclaimer-section ul {
            color: var(--text);
            padding-left: 1.5rem;
        }
.disclaimer-section li {
            margin-bottom: 0.8rem;
            line-height: 1.8;
        }
.disclaimer-box {
            background: #fff;
            border: 3px solid var(--border);
            border-radius: 16px;
            padding: 30px;
            box-shadow: var(--shadow);
            margin-bottom: 30px;
        }
.disclaimer-box h3 {
            font-weight: 700;
            color: var(--text);
            margin-bottom: 15px;
            font-size: 1.2rem;
        }
.disclaimer-box p {
            margin-bottom: 0.8rem;
        }
.last-updated {
            background: var(--accent);
            display: inline-block;
            padding: 5px 15px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--text);
            margin-bottom: 20px;
        }
.disclaimer-hero h1 {
                font-size: 2rem;
            }
.disclaimer-section h2 {
                font-size: 1.4rem;
            }

/* --- Bootstrap 组件配色适配(程序自动补,避免白底黑字) --- */
.accordion-body { background:transparent !important; color:#4a2530 !important; }
.accordion-header { background:transparent !important; }
