/* ========================================
   Metoo 集团 · 官网建设方案 · HTML演示页样式
   配色：方案排版配色体系
   ======================================== */

:root {
  /* 中性灰（固定） */
  --gray-900: #1a1a1a;
  --gray-700: #333333;
  --gray-500: #666666;
  --gray-300: #cccccc;
  --gray-100: #f5f5f5;

  /* 品牌色（方案排版配色） */
  --accent: #809C4E;
  --accent-light: #E8EDD8;
  --accent-light-2: #F4F7EC;
  --gradient-light: #D8E0C0;
  --accent-shadow: rgba(128,156,78,0.1);

  /* 三色体系 */
  --color-primary: #809C4E;
  --color-secondary-a: #DCECBD;
  --color-secondary-b: #D6F1FA;
  --color-accent-light: #E8EDD8;

  /* 间距（基准 8px） */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-6: 48px;

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px var(--accent-shadow);

  /* 字体 */
  --font-sans: "WenQuanYi Micro Hei", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", Consolas, monospace;
}

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

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray-700);
  background: #ffffff;
}

/* ========================================
   布局结构
   ======================================== */
.proposal-container {
  display: flex;
  min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
  width: 320px;
  background: var(--gray-900);
  color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
  /* 隐藏滚动条 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.sidebar::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

.sidebar-header {
  padding: 32px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.sidebar-subtitle {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}

.sidebar-nav {
  padding: 16px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: #ffffff;
}

.nav-item.active {
  background: var(--accent);
  color: #ffffff;
}

.nav-number {
  font-size: 12px;
  width: 28px;
  flex-shrink: 0;
}

.nav-text {
  font-size: 14px;
}

/* 主内容区 */
.main-content {
  margin-left: 320px;
  flex: 1;
  padding: 40px 80px;
  max-width: none;
}

/* ========================================
   章节样式
   ======================================== */
.chapter {
  display: none;
  animation: fadeIn 0.3s ease;
}

.chapter.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 章节头部 */
.chapter-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--accent-light);
}

.chapter-eyebrow {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.chapter-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
}

/* ========================================
   标题样式
   ======================================== */
.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  margin: 32px 0 16px 0;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 24px 0 12px 0;
}

/* ========================================
   段落与文本
   ======================================== */
.prose {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 16px;
}

.highlight {
  color: var(--accent);
  font-weight: 600;
}

/* ========================================
   表格（圆角样式）
   ======================================== */
table {
  width: 100%;
  border-collapse: separate;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 16px 0;
}

th {
  background: var(--accent-light);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-300);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-300);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--accent-light-2);
}

/* ========================================
   卡片
   ======================================== */
.card {
  background: #ffffff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.card-content {
  font-size: 14px;
  color: var(--gray-700);
}

/* ========================================
   指标卡
   ======================================== */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.metric-card {
  background: #ffffff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.metric-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.metric-label {
  font-size: 14px;
  color: var(--gray-500);
}

/* ========================================
   模块卡片（首页8大模块）
   ======================================== */
.module-card {
  background: #ffffff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 16px 0;
}

.module-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  margin-right: 12px;
}

.module-title {
  display: inline;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
}

.module-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.module-meta-item {
  font-size: 14px;
}

.module-meta-label {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.module-meta-value {
  color: var(--gray-700);
}

/* ========================================
   STEP 流程
   ======================================== */
.step-container {
  margin: 20px 0;
}

.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--gray-700);
}

/* ========================================
   色值色块
   ======================================== */
.color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.color-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-300);
}

.color-swatch {
  height: 80px;
}

.color-info {
  padding: 12px;
  background: #ffffff;
}

.color-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.color-hex {
  font-size: 12px;
  color: var(--gray-500);
  font-family: var(--font-mono);
}

.color-ratio {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.color-usage {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ========================================
   对比卡片
   ======================================== */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.comparison-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-300);
}

.comparison-header {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
}

.comparison-before .comparison-header {
  background: #e5e5e5;
  color: var(--gray-700);
}

.comparison-after .comparison-header {
  background: var(--accent);
  color: #ffffff;
}

.comparison-body {
  padding: 16px;
  background: #ffffff;
}

/* ========================================
   思维导图（简化版）
   ======================================== */
.mindmap {
  background: var(--accent-light-2);
  border-radius: var(--radius-md);
  padding: 32px;
  margin: 20px 0;
  overflow-x: auto;
}

.mindmap-root {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.mindmap-center {
  background: var(--gray-900);
  color: #ffffff;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  flex-shrink: 0;
}

.mindmap-branches {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mindmap-branch {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mindmap-branch-title {
  background: var(--accent);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.mindmap-children {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mindmap-child {
  background: #ffffff;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

/* ========================================
   标签
   ======================================== */
.tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.tag-p0 {
  background: #fee2e2;
  color: #dc2626;
}

.tag-p1 {
  background: #fef3c7;
  color: #d97706;
}

.tag-p2 {
  background: #dbeafe;
  color: #2563eb;
}

/* ========================================
   列表
   ======================================== */
.feature-list {
  list-style: none;
  margin: 16px 0;
}

.feature-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ========================================
   页脚
   ======================================== */
.proposal-footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 2px solid var(--accent-light);
  text-align: center;
  font-size: 14px;
  color: var(--gray-500);
}

/* ========================================
   SVG Icon 样式
   ======================================== */
.icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 8px;
  fill: currentColor;
}

.icon-lg {
  width: 32px;
  height: 32px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-sm);
  margin-right: 12px;
  flex-shrink: 0;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-with-icon {
  display: flex;
  align-items: flex-start;
}

.card-with-icon .card-text {
  flex: 1;
}

/* 小字备注 */
.note {
  font-size: 12px;
  color: var(--gray-500);
  font-style: italic;
  margin-top: 8px;
  margin-bottom: 16px;
}

.chapter-note {
  font-size: 12px;
  color: var(--gray-500);
  font-style: italic;
  margin-top: -32px;
  margin-bottom: 24px;
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 24px;
  }

  .mobile-toggle {
    display: block;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 200;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    cursor: pointer;
  }

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

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

  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1025px) {
  .mobile-toggle {
    display: none;
  }
}

/* ========================================
   打印样式
   ======================================== */
@media print {
  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding: 20px;
  }

  .chapter {
    display: block !important;
    page-break-after: always;
  }
}
