/* 全局重置和基础样式 - 简约风格（科技蓝+白色） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.5;
    color: #343a40;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    flex: 1;
    position: relative;
    z-index: 1;
    max-width: 100%;
}

/* PC版响应式设计 */
@media (min-width: 768px) {
    .container {
        max-width: 1200px;
        padding: 30px;
    }
    
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 30px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .header-links {
        flex-direction: row;
        gap: 15px;
    }
    
    .btn {
        width: auto;
        padding: 12px 24px;
    }
    
    .main-content {
        padding: 30px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .form {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .play-form {
        flex-direction: row;
        align-items: flex-end;
        gap: 15px;
    }
    
    .play-form .form-group {
        flex: 1;
    }
    
    .btn-play {
        width: auto;
        padding: 14px 40px;
    }
    
    .verify-form {
        flex-direction: row;
        align-items: flex-end;
        gap: 15px;
    }
    
    .verify-form .form-group {
        flex: 1;
    }
    
    .btn-verify {
        width: auto;
        padding: 14px 40px;
    }
    
    .video-actions {
        flex-direction: row;
        gap: 10px;
    }
    
    .video-info h2 {
        font-size: 22px;
    }
    
    .videos-list h3 {
        font-size: 20px;
    }
    
    .video-item {
        padding: 20px;
    }
    
    .play-code {
        font-size: 24px;
    }
    
    .video-player {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .player-container {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .video-info {
        max-width: 800px;
        margin: 30px auto 0;
    }
    
    .videos-list {
        max-width: 800px;
        margin: 25px auto 0;
    }
    
    .play-code-section {
        max-width: 800px;
        margin: 25px auto 0;
    }
    
    .video-actions {
        justify-content: flex-start;
    }
}

/* 头部样式 - 简约风格 */
header {
    background: #ffffff;
    padding: 20px 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    border: 1px solid #e9ecef;
    width: 100%;
}

h1 {
    color: #007bff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 0;
    text-align: center;
    width: 100%;
}

.header-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* 按钮样式 - 手机版 */
.btn {
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: all 0.2s ease;
    width: 100%;
    margin: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0069d9;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-back {
    background: #6c757d;
    color: white;
}

.btn-back:hover {
    background: #5a6268;
}

.btn-edit {
    background: #ffc107;
    color: #212529;
}

.btn-edit:hover {
    background: #e0a800;
}

.btn-copy {
    padding: 14px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 15px;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-copy:hover {
    background: #218838;
}

.btn-copy:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 主内容区域样式 - 手机版 */
.main-content {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    width: 100%;
    margin: 0;
}

h2 {
    color: #007bff;
    font-size: 22px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

/* 鼓励学习语句样式 */
.motivation-quote {
    background: #e3f2fd;
    color: #1976d2;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 25px;
    font-size: 16px;
    font-weight: 500;
    border-left: 4px solid #2196f3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* PC版鼓励语句样式 */
@media (min-width: 768px) {
    .motivation-quote {
        font-size: 18px;
        padding: 20px 30px;
    }
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #007bff;
    border-radius: 1px;
}

/* 表单样式 - 手机版 */
.form {
    width: 100%;
    margin: 0;
    max-width: 100%;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
}

label {
    display: block;
    margin-bottom: 10px;
    color: #34495e;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

input[type="text"],
textarea,
select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    font-family: inherit;
    background: #ffffff;
    margin: 0;
}

select:hover {
    border-color: #adb5bd;
}

select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

input[type="text"]:hover,
textarea:hover {
    border-color: #adb5bd;
}

textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group:hover label {
    color: #007bff;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-submit:hover {
    background: #0069d9;
}

.btn-submit:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 播放表单样式 */
.play-form {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    max-width: 100%;
}

.play-form .form-group {
    width: 100%;
    margin-bottom: 0;
}

.btn-play {
    padding: 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.btn-play:hover {
    background: #0069d9;
}

.btn-play:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 验证表单样式 */
.verify-form {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    max-width: 100%;
}

.verify-form .form-group {
    width: 100%;
    margin-bottom: 0;
}

.btn-verify {
    padding: 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.btn-verify:hover {
    background: #0069d9;
}

.btn-verify:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 视频播放器样式 */
.video-player {
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
    border: 1px solid #e9ecef;
}

.player-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
}

.player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* 视频信息样式 - 简约风格 */
.video-info {
    margin-top: 25px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    width: 100%;
}

.video-info h2 {
    color: #007bff;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: left;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.video-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: #007bff;
    border-radius: 1px;
}

.video-meta {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-left: 3px solid #007bff;
    width: 100%;
}

.meta-item {
    margin-bottom: 12px;
}

.meta-item h3 {
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.meta-item p {
    color: #495057;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
}

.wechat-info {
    background: #e8f4f8;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #17a2b8;
    margin-top: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.wechat-info h3 {
    color: #17a2b8;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.wechat-info p {
    color: #17a2b8;
    font-size: 15px;
    font-weight: 500;
}

/* 视频列表样式 - 手机版 */
.videos-list {
    margin-top: 25px;
    width: 100%;
}

.videos-list h3 {
    color: #007bff;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.video-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 3px solid #007bff;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.video-item h4 {
    color: #495057;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.video-item p {
    color: #6c757d;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-all;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
    flex-wrap: wrap;
}

.video-actions {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

/* 播放码区域样式 */
.play-code-section {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.play-code-section h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.play-code {
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
    margin: 15px 0;
    padding: 12px;
    background: white;
    border: 2px dashed #007bff;
    border-radius: 8px;
    word-break: break-all;
}

/* 消息提示样式 - 手机版 */
.message {
    margin-top: 15px;
    padding: 14px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    width: 100%;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 页脚样式 - 简约风格 */
footer {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 14px;
    margin-top: 25px;
    width: 100%;
}

/* 弹出提示框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.modal-content h3 {
    color: #007bff;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.modal-content .play-code {
    font-size: 24px;
    margin: 20px 0;
}

.modal-content .btn-copy {
    margin-top: 20px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* 小型复制按钮样式 */
.btn-copy-small {
    padding: 6px 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-copy-small:hover {
    background: #218838;
}

.btn-copy-small:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 分页样式 */
.pagination {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-page {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-page:hover {
    background: #0069d9;
}

.btn-page:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.page-info {
    font-size: 14px;
    color: #6c757d;
    margin: 0 10px;
}

/* PC版弹出提示框调整 */
@media (min-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 40px;
    }
    
    .modal-content h3 {
        font-size: 24px;
    }
    
    .modal-content .play-code {
        font-size: 28px;
    }
    
    /* PC版分页样式调整 */
    .pagination {
        gap: 15px;
    }
    
    .btn-page {
        padding: 10px 20px;
        font-size: 16px;
    }
    
    .page-info {
        font-size: 16px;
    }
    
    /* PC版小型复制按钮样式调整 */
    .btn-copy-small {
        padding: 8px 16px;
        font-size: 14px;
    }
}

