/* 基础样式重置与全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #f9f7f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

/* 问卷调查入口样式 */
.vote-entry {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.vote-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0da2e3;
    color: white;
    font-size: 14px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.vote-btn:hover {
    background-color: #0b8bc0;
}

/* 页面主容器样式 */
.embroider-page {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    background-color: #fff;
    box-sizing: border-box;
}

/* 页面头部样式 */
.embroider-header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.embroider-title {
    font-size: 26px;
    color: #333;
    font-weight: bold;
    margin-bottom: 12px;
}

.embroider-subtitle {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 800px;
}

/* 通用模块样式（刺绣基础、绣片制作模块通用） */
.video-section-container,
.embroidery-module {
    max-width: 1200px;
    margin: 40px auto;
    padding: 25px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    box-shadow: none;
}

/* 刺绣练习模块独有样式（背景色修改为#f5f5f5） */
.practice-section-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 25px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    box-shadow: none;
}

.module-header {
    margin-bottom: 20px;
}

.module-header h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 8px;
}

.module-header p {
    font-size: 14px;
    color: #666;
}

.module-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.module-item {
    width: calc(25% - 15px);
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.module-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.item-media {
    height: 180px;
    overflow: hidden;
}

.item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.module-item:hover .item-media img {
    transform: scale(1.05);
}

.item-content {
    padding: 15px;
}

.item-content h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.item-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.item-link {
    display: inline-block;
    padding: 6px 12px;
    background-color: #000000;
    color: #fff;
    font-size: 13px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.item-link:hover {
    background-color: #333;
}

/* 学习视频模块样式 */
.video-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.text-link {
    color: #333;
    text-decoration: none;
    display: block;
}

.text-link h3 {
    font-size: 22px;
    margin: 0 0 8px;
}

.text-link p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.more-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #000000;
    color: #fff;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-card {
    display: flex;
    align-items: flex-start;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.video-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.video-thumb {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    width: 240px;
    height: 150px;
    flex-shrink: 0;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 18px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.video-info {
    padding-left: 20px;
    flex: 1;
}

.video-info h4 {
    font-size: 20px;
    color: #333;
    margin: 0 0 8px;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-fond {
    font-size: 14px;
    color: #999;
}

.video-zy {
    margin: 20px 0 0 0;
}

/* 激励语录样式 */
.motivation-quote {
    padding: 40px 20px;
    text-align: center;
    background-color: #f0e8e0;
    border-radius: 8px;
    margin-bottom: 40px;
}

.quote-content {
    font-size: 18px;
    color: #333;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 20px;
    font-style: italic;
}

.quote-author {
    font-size: 14px;
    color: #666;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .embroider-title {
        font-size: 22px;
    }
    .video-card {
        flex-direction: column;
    }
    .video-thumb {
        width: 100%;
        height: auto;
        padding-top: 60%;
    }
    .video-info {
        padding-left: 0;
        padding-top: 15px;
    }
    .module-item {
        width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .video-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .more-btn {
        width: 100%;
        text-align: center;
    }
    .quote-content {
        font-size: 16px;
    }
    .module-item {
        width: 100%;
    }
}