/* =============================================
   新七彩按钮组 - 展开式组件样式
   ============================================= */

#seven-color-card {
  width: 100%;
  margin: 0 auto;
  margin-top: 0 !important;
  font-family: system-ui, -apple-system, 'Segoe UI', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
  background: transparent;
  border-radius: 12px;
  box-shadow: none;
  box-sizing: border-box;
  text-align: center;
  padding: 0;
}

/* ---- 按钮行 ---- */
#seven-color-card .sc-btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0;
}

/* ---- 单个按钮 ---- */
#seven-color-card .sc-btn {
  flex: 1;
  min-width: 0;
  width: 0;
  height: 42px;
  line-height: 42px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: none;
  transition: filter 0.2s, transform 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 0.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  box-sizing: border-box;
  cursor: pointer;
  border: none;
  background: none;
}

#seven-color-card .sc-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

#seven-color-card .sc-btn:active {
  filter: brightness(0.95);
  transform: translateY(0);
}

#seven-color-card .sc-btn .sc-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

#seven-color-card .sc-btn.sc-open .sc-arrow {
  transform: rotate(180deg);
}

/* ---- 展开状态：黑白配色（亮色模式）---- */
#seven-color-card .sc-btn.sc-open {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #dddddd !important;
}

/* ---- 展开状态：黑白配色（暗色模式）---- */
html[data-theme=dark] #seven-color-card .sc-btn.sc-open {
  background: #333333 !important;
  color: #ffffff !important;
  border: 1px solid #555555 !important;
}

/* ---- 彩虹色：亮色主题 ---- */
#seven-color-card .sc-btn-0 { background: #ff6b6b !important; color: #fff !important; }
#seven-color-card .sc-btn-1 { background: #ffa502 !important; color: #fff !important; }
#seven-color-card .sc-btn-2 { background: #ffd32a !important; color: #333 !important; }
#seven-color-card .sc-btn-3 { background: #2ed573 !important; color: #fff !important; }
#seven-color-card .sc-btn-4 { background: #1e90ff !important; color: #fff !important; }
#seven-color-card .sc-btn-5 { background: #9b59b6 !important; color: #fff !important; }
#seven-color-card .sc-btn-6 { background: #fd79a8 !important; color: #fff !important; }

/* ---- 彩虹色：暗色主题 ---- */
html[data-theme=dark] #seven-color-card .sc-btn-0 { background: #c0392b !important; color: #fff !important; }
html[data-theme=dark] #seven-color-card .sc-btn-1 { background: #d35400 !important; color: #fff !important; }
html[data-theme=dark] #seven-color-card .sc-btn-2 { background: #f39c12 !important; color: #1a1a1a !important; }
html[data-theme=dark] #seven-color-card .sc-btn-3 { background: #27ae60 !important; color: #fff !important; }
html[data-theme=dark] #seven-color-card .sc-btn-4 { background: #2980b9 !important; color: #fff !important; }
html[data-theme=dark] #seven-color-card .sc-btn-5 { background: #8e44ad !important; color: #fff !important; }
html[data-theme=dark] #seven-color-card .sc-btn-6 { background: #c0392b !important; color: #fff !important; }

/* ---- 展开内容区 ---- */
#seven-color-card .sc-content {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  background: transparent;
  border-radius: 8px;
  box-sizing: border-box;
  padding: 0;
}

#seven-color-card .sc-content.sc-open {
  max-height: none;
  padding: 1rem 0.5rem;
  background: var(--card-bg, rgba(255, 255, 255, 0.95));
  /* box-shadow: 0 2px 12px var(--shadow, rgba(0, 0, 0, 0.08)); */
}

html[data-theme=dark] #seven-color-card .sc-content.sc-open {
  background: var(--dark-card-bg, #1a1a1a);
}

/* ---- 加载状态 ---- */
#seven-color-card .sc-loading {
  text-align: center;
  color: var(--text-secondary, #888);
  padding: 1rem;
  font-size: 0.9rem;
}

/* ---- 内容区内部样式 ---- */
#seven-color-card .sc-content-inner {
  text-align: left;
  line-height: 1.6;
}

#seven-color-card .sc-content-inner h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--text-primary, #1a1a2e);
}

#seven-color-card .sc-content-inner p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary, #555);
}

#seven-color-card .sc-content-inner .sc-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

#seven-color-card .sc-content-inner .sc-list li {
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border-color, #eee);
  font-size: 0.85rem;
}

html[data-theme=dark] #seven-color-card .sc-content-inner .sc-list li {
  border-bottom-color: #333;
}

#seven-color-card .sc-content-inner .sc-list li:last-child {
  border-bottom: none;
}

/* ---- 收起按钮 ---- */
#seven-color-card .sc-close-btn {
  display: block;
  margin: 0.8rem auto 0;
  padding: 4px 16px;
  font-size: 0.75rem;
  color: var(--text-secondary, #888);
  background: var(--bg-secondary, #f0f2f5);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#seven-color-card .sc-close-btn:hover {
  background: var(--btn-bg, #e0e0e0);
  color: var(--text-primary, #333);
}

/* ---- 响应式 ---- */
@media (max-width: 600px) {
  #seven-color-card .sc-btn { font-size: 0.75rem; height: 36px; line-height: 36px; }
  #seven-color-card .sc-btn-row { gap: 0.4rem; }
  #seven-color-card .sc-content.sc-open { padding: 0.75rem 0.5rem; }
}