/* 
 * poipiku工具官网 - 全局样式系统 
 * AAA-Grade Readability, Information Hierarchy & Advanced Layouts (No Gradients)
 */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/outfit-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/outfit-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/outfit-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/outfit-700.ttf') format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/outfit-800.ttf') format('truetype');
}

:root {
  --primary: #0397f0;
  --primary-hover: #017ecb;
  --primary-dark: #016ecb;
  --primary-light: #f0f9ff;
  
  --bg-main: #f8fafc; /* 舒适柔和底色 */
  --bg-secondary: #ffffff;
  --bg-panel: #f1f5f9;
  
  --border-light: #f1f5f9;
  --border-color: #e2e8f0;
  --border-dark: #0f172a;
  
  --text-title: #0f172a; /* 极深黑，保障标题突出 */
  --text-main: #334155;  /* 护眼深灰正文，对比度极佳 */
  --text-muted: #64748b; /* 辅助性文字 */
  
  --font-sans: 'Outfit', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Settings */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.85;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography Scale (严格字号阶梯) */
h1 {
  font-size: 42px;
  font-weight: 800; /* 极致字重 */
  color: var(--text-title);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 20px;
}

h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 16px;
}

h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 12px;
}

p {
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 24px;
}

strong, .highlight-bold {
  font-weight: 700;
  color: var(--text-title);
}

.text-primary-bold {
  color: var(--primary);
  font-weight: 700;
}

/* Grid & Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.brand-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-title);
}

.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition-smooth);
  padding: 6px 4px;
  position: relative;
}

.nav-link:hover {
  color: var(--text-title);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-title);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-panel);
  border-color: var(--text-title);
  transform: translateY(-1px);
}

/* --- 首页完全重构布局类 (Overhauled Layouts) --- */

/* 1. 中置 Hero 区域 */
.hero-center-wrapper {
  background-color: var(--primary-light);
  border-bottom: 1px solid var(--border-color);
  padding: 80px 0 60px;
  text-align: center;
}

.hero-center-content {
  max-width: 1100px;
  margin: 0 auto;
}

.hero-center-content h1 {
  font-size: 46px;
  margin-bottom: 24px;
}

.hero-center-content p {
  font-size: 18px;
  color: var(--text-main);
  max-width: 680px;
  margin: 0 auto 36px;
}

/* 巨幅居中层叠画板展台 */
.showcase-container {
  max-width: 960px;
  margin: 50px auto 0;
  position: relative;
  border: 1px solid var(--border-color);
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

/* 浮动面板 */
.floating-widget {
  position: absolute;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.floating-layers-widget {
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  width: 170px;
  padding: 12px;
  font-size: 11px;
}

.floating-tools-widget {
  top: 50%;
  left: -30px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.hero-split-row {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 50px;
  text-align: left;
}

.hero-text-col {
  flex: 1.25;
}

.hero-text-col p {
  max-width: none;
  margin: 0 0 28px;
}

.hero-cards-col {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 30px 0;
  min-height: 280px; /* Force min-height for absolute children positioning */
}

.hero-cards-col .gallery-canvas-item {
  width: 170px;
  position: absolute; /* Stack cards atop one another */
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom center;
}

/* Default Stacked State (4 Cards - Card 1 on Top) */
.hero-cards-col .gallery-canvas-item:nth-child(1) {
  transform: translateX(-45px) translateY(12px) rotate(-12deg);
  z-index: 4;
}

.hero-cards-col .gallery-canvas-item:nth-child(2) {
  transform: translateX(-15px) translateY(4px) rotate(-5deg);
  z-index: 3;
}

.hero-cards-col .gallery-canvas-item:nth-child(3) {
  transform: translateX(15px) translateY(0px) rotate(3deg);
  z-index: 2;
}

.hero-cards-col .gallery-canvas-item:nth-child(4) {
  transform: translateX(45px) translateY(8px) rotate(10deg);
  z-index: 1;
}

/* Hover container to spread/fan the deck out */
/* Hover container to spread/fan the deck out (Matches user screenshot) */
.hero-cards-col:hover .gallery-canvas-item:nth-child(1) {
  transform: translateX(-120px) translateY(15px) rotate(-16deg);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.hero-cards-col:hover .gallery-canvas-item:nth-child(2) {
  transform: translateX(-45px) translateY(0px) rotate(-7deg);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.hero-cards-col:hover .gallery-canvas-item:nth-child(3) {
  transform: translateX(25px) translateY(-5px) rotate(2deg);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.hero-cards-col:hover .gallery-canvas-item:nth-child(4) {
  transform: translateX(90px) translateY(10px) rotate(10deg);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

/* Subtle brightness and lift when directly hovering an individual card without flattening rotation */
.hero-cards-col .gallery-canvas-item:hover {
  filter: brightness(1.03);
}

.showcase-canvas-box {
  background: var(--bg-panel);
  border-radius: 10px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border-color);
  position: relative; /* Add relative position for canvas absolute overlaying */
}

/* 2. 三列并排卡片网格 (3-Column Feature Grid) */
.features-trio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 40px 0;
}

.feature-trio-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.feature-trio-card > *:last-child {
  margin-bottom: 0;
}

.feature-trio-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.feature-trio-visual {
  height: 140px;
  background: var(--bg-panel);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3. 横向虚线推进进度条 (Horizontal Timeline Flow) */
.horizontal-flow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 50px;
  position: relative;
}

.flow-step-item {
  flex: 1;
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* 贯穿卡片的横向虚线 */
.horizontal-flow::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  border-top: 2px dashed var(--border-color);
  z-index: 1;
}

.flow-step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 10px rgba(3, 151, 240, 0.15);
  margin-bottom: 20px;
}

/* 4. 左右切割大 CTA 模块 (Split Callout CTA) */
.split-cta-section {
  padding: 60px 0 100px;
}

.split-cta-card {
  background: var(--primary-light);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 60px 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ------------------------------------------------ */

/* Stats Divider Bar */
.stats-divider-bar {
  padding: 40px 0;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: center;
  text-align: center;
}

.stat-item h3 {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 6px;
}

.stat-item p {
  font-size: 14px;
  color: var(--text-main);
  font-weight: 500;
}

.vertical-line {
  background-color: var(--border-color);
  width: 1px;
  height: 40px;
}

/* Info Lists */
.info-list {
  list-style: none;
  margin-top: 16px;
  margin-bottom: 20px;
  padding-left: 0;
}

.info-list:last-child {
  margin-bottom: 0;
}

.info-list-item {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 14.5px;
  color: var(--text-main);
}

.info-list-item:last-child {
  margin-bottom: 0;
}

.info-list-item::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Footer (深石板蓝) */
footer {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 70px 0 45px;
  color: #94a3b8;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info h4 {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid #1e293b;
  flex-wrap: wrap;
  gap: 20px;
  color: #64748b;
}

.beian-link {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.beian-link:hover {
  color: #ffffff;
}

/* Timeline */
.versions-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 100%;
  margin: 0 auto;
}

.version-board {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.version-board:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  border-color: var(--primary);
}

@media (max-width: 991px) {
  .versions-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .versions-timeline {
    grid-template-columns: 1fr;
  }
}

/* Sidebar Layout for Courses */
.sidebar-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  margin-top: 40px;
}

.sidebar-panel {
  position: sticky;
  top: 100px;
  height: fit-content;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.sidebar-panel h3 {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.courses-brush-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brush-preset-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.brush-preset-item:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.brush-preset-item.active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary-dark);
}

.course-box {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
  transition: var(--transition-smooth);
}

.course-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
  border-color: #cbd5e1;
}

.course-box:last-child {
  margin-bottom: 0;
}

.course-card-info {
  padding: 36px 40px 40px;
  display: flex;
  flex-direction: column;
}

.course-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.course-card-media {
  width: 100%;
  height: 240px;
  position: relative;
  overflow: hidden;
  background: var(--bg-panel);
}

.course-card-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.course-box:hover .course-card-media img {
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .course-card-info {
    padding: 24px 20px 24px;
  }
  .course-card-media {
    height: 180px;
  }
}

.course-brush-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: var(--text-title);
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 16px;
}

/* Compare Feature Grid */
.compare-grid-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 60px;
  background: #ffffff;
}

.compare-grid-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.compare-grid-table th {
  background: var(--bg-panel);
  padding: 16px 20px;
  font-weight: 700;
  color: var(--text-title);
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.compare-grid-table th:last-child {
  border-right: none;
}

.compare-grid-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  color: var(--text-main);
}

.compare-grid-table tr:last-child td {
  border-bottom: none;
}

.compare-grid-table td:last-child {
  border-right: none;
}

.compare-grid-table tr:hover td {
  background: var(--bg-panel);
}

.compare-grid-table td.active-feature {
  color: var(--primary-hover);
  font-weight: 700;
  background: var(--primary-light);
}

/* Gallery Style Selection */
.gallery-swatch-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.swatch-filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.swatch-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.swatch-filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* poipiku-style card layout */
.gallery-section-wrapper {
  background-color: #3b9deb; /* Poipiku vibrant light blue background */
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.gallery-canvas-item {
  background: #ffffff;
  border: none;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.gallery-canvas-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.poipiku-card-header {
  padding: 10px 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.poipiku-user-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.poipiku-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #e2e8f0;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.poipiku-username {
  font-size: 13px;
  font-weight: 700;
  color: #555555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poipiku-badge-row {
  display: flex;
  gap: 4px;
}

.poipiku-badge {
  font-size: 10px;
  padding: 1px 10px;
  border-radius: 12px;
  font-weight: 700;
  color: #ffffff;
}

.poipiku-badge-tyuyao { background-color: #a3d165; } /* 涂涂 */
.poipiku-badge-jinbu { background-color: #ffb800; } /* 进步 */
.poipiku-badge-wanbi { background-color: #54bbf8; } /* 完毕 */
.poipiku-badge-gongyang { background-color: #0c4cb6; } /* 供养 */
.poipiku-badge-xunlian { background-color: #00ba7c; } /* 训练 */
.poipiku-badge-jutou { background-color: #000000; } /* 剧透 */

.poipiku-description {
  font-size: 12px;
  color: #777777;
  line-height: 1.4;
  margin-top: 2px;
  height: 2.8em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.gallery-canvas-preview {
  height: 160px;
  background: #ffffff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-top: 1px solid #f1f5f9;
}

.gallery-canvas-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Warning & Password Mock states */
.poipiku-placeholder-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  color: #54bbf8;
  padding: 20px;
  text-align: center;
}

.poipiku-icon-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #54bbf8;
}

.poipiku-meta-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.poipiku-meta-badges-bottom-left {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  gap: 4px;
}

.poipiku-icon-badge {
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.gallery-canvas-info {
  padding: 0;
}

.gallery-canvas-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* Story alternating layout */
.story-flow {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin: 40px 0;
}

.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.story-block.reversed {
  direction: rtl;
}

.story-block.reversed .story-text {
  direction: ltr;
}

.story-text h2 {
  font-size: 26px;
  margin-bottom: 16px;
  position: relative;
}

.story-text h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--primary);
  margin-top: 8px;
}

.story-illustration {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.content-section {
  margin-bottom: 45px;
}

.content-section h2 {
  font-size: 24px;
  color: var(--text-title);
  margin-bottom: 16px;
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}

.content-section p {
  color: var(--text-main);
  font-size: 15.5px;
  line-height: 1.85;
  margin-bottom: 20px;
}

.content-section ul {
  padding-left: 20px;
  margin-bottom: 20px;
  color: var(--text-main);
}

.content-section li {
  margin-bottom: 10px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 968px) {
  .hero-split, .feature-item-row, .step-grid, .features-trio-grid, .horizontal-flow {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  
  .horizontal-flow::before {
    display: none;
  }
  
  .flow-step-item {
    margin-bottom: 36px;
  }
  
  .split-cta-card {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .vertical-line {
    display: none;
  }
  .drawing-workspace {
    max-width: 100%;
  }
  .sidebar-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-panel {
    position: static;
    margin-bottom: 30px;
  }
  .story-block {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .story-block.reversed {
    direction: ltr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-center-content h1 {
    font-size: 34px;
  }
  .hero-center-content p {
    font-size: 16px;
  }
  
  .floating-layers-widget {
    position: static;
    width: 100%;
    margin-top: 12px;
    transform: none;
  }
  .floating-tools-widget {
    position: static;
    flex-direction: row;
    width: 100%;
    margin-top: 12px;
    transform: none;
  }
  .hero-split-row {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    margin-bottom: 40px;
  }
  .hero-text-col {
    width: 100%;
  }
  .drawing-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .compare-grid-table {
    display: table;
    min-width: 680px;
  }
  .compare-grid-table th,
  .compare-grid-table td {
    padding: 12px 10px;
    font-size: 13px;
  }
  .compare-grid-table th:first-child,
  .compare-grid-table td:first-child {
    position: sticky;
    left: 0;
    background: #ffffff;
    z-index: 2;
    border-right: 2px solid var(--border-color);
    box-shadow: 2px 0 5px rgba(0,0,0,0.04);
  }
  .compare-grid-table th:first-child {
    background: var(--bg-panel);
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .header-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    height: auto;
    padding: 12px 16px;
    gap: 12px 0;
  }
  .header-container > .logo-link {
    order: 1;
  }
  .header-container > div {
    order: 2;
  }
  .nav-menu {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
  }
}

/* --- 新增 SEO 强化板块样式系统 --- */

/* FAQ 手风琴样式 */
.faq-container {
  max-width: 100%;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(3, 151, 240, 0.05);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-title);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: var(--transition-smooth);
}

.faq-question:hover {
  background-color: var(--primary-light);
  color: var(--primary-hover);
}

.faq-icon {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.faq-item.active .faq-icon {
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
  padding: 0 24px 20px;
  margin-bottom: 0;
  font-size: 14.5px;
  color: var(--text-main);
  line-height: 1.75;
}

/* 干货指南徽章 */
.guide-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* 自学诊疗室 (Before & After) 样式 */
.diagnosis-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 30px;
}

.diagnosis-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
  transition: var(--transition-smooth);
}

.diagnosis-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

.diagnosis-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 12px;
}

.diagnosis-header h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.diagnosis-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.tag-error {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fee2e2;
}

.diagnosis-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.diagnosis-col {
  padding: 16px;
  border-radius: 10px;
  font-size: 14px;
}

.error-col {
  background: #fafafa;
  border-left: 4px solid #cbd5e1;
}

.error-col p {
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.7;
}

.correction-col {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
}

.correction-col p {
  color: var(--text-main);
  margin-bottom: 0;
  line-height: 1.7;
}

.col-title {
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 8px;
}

.error-col .col-title {
  color: #64748b;
}

.correction-col .col-title {
  color: var(--primary-dark);
}

/* 移动端响应式排版 */
@media (max-width: 768px) {
  .diagnosis-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 16px;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  
  .diagnosis-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  
  .diagnosis-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    box-sizing: border-box;
  }

  .diagnosis-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* 轮播指示器样式 */
.diagnosis-indicators {
  display: none;
}

@media (max-width: 768px) {
  .diagnosis-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }
  
  .indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .indicator-dot.active {
    background: #ffffff;
    transform: scale(1.25);
  }
}

/* 诊疗插图容器 */
.diagnosis-visual {
  height: 120px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.02);
}

.error-col .diagnosis-visual {
  border-color: #fee2e2;
}

.correction-col .diagnosis-visual {
  border-color: #bae6fd;
}

.diagnosis-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 内联 SVG 图标对齐助手 */
.tool-btn svg {
  display: block;
}

.brush-preset-item svg,
.course-brush-badge svg,
.poipiku-avatar svg,
.poipiku-icon-badge svg,
.poipiku-meta-overlay svg {
  display: inline-block;
  vertical-align: middle;
}

/* --- Showcase Interactive Drawing Board Styles --- */
.showcase-canvas-box canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

/* Tool buttons styling */
.tool-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.tool-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

.tool-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.tool-btn.active:hover {
  background: var(--primary-dark);
  color: #ffffff;
  border-color: var(--primary-dark);
}

/* Layer list styling */
.layer-item {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.layer-item:hover {
  background: #f8fafc;
  border-color: var(--border-color);
}

.layer-item.selected-layer {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: var(--primary-dark);
  font-weight: 600;
}

/* Eye icon */
.layer-eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  color: #64748b;
  position: relative;
}

/* Draw a simple eye icon using CSS pseudo-elements */
.layer-eye::before {
  content: "";
  width: 12px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 50% / 50%;
  position: absolute;
  top: 3px;
  left: 1px;
}

.layer-eye::after {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  position: absolute;
  top: 5px;
  left: 5px;
}

/* Hidden layer state */
.layer-item.layer-hidden {
  opacity: 0.5;
}

.layer-item.layer-hidden .layer-eye::before {
  color: #94a3b8;
}

.layer-item.layer-hidden .layer-eye::after {
  display: none;
}

.layer-item.layer-hidden .layer-eye::before {
  background: linear-gradient(45deg, transparent 40%, currentColor 40%, currentColor 60%, transparent 60%);
}

/* Floating guide overlay for canvas */
.canvas-guide-overlay {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  pointer-events: none; /* Make clicks pass through to canvas */
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 5;
}

.canvas-guide-overlay.hidden {
  opacity: 0;
  transform: translate(-50%, -10px);
}



