/* 杰哥博客 - 文章版权卡美化
   覆盖 fluid 主题默认的 .license-box 样式
*/

/* 外层：渐变背景 + 圆角 + 阴影 + hover 动效 */
.license-box.my-3 {
  position: relative;
  margin: 1.75rem 0;
  padding: 20px 22px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  overflow: hidden;
}
.license-box.my-3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #2563eb 0%, #7c3aed 100%);
}
.license-box.my-3:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

/* 标题区：标题 + 链子图标 + URL 链接 */
.license-box .license-title {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #d1d5db;
}
.license-box .license-title > div:first-child {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.license-box .license-title > div:first-child::before {
  content: '📄';
  font-size: 14px;
}
.license-box .license-title > div:nth-child(2) {
  font-size: 12px;
  color: #6b7280;
  word-break: break-all;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  line-height: 1.5;
}
.license-box .license-title > div:nth-child(2)::before {
  content: '🔗';
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}
.license-box .license-title a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.15s;
}
.license-box .license-title a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* 元数据区：两栏 / 三栏响应式网格 */
.license-box .license-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 24px;
  margin: 0;
}
.license-box .license-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
}
.license-box .license-meta-item > div:first-child {
  color: #9ca3af;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.license-box .license-meta-item > div:last-child {
  color: #1f2937;
  font-weight: 500;
}

/* 元数据项前缀 emoji */
.license-box .license-meta-item:nth-child(1) > div:first-child::before { content: '👤'; }
.license-box .license-meta-item:nth-child(2) > div:first-child::before { content: '📅'; }
.license-box .license-meta-item:nth-child(3) > div:first-child::before { content: '🔄'; }
.license-box .license-meta-item:nth-child(4) > div:first-child::before { content: '⚖️'; }

/* 许可协议图标 */
.license-box .license-meta-item i[class^="icon-cc-"] {
  font-size: 22px;
  vertical-align: middle;
  margin-right: 2px;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.license-box .license-meta-item i[class^="icon-cc-"]:hover {
  opacity: 1;
}

/* 移动端 */
@media (max-width: 600px) {
  .license-box.my-3 { padding: 16px 14px 14px; }
  .license-box .license-meta { grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .license-box .license-title > div:first-child { font-size: 15px; }
}
