/* ==========================================================================
   微热星球乐岛工作室 官网 · 功能详情页样式（PSD 生成 Prefab / 9宫切图）
   与 assets/style.css 共用同一套设计 token：品牌蓝 #4d6bf5 / 深墨 #0d1240
   ========================================================================== */

/* ---------- 顶部介绍区 ---------- */
.f-hero {
  padding: 48px 0 8px;
}
.f-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 52px;
  align-items: center;
}
.f-hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(235, 237, 254, 0.9);
  background: #fff;
}
.f-hero-media img,
.f-hero-media video {
  display: block;
  width: 100%;
  height: auto;
}
.f-hero-text h1 {
  margin: 0 0 14px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.f-hero-text .f-lead {
  margin: 0 0 20px;
  font-size: 16px;
  color: #5b6386;
  line-height: 1.8;
}
.f-hero-text .check-list { gap: 11px; }

.f-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 通用小节 ---------- */
.f-section { padding: 54px 0 0; }
.f-section:last-of-type { padding-bottom: 8px; }

.f-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.f-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}
.f-title.warn::before { background: #f0503c; }
.f-title.text::before { background: var(--orange); }
.f-sub {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- 导出前三步 ---------- */
.f-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.f-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(77, 107, 245, 0.22);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}
.f-step .n {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 规则卡片 ---------- */
.f-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.f-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(235, 237, 254, 0.9);
  box-shadow: var(--shadow);
}
.f-card .ico {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}
.f-card .ico.ok { background: #eaf3ff; color: var(--brand); }
.f-card .ico.no { background: #ffeeea; color: #f0503c; }
.f-card .ico.txt { background: #fff6e8; color: #e8a23d; }
.f-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--ink); }
.f-card p { margin: 0; font-size: 14px; color: #7c8698; line-height: 1.75; }
.f-card p b { color: var(--brand); font-weight: 600; }
.f-card p em { color: #f0503c; font-style: normal; font-weight: 600; }
.f-card.warn { border-color: #ffe3b8; }

/* ---------- 尺寸限制 ---------- */
.f-limits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.f-limit {
  padding: 24px 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(235, 237, 254, 0.9);
  box-shadow: var(--shadow);
  text-align: center;
}
.f-limit .label { font-size: 14px; color: #7c8698; }
.f-limit .val {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.5px;
}
.f-limit .val small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 3px; }

/* ---------- 图片流程 ---------- */
.f-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.f-flow-item {
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(235, 237, 254, 0.9);
  box-shadow: var(--shadow);
}
.f-flow-item .idx {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  background: rgba(77, 107, 245, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-block;
}
.f-flow-item h4 { margin: 14px 0 8px; font-size: 16px; font-weight: 700; color: var(--ink); }
.f-flow-item p { margin: 0; font-size: 14px; color: #7c8698; line-height: 1.75; }

/* ---------- 两种用法（手动九宫 / 文件夹批处理） ---------- */
.f-modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.f-mode {
  display: flex;
  flex-direction: column;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(235, 237, 254, 0.9);
  box-shadow: var(--shadow);
}
.mode-tag {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  background: rgba(77, 107, 245, 0.1);
  padding: 5px 13px;
  border-radius: 999px;
}
.mode-tag.auto { color: #6b5ce0; background: rgba(139, 118, 245, 0.12); }
.f-mode h4 { margin: 14px 0 10px; font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.f-mode > p { margin: 0 0 16px; font-size: 14.5px; color: #5b6386; line-height: 1.85; }
.f-mode-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.f-mode-list li {
  position: relative;
  padding-left: 30px;
  color: #3c436a;
  font-size: 14px;
  line-height: 1.7;
}
.f-mode-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(77, 107, 245, 0.12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' stroke='%234d6bf5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 13px 13px no-repeat;
}
.f-seq {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.f-seq span {
  padding: 5px 11px;
  border-radius: 8px;
  background: #f2f4ff;
  color: var(--brand);
  font-weight: 600;
  border: 1px solid var(--line);
}
.f-seq i { font-style: normal; color: #b8bfd8; }

/* ---------- 九宫分割示意 ---------- */
.f-nine {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: center;
}
.f-nine-grid {
  width: 260px;
  height: 260px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  background: #f2f4ff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(235, 237, 254, 0.9);
}
.f-nine-cell { border-radius: 8px; }
.f-nine-cell.corner { background: var(--brand); opacity: .92; }
.f-nine-cell.edge { background: #a9b5f8; }
.f-nine-cell.center { background: var(--lav-3); }
.f-nine-text h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; color: var(--ink); }
.f-nine-text p { margin: 0 0 12px; font-size: 15px; color: #5b6386; line-height: 1.8; }
.f-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.f-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #3c436a;
}
.f-legend i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex: none;
}
.f-legend .lg-corner { background: var(--brand); }
.f-legend .lg-edge { background: #a9b5f8; }
.f-legend .lg-center { background: var(--lav-3); }

/* ---------- Border 参数表 ---------- */
.f-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(235, 237, 254, 0.9);
}
.f-table th,
.f-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.f-table th { background: #f7f8ff; color: var(--ink); font-weight: 700; }
.f-table td { color: #3c436a; }
.f-table tr:last-child td { border-bottom: none; }
.f-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--brand);
  background: rgba(77, 107, 245, 0.08);
  padding: 2px 7px;
  border-radius: 6px;
}

/* ---------- 底部 CTA ---------- */
.f-cta {
  margin: 64px 0 64px;
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  background: var(--brand-grad);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.f-cta h2 { margin: 0 0 10px; font-size: 24px; font-weight: 700; }
.f-cta p { margin: 0 0 22px; font-size: 15px; color: rgba(255, 255, 255, 0.88); }
.f-cta .f-actions { justify-content: center; margin-top: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .f-hero { padding-top: 32px; }
  .f-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .f-hero-text h1 { font-size: 26px; }
  .f-steps, .f-flow { grid-template-columns: 1fr; }
  .f-modes { grid-template-columns: 1fr; }
  .f-mode { padding: 22px 20px; }
  .f-grid2 { grid-template-columns: 1fr; }
  .f-limits { grid-template-columns: repeat(2, 1fr); }
  .f-nine { grid-template-columns: 1fr; justify-items: center; }
  .f-nine-text { width: 100%; }
  .f-cta { padding: 30px 20px; }
}
