:root {
  --primary: #9f1239;
  --accent: #e11d48;
  --bg: #fafafa;
  --text: #3f0a1a;
  --border-w: 3px;
  --shadow-off: 6px;
}

* { border-radius: 0 !important; }

body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  font-size: 14px;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'PingFang SC', cursive, sans-serif;
  font-weight: 900;
  letter-spacing: 1px;
}

a { text-decoration: none; color: var(--primary); }
a:hover { color: var(--accent); }

.btn-hard {
  border: var(--border-w) solid var(--text);
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  padding: 10px 24px;
  box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--text);
  transition: all .15s;
  position: relative;
  overflow: hidden;
}
.btn-hard:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--text);
  color: #fff;
  background: var(--accent);
}
.btn-hard::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transition: left .4s;
}
.btn-hard:hover::after { left: 100%; }

.nav-wrap {
  border-bottom: var(--border-w) solid var(--text);
  background: #fff;
  box-shadow: 0 4px 0 rgba(63,10,26,.15);
}
.navbar-brand {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--primary) !important;
  font-family: 'Comic Sans MS', cursive;
  white-space: nowrap;
}
.navbar-brand i { color: var(--accent); margin-right: 4px; }
.nav-link {
  font-weight: 700;
  color: var(--text) !important;
  padding: 8px 14px !important;
  border: 2px solid transparent;
  transition: all .15s;
}
.nav-link:hover { border-color: var(--primary); background: #fff; }
.navbar-toggler { border: 2px solid var(--text); }

.hero-section {
  padding: 60px 0 80px;
  position: relative;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -20px; left: 0;
  width: 100%; height: 40px;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 50%, 100% 100%, 0 100%);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto; margin-right: auto;
}
.tag-cloud span {
  background: #fff;
  border: 2px solid var(--text);
  padding: 4px 14px;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 3px 3px 0 rgba(63,10,26,.2);
  transition: all .2s;
}
.tag-cloud span:nth-child(odd) { transform: rotate(-2deg); }
.tag-cloud span:nth-child(even) { transform: rotate(2deg); }
.tag-cloud span:hover { transform: scale(1.1) rotate(0deg); background: var(--primary); color: #fff; }

.hero-title {
  font-size: 3.2rem;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 900;
}
.hero-subtitle { font-size: 1.1rem; max-width: 640px; margin: 0 auto 30px; font-weight: 500; }

.stats-section {
  background: var(--text);
  color: #fff;
  padding: 50px 0 70px;
  position: relative;
  clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
}
.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  font-family: 'Comic Sans MS', cursive;
  display: block;
  line-height: 1.1;
}
.stat-label { font-size: 13px; opacity: .8; font-weight: 600; letter-spacing: 1px; }
.stat-box { border-left: 4px solid var(--accent); padding-left: 16px; }

.steps-section { padding: 80px 0 60px; position: relative; }
.timeline-container { position: relative; max-width: 1100px; margin: 0 auto; }
.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 4px;
  background: var(--primary);
  transform: translateX(-50%);
}
.step-item {
  display: flex;
  justify-content: flex-end;
  padding: 15px 0;
  width: 50%;
  position: relative;
}
.step-item:nth-child(even) {
  align-self: flex-end;
  justify-content: flex-start;
  margin-left: 50%;
}
.step-item:nth-child(odd) { padding-right: 40px; }
.step-item:nth-child(even) { padding-left: 40px; }
.step-card {
  background: #fff;
  border: var(--border-w) solid var(--text);
  box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--text);
  padding: 20px 24px;
  width: 100%;
  position: relative;
  transition: all .2s;
}
.step-card:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--text); }
.step-num {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  padding: 2px 12px;
  margin-bottom: 8px;
  font-size: 1.2rem;
  border: 2px solid var(--text);
}
.step-card h4 { font-size: 1.2rem; color: var(--primary); margin-bottom: 6px; font-weight: 900; }
.step-card p { font-size: 13px; margin-bottom: 0; }
.step-dot {
  position: absolute;
  width: 20px; height: 20px;
  background: var(--accent);
  border: 3px solid var(--text);
  border-radius: 50% !important;
  top: 50%;
}
.step-item:nth-child(odd) .step-dot { right: -13px; }
.step-item:nth-child(even) .step-dot { left: -13px; }

.features-section {
  background: #fff;
  padding: 70px 0 80px;
  position: relative;
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
}
.section-label {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  padding: 4px 16px;
  margin-bottom: 16px;
  border: 2px solid var(--text);
}
.section-title { font-size: 2.2rem; color: var(--primary); margin-bottom: 10px; }
.section-desc { max-width: 600px; margin: 0 auto 40px; font-weight: 500; }

.feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; max-width: 1200px; margin: 0 auto; }
.feature-card {
  background: var(--bg);
  border: var(--border-w) solid var(--text);
  box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--text);
  padding: 24px 20px;
  text-align: center;
  transition: all .2s;
}
.feature-card:nth-child(2) { transform: translateY(12px); }
.feature-card:nth-child(4) { transform: translateY(12px); }
.feature-card:hover { transform: translateY(0) scale(1.02); box-shadow: 10px 10px 0 var(--text); }
.feature-card i { font-size: 2.4rem; color: var(--primary); margin-bottom: 14px; display: block; }
.feature-card h4 { font-size: 1.05rem; font-weight: 900; margin-bottom: 8px; }
.feature-card p { font-size: 13px; margin: 0; opacity: .85; }

.faq-section { padding: 70px 0 80px; position: relative; }
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: var(--border-w) solid var(--text);
  margin-bottom: 16px;
  box-shadow: 4px 4px 0 rgba(63,10,26,.2);
}
.faq-item details { padding: 0; }
.faq-item summary {
  padding: 16px 20px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  transition: background .2s;
}
.faq-item summary:hover { background: #f5e6ec; }
.faq-item summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 14px;
  color: var(--accent);
  transition: transform .3s;
}
.faq-item details[open] summary::after { transform: rotate(180deg); }
.faq-item .faq-answer { padding: 0 20px 18px; font-size: 14px; line-height: 1.6; }

.cta-section {
  background: var(--text);
  padding: 60px 0 80px;
  color: #fff;
  position: relative;
  clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
}
.cta-section h2 { color: #fff; font-size: 2.2rem; }
.cta-section .btn-hard { background: var(--accent); border-color: #fff; box-shadow: 5px 5px 0 #fff; }
.cta-section .btn-hard:hover { background: #fff; color: var(--text); box-shadow: 2px 2px 0 #fff; }

.friend-links {
  background: #fff;
  border-top: var(--border-w) solid var(--text);
  padding: 30px 0;
}
.friend-links h5 {
  font-size: 1rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 10px;
  display: inline-block;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 3px;
}
.friend-links .links-text { font-size: 14px; font-weight: 500; }

footer {
  background: var(--text);
  color: #aaa;
  padding: 30px 0;
  font-size: 13px;
  border-top: 4px solid var(--accent);
}
footer a { color: #ddd; }
footer a:hover { color: #fff; }
footer .footer-brand {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  font-family: 'Comic Sans MS', cursive;
  letter-spacing: 2px;
}

@media (max-width: 992px) {
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .step-item { width: 100%; padding: 10px 0 10px 40px !important; justify-content: flex-start; }
  .step-item:nth-child(even) { margin-left: 0; }
  .timeline-container::before { left: 10px; }
  .step-item:nth-child(odd) .step-dot,
  .step-item:nth-child(even) .step-dot { left: 0; right: auto; }
  .hero-title { font-size: 2.2rem; }
  .stat-number { font-size: 2rem; }
}

@media (max-width: 576px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card:nth-child(2), .feature-card:nth-child(4) { transform: none; }
  .stats-section { clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%); }
  .hero-section::after { display: none; }
}

/* --- 子页面追加 --- */
/* 本页专用微调：确保卡片、表单等元素与站点深色/浅色风格一致 */
    /* 站点整体是浅色系，但部分组件需要强化边界 */
    .about-essay p {
      line-height: 1.8;
      color: var(--text);
    }
.about-essay h2, .about-essay h3 {
      margin-top: 2.5rem;
      font-weight: 800;
      letter-spacing: -0.01em;
    }
.about-essay h2 i, .about-essay h3 i {
      color: var(--accent);
      margin-right: 0.35rem;
    }
.timeline-container .step-card {
      border-left: 4px solid var(--primary);
    }
/* 保证bootstrap卡片样式统一覆盖为站点风格 */
    .card, .card-body, .card-header, .card-footer {
      background: #fff;
      color: var(--text);
      border-color: #f0d2dd;
    }
.form-control, .form-select {
      background: #fff;
      color: var(--text);
      border: 2px solid #e8c9d4;
    }
.form-control::placeholder {
      color: #b48a9a;
    }
.list-group-item {
      background: #fff;
      color: var(--text);
      border-color: #f1dae2;
    }
.accordion-item, .accordion-button {
      background: #fff;
      color: var(--text);
    }
.accordion-button:not(.collapsed) {
      background: #faeef2;
      color: var(--primary);
    }
.navbar, .navbar-brand, .nav-link {
      color: var(--text) !important;
    }
.btn-light {
      background: #fff;
      border-color: #e0b7c4;
      color: var(--text);
    }
.btn-outline-primary {
      border-color: var(--primary);
      color: var(--primary);
    }
.btn-outline-primary:hover {
      background: var(--primary);
      color: #fff;
    }
.table {
      --bs-table-bg: #fff;
      color: var(--text);
      border-color: #ecd5dd;
    }
.modal-content {
      background: #fff;
      color: var(--text);
    }
.dropdown-menu {
      background: #fff;
    }
.dropdown-item {
      color: var(--text);
    }
.dropdown-item:hover {
      background: #fbeef3;
    }

/* --- 子页面追加 --- */
.disclaimer-page { padding: 60px 0 80px; }
.disclaimer-hero { background: linear-gradient(135deg, rgba(159,18,57,.08) 0%, rgba(225,29,72,.04) 100%); border-bottom: var(--border-w) solid var(--primary); padding: 40px 0 30px; margin-bottom: 40px; }
.disclaimer-hero .hero-title { font-size: 2.2rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.disclaimer-hero .hero-subtitle { font-size: 1.1rem; color: var(--text); opacity: .8; }
.disclaimer-card { background: #fff; border: 2px solid var(--primary); border-radius: 12px; padding: 30px; margin-bottom: 28px; box-shadow: var(--shadow-off) var(--shadow-off) 0 rgba(159,18,57,.12); }
.disclaimer-card h2 { font-size: 1.4rem; font-weight: 700; color: var(--primary); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.disclaimer-card h2 i { font-size: 1.2rem; }
.disclaimer-card p { font-size: .98rem; line-height: 1.8; color: var(--text); margin-bottom: 14px; }
.disclaimer-card ul { padding-left: 20px; margin-bottom: 14px; }
.disclaimer-card ul li { font-size: .95rem; line-height: 1.8; color: var(--text); margin-bottom: 6px; }
.disclaimer-card ul li::marker { color: var(--accent); }
.disclaimer-card .highlight { background: rgba(225,29,72,.06); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: .95rem; margin: 16px 0; }
.disclaimer-card .highlight i { color: var(--accent); margin-right: 8px; }
.last-updated { font-size: .9rem; color: var(--text); opacity: .7; text-align: right; margin-top: 30px; font-style: italic; }
.disclaimer-hero .hero-title { font-size: 1.7rem; }
.disclaimer-card { padding: 22px 18px; }

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