/* 
 * 数学可视化平台 - 简洁组件库
 * 替代现有的花哨组件
 */

/* === 基础描述卡片 - 替代text-card === */
.description-card {
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.description-card .indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #3366cc;
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
}

.description-card h3 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  font-weight: 600;
}

.description-card p {
  color: #505050;
  line-height: 1.6;
  margin-bottom: 15px;
}

.description-card a {
  color: #3366cc;
  text-decoration: none;
  font-weight: 500;
}

.description-card a:hover {
  text-decoration: underline;
}

.description-card .meta {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 15px;
}

.description-card .actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.description-card .btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.description-card .btn-primary {
  background-color: #3366cc;
  color: white;
}

.description-card .btn-primary:hover {
  background-color: #2952a3;
}

.description-card .btn-secondary {
  background-color: #f8f9fa;
  color: #333;
  border-color: #dee2e6;
}

.description-card .btn-secondary:hover {
  background-color: #e9ecef;
}

/* === 解释卡片 - 替代blob-card === */
.explanation-card {
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.explanation-card h2 {
  font-size: 22px;
  color: #333;
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.explanation-card h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: #3366cc;
  border-radius: 1.5px;
}

.explanation-card h3 {
  font-size: 18px;
  color: #333;
  margin-top: 20px;
  margin-bottom: 15px;
  font-weight: 500;
}

.explanation-card p {
  color: #505050;
  line-height: 1.7;
  margin-bottom: 15px;
}

.explanation-card ul, 
.explanation-card ol {
  color: #505050;
  padding-left: 20px;
  margin-bottom: 15px;
}

.explanation-card li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.explanation-card a {
  color: #3366cc;
  text-decoration: none;
  font-weight: 500;
}

.explanation-card a:hover {
  text-decoration: underline;
}

.explanation-card .formula {
  font-family: 'Georgia', serif;
  background-color: #f8f9fa;
  padding: 10px 15px;
  border-left: 3px solid #3366cc;
  margin: 15px 0;
  line-height: 1.8;
}

/* === 探索卡片 - 替代explore-card === */
.exploration-card {
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 100%;
}

.exploration-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.exploration-card .card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.exploration-card .card-body {
  padding: 20px;
}

.exploration-card .card-title {
  font-size: 18px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
}

.exploration-card .card-text {
  color: #505050;
  margin-bottom: 15px;
  line-height: 1.5;
}

.exploration-card .btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #3366cc;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.exploration-card .btn:hover {
  background-color: #2952a3;
  text-decoration: none;
}

/* === 状态指示器 === */
.status-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.status-indicator.success {
  background-color: #28a745;
}

.status-indicator.warning {
  background-color: #ffc107;
}

.status-indicator.danger {
  background-color: #dc3545;
}

.status-indicator.info {
  background-color: #17a2b8;
}

/* === 值显示 === */
.value-display {
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
}

.value-display .value-group {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.value-display .value-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.value-display .value-label {
  font-weight: 500;
  color: #505050;
}

.value-display .value {
  font-family: 'Consolas', monospace;
  font-weight: 600;
  color: #3366cc;
}

/* === 简洁徽章 === */
.badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  border-radius: 10px;
  color: white;
  background-color: #6c757d;
}

.badge-primary {
  background-color: #3366cc;
}

.badge-success {
  background-color: #28a745;
}

.badge-warning {
  background-color: #ffc107;
  color: #212529;
}

.badge-danger {
  background-color: #dc3545;
}

.badge-info {
  background-color: #17a2b8;
}

/* === 简洁提示框 === */
.alert {
  position: relative;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 6px;
}

.alert-primary {
  color: #004085;
  background-color: #cce5ff;
  border-color: #b8daff;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

/* === 代码显示 === */
.code-block {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
  font-family: 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  overflow-x: auto;
}

/* 简洁版作者面板 */
.author-panel {
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.author-panel .author-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.author-panel .author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.author-panel .author-info {
  flex: 1;
}

.author-panel .author-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 5px 0;
  color: #333;
}

.author-panel .author-role {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

.author-panel .author-description {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #505050;
}

.author-panel .author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.author-panel .author-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  color: #505050;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.author-panel .author-link:hover {
  background-color: #e9ecef;
  text-decoration: none;
}

.author-panel .author-link i {
  margin-right: 8px;
}

/* 清理旧的花哨组件的覆盖样式 */
.rainbow-border, 
.rainbow-border::before, 
.rainbow-border::after,
.blob-card::before,
.blob-card::after,
.dynamic-border::before,
.dynamic-border::after,
.dynamic-border:hover::before {
  animation: none !important;
  background: none !important;
  opacity: 0 !important;
  display: none !important;
} 