:root {
  --primary: #059669;
  --accent: #14b8a6;
  --bg: #f0fdfa;
  --text: #134e4a;
  --dark: #0f3d38;
  --border-w: 3px;
  --shadow: 8px 8px 0 rgba(5, 150, 105, 0.2);
}
* { border-radius: 0 !important; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0.01em;
  position: relative;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" result="noise"/><feColorMatrix type="matrix" values="0 0 0 0 0.05 0 0 0 0 0.15 0 0 0 0 0.1 0 0 0 0.06 0"/></filter><rect width="120" height="120" filter="url(%23n)"/></svg>');
  opacity: 0.25;
  pointer-events: none;
  z-index: 9999;
}
a { text-decoration: none; color: inherit; }
h1,h2,h3,h4 { font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: calc(1.7rem + 0.4vw); }
.container-custom { max-width: 1550px; margin: 0 auto; padding: 0 20px; }

/* progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  z-index: 99999;
  transition: width 0.1s;
}

/* side nav */
.side-layout { display: flex; gap: 30px; padding-top: 30px; align-items: flex-start; }
.sidebar {
  width: 250px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  background: white;
  border: var(--border-w) solid var(--dark);
  box-shadow: var(--shadow);
  padding: 20px 15px;
  transition: all 0.2s;
}
.sidebar .brand-big {
  font-weight: 900;
  font-size: 2rem;
  color: var(--primary);
  border-bottom: 2px solid var(--dark);
  padding-bottom: 10px;
  margin-bottom: 15px;
}
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { margin: 8px 0; }
.sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  background: var(--bg);
  border: 2px solid transparent;
  font-weight: 600;
  transition: 0.2s;
}
.sidebar a:hover { border-color: var(--primary); background: white; box-shadow: 3px 3px 0 var(--primary); }
.sidebar i { width: 22px; color: var(--primary); }

/* main content */
.main-col { flex: 1; min-width: 0; }

/* navbar */
.nav-custom {
  background: white;
  border-bottom: var(--border-w) solid var(--dark);
  box-shadow: 0 6px 0 rgba(5, 150, 105, 0.1);
}
.navbar-brand { font-weight: 900; font-size: 1.8rem; color: var(--primary) !important; letter-spacing: -0.03em; }
.navbar-toggler { border: 2px solid var(--dark); }
.nav-link { font-weight: 600; color: var(--text) !important; margin: 0 10px; }
.nav-link:hover { color: var(--primary) !important; border-bottom: 3px solid var(--primary); }

/* hero */
.hero-section {
  background: linear-gradient(145deg, #ffffff, #d9f4ee);
  border: var(--border-w) solid var(--dark);
  box-shadow: var(--shadow);
  padding: 50px 30px;
  margin: 30px 0;
  position: relative;
}
.typing-title {
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  display: inline-block;
  border-right: 4px solid var(--accent);
  white-space: nowrap;
  overflow: hidden;
  animation: blink 0.8s step-end infinite;
  color: var(--dark);
}
@keyframes blink { 50% { border-color: transparent; } }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.stat-num {
  font-weight: 900;
  font-size: 2.8rem;
  color: var(--primary);
  line-height: 1;
}
.stat-label { font-weight: 500; letter-spacing: 0.5px; }

/* card grid / waterfall */
.card-waterfall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 25px;
}
.manga-card {
  background: white;
  border: var(--border-w) solid var(--dark);
  box-shadow: 5px 5px 0 rgba(5, 150, 105, 0.15);
  transition: 0.2s ease;
  overflow: hidden;
}
.manga-card:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 rgba(5, 150, 105, 0.25); }
.manga-card .img-wrap {
  height: 180px;
  background: var(--accent) url('{随机图片}') center/cover no-repeat;
  border-bottom: var(--border-w) solid var(--dark);
}
.manga-card .card-body { padding: 15px; }
.manga-card h5 { font-weight: 800; margin-bottom: 5px; }
.manga-card .meta { font-size: 0.9rem; color: #0f5c54; }
.manga-card .score {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-weight: 700;
  padding: 2px 10px;
  border: 2px solid var(--dark);
}

/* long article */
.long-article {
  background: white;
  border: var(--border-w) solid var(--dark);
  box-shadow: var(--shadow);
  padding: 35px;
  margin: 30px 0;
}
.article-number-list {
  counter-reset: list;
  list-style: none;
  padding-left: 0;
}
.article-number-list li {
  counter-increment: list;
  margin-bottom: 18px;
  font-weight: 500;
  position: relative;
  padding-left: 45px;
}
.article-number-list li::before {
  content: counter(list, decimal-leading-zero);
  position: absolute;
  left: 0; top: -4px;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--primary);
  background: var(--bg);
  border: 2px solid var(--dark);
  padding: 2px 10px;
  box-shadow: 3px 3px 0 rgba(5, 150, 105, 0.2);
}

/* compare table */
.compare-table-wrap {
  background: white;
  border: var(--border-w) solid var(--dark);
  box-shadow: var(--shadow);
  padding: 30px 20px;
  margin: 30px 0;
}
.table-compare {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid var(--dark);
}
.table-compare th, .table-compare td {
  padding: 15px 12px;
  border: 2px solid var(--dark);
  text-align: center;
  font-weight: 600;
}
.table-compare th { background: var(--primary); color: white; font-size: 1.2rem; }
.table-compare td:first-child { text-align: left; font-weight: 700; }
.table-compare i { color: var(--primary); margin: 0 3px; }

/* feature & CTA */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.feature-item {
  background: white;
  border: var(--border-w) solid var(--dark);
  padding: 25px 15px;
  text-align: center;
  box-shadow: 5px 5px 0 rgba(5, 150, 105, 0.1);
}
.feature-item i { font-size: 2.6rem; color: var(--primary); }
.cta-section {
  background: var(--dark);
  border: var(--border-w) solid white;
  box-shadow: 8px 8px 0 var(--primary);
  padding: 50px 30px;
  text-align: center;
  color: white;
  margin: 40px 0;
}
.cta-section .btn-cta {
  background: white;
  border: 3px solid var(--primary);
  padding: 12px 35px;
  font-weight: 800;
  color: var(--dark);
  position: relative;
  overflow: hidden;
  transition: 0.3s;
  box-shadow: 4px 4px 0 var(--primary);
}
.btn-cta::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: skewX(-20deg);
  transition: 0.6s;
}
.btn-cta:hover::after { left: 120%; }
.btn-cta:hover { background: var(--accent); color: black; }

/* friend links & footer */
.friend-links {
  background: white;
  border: var(--border-w) solid var(--dark);
  padding: 25px;
  margin: 30px 0 20px;
}
.friend-links h4 { font-weight: 800; margin-bottom: 15px; }
.footer {
  background: var(--dark);
  color: white;
  padding: 30px 0;
  border-top: 4px solid var(--primary);
}
.footer a { color: var(--accent); font-weight: 500; }

/* fade on scroll */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.reveal { opacity: 1; transform: translateY(0); }

/* responsive */
@media (max-width: 992px) {
  .side-layout { flex-direction: column; }
  .sidebar { width: 100%; position: static; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
  .sidebar ul { display: flex; flex-wrap: wrap; }
  .sidebar li { margin: 5px; }
  .sidebar .brand-big { width: 100%; }
}

/* --- 子页面追加 --- */
/* 本页专属补充样式——仅覆盖/新增少量本页特有布局 */
    .about-hero { padding: 80px 0 40px; }
.section-title { font-weight: 800; color: var(--primary); margin-bottom: 1.2rem; position: relative; display: inline-block; }
.section-title::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 100%; height: 3px; background: var(--accent); border-radius: 2px; }
.about-card { background: rgba(255,255,255,.7); border: var(--border-w) solid var(--primary); border-radius: 12px; padding: 28px; box-shadow: var(--shadow); transition: transform .2s ease; }
.about-card:hover { transform: translateY(-4px); }
.value-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px dashed rgba(5,150,105,.2); }
.value-item i { font-size: 1.5rem; color: var(--accent); width: 36px; text-align: center; flex-shrink: 0; margin-top: 4px; }
.value-item p { margin: 0; color: var(--text); line-height: 1.7; }
.timeline { border-left: 3px solid var(--primary); margin-left: 12px; padding-left: 28px; position: relative; }
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-item::before { content: ''; position: absolute; left: -37px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--primary); }
.stat-badge { display: inline-block; background: var(--primary); color: #fff; font-weight: 700; font-size: .85rem; padding: 4px 14px; border-radius: 20px; margin-right: 8px; }
.signature { border-left: 4px solid var(--accent); padding-left: 18px; font-style: italic; color: var(--dark); }
.about-hero { padding: 50px 0 20px; }
.about-card { padding: 20px; }

/* --- 子页面追加 --- */
/* 确保所有 Bootstrap 组件色系与 :root 一致 */
    .card, .card-body, .card-header, .card-footer,
    .form-control, .form-select, .list-group-item,
    .accordion-item, .accordion-button, .accordion-body,
    .modal-content, .dropdown-menu, .dropdown-item {
      background: var(--bg);
      color: var(--text);
      border-color: var(--primary);
    }
.form-control::placeholder {
      color: rgba(19, 78, 74, 0.5);
    }
.nav-link.active {
      font-weight: 700;
      color: var(--primary) !important;
      border-bottom: 3px solid var(--primary);
    }
.btn-donate {
      background: var(--primary);
      color: white;
      border: none;
      padding: 0.6rem 2rem;
      font-weight: 600;
      box-shadow: var(--shadow);
      transition: 0.2s;
    }
.btn-donate:hover {
      background: var(--dark);
      color: white;
      transform: translateY(-2px);
    }
.donate-card {
      border: var(--border-w) solid var(--primary);
      box-shadow: var(--shadow);
      transition: 0.2s;
    }
.donate-card:hover {
      transform: translate(-2px, -2px);
      box-shadow: 10px 10px 0 rgba(5, 150, 105, 0.3);
    }
.friend-links a {
      color: var(--text);
      text-decoration: none;
      border-bottom: 2px solid var(--accent);
    }
.friend-links a:hover {
      color: var(--primary);
    }

/* --- 子页面追加 --- */
.disclaimer-section {
            margin-bottom: 2.5rem;
            padding: 2rem;
            background: rgba(255, 255, 255, 0.7);
            border: var(--border-w) solid var(--primary);
            border-radius: 16px;
            box-shadow: var(--shadow);
            transition: transform 0.2s ease;
        }
.disclaimer-section:hover {
            transform: translateY(-3px);
        }
.disclaimer-section h2 {
            color: var(--primary);
            font-weight: 800;
            margin-bottom: 1.2rem;
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.6rem;
        }
.disclaimer-section h2 i {
            font-size: 1.3rem;
            color: var(--accent);
        }
.disclaimer-section p, .disclaimer-section li {
            color: var(--text);
            line-height: 1.8;
            font-size: 0.95rem;
        }
.disclaimer-section ul {
            padding-left: 1.5rem;
            margin-top: 0.8rem;
        }
.disclaimer-section li {
            margin-bottom: 0.5rem;
        }
.highlight-box {
            background: rgba(5, 150, 105, 0.1);
            border-left: 5px solid var(--primary);
            padding: 1rem 1.2rem;
            border-radius: 8px;
            margin: 1rem 0;
        }
.highlight-box strong {
            color: var(--primary);
        }
.table-of-contents {
            background: rgba(255, 255, 255, 0.85);
            border: 2px solid var(--accent);
            border-radius: 12px;
            padding: 1.5rem 2rem;
            margin-bottom: 2.5rem;
        }
.table-of-contents h3 {
            color: var(--primary);
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 0.8rem;
        }
.table-of-contents a {
            color: var(--text);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s;
            display: block;
            padding: 0.3rem 0;
        }
.table-of-contents a:hover {
            color: var(--primary);
        }
.last-updated {
            font-size: 0.85rem;
            color: rgba(19, 78, 74, 0.7);
            font-style: italic;
            margin-top: 1rem;
        }
.disclaimer-section {
                padding: 1.2rem;
            }

/* --- 子页面追加 --- */
.privacy-hero {
            background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
            color: #fff;
            padding: 80px 0 60px;
            border-bottom: var(--border-w) solid var(--accent);
            position: relative;
            overflow: hidden;
        }
.privacy-hero::after {
            content: '🔒';
            position: absolute;
            right: -20px;
            bottom: -30px;
            font-size: 200px;
            opacity: 0.1;
            transform: rotate(-15deg);
        }
.privacy-hero h1 {
            font-weight: 900;
            font-size: 2.8rem;
            margin-bottom: 15px;
            letter-spacing: -0.02em;
        }
.privacy-hero .subtitle {
            font-size: 1.15rem;
            opacity: 0.9;
            max-width: 650px;
            line-height: 1.7;
        }
.privacy-content {
            background: var(--bg);
            padding: 60px 0;
        }
.privacy-card {
            background: #fff;
            border: var(--border-w) solid var(--dark);
            border-radius: 12px;
            padding: 35px;
            margin-bottom: 30px;
            box-shadow: var(--shadow);
            transition: transform 0.3s ease;
        }
.privacy-card:hover {
            transform: translateY(-3px);
        }
.privacy-card h2 {
            color: var(--primary);
            font-weight: 800;
            font-size: 1.5rem;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 2px solid var(--accent);
            display: flex;
            align-items: center;
            gap: 10px;
        }
.privacy-card h2 i {
            font-size: 1.2rem;
            color: var(--accent);
        }
.privacy-card p {
            color: var(--text);
            line-height: 1.8;
            margin-bottom: 15px;
            font-size: 0.98rem;
        }
.privacy-card ul {
            padding-left: 20px;
            margin-bottom: 15px;
        }
.privacy-card li {
            color: var(--text);
            line-height: 1.8;
            margin-bottom: 8px;
            position: relative;
            padding-left: 10px;
        }
.privacy-card li::before {
            content: '▸';
            position: absolute;
            left: -8px;
            color: var(--accent);
            font-weight: bold;
        }
.highlight-box p {
            margin-bottom: 0;
            font-weight: 500;
        }
.table-responsive {
            overflow-x: auto;
        }
.privacy-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
        }
.privacy-table th {
            background: var(--primary);
            color: #fff;
            padding: 14px 18px;
            font-weight: 700;
            text-align: left;
            border: 1px solid var(--dark);
        }
.privacy-table td {
            padding: 14px 18px;
            border: 1px solid #d1d5db;
            color: var(--text);
            background: #fff;
        }
.privacy-table tr:nth-child(even) td {
            background: #f8faf9;
        }
.privacy-hero {
                padding: 50px 0 40px;
            }
.privacy-hero h1 {
                font-size: 2rem;
            }
.privacy-card {
                padding: 25px 20px;
            }
.privacy-table th, .privacy-table td {
                padding: 10px 12px;
                font-size: 0.9rem;
            }

/* --- Bootstrap 组件配色适配(程序自动补,避免白底黑字) --- */
.card-title { color:#134e4a !important; }
.card-text { color:#134e4a !important; }
.table { color:#134e4a !important; border-color:rgba(0,0,0,.12) !important; --bs-table-bg:transparent !important; --bs-table-color:#134e4a !important; }
.accordion-header { background:transparent !important; }
