/*
Theme Name: ss Academic
Theme URI: https://example.com
Author: Shuang
Description: A clean, minimal, academic-style theme.
Version: 1.0
Text Domain: minimal-academic
*/

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    color: #333333;
    background-color: #ffffff;
    line-height: 1.7;
}

a {
    color: #1f3a93;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 布局：内容 + 右侧栏 */
.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(260px, 1fr);
    gap: 40px;
}

@media (max-width: 800px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}

/* 首页头像 + 简介布局 */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) 140px;
    gap: 24px;
    align-items: start;
}

.hero-avatar {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .hero-avatar {
        justify-self: start;
    }
}

h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}

h2 {
    font-size: 22px;
    font-weight: 500;
    margin-top: 32px;
    margin-bottom: 12px;
    color: #1f3a93;
}

h3 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 8px;
}

/* 文章列表 */
.post-item {
    margin-bottom: 32px;
}

.post-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.post-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 8px;
}

/* 右侧栏 */
.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.sidebar-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.sidebar-section li {
    margin-bottom: 6px;
    font-size: 14px;
}

/* 搜索框 */
.sidebar-section .search-form input[type="search"] {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* 页脚 */
.site-footer {
    border-top: 1px solid #eee;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 14px;
    color: #777;
}

.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.widget_calendar caption {
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f3a93;
}

.widget_calendar th {
    padding: 6px;
    color: #555;
}

.widget_calendar td {
    padding: 6px;
    text-align: center;
}

.widget_calendar td#today {
    background-color: #1f3a93;
    color: white;
    border-radius: 4px;
}

/* 首页头像右侧环绕布局 */
.homepage-intro {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px;
}

.intro-avatar {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    float: right;
    margin-left: 24px;
    margin-bottom: 12px;
}

/* 右侧栏标题与内容的间距优化 */
.sidebar-section h3 {
    margin-bottom: 8px !important; /* 默认一般是 20-30px */
}

.sidebar-section ul {
    margin-top: 0 !important;
}

.sidebar-section {
    margin-bottom: 20px; /* 控制每个版块之间的距离 */
}

/* 标签云样式优化 */
.wp-block-tag-cloud a {
    font-size: 12px !important;   /* 字体变小 */
    padding: 2px 6px !important;  /* 内边距更紧凑 */
    border: none !important;      /* 去掉 Outline 边框 */
    background: none !important;  /* 去掉背景 */
    color: #1f3a93 !important;    /* 冷蓝点缀 */
    text-decoration: none;
}

.wp-block-tag-cloud a:hover {
    text-decoration: underline;
}
.wp-block-tag-cloud {
    line-height: 1.4;
}

