
/*
Theme Name: Blog System
Theme URI: https://example.com
Description: 完整的博客系统主题，包含文档、视频、课程等多个模块
Version: 1.0.0
Author: Your Name
Author URI: https://example.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blog-system
Domain Path: /languages
*/

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    min-height: 100vh;
}

a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #764ba2;
}

/* Header 样式 */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}

.site-branding img {
    max-height: 50px;
    width: auto;
}

.site-title-wrapper {
    display: flex;
    flex-direction: column;
}

.site-title {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
}

.site-title a {
    color: #333;
    text-decoration: none;
}

.site-title a:hover {
    color: #667eea;
}

.site-description {
    margin: 0;
    font-size: 0.85em;
    color: #999;
}

/* 导航菜单 */
.site-navigation {
    flex: 1;
    margin: 0 40px;
}

.menu-container {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 18px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95em;
    border-bottom: 3px solid transparent;
    position: relative;
    letter-spacing: 0.3px;
}

.nav-menu a:hover,
.nav-menu li.current-menu-item > a {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.nav-menu .menu-item-has-children > a::after {
    content: " ▼";
    font-size: 0.6em;
    margin-left: 8px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.nav-menu li:hover > a::after {
    opacity: 1;
    transform: translateY(2px);
}

.nav-menu ul,
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    margin: 8px 0 0 0;
    padding: 10px 0;
    min-width: 220px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    z-index: 1000;
    border-top: 4px solid #667eea;
    overflow: hidden;
}

.nav-menu li:hover > ul,
.nav-menu li:hover > .sub-menu {
    display: block;
    animation: slideDown 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-menu ul li a,
.nav-menu .sub-menu li a {
    padding: 14px 22px;
    border-bottom: none;
    font-size: 0.9em;
    color: #555;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-menu ul li a:hover,
.nav-menu .sub-menu li a:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.08) 0%, transparent 100%);
    color: #667eea;
    padding-left: 28px;
    border-left-color: #667eea;
}

.nav-menu ul li:first-child a,
.nav-menu .sub-menu li:first-child a {
    border-top: none;
}

.nav-menu ul li:last-child a,
.nav-menu .sub-menu li:last-child a {
    border-bottom: none;
}

/* 容器 */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

.blog-main {
    flex: 1;
}

/* 单篇文章样式 */
.single-post {
    background: white;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.post-header {
    padding: 40px;
    border-bottom: 1px solid #f0f0f0;
}

.post-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 0.95em;
}

.post-meta span {
    display: flex;
    align-items: center;
}

.post-thumbnail {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    padding: 40px;
    font-size: 1.05em;
    line-height: 1.8;
    color: #555;
}

.post-content h2 {
    font-size: 1.8em;
    margin: 30px 0 15px 0;
    color: #333;
}

.post-content h3 {
    font-size: 1.4em;
    margin: 25px 0 12px 0;
    color: #333;
}

.post-content h4 {
    font-size: 1.2em;
    margin: 20px 0 10px 0;
    color: #333;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    margin-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 20px 0;
    color: #666;
    font-style: italic;
}

.post-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #d63384;
}

.post-content pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.post-content pre code {
    color: #333;
    padding: 0;
    background: none;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.post-content a {
    color: #667eea;
    text-decoration: underline;
}

.post-content a:hover {
    color: #764ba2;
}

.post-footer {
    padding: 20px 40px;
    border-top: 1px solid #f0f0f0;
    background: #f9f9f9;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tag-label {
    font-weight: bold;
    color: #333;
}

.post-footer a {
    display: inline-block;
    padding: 6px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-footer a:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 文章导航 */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.nav-previous,
.nav-next {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-previous a,
.nav-next a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: #764ba2;
}

/* 评论区域 */
#comments {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

#comments h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #333;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.comment-meta {
    font-size: 0.9em;
    color: #999;
    margin-bottom: 10px;
}

.comment-content {
    color: #555;
    line-height: 1.6;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    background: #764ba2;
}

#respond {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#respond h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
}

.comment-form {
    display: flex;
    flex-direction: column;
}

.comment-form p {
    margin-bottom: 15px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1em;
}

.comment-form textarea {
    resize: vertical;
    min-height: 150px;
}

.comment-form input[type="submit"] {
    align-self: flex-start;
    padding: 10px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    background: #764ba2;
}

/* 侧边栏 */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.widget {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.widget:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

.widget-title {
    font-size: 1.2em;
    margin: 0 0 20px 0;
    color: #333;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    letter-spacing: -0.5px;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
}

.widget li:last-child {
    border-bottom: none;
}

.widget li:hover {
    padding-left: 8px;
}

.widget a {
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
}

.widget a:hover {
    color: #667eea;
    transform: translateX(4px);
}

/* 作者卡片样式 */
.author-card {
    text-align: center;
}

.author-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin: 0 auto 15px;
}

.author-card h4 {
    margin: 0 0 8px 0;
    font-size: 1.3em;
    color: #333;
}

.author-title {
    color: #667eea;
    font-weight: 700;
    margin: 0 0 12px 0;
    font-size: 0.95em;
}

.author-bio {
    color: #666;
    font-size: 0.9em;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.author-experience {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: left;
}

.author-experience h5 {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: #333;
    font-weight: 700;
}

.author-experience ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.author-experience li {
    padding: 6px 0;
    color: #666;
    font-size: 0.85em;
    line-height: 1.5;
}

.author-experience li:before {
    content: "▸ ";
    color: #667eea;
    font-weight: bold;
    margin-right: 5px;
}

.author-clients {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.author-clients h5 {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: #333;
    font-weight: 700;
}

.client-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background: white;
    color: #667eea;
    border: 1px solid #667eea;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #667eea;
    color: white;
}

/* 联系方式样式 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #f0f4ff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.contact-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
    text-align: left;
}

.contact-label {
    font-size: 0.8em;
    color: #999;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 0.95em;
    color: #333;
    font-weight: 600;
    word-break: break-all;
}

.qrcode-placeholder {
    width: 100%;
    height: 120px;
    background: white;
    border: 2px dashed #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

.qrcode-placeholder p {
    margin: 0;
    color: #999;
    font-size: 0.8em;
    font-weight: 600;
}

/* Footer 样式 */
.site-footer {
    background: #333;
    color: white;
    margin-top: 60px;
    padding: 40px 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-content p {
    margin: 0;
    color: #ccc;
}

.footer-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.footer-menu a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-menu a:hover {
    color: #667eea;
}

/* 页面样式 */
.page-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #333;
}

/* 归档页面 */
.archive-header {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.archive-title {
    font-size: 2em;
    margin-bottom: 10px;
    color: #333;
}

.archive-description {
    color: #666;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.post-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.post-item h3 {
    margin-bottom: 10px;
}

.post-item h3 a {
    color: #333;
    text-decoration: none;
}

.post-item h3 a:hover {
    color: #667eea;
}

.post-item-meta {
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.post-item-excerpt {
    color: #666;
    line-height: 1.6;
}

/* 搜索页面 */
.search-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.search-form input[type="submit"] {
    padding: 10px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.search-form input[type="submit"]:hover {
    background: #764ba2;
}

/* ========== 文档页面样式 ========== */
.document-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

.document-main {
    flex: 1;
}

.document-single {
    background: white;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 40px;
}

.document-header {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.document-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.3;
}

.document-meta-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #999;
    font-size: 0.95em;
}

.document-meta-info .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.document-featured-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 6px;
}

.document-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.document-content {
    font-size: 1.1em;
    line-height: 2;
    color: #555;
    margin-bottom: 30px;
}

.document-content h2 {
    font-size: 1.8em;
    margin: 40px 0 20px 0;
    color: #333;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.document-content h3 {
    font-size: 1.4em;
    margin: 30px 0 15px 0;
    color: #333;
}

.document-content p {
    margin-bottom: 20px;
}

.document-content ul,
.document-content ol {
    margin-bottom: 20px;
    margin-left: 30px;
}

.document-content li {
    margin-bottom: 10px;
}

.document-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 20px 0;
    color: #666;
    font-style: italic;
}

.document-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #d63384;
}

.document-content pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.document-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 6px;
}

.document-footer {
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.document-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.document-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.nav-previous,
.nav-next {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #764ba2;
}

.nav-label {
    font-size: 0.9em;
    color: #999;
}

.nav-title {
    font-weight: bold;
    color: #333;
}

.related-documents {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.related-documents h3 {
    margin-bottom: 20px;
    color: #333;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.related-item h4 {
    margin-bottom: 10px;
}

.related-item h4 a {
    color: #333;
    text-decoration: none;
}

.related-item h4 a:hover {
    color: #667eea;
}

.related-item p {
    color: #666;
    font-size: 0.95em;
    margin: 0;
}

.document-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reading-progress {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9em;
    color: #999;
}

.document-toc {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.document-toc h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1em;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-item {
    margin-bottom: 8px;
}

.toc-h2 {
    margin-left: 0;
}

.toc-h3 {
    margin-left: 15px;
}

.toc-h4 {
    margin-left: 30px;
}

.toc-item a {
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.toc-item a:hover {
    color: #667eea;
}

.document-share {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.document-share h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1em;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-btn:hover {
    background: #667eea;
    color: white;
}

.document-author {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.document-author h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1em;
}

.author-info {
    text-align: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin: 0 auto 10px;
}

.author-info h4 {
    margin-bottom: 5px;
    color: #333;
}

.author-info p {
    color: #666;
    font-size: 0.9em;
    margin: 0;
}

.documents-archive {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.document-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.document-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.document-item-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.document-item-content {
    padding: 20px;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
}

.document-thumbnail {
    width: 150px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
}

.document-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.document-excerpt {
    color: #666;
    line-height: 1.6;
}

.document-item-footer {
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #f0f0f0;
}

.read-document-btn {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.read-document-btn:hover {
    color: #764ba2;
}

/* ========== 视频页面样式 ========== */
.videos-archive {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.video-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.video-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.video-item-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #000;
}

.video-item-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2em;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.video-overlay:hover {
    background: rgba(0, 0, 0, 0.3);
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.5em;
    transition: all 0.3s ease;
}

.video-overlay:hover .play-button {
    transform: scale(1.1);
    background: white;
}

.video-item-content {
    padding: 20px;
}

.video-item-content h3 {
    margin-bottom: 10px;
    color: #333;
}

.video-item-content h3 a {
    color: #333;
    text-decoration: none;
}

.video-item-content h3 a:hover {
    color: #667eea;
}

.video-excerpt {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 15px;
    line-height: 1.6;
}

.video-item-meta {
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 0.9em;
}

/* ========== 课程页面样式 ========== */
.course-single {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 40px;
}

.course-header {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.course-title {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.course-subtitle {
    font-size: 1.1em;
    color: #666;
    margin: 0;
}

.course-featured-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 6px;
}

.course-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.course-content {
    font-size: 1.05em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.course-content h2 {
    font-size: 1.8em;
    margin: 30px 0 15px 0;
    color: #333;
}

.course-content h3 {
    font-size: 1.4em;
    margin: 25px 0 12px 0;
    color: #333;
}

.course-content p {
    margin-bottom: 20px;
}

.course-content ul,
.course-content ol {
    margin-bottom: 20px;
    margin-left: 30px;
}

.course-content li {
    margin-bottom: 10px;
}

.course-info-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.9em;
    color: #999;
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}

.course-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #764ba2;
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.course-footer {
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.related-courses {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.related-courses h3 {
    margin-bottom: 20px;
    color: #333;
}

.related-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-course-item {
    background: #f9f9f9;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-course-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.related-course-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.related-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-course-content {
    padding: 15px;
}

.related-course-content h4 {
    margin-bottom: 10px;
}

.related-course-content h4 a {
    color: #333;
    text-decoration: none;
}

.related-course-content h4 a:hover {
    color: #667eea;
}

.related-course-content p {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.view-course {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
}

.view-course:hover {
    color: #764ba2;
}

/* 课程列表页 */
.courses-archive {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.course-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.course-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

.course-item-header {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.course-item-image {
    width: 100%;
    height: 100%;
}

.course-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-item-content {
    padding: 20px;
}

.course-item-content h3 {
    margin-bottom: 10px;
    color: #333;
}

.course-item-content h3 a {
    color: #333;
    text-decoration: none;
}

.course-item-content h3 a:hover {
    color: #667eea;
}

.course-description {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 15px;
    line-height: 1.6;
}

.course-item-meta {
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.course-link {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.course-link:hover {
    color: #764ba2;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination .current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 搜索页面标题 */
.search-header {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.search-title {
    font-size: 2em;
    margin: 0;
    color: #333;
}

/* 404 页面 */
.error-404 {
    background: white;
    padding: 60px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.error-404 h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #667eea;
}

.error-404 p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
}

.error-404 .button {
    display: inline-block;
    padding: 12px 30px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.error-404 .button:hover {
    background: #764ba2;
}

/* 页面缩略图 */
.page-thumbnail {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 6px;
}

.page-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.page-content-inner {
    font-size: 1.05em;
    line-height: 1.8;
    color: #555;
}

.page-content-inner h2 {
    font-size: 1.8em;
    margin: 30px 0 15px 0;
    color: #333;
}

.page-content-inner h3 {
    font-size: 1.4em;
    margin: 25px 0 12px 0;
    color: #333;
}

.page-content-inner p {
    margin-bottom: 20px;
}

.page-content-inner ul,
.page-content-inner ol {
    margin-bottom: 20px;
    margin-left: 30px;
}

.page-content-inner li {
    margin-bottom: 10px;
}

.page-content-inner img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 6px;
}

.page-content-inner a {
    color: #667eea;
    text-decoration: underline;
}

.page-content-inner a:hover {
    color: #764ba2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .blog-container {
        padding: 10px;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .site-branding {
        flex: 1 1 auto;
        min-width: 200px;
    }
    
    .site-navigation {
        flex: 1 1 100%;
        margin: 10px 0 0 0;
        order: 3;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu a {
        padding: 12px 15px;
    }
    
    .nav-menu ul {
        position: static;
        display: none;
        box-shadow: none;
        background: #f9f9f9;
    }
    
    .nav-menu li:hover > ul {
        display: block;
    }
    
    .post-header {
        padding: 20px;
    }
    
    .post-title {
        font-size: 1.8em;
    }
    
    .post-content {
        padding: 20px;
        font-size: 1em;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    #comments,
    #respond {
        padding: 20px;
    }
    
    .post-item {
        padding: 15px;
    }
    
    .archive-header {
        padding: 20px;
    }
    
    .archive-title {
        font-size: 1.5em;
    }
    
    .page-header {
        padding: 20px;
    }
    
    .page-title {
        font-size: 1.8em;
    }
    
    .error-404 {
        padding: 40px 20px;
    }
    
    .error-404 h1 {
        font-size: 2em;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 15px;
    }
}
