/**
 * 分享图片H5模板样式
 * 用于生成9:16比例的分享图片
 * 所有样式都限定在 .share-slide 命名空间内，避免影响其他页面
 */

.share-slide {
    width: 1080px;
    height: 1920px;
    background: #ffffff;
    position: fixed;
    left: -10000px;
    top: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
    color: #333;
    overflow: hidden;
    z-index: -1; /* 确保在最底层，预览时会被覆盖 */
    flex-shrink: 0; /* 防止在flex容器中被压缩 */
}

.share-slide * {
    box-sizing: border-box;
}

/* 封面页 */
.share-slide.share-slide-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.share-slide.share-slide-cover .cover-title {
    font-size: 72px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 40px;
    word-wrap: break-word;
    color: white;
}

.share-slide.share-slide-cover .cover-subtitle {
    font-size: 42px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.share-slide.share-slide-cover .cover-date {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 60px;
}

.share-slide.share-slide-cover .cover-icon {
    font-size: 120px;
    margin-top: 40px;
}

/* 内容页 */
.share-slide.share-slide-content {
    padding: 45px 60px; /* 进一步减少上下padding，增加内容区域 */
    display: flex;
    flex-direction: column;
}

.share-slide .article-title-group {
    text-align: center;
    margin-bottom: 25px;
}

.share-slide .article-title {
    font-size: 62px;
    font-weight: bold;
    line-height: 1.2;
    word-wrap: break-word;
    color: #333;
    margin-bottom: 0;
}

.share-slide .article-title-cn {
    font-size: 48px;
    font-weight: 500;
    line-height: 1.4;
    word-wrap: break-word;
    color: #667eea;
    margin-top: 15px;
}

.share-slide .slide-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #333;
}

.share-slide .content-paragraphs {
    flex: 1;
    overflow: visible; /* 允许内容可见，避免被截断 */
    display: flex;
    flex-direction: column;
}

.share-slide .content-paragraph {
    margin-bottom: 12px; /* 进一步减少段落间距 */
}

.share-slide .content-paragraph:last-child {
    margin-bottom: 0;
}

.share-slide .para-english {
    font-size: 38px;
    line-height: 1.5;
    margin-bottom: 8px; /* 增加与中文的间距 */
    color: #333;
    word-wrap: break-word;
    padding: 12px 16px;
    background: rgba(102, 126, 234, 0.08); /* 淡紫色背景 */
    border-radius: 8px;
}

.share-slide .para-chinese {
    font-size: 36px;
    line-height: 1.5;
    color: #666;
    word-wrap: break-word;
    padding: 12px 16px;
    background: rgba(255, 193, 7, 0.1); /* 淡黄色背景 */
    border-radius: 8px;
}

/* 单词页 */
.share-slide.share-slide-words {
    padding: 30px 40px; /* 与短语/语法页保持一致的内容高度 */
    display: flex;
    flex-direction: column;
}

.share-slide .words-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.share-slide .word-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px 30px;
    min-height: 70px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.share-slide .word-number {
    font-size: 36px;
    font-weight: bold;
    color: #667eea;
    flex-shrink: 0;
    min-width: 50px;
}

.share-slide .word-text {
    font-size: 40px;
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
    min-width: 200px;
}

.share-slide .word-pos {
    font-size: 22px;
    padding: 4px 12px;
    background: #28a745;
    color: white;
    border-radius: 12px;
    font-weight: 500;
    flex-shrink: 0;
}

.share-slide .word-phonetic {
    font-size: 29px;
    color: #667eea;
    font-style: italic;
    flex-shrink: 0;
    min-width: 180px;
}

.share-slide .word-meaning {
    font-size: 31px;
    color: #666;
    line-height: 1.4;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 短语页 */
.share-slide.share-slide-phrases {
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
}

.share-slide .phrases-container {
    flex: 1;
    overflow: hidden;
}

.share-slide .phrase-sentence-group {
    margin-bottom: 18px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 6px solid #667eea;
}

.share-slide .phrase-sentence-group:last-child {
    margin-bottom: 0;
}

.share-slide .phrase-sentence {
    margin-bottom: 12px;
    padding: 8px 10px;
    background: #fdfbff;
    border-radius: 12px;
    border-left: 6px solid #667eea;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-slide .phrase-sentence-en {
    font-size: 40px; /* 与重点单词英文字号一致 */
    line-height: 1.5;
    color: #222;
    font-weight: 600;
    padding: 12px 16px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 8px;
}

.share-slide .phrase-sentence-cn {
    font-size: 31px; /* 与重点单词中文/释义字号一致 */
    line-height: 1.5;
    color: #555;
    padding: 12px 16px;
    background: rgba(255, 193, 7, 0.12);
    border-radius: 8px;
}

.share-slide .phrases-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.share-slide .phrase-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px 12px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid #e0e3f8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.share-slide .phrase-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    margin-bottom: 10px;
    background: linear-gradient(120deg, rgba(102, 126, 234, 0.18), rgba(118, 75, 162, 0.1));
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.12);
}

.share-slide .phrase-index {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #667eea;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.25);
    flex-shrink: 0;
}

.share-slide .phrase-title-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.share-slide .phrase-title {
    font-size: 40px; /* 与重点单词字号一致 */
    font-weight: 600;
    color: #2f3245;
    letter-spacing: 0.2px;
}

.share-slide .phrase-type {
    font-size: 18px;
    padding: 2px 10px;
    background: rgba(255, 193, 7, 0.25);
    color: #8a6100;
    border-radius: 999px;
    font-weight: 500;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.share-slide .phrase-meaning,
.share-slide .phrase-usage {
    font-size: 31px; /* 对齐重点单词释义字号 */
    line-height: 1.5;
    padding: 6px 8px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.share-slide .phrase-meaning {
    color: #4a5368;
    background: rgba(40, 167, 69, 0.08);
}

.share-slide .phrase-usage {
    color: #3c5360;
    background: rgba(23, 162, 184, 0.1);
}

.share-slide .phrase-example {
    font-size: 31px;
    color: #4a5368;
    line-height: 1.5;
    padding: 6px 8px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 6px;
}

/* 语法页 */
.share-slide.share-slide-grammar {
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
}

.share-slide .grammar-container {
    flex: 1;
    overflow: hidden;
}

.share-slide .grammar-sentence-group {
    margin-bottom: 18px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 6px solid #667eea;
}

.share-slide .grammar-sentence-group:last-child {
    margin-bottom: 0;
}

.share-slide .grammar-sentence {
    margin-bottom: 12px;
    padding: 8px 10px;
    background: #fdfbff;
    border-radius: 12px;
    border-left: 6px solid #667eea;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-slide .grammar-sentence-en {
    font-size: 40px;
    line-height: 1.5;
    color: #222;
    font-weight: 600;
    padding: 12px 16px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 8px;
}

.share-slide .grammar-sentence-cn {
    font-size: 31px;
    line-height: 1.5;
    color: #555;
    padding: 12px 16px;
    background: rgba(255, 193, 7, 0.12);
    border-radius: 8px;
}

.share-slide .grammar-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.share-slide .grammar-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-slide .grammar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: linear-gradient(120deg, rgba(102, 126, 234, 0.18), rgba(118, 75, 162, 0.12));
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.25);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.12);
}

.share-slide .grammar-index {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #667eea;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.25);
}

.share-slide .grammar-title {
    font-size: 40px; /* 与重点单词字号一致 */
    font-weight: 600;
    color: #2f3245;
}

.share-slide .grammar-description {
    font-size: 31px;
    color: #4a5368;
    line-height: 1.5;
    padding: 6px 8px;
    background: rgba(40, 167, 69, 0.08);
    border-radius: 8px;
}

/* 页码 - 已隐藏 */
.share-slide .slide-page-number {
    display: none; /* 隐藏所有页面的页码 */
}

