﻿/* ========================================
   30天边界感重建计划 — 专属样式
   plan30.css
   ======================================== */

/* ===== CSS 变量 ===== */
:root {
  --p30-accent: #c0392b;
  --p30-accent-dark: #962d22;
  --p30-accent-light: #f9efee;
  --p30-text: #2c2c2c;
  --p30-muted: #777;
  --p30-border: #e4e0db;
  --p30-card-bg: #fff;
  --p30-sidebar-bg: #faf9f7;
}

/* ===== 激活门页面 ===== */
#p30-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 16px;
}

/* ===== 门页：客服联系区 ===== */
.p30-gate-cs {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #ede8f8;
}
.p30-gate-cs-tip {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 10px;
  text-align: center;
}
.p30-gate-cs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #faf8ff;
  border: 1px solid #d9c8f5;
  border-radius: 10px;
  padding: 10px 14px;
  flex-wrap: wrap;
}
.p30-gate-cs-label {
  font-size: 0.82rem;
  color: #6b4fa0;
}
.p30-gate-cs-id {
  font-weight: 700;
  color: #3d2b6e;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.p30-gate-cs-copy {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #9c6fe4;
  background: linear-gradient(135deg, #7c3aed, #6b4fa0);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.p30-gate-cs-copy:hover {
  background: linear-gradient(135deg, #6b4fa0, #5a3a8c);
}
.p30-gate-cs-copy.is-copied {
  background: linear-gradient(135deg, #16a34a, #15803d);
  border-color: #16a34a;
}
.p30-gate-back {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 0.82rem;
  color: #999;
  text-decoration: none;
}
.p30-gate-back:hover {
  color: #c0392b;
}

/* ===== 顶部导航栏 ===== */
.p30-top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--p30-border);
  padding: 10px 28px;
}
.p30-top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.p30-btn-nav {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  color: #555;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 5px 14px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.p30-btn-nav:hover {
  color: var(--p30-accent);
  border-color: var(--p30-accent);
  background: var(--p30-accent-light);
}
.p30-top-bar-series {
  font-size: 0.78rem;
  color: #aaa;
  margin-left: 6px;
}

/* ===== 双栏布局 ===== */
.p30-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  align-items: start;
}

/* ===== 侧边栏 ===== */
.p30-sidebar {
  position: sticky;
  top: 68px;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}
.p30-sidebar::-webkit-scrollbar {
  width: 4px;
}
.p30-sidebar::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}

/* ===== 目录卡片 ===== */
.p30-toc-card {
  background: var(--p30-sidebar-bg);
  border: 1px solid var(--p30-border);
  border-radius: 14px;
  padding: 20px 18px 18px;
}
.p30-toc-label-top {
  display: block;
  font-size: 0.7rem;
  color: var(--p30-accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.p30-toc-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--p30-text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--p30-border);
}
.p30-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.p30-toc-list li {
  font-size: 0.78rem;
  line-height: 1.6;
}
.p30-toc-list li a {
  color: #555;
  text-decoration: none;
  display: block;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s;
}
.p30-toc-list li a:hover {
  color: var(--p30-accent);
  background: var(--p30-accent-light);
}
.p30-toc-group {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--p30-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 12px;
  margin-bottom: 2px;
  padding: 0 6px;
}

/* ===== 主内容区 ===== */
.p30-main {
  min-width: 0;
}

/* ===== 文章头部 ===== */
.p30-article-header {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--p30-border);
}
.p30-article-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--p30-accent);
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.p30-article-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--p30-text);
  line-height: 1.2;
  margin: 0 0 12px;
}
.p30-article-intro {
  font-size: 0.95rem;
  color: var(--p30-muted);
  line-height: 1.7;
  margin: 0;
}
.p30-copyright {
  font-size: 0.75rem;
  color: #bbb;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 32px;
}

/* ===== 分隔线 ===== */
.p30-divider {
  border: none;
  border-top: 1px solid var(--p30-border);
  margin: 36px 0;
}

/* ===== 章节 ===== */
.p30-section {
  margin-bottom: 36px;
}
.p30-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--p30-text);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--p30-accent);
  display: inline-block;
}
.p30-section--final {
  background: #fdf7f6;
  border: 1px solid #f0d5d2;
  border-radius: 14px;
  padding: 28px 30px;
}

/* ===== 正文 ===== */
.p30-prose {
  font-size: 0.95rem;
  color: var(--p30-text);
  line-height: 1.85;
}
.p30-prose p {
  margin: 0 0 12px;
}
.p30-emph {
  font-size: 0.95rem;
  color: var(--p30-accent-dark);
  background: var(--p30-accent-light);
  border-left: 3px solid var(--p30-accent);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  line-height: 1.7;
}

/* ===== 使用方式网格 ===== */
.p30-howto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.p30-howto-item {
  background: #faf9f7;
  border: 1px solid var(--p30-border);
  border-radius: 10px;
  padding: 14px;
  font-size: 0.84rem;
  color: var(--p30-text);
  line-height: 1.5;
}
.p30-howto-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--p30-accent);
  margin-bottom: 6px;
  line-height: 1;
}

/* ===== 阶段标题 ===== */
.p30-stage-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, #fdf3f2, #fff);
  border: 1px solid #f0d5d2;
  border-left: 4px solid var(--p30-accent);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin-bottom: 28px;
}
.p30-stage-header--finale {
  background: linear-gradient(135deg, #f5f3ff, #fff);
  border-color: #d0c3f0;
  border-left-color: #7c3aed;
}
.p30-stage-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--p30-accent);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  margin-top: 2px;
}
.p30-stage-badge--finale {
  background: #7c3aed;
}
.p30-stage-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--p30-text);
  line-height: 1.4;
}
.p30-stage-sub {
  font-size: 0.8rem;
  color: var(--p30-muted);
  margin-top: 2px;
}

/* ===== Day 文章 ===== */
.p30-day {
  background: var(--p30-card-bg);
  border: 1px solid var(--p30-border);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.p30-day:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}
.p30-day--review {
  background: #fdf8f0;
  border-color: #f0d88a;
}
.p30-day--finale {
  background: linear-gradient(135deg, #f5f3ff, #fff);
  border-color: #c4b5fd;
}
.p30-day-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.p30-day-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--p30-accent);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  margin-top: 3px;
  flex-shrink: 0;
}
.p30-day-badge--review {
  background: #d97706;
}
.p30-day-badge--finale {
  background: #7c3aed;
}
.p30-day-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--p30-text);
  margin: 0;
  line-height: 1.4;
}

/* ===== 内容块 ===== */
.p30-task-block,
.p30-phrase-block,
.p30-reminder-block,
.p30-template-block {
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--p30-text);
}
.p30-task-block {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}
.p30-phrase-block {
  background: #f0f7ff;
  border: 1px solid #c8def7;
}
.p30-reminder-block {
  background: var(--p30-accent-light);
  border: 1px solid #f0c4be;
}
.p30-template-block {
  background: #f8f5ff;
  border: 1px solid #d8c8f5;
}
.p30-task-block p,
.p30-phrase-block p,
.p30-reminder-block p,
.p30-template-block p {
  margin: 0 0 6px;
}
.p30-task-block p:last-child,
.p30-phrase-block p:last-child,
.p30-reminder-block p:last-child,
.p30-template-block p:last-child {
  margin-bottom: 0;
}

/* ===== 块标签 ===== */
.p30-block-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--p30-muted);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

/* ===== 列表 ===== */
.p30-list {
  margin: 8px 0 0;
  padding-left: 18px;
}
.p30-list li {
  margin-bottom: 4px;
}

/* ===== 话术列表 ===== */
.p30-phrases {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.p30-phrases li {
  font-size: 0.88rem;
  color: #2a4e7c;
  padding: 5px 0 5px 18px;
  position: relative;
  border-bottom: 1px dashed #d0e4f7;
}
.p30-phrases li:last-child {
  border-bottom: none;
}
.p30-phrases li::before {
  content: '"';
  position: absolute;
  left: 2px;
  color: #7baad4;
  font-size: 1rem;
  top: 4px;
}

/* ===== 话术合集网格 ===== */
.p30-phrasebook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.p30-phrasebook-card {
  background: var(--p30-card-bg);
  border: 1px solid var(--p30-border);
  border-radius: 12px;
  padding: 16px 18px;
}
.p30-phrasebook-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--p30-accent);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--p30-border);
}

/* ===== 最终块 ===== */
.p30-final-block {
  font-size: 0.97rem;
  line-height: 1.9;
  color: var(--p30-text);
}
.p30-final-block p {
  margin: 0 0 14px;
}

/* ===== 页脚 ===== */
.p30-footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--p30-border);
  font-size: 0.75rem;
  color: #bbb;
  text-align: center;
}

/* ===== 返回顶部按钮 ===== */
.p30-back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p30-accent), var(--p30-accent-dark));
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(192, 57, 43, 0.35);
  transition: all 0.2s;
  z-index: 200;
}
.p30-back-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.45);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .p30-layout {
    grid-template-columns: 1fr;
    padding: 20px 16px 60px;
    gap: 20px;
  }
  .p30-sidebar {
    position: static;
    max-height: none;
  }
  .p30-howto-grid {
    grid-template-columns: 1fr;
  }
  .p30-phrasebook-grid {
    grid-template-columns: 1fr;
  }
  .p30-article-title {
    font-size: 1.5rem;
  }
  .p30-day {
    padding: 16px 16px;
  }
  .p30-top-bar {
    padding: 10px 16px;
  }
  .p30-back-top {
    bottom: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 600px) {
  .p30-stage-header {
    flex-direction: column;
    gap: 8px;
  }
  .p30-top-bar-series {
    display: none;
  }
}
