/**
 * 麦豆GEO WordPress主题 - 额外样式
 * 文章/页面内页样式补充
 */

/* ========================================
   Entry Content (Single Post)
   ======================================== */
.entry-header {
    margin-bottom: 2rem;
}

.entry-thumbnail {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
}

.entry-thumbnail img {
    width: 100%;
    height: auto;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.entry-meta svg {
    color: var(--text-muted);
}

.entry-content-body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.entry-content-body h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
}

.entry-content-body h3 {
    font-size: 1.375rem;
    margin: 2rem 0 0.75rem;
}

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

.entry-content-body ul,
.entry-content-body ol {
    margin: 1rem 0 1.25rem;
    padding-left: 1.5rem;
}

.entry-content-body ul {
    list-style: disc;
}

.entry-content-body ol {
    list-style: decimal;
}

.entry-content-body li {
    margin-bottom: 0.5rem;
}

.entry-content-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--background);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.entry-content-body img {
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.entry-content-body code {
    background: var(--background);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875em;
}

.entry-content-body pre {
    background: var(--text-primary);
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.entry-content-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.entry-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-link {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--background);
    border-radius: 50px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.tag-link:hover {
    background: var(--primary);
    color: var(--white);
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.post-navigation a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.post-navigation a:hover {
    color: var(--primary);
}

.post-navigation .nav-previous {
    justify-self: start;
}

.post-navigation .nav-next {
    justify-self: end;
}

/* Widget Styles */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.widget a:hover {
    color: var(--primary);
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-form input[type="search"]:focus {
    border-color: var(--primary);
}

.search-form input[type="submit"] {
    padding: 0.625rem 1.25rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-form input[type="submit"]:hover {
    background: var(--primary-dark);
}

/* Comment Form */
.comment-respond {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--background);
    border-radius: var(--radius-lg);
}

.comment-form-comment textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9375rem;
    resize: vertical;
    min-height: 120px;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9375rem;
}

@media (max-width: 768px) {
    .entry-title {
        font-size: 1.75rem;
    }
    
    .entry-meta {
        gap: 1rem;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
}
