/* ============================================
   Sketch - 手绘素描风格
   纸张质感、手写字体效果
   适配小红书卡片渲染
   ============================================ */

/* 配色定义
   背景色: #FFFEF9 (米白纸张)
   前景色: #333333 (炭笔黑)
   主色: #555555 (铅笔灰)
   强调: #E74C3C (红色标记笔)
   蓝色: #3498DB (蓝色圆珠笔)
   黄色: #F1C40F (荧光笔)
*/

.card-inner {
  background-color: #fffef9;
  /* 纸张网格背景 */
  background-image: 
    linear-gradient(#e0e0e0 1px, transparent 1px),
    linear-gradient(90deg, #e0e0e0 1px, transparent 1px);
  background-size: 30px 30px;
}

.card-content {
  color: #333333;
  font-size: 42px;
  line-height: 1.8;
}

/* 标题样式 */
.card-content h1 {
  font-size: 72px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 40px;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: #e74c3c;
  text-underline-offset: 10px;
}

.card-content h2 {
  font-size: 56px;
  font-weight: 600;
  color: #555555;
  margin: 50px 0 25px 0;
  line-height: 1.4;
  border-bottom: 3px dashed #999999;
  padding-bottom: 10px;
}

.card-content h3 {
  font-size: 48px;
  font-weight: 600;
  color: #666666;
  margin: 40px 0 20px 0;
}

/* 段落 */
.card-content p {
  margin-bottom: 35px;
}

/* 粗体 - 加粗圈标 */
.card-content strong,
.card-content b {
  font-weight: 700;
  color: #333333;
  background-color: #f1c40f;
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

/* 斜体 */
.card-content em,
.card-content i {
  font-style: italic;
  color: #3498db;
}

/* 链接 */
.card-content a {
  color: #3498db;
  text-decoration: underline;
  text-decoration-style: dashed;
}

/* 列表 */
.card-content ul,
.card-content ol {
  margin: 30px 0;
  padding-left: 60px;
}

.card-content li {
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-content li::marker {
  color: #e74c3c;
}

/* 引用块 - 便签纸风格 */
.card-content blockquote {
  margin: 35px 0;
  padding: 30px 40px;
  background-color: #fff9c4;
  color: #333333;
  border: none;
  box-shadow: 3px 3px 0 #ddd;
  transform: rotate(-0.5deg);
}

.card-content blockquote p {
  margin: 0;
  font-style: italic;
}

/* 行内代码 */
.card-content code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 38px;
  background-color: #f0f0f0;
  color: #555555;
  padding: 6px 16px;
  border: 2px dashed #999999;
  border-radius: 4px;
}

/* 代码块 */
.card-content pre {
  margin: 35px 0;
  padding: 40px;
  background-color: #f5f5f5;
  color: #333333;
  border: 2px solid #333333;
  overflow-x: visible;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-all;
  white-space: pre-wrap;
}

.card-content pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  border: none;
  font-size: 36px;
  line-height: 1.5;
}

/* 分割线 */
.card-content hr {
  margin: 50px 0;
  border: none;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    #333333,
    #333333 5px,
    transparent 5px,
    transparent 10px
  );
}

/* 图片 */
.card-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 35px auto;
  border: 3px solid #333333;
  box-shadow: 5px 5px 0 #ddd;
  transform: rotate(0.5deg);
}

/* Tags 标签样式 */
.tags-container {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px dashed #999999;
}

.tag {
  display: inline-block;
  background-color: #fff;
  color: #333333;
  padding: 12px 28px;
  border: 2px solid #333333;
  font-size: 34px;
  margin: 10px 15px 10px 0;
  font-weight: 600;
  transform: rotate(-1deg);
}
