* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

body {
  background-color: #f5f5f5;
  background-image: radial-gradient(#ddd 1px, transparent 1px);
  background-size: 15px 15px;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  padding: 20px 0;
  margin-bottom: 30px;
}

header h1 {
  font-size: 2.5rem;
  color: #333;
}

/* 左右布局样式 */
.main-content {
  display: flex;
  gap: 20px;
}

.left-panel {
  flex: 0 0 400px;
  overflow-y: auto;
  max-height: calc(100vh - 88px);
  padding: 20px 20px 0 20px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #EEEEEE;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.right-panel {
  flex: 1;
  overflow-y: auto;
  max-height: calc(100vh - 88px);
  background-color: #f5f5f5;
  background-image: radial-gradient(#ddd 1px, transparent 1px);
  background-size: 15px 15px;
  border-radius: 8px;
}

.section {
  background-color: #f5f7fa;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.section h2 {
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.section h3 {
  font-size: 16px;
  font-weight: 600;
}

.section p, .section label, .section button, .section select, .section div {
  font-size: 14px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  margin-bottom: 8px;
  cursor: pointer;
}

.toggle-button {
  position: absolute;
  right: 0px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.toggle-button.active {
  transform: rotate(180deg);
}

.toggle-button svg {
  width: 24px;
  height: 24px;
  color: #666;
}

/* 颜色有限集部分 */
.color-panel {
  position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 12px;
    z-index: 1000;
    width: 308px;
    margin-top: 5px;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  padding: 10px;
}

.color-grid-item {
  aspect-ratio: 1/1;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s;
}

.color-grid-item:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.color-grid-item.selected {
  border: 3px solid #333;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.color-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.color-selector div {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.color-selector label {
  min-width: 60px;
}

.color-selector select {
  padding: 8px 12px;
  padding-right: 30px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background-color: #fff;
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.selected-color {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  padding: 0;
  border-radius: 8px;
  background-color: #f7f8fa;
  position: relative;
}

.color-preview {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  border: 1px solid #ddd;
  flex-shrink: 0;
}

#selected-color-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

#selected-color-info p {
  margin: 0;
}

#select-as-theme {
  position: absolute;
  right: 15px;
  padding: 6px 12px;
  background-color: #6666FF;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

#select-as-theme:hover {
  background-color: #5555ee;
}

/* 色板生成部分 */
.scheme-selector {
  margin: 20px 0;
}

.scheme-type {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 15px 0;
}

.scheme-type button {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.scheme-type button.active {
  background: #6666FF;
  color: #fff;
  border-color: #6666FF;
}

.scheme-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.scheme-options button {
  flex: 1 1 calc(25% - 6px);
  min-width: calc(25% - 6px);
  max-width: calc(25% - 6px);
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
  white-space: nowrap;
}

.scheme-options button.active {
  background: #6666FF;
  color: #fff;
  border-color: #6666FF;
}

button.active {
  background-color: #e0e0e0;
  color: rgb(0, 0, 0);
  border-color: #e0e0e0;
}

button {
  padding: 8px 16px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

button:hover {
  background-color: #e0e0e0;
}

.color-scheme-display h3 {
  margin-bottom: 15px;
}

.color-scheme {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

.color-scheme-item {
  width: calc((100% - 75px) / 6);
  aspect-ratio: 1/1;
  border-radius: 8px;
  transition: transform 0.2s;
  cursor: pointer;
  position: relative;
}

.color-scheme-item:hover {
  transform: scale(1.05);
}

.color-scheme-item:hover::before {
  content: attr(data-hex);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  color: #333;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 10;
}

.color-scheme-item::after {
  display: none;
}

/* 预览部分 */
.card-style-selector {
  margin: 20px 0;
}

.card-style-selector div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.card-style-selector button {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.card-style-selector button.active {
  background: #6666FF;
  color: #fff;
  border-color: #6666FF;
}

.preview-container {
  display: flex;
  justify-content: center;
  height: 100%;
  min-height: 540px;
  transition: height 0.3s ease;
  overflow: hidden;
}

.preview-frame {
  width: 100%;
  background-color: transparent;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 预览区域的各个部分 */
.preview-section {
  padding: 20px;
  margin-bottom: 40px;
}

.preview-section:last-child {
  margin-bottom: 0;
}

.preview-title {
  padding: 10px 0;
  text-align: center;
  margin-top: 15px;
}

.preview-title h2 {
  margin: 0;
  font-size: 14px;
  color: #666;
  font-weight: normal;
}

.preview-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  padding: 40px;
  height: 100%;
  align-items: center;
}

.card {
  width: 260px;
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: bold;
}

.card-content {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* PPT标题页版式 */
.ppt-title-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
}

.ppt-main-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.ppt-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.8;
}

.ppt-presenter {
  font-size: 1rem;
  opacity: 0.7;
  margin-top: 60px;
}

/* PPT内容页通用样式 */
.ppt-content-slide {
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.ppt-slide-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 30px;
}

/* PPT目录页样式 */
.ppt-toc {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ppt-toc-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ppt-toc-number {
  font-size: 1.5rem;
  font-weight: bold;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ppt-toc-text {
  font-size: 1.2rem;
}

/* PPT正文页样式 */
.ppt-content-columns {
  display: flex;
  gap: 30px;
  height: 100%;
}

.ppt-content-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ppt-bullet-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ppt-bullet {
  font-size: 1.2rem;
  line-height: 1.2;
}

.ppt-bullet-text {
  font-size: 1rem;
  line-height: 1.5;
}

.ppt-image-placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #ccc;
  border-radius: 8px;
}

/* PPT图表版式样式 */
.ppt-chart-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ppt-chart-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #ccc;
  border-radius: 8px;
  margin-bottom: 20px;
}

.ppt-chart-legend {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.ppt-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ppt-legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.ppt-legend-text {
  font-size: 0.9rem;
}

/* PPT对比版式样式 */
.ppt-comparison {
  display: flex;
  gap: 30px;
  height: 100%;
}

.ppt-comparison-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 8px;
  padding: 20px;
}

.ppt-comparison-header {
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.ppt-comparison-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* PPT结束页版式 */
.ppt-end-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.ppt-end-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.ppt-end-subtitle {
  font-size: 1.5rem;
  opacity: 0.7;
}

/* 页脚部分 */
footer {
  text-align: center;
  padding: 24px 0 0px;
  color: #666;
  font-size: 0.9rem;
  background-color: transparent;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* AI助手悬浮按钮和弹窗样式 */
.ai-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

@keyframes gradientFlow {
  0% {
    color: #6666FF;
  }
  33% {
    color: #8A66FF;
  }
  66% {
    color: #9c66ff;
  }
  100% {
    color: #6666FF;
  }
}

.ai-fab-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ai-fab-button i {
  font-size: 24px;
  animation: gradientFlow 4s ease-in-out infinite;
}

.ai-fab-button:hover {
  transform: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ai-modal {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 400px;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.ai-modal-content {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
  overflow: hidden;
  cursor: move;
  resize: both;
  min-width: 350px;
  max-width: 600px;
}

.ai-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
  background-color: #f8f9fa;
  cursor: move;
}

.ai-modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
  font-weight: 600;
}

.ai-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.ai-modal-close:hover {
  color: #333;
  background-color: #eee;
}

.ai-modal-body {
  padding: 20px;
  overflow-y: auto;
  max-height: 80vh;
}

#ai-input {
  margin-bottom: 20px;
  resize: none;
}

.ai-input-container {
  margin-bottom: 20px;
}

.ai-input-container textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  resize: none;
}

.ai-input-container textarea::placeholder {
  color: #999;
}

/* 图标按钮样式 */
.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background-color: #e9e9e9;
}

.btn-icon i {
  font-size: 16px;
  color: #555;
}

.config-panel {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  background-color: #f9f9f9;
}

/* 工具类 */
.mr-1 {
  margin-right: 0.25rem !important;
}

.mr-2 {
  margin-right: 0.5rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.status-text {
  font-size: 0.85rem;
  font-style: italic;
  padding: 5px 10px;
  background-color: #f5f5f5;
  border-radius: 4px;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-control:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  border-radius: 0.25rem;
}

.btn-primary {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  color: #fff;
  background-color: #0069d9;
  border-color: #0062cc;
}

.btn-outline-secondary {
  color: #6c757d;
  background-color: transparent;
  border-color: #6c757d;
}

.btn-outline-secondary:hover {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

.alert {
  position: relative;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* 响应式调整 */
@media (max-width: 1000px) {
  .main-content {
    flex-direction: column;
  }
  
  .left-panel {
    flex: 1;
    max-height: none;
    width: 100%;
  }
  
  .right-panel {
    flex: 1;
    width: 100%;
  }
  
  /* 预览框架不需要额外缩放，已由JS动态处理 */
  .preview-frame {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .ai-modal-content {
    width: 90%;
    max-width: 90%;
    min-width: 300px;
  }
  
  .ai-fab {
    bottom: 20px;
    right: 20px;
  }
  
  .ai-fab-button {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* PPT幻灯片容器 */
.slide-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 通用PPT幻灯片样式 */
.ppt-slide {
  width: 960px;
  height: 540px;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

/* ===== Figma 设计预览样式 ===== */
.figma-preview-section {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
}

.preview-title {
  padding: 10px 0;
  text-align: center;
  order: 2;
  margin-top: 15px;
}

.preview-title h2 {
  margin: 0;
  font-size: 14px;
  color: #666;
  font-weight: normal;
}

.slide-preview {
  order: 1;
}

.slide-preview {
  width: 960px;
  height: 540px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
  background-color: white;
  margin: 0 auto;
  transform-origin: top left;
  transition: transform 0.2s ease;
}

/* 所有Figma设计元素的容器需要绝对定位在容器内 */
.slide-preview > div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: inherit;
}

/* 封面页样式 */
.figma-cover {
  background-color: var(--color-1);
  color: white;
  height: 100%;
  width: 100%;
  position: relative;
}

.figma-cover .year-text {
  position: absolute;
  left: 80px;
  top: 130px;
  font-size: 24px;
  line-height: 36px;
}

.figma-cover .title-text {
  position: absolute;
  left: 80px;
  top: 170px;
  font-size: 60px;
  line-height: 80px;
  letter-spacing: 0.6px;
  font-weight: bold;
}

.figma-cover .author-text {
  position: absolute;
  left: 80px;
  top: 395px;
  font-size: 20px;
  line-height: 36px;
}

/* 目录页样式 */
.figma-contents {
  height: 100%;
  width: 100%;
  position: relative;
}

.figma-contents .contents-title {
  position: absolute;
  top: calc(50% - 10px);
  left: calc(50% - 327px);
  transform: translate(-50%, -50%);
  width: 186px;
  text-align: center;
}

.figma-contents .contents-title-en {
  font-size: 24px;
  line-height: 36px;
}

.figma-contents .contents-title-cn {
  font-size: 48px;
  line-height: 60px;
  font-weight: bold;
}

.figma-contents .contents-grid {
  position: absolute;
  left: 306px;
  top: 50%;
  transform: translateY(-50%);
  width: 594px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.figma-contents .content-item {
  width: 285px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  padding: 8px;
}

.figma-contents .content-item-num {
  font-size: 40px;
  color: var(--color-1);
  width: 60px;
  text-align: center;
}

.figma-contents .content-item-decorator {
  width: 2px;
  height: 40px;
  background-color: var(--color-1);
  opacity: 0.5;
  border-radius: 1px;
}

.figma-contents .content-item-text {
  font-size: 24px;
  line-height: 34px;
  color: #000000;
}

/* 左侧边栏正文页样式 */
.figma-sidebar-content {
  height: 100%;
  width: 100%;
  position: relative;
}

.figma-sidebar-content .sidebar {
  position: absolute;
  left: 0;
  top: 0;
  width: 366px;
  height: 540px;
  box-sizing: border-box;
  padding: 42px 48px;
}

.figma-sidebar-content .sidebar-title {
  font-size: 36px;
  line-height: 48px;
  margin-bottom: 24px;
}

.figma-sidebar-content .sidebar-text {
  font-size: 16px;
  line-height: 24px;
}

.figma-sidebar-content .main-content-area {
  position: absolute;
  left: 366px;
  top: 0;
  width: 594px;
  height: 540px;
  box-sizing: border-box;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.figma-sidebar-content .list-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 24px;
  border-radius: 16px;
  background-color: var(--color1-light);
  position: relative;
}

.figma-sidebar-content .progress-bar {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 80%;
  width: 6px;
  background-color: var(--color-1);
  opacity: 0;
  border-radius: 3px;
}

.figma-sidebar-content .list-item.alternate-2 .progress-bar {
  background-color: var(--color-2);
}

.figma-sidebar-content .list-item.alternate-3 .progress-bar {
  background-color: var(--color-3);
}

.figma-sidebar-content .list-item-num {
  font-size: 80px;
  color: var(--color-1);
  width: 96px;
  text-align: center;
}

.figma-sidebar-content .list-item-text-title {
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 8px;
}

.figma-sidebar-content .list-item-text-body {
  font-size: 16px;
  line-height: 24px;
}

.figma-sidebar-content .list-item.alternate-2 {
  background-color: var(--color2-light);
}

.figma-sidebar-content .list-item.alternate-3 {
  background-color: var(--color3-light);
}

/* 图标内容页样式 */
.figma-icon-content {
  height: 100%;
  width: 100%;
  position: relative;
}

.figma-icon-content .header {
  box-sizing: border-box;
  padding: 42px 48px 30px 48px;
}

.figma-icon-content .title {
  font-size: 36px;
  line-height: 48px;
}

.figma-icon-content .content-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  padding: 60px 48px;
}

.figma-icon-content .item,
.figma-icon-content .item.alternate-2,
.figma-icon-content .item.alternate-3 {
  width: 198px;
  text-align: center;
  background-color: transparent !important;
}

.figma-icon-content .icon-wrapper {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-color: var(--color-1);
  margin: 0 auto 24px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.figma-icon-content .icon-wrapper svg {
  width: 50px;
  height: 50px;
  fill: white;
}

.figma-icon-content .item-title {
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 8px;
}

.figma-icon-content .item-text {
  font-size: 16px;
  line-height: 24px;
}

/* 卡片图标内容页样式 */
.figma-card-icon-content {
  height: 100%;
  width: 100%;
  position: relative;
}

.figma-card-icon-content .header {
  box-sizing: border-box;
  padding: 42px 48px 30px 48px;
}

.figma-card-icon-content .title {
  font-size: 36px;
  line-height: 48px;
}

.figma-card-icon-content .content-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 0 48px;
}

.figma-card-icon-content .item {
  width: 198px;
  text-align: center;
  background: var(--color1-light);
  padding: 32px;
  box-sizing: border-box;
  border-radius: 16px;
}

.figma-card-icon-content .icon-wrapper {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-color: var(--color-1);
  margin: 0 auto 24px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.figma-card-icon-content .icon-wrapper svg {
  width: 50px;
  height: 50px;
  fill: white;
}

.figma-card-icon-content .item-title {
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 12px;
}

.figma-card-icon-content .item-text {
  font-size: 16px;
  line-height: 24px;
}

/* 编号内容页样式 */
.figma-number-content {
  height: 100%;
  width: 100%;
  position: relative;
}

.figma-number-content .header {
  box-sizing: border-box;
  padding: 42px 48px 30px 48px;
}

.figma-number-content .title {
  font-size: 36px;
  line-height: 48px;
}

.figma-number-content .content-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 48px;
  padding: 0 48px;
  height: 420px;
}

.figma-number-content .item {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 400px;
  background-color: transparent !important;
}

.figma-number-content .item.alternate-2,
.figma-number-content .item.alternate-3 {
  background-color: transparent !important;
}

.figma-number-content .num-box {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  color: white !important;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 36px;
  flex-shrink: 0;
}

.figma-number-content .alternate-2 .num-box {
  color: white !important;
}

.figma-number-content .alternate-3 .num-box {
  color: white !important;
}

.figma-number-content .item-title {
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 8px;
}

.figma-number-content .item-text {
  font-size: 16px;
  line-height: 24px;
}

/* 交替样式卡片内容页 */
.figma-alternating-cards {
  height: 100%;
  width: 100%;
  position: relative;
}

.figma-alternating-cards .header {
  box-sizing: border-box;
  padding: 42px 48px 30px 48px;
}

.figma-alternating-cards .title {
  font-size: 36px;
  line-height: 48px;
}

.figma-alternating-cards .content-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 0 48px;
}

.figma-alternating-cards .item {
  width: 204px;
  height: 336px;
  text-align: center;
  padding: 32px;
  box-sizing: border-box;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.figma-alternating-cards .item-style-a {
  background: var(--color1-light);
  color: #000000;
}

.figma-alternating-cards .item-style-a .icon-wrapper {
  background-color: var(--color-1);
}

.figma-alternating-cards .item-style-a .icon-wrapper svg {
  fill: white;
}

.figma-alternating-cards .item-style-b {
  background: var(--color-1);
  color: white;
}

.figma-alternating-cards .item-style-b .icon-wrapper {
  background-color: white;
}

.figma-alternating-cards .item-style-b .icon-wrapper svg {
  fill: var(--color-1);
}

.figma-alternating-cards .icon-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.figma-alternating-cards .icon-wrapper svg {
  width: 64px;
  height: 64px;
}

.figma-alternating-cards .item-title {
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 12px;
}

.figma-alternating-cards .item-text {
  font-size: 16px;
  line-height: 24px;
}

/* 交替颜色设置 */
.alternate-2 .content-item-num,
.alternate-2 .list-item-num,
.alternate-2 .icon-wrapper,
.alternate-2 .num-box {
  color: var(--color-2) !important;
}

.alternate-2 .content-item-decorator {
  background-color: var(--color-2) !important;
}

.alternate-2 .list-item {
  background-color: var(--color2-light) !important;
}

.alternate-2.item {
  background-color: var(--color2-light) !important;
}

.alternate-2.item-style-b {
  background-color: var(--color-2) !important;
}

.alternate-2.item-style-b .icon-wrapper svg {
  fill: var(--color-2) !important;
}

.alternate-3 .content-item-num,
.alternate-3 .list-item-num,
.alternate-3 .icon-wrapper,
.alternate-3 .num-box {
  color: var(--color-3) !important;
}

.alternate-3 .content-item-decorator {
  background-color: var(--color-3) !important;
}

.alternate-3 .list-item {
  background-color: var(--color3-light) !important;
}

.alternate-3.item {
  background-color: var(--color3-light) !important;
}

.alternate-3.item-style-b {
  background-color: var(--color-3) !important;
}

.alternate-3.item-style-b .icon-wrapper svg {
  fill: var(--color-3) !important;
}

/* 自定义滚动条样式 */
.left-panel::-webkit-scrollbar {
  width: 6px;
}

.left-panel::-webkit-scrollbar-track {
  background: transparent;
}

.left-panel::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.left-panel::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

/* Firefox滚动条样式 */
.left-panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* 进度条样式 */
.progress-bar {
  width: 6px;
  height: 80%;
  background-color: var(--color-1);
  opacity: 0.3;
  border-radius: 3px;
  margin-right: 4px;
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.alternate-2 .progress-bar {
  background-color: var(--color-2);
}

.alternate-3 .progress-bar {
  background-color: var(--color-3);
} 

footer P {
  margin: 0;
}

.form-group mb-3 label{
  margin-bottom: 20px;
}
button#toggle-color-panel {
    background-color: #fff;
    border: 1px solid #dddddd;
    border-radius: 6px;
}