/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 使用 flex 布局，让侧边栏自动撑开 */
body {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    min-height: 100vh;
}

/* 右侧导航栏：顺序在内容区之后，宽度由内容决定，右对齐，背景与 body 一致 */
.sidebar {
    order: 2;
    background: #fafafa;
    padding: 0.75rem 1rem 0 0.5rem;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

.sidebar .logo {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    display: inline-block;
    text-decoration: none;
    color: #333;
}
.sidebar .logo:hover {
    color: #000;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav ul li {
    margin-bottom: 0;
    line-height: 1.2;
}

.sidebar nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: normal;
    font-size: 1rem;
    transition: color 0.2s;
}

.sidebar nav ul li a:hover {
    color: #000;
}

/* 主要内容区域：占满剩余空间，右侧不留 padding */
.main-content {
    flex: 1;
    order: 1;
    padding: 0.75rem 0 2rem 3rem;
    max-width: 100%;
}

/* 页面标题 */
.page-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

/* 首页图片 */
.home-image {
    display: block;
    width: 40%;
    max-width: 500px;
    height: auto;
    margin: 10vh 0 0 0;
    border-radius: 4px;
}

/* 文章/发行列表项 —— 去掉分割线，缩小行距 */
.post-item {
    margin-bottom: 0.5rem;
    border-bottom: none;
    padding-bottom: 0;
}

.post-item h2 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: normal;
}

.post-item h2 a {
    text-decoration: none;
    color: #222;
}

.post-item h2 a:hover {
    text-decoration: underline;
}

.post-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.about-content p {
    margin-bottom: 1rem;
}

/* release 页面链接样式 */
.release-link {
    text-decoration: none;
    color: #333;
}
.release-link:hover {
    text-decoration: underline;
}
.blue-text {
    color: #0066cc;
}

/* ===== 新增：未发行文字灰色（全局生效） ===== */
.unreleased {
    color: #999 !important;   /* 灰色，使用 !important 确保优先级 */
}

/* 详情页样式（左右对齐容器等） */
.release-detail p {
    margin-bottom: 1.2rem;
}
.custom-list {
    padding-left: 0;
    list-style-position: inside;
    margin-bottom: 1.2rem;
}
.custom-list li {
    margin-bottom: 0.25rem;
}

/* 响应式：小屏幕时改为上下布局 */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        order: 1;
        width: 100%;
        white-space: normal;
        padding: 0.75rem 1rem;
        text-align: right;
        background: #fafafa;
    }
    .main-content {
        order: 2;
        padding: 1.5rem;
    }
    .sidebar nav ul {
        display: flex;
        gap: 1rem;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
    .sidebar .logo {
        margin-bottom: 0.5rem;
    }
    .home-image {
        width: 90%;
        margin-top: 10vh;
    }
    /* 媒体查询内不再需要 .unreleased 了，因为已移到全局 */
}