/*
 Theme Name: My Law Firm Theme
 Template:   blankslate
*/

/* --- 全局布局 --- */
body {
    margin: 0;
    font-family: "Microsoft YaHei", "思源黑体", sans-serif; /* 设置专业字体 */
    background-color: #f4f4f4; /* 右侧内容区的背景色 */
}

.site {
    display: flex;
}

/* --- 左侧固定侧边栏 --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px; /* 侧边栏宽度 */
    height: 100vh; /* 占满整个屏幕高度 */
    background-color: #0a192f; /* 深蓝色背景 */
    color: #fff;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.site-branding {
    margin-bottom: 50px;
}
.site-branding img {
    max-width: 100%;
    height: auto;
}

/* --- 主导航 --- */
.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.main-navigation li {
    margin-bottom: 20px;
}
.main-navigation a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
    color: #fff; /* 悬停或当前项文字变白 */
}
.main-navigation .current-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #d4af37; /* 金色下划线 */
}

/* --- 侧边栏底部的小工具 --- */
.sidebar-widgets {
    margin-top: auto; /* 将这部分推到底部 */
}

/* --- 搜索框 --- */
.search-form {
    position: relative;
}
.search-field {
    width: 100%;
    background-color: #fff;
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 8px 40px 8px 15px;
    box-sizing: border-box;
    color: #333;
}
.search-submit {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0 15px;
    font-size: 18px;
    color: #0a192f;
}

.qr-code img {
    max-width: 100px;
    display: block;
    margin: 0 auto;
}


/* --- 右侧内容区 --- */
.site-content {
    margin-left: 280px; /* 留出左侧边栏的宽度 */
    width: calc(100% - 280px); /* 占据剩余的宽度 */
    position: relative;
}

.page-header-image {
    height: 300px; /* 顶部背景图高度 */
    background-size: cover;
    background-position: center;
}

.site-main {
    padding: 60px 80px; /* 内容区域的内边距 */
    background: #fff;
    min-height: calc(100vh - 300px); /* 确保内容区至少填满剩余高度 */
}

.entry-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.entry-content p {
    line-height: 1.8;
    color: #555;
    font-size: 16px;
}

#footer {
    padding: 20px 0 10px 0;
    color: rgb(173, 173, 173);
    text-align: center;
}

#footer a {
    color: rgb(173, 173, 173);
}