.member-rules-page {
  width: 100%;
  min-height: 100vh;
  background: var(--page-bg);
  display: flex;
  flex-direction: column;
}

/* 顶部 Header */
.rules-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--brand-gradient);
  color: var(--text-on-brand);
  box-shadow: 0 2px 8px rgba(139, 38, 50, 0.18);
}

.rules-header .back-btn {
  width: 36px;
  height: 36px;
  color: #fff !important;
  font-size: 18px;
  border: none;
  background: transparent !important;
}

.rules-header .back-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

.rules-title {
  flex: 1;
  margin: 0 8px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #fff;
}

.header-spacer {
  width: 36px;
  height: 36px;
}

/* 文档主体 */
.rules-doc {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 16px auto;
  padding: 28px 22px 40px;
  background: var(--surface-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "STSong", "Songti SC", serif;
}

/* 公文头(标题 + 文号) */
.doc-banner {
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 2.5px solid var(--brand-color);
  margin-bottom: 24px;
}

.banner-line {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-color);
  letter-spacing: 4px;
  line-height: 1.4;
}

.banner-no {
  font-size: 14px;
  color: var(--brand-color-dark);
  margin-top: 6px;
  letter-spacing: 1px;
}

/* 决议标题 */
.doc-decision-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.6;
  margin: 24px 0 18px;
  letter-spacing: 1px;
}

/* 普通段落 */
.doc-paragraph {
  margin: 0 0 12px 0;
  text-indent: 2em;
  color: var(--text-primary);
}

/* 落款 */
.doc-sign {
  margin: 24px 0 8px;
  text-align: right;
  line-height: 1.9;
  font-size: 15px;
  color: var(--text-primary);
  padding-right: 12px;
}

/* 分隔线 */
.doc-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(139, 38, 50, 0.25) 50%,
    transparent 100%
  );
  margin: 32px 0;
}

/* 正文大标题 */
.doc-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-color-dark);
  text-align: center;
  letter-spacing: 3px;
  margin: 0 0 24px;
  line-height: 1.5;
}

/* 章节 */
.doc-chapter {
  margin-bottom: 18px;
}

.chapter-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-color);
  text-align: center;
  letter-spacing: 2px;
  margin: 22px 0 14px;
  line-height: 1.5;
}

/* 条款 */
.doc-article {
  margin-bottom: 10px;
}

.article-text {
  margin: 0;
  text-indent: 2em;
  color: var(--text-primary);
}

.article-no {
  font-weight: 600;
  color: var(--brand-color-dark);
  margin-right: 2px;
}

/* 子条款列表 */
.article-items {
  list-style: none;
  padding: 4px 0 4px 2em;
  margin: 4px 0 8px;
}

.article-items li {
  padding: 2px 0;
  color: var(--text-primary);
  text-indent: 0;
}

/* 文末 */
.doc-footer-tip {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 4px;
}

/* iPhone 安全区 */
@supports (padding: max(0px)) {
  .rules-doc {
    margin-bottom: max(16px, env(safe-area-inset-bottom));
  }
}

/* 移动端窄屏 */
@media screen and (max-width: 375px) {
  .rules-doc {
    margin: 12px;
    padding: 22px 16px 32px;
    font-size: 14px;
  }

  .banner-line {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .doc-title {
    font-size: 19px;
    letter-spacing: 2px;
  }

  .chapter-title {
    font-size: 16px;
  }

  .doc-decision-title {
    font-size: 16px;
  }
}

/* 大屏 */
@media screen and (min-width: 768px) {
  .rules-doc {
    padding: 40px 56px 56px;
    font-size: 16px;
  }

  .banner-line {
    font-size: 28px;
  }

  .doc-title {
    font-size: 26px;
  }

  .chapter-title {
    font-size: 19px;
  }
}
