/* ========================================
   肉便器 - 暗黑小说连载站 主样式表
   CSS/ID前缀: rb-
   ======================================== */

/* --- 字体定义 --- */
@font-face {
  font-family: 'Cutive Mono';
  src: url('/fonts/CutiveMono-Regular.woff2') format('woff2'),
       url('/fonts/CutiveMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Creepster';
  src: url('/fonts/Creepster-Regular.woff2') format('woff2'),
       url('/fonts/Creepster-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- 干扰标签隐藏 --- */
.crypt-jammer-block {
  display: none;
}

/* --- CSS变量 --- */
:root {
  --rb-primary: #212121;
  --rb-secondary: #424242;
  --rb-accent: #B71C1C;
  --rb-text: #BDBDBD;
  --rb-link: #D32F2F;
  --rb-bg-dark: #1a1a1a;
  --rb-border: #333333;
  --rb-font-heading: 'Cutive Mono', monospace;
  --rb-font-body: 'Creepster', cursive;
}

/* --- 全局重置 --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--rb-font-body);
  background-color: var(--rb-primary);
  color: var(--rb-text);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- 背景裂痕纹理 --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 200px,
      rgba(183,28,28,0.02) 200px,
      rgba(183,28,28,0.02) 201px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 300px,
      rgba(66,66,66,0.05) 300px,
      rgba(66,66,66,0.05) 301px
    );
  pointer-events: none;
  z-index: 0;
}

/* --- 链接样式 --- */
a {
  color: var(--rb-link);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.1s ease;
}

a:hover {
  color: #FF1744;
  animation: rb-shake 0.3s ease-in-out;
}

@keyframes rb-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-1px); }
}

/* --- 闪烁动画 --- */
@keyframes rb-flicker {
  0%, 100% { opacity: 1; }
  10% { opacity: 0.95; }
  20% { opacity: 1; }
  40% { opacity: 0.92; }
  50% { opacity: 1; }
  70% { opacity: 0.97; }
  80% { opacity: 0.93; }
  90% { opacity: 1; }
}

.rb-flicker {
  animation: rb-flicker 4s infinite;
}

/* --- 标题样式 --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--rb-font-heading);
  color: var(--rb-text);
  letter-spacing: 2px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.4rem; }

/* ========================================
   导航栏
   ======================================== */
#rb-header {
  background-color: var(--rb-primary);
  border-bottom: 1px solid var(--rb-accent);
  padding: 0;
  z-index: 1000;
  position: relative;
}

.rb-nav-wrap {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.rb-logo {
  font-family: var(--rb-font-heading);
  font-size: 1.4rem;
  color: var(--rb-accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rb-logo:hover {
  color: #FF1744;
}

.rb-logo-icon {
  width: 32px;
  height: 32px;
  display: inline-block;
  background: radial-gradient(circle, var(--rb-accent) 30%, transparent 70%);
  border-radius: 50%;
  position: relative;
}

.rb-logo-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 2px;
  background: var(--rb-primary);
  box-shadow: 0 -4px 0 var(--rb-primary), 0 4px 0 var(--rb-primary);
}

.rb-nav-list {
  list-style: none;
  display: flex;
  gap: 24px;
  align-items: center;
}

.rb-nav-list li a {
  font-family: var(--rb-font-heading);
  font-size: 0.9rem;
  color: var(--rb-text);
  padding: 8px 4px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rb-nav-list li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rb-accent);
  transition: width 0.3s ease;
}

.rb-nav-list li a:hover {
  color: var(--rb-link);
}

.rb-nav-list li a:hover::after {
  width: 100%;
}

/* 汉堡菜单 */
.rb-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.rb-hamburger span {
  width: 28px;
  height: 2px;
  background: var(--rb-text);
  transition: all 0.3s ease;
}

.rb-hamburger.rb-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.rb-hamburger.rb-active span:nth-child(2) {
  opacity: 0;
}

.rb-hamburger.rb-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端全屏菜单 */
.rb-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(33, 33, 33, 0.97);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.rb-mobile-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, transparent 40%, rgba(183,28,28,0.1) 50%, transparent 60%),
    linear-gradient(45deg, transparent 45%, rgba(66,66,66,0.15) 50%, transparent 55%);
  pointer-events: none;
}

.rb-mobile-menu.rb-active {
  display: flex;
}

.rb-mobile-menu a {
  font-family: var(--rb-font-heading);
  font-size: 1.5rem;
  color: var(--rb-text);
  letter-spacing: 3px;
  position: relative;
  z-index: 1;
}

.rb-mobile-menu a:hover {
  color: var(--rb-link);
}

/* ========================================
   首页 Hero
   ======================================== */
.rb-hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rb-hero img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  filter: brightness(0.6);
  transition: filter 0.5s ease;
}

.rb-hero:hover img {
  filter: brightness(0.4);
}

.rb-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, transparent 0%, rgba(33,33,33,0.8) 100%);
  pointer-events: none;
}

.rb-hero-text {
  font-family: var(--rb-font-heading);
  font-size: 1.8rem;
  color: var(--rb-text);
  text-align: center;
  text-shadow: 0 0 20px rgba(183,28,28,0.5);
  animation: rb-flicker 4s infinite;
  pointer-events: auto;
}

.rb-enter-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.rb-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--rb-accent);
  font-family: var(--rb-font-heading);
  font-size: 0.85rem;
  animation: rb-pulse 2s infinite;
}

@keyframes rb-pulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(5px); }
}

/* ========================================
   通用区块样式
   ======================================== */
.rb-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 20px;
  position: relative;
  z-index: 1;
}

.rb-section-title {
  font-family: var(--rb-font-heading);
  color: var(--rb-accent);
  border-left: 4px solid var(--rb-accent);
  padding-left: 16px;
  margin-bottom: 2rem;
  position: relative;
}

.rb-section-desc {
  font-size: 1rem;
  color: #757575;
  margin-bottom: 2rem;
  font-style: italic;
}

.rb-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rb-accent), transparent);
  margin: 0;
}

/* ========================================
   卡片样式（连载专区等）
   ======================================== */
.rb-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.rb-card {
  background: var(--rb-secondary);
  border: 1px solid var(--rb-border);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.rb-card::before {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, transparent 50%, var(--rb-primary) 50%);
  z-index: 2;
}

.rb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(183,28,28,0.2);
}

.rb-card-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.rb-card-body {
  padding: 16px;
}

.rb-card-title {
  font-family: var(--rb-font-heading);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--rb-text);
}

.rb-card-meta {
  font-size: 0.85rem;
  color: #757575;
  margin-bottom: 8px;
}

.rb-card-excerpt {
  font-size: 0.9rem;
  color: #9E9E9E;
  line-height: 1.6;
}

.rb-tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(183,28,28,0.2);
  color: var(--rb-accent);
  font-size: 0.75rem;
  font-family: var(--rb-font-heading);
  margin-right: 4px;
}

/* ========================================
   排行榜
   ======================================== */
.rb-ranking-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.rb-tab {
  font-family: var(--rb-font-heading);
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--rb-border);
  color: var(--rb-text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.rb-tab:hover,
.rb-tab.rb-active {
  background: var(--rb-accent);
  border-color: var(--rb-accent);
  color: #fff;
}

.rb-rank-list {
  list-style: none;
}

.rb-rank-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rb-border);
  transition: background 0.3s ease;
}

.rb-rank-item:hover {
  background: rgba(66,66,66,0.5);
}

.rb-rank-num {
  font-family: var(--rb-font-heading);
  font-size: 1.4rem;
  color: var(--rb-accent);
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.rb-rank-num.rb-top3 {
  color: #FF1744;
  font-size: 1.6rem;
}

.rb-rank-info {
  flex: 1;
  margin-left: 16px;
}

.rb-rank-title {
  font-family: var(--rb-font-heading);
  font-size: 1rem;
  color: var(--rb-text);
}

.rb-rank-author {
  font-size: 0.85rem;
  color: #757575;
}

/* ========================================
   作者暗室
   ======================================== */
.rb-author-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.rb-author-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--rb-secondary);
  border: 1px solid var(--rb-border);
  transition: transform 0.3s ease;
}

.rb-author-card:hover {
  transform: scale(1.03);
}

.rb-author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rb-accent);
  margin-bottom: 12px;
}

.rb-author-name {
  font-family: var(--rb-font-heading);
  font-size: 1rem;
  color: var(--rb-text);
  margin-bottom: 4px;
}

.rb-author-work {
  font-size: 0.85rem;
  color: #757575;
}

/* ========================================
   读者评论（终端日志效果）
   ======================================== */
.rb-comments-scroll {
  height: 300px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid var(--rb-border);
  padding: 16px;
  font-family: var(--rb-font-heading);
  font-size: 0.85rem;
  position: relative;
}

.rb-comments-scroll::before {
  content: '> TERMINAL_LOG v3.1.7';
  display: block;
  color: var(--rb-accent);
  margin-bottom: 12px;
  font-size: 0.75rem;
}

.rb-comment-item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(66,66,66,0.3);
  color: #9E9E9E;
  line-height: 1.5;
}

.rb-comment-user {
  color: var(--rb-accent);
}

.rb-comment-time {
  color: #616161;
  font-size: 0.75rem;
}

/* ========================================
   有声小说
   ======================================== */
.rb-audio-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.rb-audio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--rb-secondary);
  border: 1px solid var(--rb-border);
}

.rb-audio-icon {
  width: 48px;
  height: 48px;
  background: var(--rb-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rb-audio-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 14px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 3px;
}

.rb-audio-info {
  flex: 1;
}

.rb-audio-title {
  font-family: var(--rb-font-heading);
  font-size: 0.95rem;
  color: var(--rb-text);
}

.rb-audio-duration {
  font-size: 0.8rem;
  color: #757575;
}

/* ========================================
   插画展
   ======================================== */
.rb-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 16px;
}

.rb-gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rb-border);
}

.rb-gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.rb-gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.rb-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px;
  background: linear-gradient(to top, rgba(33,33,33,0.9), transparent);
  font-family: var(--rb-font-heading);
  font-size: 0.85rem;
  color: var(--rb-text);
}

/* ========================================
   周边暗市
   ======================================== */
.rb-market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.rb-product-card {
  background: var(--rb-secondary);
  border: 1px solid var(--rb-border);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.rb-product-card:hover {
  transform: translateY(-3px);
}

.rb-product-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.rb-product-info {
  padding: 16px;
}

.rb-product-name {
  font-family: var(--rb-font-heading);
  font-size: 1rem;
  color: var(--rb-text);
  margin-bottom: 8px;
}

.rb-product-price {
  color: var(--rb-accent);
  font-family: var(--rb-font-heading);
  font-size: 1.1rem;
}

/* ========================================
   地下会员
   ======================================== */
.rb-vip-section {
  text-align: center;
  padding: 60px 20px;
}

.rb-vip-badge {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 24px;
}

.rb-vip-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.rb-vip-card {
  background: var(--rb-secondary);
  border: 1px solid var(--rb-border);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.3s ease;
}

.rb-vip-card:hover {
  border-color: var(--rb-accent);
}

.rb-vip-tier-name {
  font-family: var(--rb-font-heading);
  font-size: 1.2rem;
  color: var(--rb-accent);
  margin-bottom: 12px;
}

.rb-vip-price {
  font-family: var(--rb-font-heading);
  font-size: 2rem;
  color: var(--rb-text);
  margin-bottom: 16px;
}

.rb-vip-features {
  list-style: none;
  text-align: left;
}

.rb-vip-features li {
  padding: 6px 0;
  border-bottom: 1px solid var(--rb-border);
  font-size: 0.9rem;
  color: #9E9E9E;
}

.rb-vip-features li::before {
  content: '>';
  color: var(--rb-accent);
  margin-right: 8px;
  font-family: var(--rb-font-heading);
}

/* ========================================
   禁忌公告
   ======================================== */
.rb-notice-list {
  list-style: none;
}

.rb-notice-item {
  padding: 16px;
  border-left: 3px solid var(--rb-accent);
  margin-bottom: 12px;
  background: rgba(66,66,66,0.2);
}

.rb-notice-date {
  font-family: var(--rb-font-heading);
  font-size: 0.8rem;
  color: #616161;
}

.rb-notice-title {
  font-family: var(--rb-font-heading);
  font-size: 1rem;
  color: var(--rb-text);
  margin-top: 4px;
}

/* ========================================
   按钮样式
   ======================================== */
.rb-btn {
  display: inline-block;
  padding: 10px 24px;
  font-family: var(--rb-font-heading);
  font-size: 0.9rem;
  border: 1px solid var(--rb-accent);
  color: var(--rb-text);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.rb-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--rb-accent);
  transition: left 0.3s ease;
  z-index: -1;
}

.rb-btn:hover {
  color: #fff;
}

.rb-btn:hover::before {
  left: 0;
}

.rb-btn-primary {
  background: var(--rb-accent);
  color: #fff;
}

/* ========================================
   页脚
   ======================================== */
#rb-footer {
  background: #1a1a1a;
  border-top: 1px solid var(--rb-accent);
  padding: 48px 20px 24px;
  position: relative;
  z-index: 1;
}

.rb-footer-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.rb-footer-col h3 {
  font-family: var(--rb-font-heading);
  font-size: 1rem;
  color: var(--rb-accent);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.rb-footer-col ul {
  list-style: none;
}

.rb-footer-col ul li {
  margin-bottom: 8px;
}

.rb-footer-col ul li a {
  color: #9E9E9E;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.rb-footer-col ul li a:hover {
  color: var(--rb-link);
}

.rb-footer-social {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.rb-social-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--rb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rb-text);
  font-size: 0.8rem;
  font-family: var(--rb-font-heading);
  transition: border-color 0.3s ease;
}

.rb-social-icon:hover {
  border-color: var(--rb-accent);
  color: var(--rb-accent);
}

.rb-footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--rb-border);
  text-align: center;
  font-size: 0.8rem;
  color: #616161;
}

.rb-footer-honor {
  margin-bottom: 8px;
  color: var(--rb-accent);
  font-family: var(--rb-font-heading);
  font-size: 0.85rem;
}

.rb-footer-cert {
  margin-bottom: 8px;
}

.rb-footer-cert a {
  color: #757575;
  margin: 0 8px;
  font-size: 0.8rem;
}

.rb-footer-copyright {
  color: #616161;
}

/* ========================================
   表单样式（投稿页）
   ======================================== */
.rb-form-group {
  margin-bottom: 20px;
}

.rb-form-label {
  display: block;
  font-family: var(--rb-font-heading);
  font-size: 0.9rem;
  color: var(--rb-text);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.rb-form-input,
.rb-form-select,
.rb-form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(33,33,33,0.8);
  border: 1px solid var(--rb-border);
  color: var(--rb-text);
  font-family: var(--rb-font-heading);
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
  outline: none;
  border-radius: 0;
}

.rb-form-input:focus,
.rb-form-select:focus,
.rb-form-textarea:focus {
  border-color: var(--rb-accent);
  box-shadow: 0 0 8px rgba(183,28,28,0.3);
}

.rb-form-textarea {
  min-height: 150px;
  resize: vertical;
}

.rb-form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23B71C1C' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* ========================================
   内页通用
   ======================================== */
.rb-page-header {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(to bottom, var(--rb-secondary), var(--rb-primary));
  position: relative;
  z-index: 1;
}

.rb-page-header h1 {
  font-size: 2rem;
  color: var(--rb-text);
  margin-bottom: 12px;
}

.rb-page-header p {
  color: #757575;
  max-width: 600px;
  margin: 0 auto;
}

.rb-content-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.rb-chapter-text {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--rb-text);
}

.rb-chapter-text p {
  margin-bottom: 1.5rem;
  text-indent: 2em;
}

/* ========================================
   栏目页列表样式
   ======================================== */
.rb-list-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.rb-novel-list {
  list-style: none;
}

.rb-novel-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rb-border);
}

.rb-novel-thumb {
  width: 120px;
  height: 160px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--rb-border);
}

.rb-novel-info {
  flex: 1;
}

.rb-novel-title {
  font-family: var(--rb-font-heading);
  font-size: 1.1rem;
  color: var(--rb-text);
  margin-bottom: 8px;
}

.rb-novel-author {
  font-size: 0.85rem;
  color: #757575;
  margin-bottom: 8px;
}

.rb-novel-desc {
  font-size: 0.9rem;
  color: #9E9E9E;
  line-height: 1.6;
}

/* ========================================
   APP下载页
   ======================================== */
.rb-app-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.rb-app-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(183,28,28,0.15) 0%, var(--rb-primary) 70%);
  z-index: 0;
  animation: rb-flow 8s ease-in-out infinite;
}

@keyframes rb-flow {
  0%, 100% { background: radial-gradient(ellipse at center, rgba(183,28,28,0.15) 0%, var(--rb-primary) 70%); }
  50% { background: radial-gradient(ellipse at center, rgba(183,28,28,0.25) 0%, var(--rb-primary) 60%); }
}

.rb-app-mockup {
  max-width: 300px;
  margin-bottom: 32px;
}

.rb-app-title {
  font-family: var(--rb-font-heading);
  font-size: 2.5rem;
  color: var(--rb-text);
  margin-bottom: 12px;
}

.rb-app-subtitle {
  font-size: 1.1rem;
  color: #757575;
  margin-bottom: 32px;
}

.rb-app-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.rb-app-store-btn {
  padding: 14px 32px;
  border: 2px solid var(--rb-accent);
  color: var(--rb-text);
  font-family: var(--rb-font-heading);
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.rb-app-store-btn:hover {
  background: var(--rb-accent);
  color: #fff;
}

/* ========================================
   响应式断点
   ======================================== */

/* 1440px */
@media (max-width: 1440px) {
  .rb-section {
    max-width: 1200px;
  }
}

/* 1024px */
@media (max-width: 1024px) {
  .rb-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .rb-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* 768px */
@media (max-width: 768px) {
  .rb-nav-list {
    display: none;
  }

  .rb-hamburger {
    display: flex;
  }

  .rb-hero-text {
    font-size: 1.3rem;
    padding: 0 20px;
  }

  .rb-card-grid {
    grid-template-columns: 1fr;
  }

  .rb-author-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rb-footer-grid {
    grid-template-columns: 1fr;
  }

  .rb-novel-item {
    flex-direction: column;
  }

  .rb-novel-thumb {
    width: 100%;
    height: 200px;
  }

  .rb-vip-tiers {
    grid-template-columns: 1fr;
  }
}

/* 360px */
@media (max-width: 360px) {
  html {
    font-size: 14px;
  }

  .rb-hero-text {
    font-size: 1.1rem;
  }

  .rb-section {
    padding: 40px 12px;
  }

  .rb-author-grid {
    grid-template-columns: 1fr;
  }

  .rb-gallery-grid {
    grid-template-columns: 1fr;
  }

  .rb-audio-list {
    grid-template-columns: 1fr;
  }

  .rb-app-links {
    flex-direction: column;
    align-items: center;
  }
}
