/* 删除了 @font-face, body, html, .background 等通用样式，因为它们已在 style.css 中定义 */

/* --- 博客页面布局 --- */
p{

    line-height: 1.3;
    color: rgb(183, 221, 255);
}
#markdown-list {
    margin: 0 auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    max-width: min(90vw, 1200px);
    width: 100%;
    box-sizing: border-box;
}

.container {
    position: relative;
    min-height: 100vh;
    width: 100%;
}

/* --- 博客页面元素 --- */
.subtitle {
    font-size: 15px;
    color: var(--accent-highlight); /* 使用变量 */
}

button {
    border: 1px solid var(--text-primary); /* 使用变量 */
    border-radius: 20px;
    background-color: transparent;
    color: var(--text-primary); /* 使用变量 */
    padding: 0px 10px;
    transition: all 0.3s ease;
}

button:hover {
    background-color: var(--text-primary); /* 使用变量 */
    color: var(--background-dark); /* 使用变量 */
    cursor: pointer;
}

.contentback {
    padding: 2px 50px;
    background-color: rgba(11, 18, 38, 0.5); /* 使用深蓝背景色的半透明版本 */
    font-family: 'LXGWWenKai', sans-serif;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    box-sizing: border-box;
}

/* 嵌入时清除背景 */
.embedded .background {
    background: transparent;
}

.share-container {
  margin: 20px auto; /* 上下边距20px，左右自动，实现水平居中 */
  max-width: 800px; /* 你可以根据喜好调整这个值 */
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden; /* 确保 iframe 的圆角生效 */
  /* 使用 Flexbox 布局，确保 iframe 填满容器 */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 让 iframe 填满整个容器 */
.share-container iframe {
  width: 100%;
  height: 100%;
  border: 0; /* 移除 iframe 可能存在的默认边框 */
}


/* --- 移动端适应 --- */
@media (max-width: 767px) {
    .container {
        width: 100%;
    }
    .subtitle {
        font-size: 12px;
        line-height: 1.4;
    }
    button {
        border-radius: 15px;
        padding: 5px 8px;
        font-size: 14px;
    }
    .contentback {
        margin: 1px;
        padding: 5px 12px;
        font-size: 18px;
        line-height: 1.3;
        width: 100%;
        box-sizing: border-box;
    }
    #markdown-list {
        margin: 0;
        padding: 20px;
        width: 100%;
        max-width: 100%;
        left: 0;
        box-sizing: border-box;
    }
}