/*
Theme Name: 雷克物流主题
Theme URI: https://www.leikeglobal.com
Author: 雷克国际物流
Author URI: https://www.leikeglobal.com
Description: 专为雷克国际物流公司定制的WordPress主题，包含物流服务展示、运输方案优势展示、新闻动态和联系表单等功能。
Version: 1.0.0
License: GPL v2 or later
Text Domain: leikeglobal
Tags: 物流, 运输, 雷克物流, 响应式, 企业
*/

/* 基本样式在assets/css/main.css中定义 */

/* 单篇文章样式 */
.entry-header {
    margin-bottom: 2rem;
}

.entry-meta {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.post-language-switcher {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.post-language-switcher .language-label {
    font-weight: bold;
    margin-right: 0.5rem;
}

.post-language-switcher .lang-link {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0 0.25rem;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.post-language-switcher .lang-link:hover {
    background: #0073aa;
    color: white;
}

.post-thumbnail {
    margin-bottom: 2rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.wp-caption-text {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.entry-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-links {
    margin: 2rem 0;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.page-number {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin: 0 0.25rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* 文章底部样式 */
.post-taxonomies {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.taxonomy-label {
    font-weight: bold;
    margin-right: 0.5rem;
    color: #555;
}

.post-categories,
.post-tags {
    margin-bottom: 1rem;
}

.category-link,
.tag-link {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.category-link:hover,
.tag-link:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* 分享按钮 */
.post-share {
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.share-label {
    font-weight: bold;
    margin-right: 1rem;
    display: block;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
}

.share-button.facebook { background: #3b5998; }
.share-button.twitter { background: #1da1f2; }
.share-button.linkedin { background: #0077b5; }
.share-button.whatsapp { background: #25d366; }
.share-button.copy-link { 
    background: #666; 
    border: none;
    cursor: pointer;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.copy-text {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.copy-text.show {
    opacity: 1;
    visibility: visible;
}

/* 文章导航 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-previous a,
.nav-next a {
    display: inline-block;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.nav-direction {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.nav-title {
    font-weight: bold;
    font-size: 1.1rem;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: #0073aa;
}

/* 作者信息 */
.author-bio {
    display: flex;
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
    align-items: flex-start;
}

.author-avatar img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
}

.author-name {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.author-info h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #666;
}

.author-website {
    display: inline-block;
    margin-top: 1rem;
    color: #0073aa;
    text-decoration: none;
}

.author-website:hover {
    text-decoration: underline;
}

/* 相关文章 */
.related-posts {
    margin: 3rem 0;
}

.related-posts-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0073aa;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.related-post {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.related-post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.related-post-title a {
    text-decoration: none;
    color: #333;
}

.related-post-title a:hover {
    color: #0073aa;
}

.related-post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.related-post-excerpt {
    margin-bottom: 1rem;
    color: #555;
}

.related-post-read-more {
    display: inline-block;
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.related-post-read-more:hover {
    text-decoration: underline;
}

/* 评论区域 */
.comments-section {
    margin: 3rem 0;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.comment-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.comment-author .avatar {
    float: left;
    margin-right: 1rem;
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: bold;
}

.comment-metadata {
    display: block;
    margin-top: 0.25rem;
    color: #999;
}

.comment-content {
    clear: both;
}

.reply {
    margin-top: 1rem;
}

.comment-form {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
}

.comment-form p {
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.comment-form .required {
    color: #ff0000;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-previous,
    .nav-next {
        text-align: left;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        justify-content: center;
    }
}