/* ===== 兰迪律师事务所博客 - 深色主题 ===== */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0e1a;
    color: #d4d4d8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.8;
}

/* 链接 */
a {
    color: #d4a853;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #c49a47;
    text-decoration: underline;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 头部 ===== */
#header {
    background: #0d1220;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 30px 0;
    margin-bottom: 30px;
}

#logo {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    text-decoration: none;
}

#logo:hover {
    color: #d4a853;
    text-decoration: none;
}

.description {
    color: #9ca3af;
    font-size: 14px;
    margin-top: 8px;
}

/* ===== 导航菜单 ===== */
#nav-menu {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

#nav-menu a {
    color: #9ca3af;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    margin-right: 5px;
}

#nav-menu a:hover,
#nav-menu .current {
    color: #d4a853;
    background: rgba(212, 168, 83, 0.1);
    text-decoration: none;
}

/* ===== 主体布局 ===== */
.main {
    display: flex;
    gap: 30px;
}

.content {
    flex: 1;
    min-width: 0;
}

/* ===== 文章列表 ===== */
.post {
    background: #1a1f35;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.post:hover {
    border-color: rgba(212, 168, 83, 0.2);
}

.post-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-title a {
    color: #ffffff;
    text-decoration: none;
}

.post-title a:hover {
    color: #d4a853;
    text-decoration: none;
}

.post-meta {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 15px;
}

.post-meta a {
    color: #d4a853;
}

.post-meta span {
    margin-right: 15px;
}

.post-content {
    color: #d4d4d8;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 15px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: #ffffff;
    margin: 25px 0 15px;
}

.post-content h2 {
    font-size: 20px;
    border-left: 3px solid #d4a853;
    padding-left: 12px;
}

.post-content h3 {
    font-size: 18px;
}

.post-content ul,
.post-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    background: rgba(212, 168, 83, 0.05);
    border-left: 3px solid #d4a853;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.post-content code {
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.post-content pre {
    background: #0d1220;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.post-content pre code {
    background: none;
    padding: 0;
}

/* 阅读更多链接 */
.more a {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(212, 168, 83, 0.1);
    color: #d4a853;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    margin-top: 15px;
    transition: all 0.3s;
}

.more a:hover {
    background: #d4a853;
    color: #0a0e1a;
    text-decoration: none;
}

/* ===== 分页 ===== */
.page-navigator {
    list-style: none;
    text-align: center;
    margin: 40px 0;
    padding: 0;
}

.page-navigator li {
    display: inline-block;
    margin: 0 5px;
}

.page-navigator a,
.page-navigator .current {
    display: inline-block;
    padding: 8px 16px;
    background: #1a1f35;
    border: 1px solid rgba(255,255,255,0.06);
    color: #9ca3af;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.page-navigator .current {
    background: #d4a853;
    color: #0a0e1a;
    border-color: #d4a853;
}

.page-navigator a:hover {
    background: #222942;
    color: #ffffff;
}

/* ===== 侧边栏 ===== */
#sidebar {
    width: 300px;
    flex-shrink: 0;
}

.widget {
    background: #1a1f35;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.widget-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.widget-list {
    list-style: none;
}

.widget-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.widget-list li a:hover {
    color: #d4a853;
}

/* 搜索框 */
#search input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ffffff;
    border-radius: 8px;
    padding: 10px 14px;
    outline: none;
}

#search input::placeholder {
    color: #6b7280;
}

/* ===== 文章页（post.php）===== */
/* 与列表页文章样式共享 */

/* 评论区 */
#comments {
    background: #1a1f35;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
}

.response {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.comment-list {
    list-style: none;
}

.comment-list li {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.comment-list li:last-child {
    border-bottom: none;
}

.comment-author {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 5px;
}

.comment-meta {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 10px;
}

.comment-content {
    color: #d4d4d8;
    line-height: 1.6;
}

/* 评论表单 */
textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ffffff;
    border-radius: 8px;
    padding: 12px;
    resize: vertical;
    outline: none;
    font-family: inherit;
}

input[type="text"],
input[type="email"],
input[type="url"] {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ffffff;
    border-radius: 8px;
    padding: 10px 14px;
    outline: none;
}

.submit {
    background: #d4a853;
    color: #0a0e1a;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit:hover {
    background: #c49a47;
}

/* ===== 页脚 ===== */
#footer {
    background: #0d1220;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: #6b7280;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    font-size: 13px;
}

#footer a {
    color: #9ca3af;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .main {
        flex-direction: column;
    }
    
    #sidebar {
        width: 100%;
    }
    
    .post {
        padding: 20px;
    }
}
/* ===== 文章列表 - 紧凑样式 ===== */

.post-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1f35;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 18px 24px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.post-list-item:hover {
    border-color: rgba(212, 168, 83, 0.2);
    background: #222942;
}

.post-list-main {
    flex: 1;
    min-width: 0;
}

.post-list-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.post-list-title a {
    color: #ffffff;
    text-decoration: none;
}

.post-list-title a:hover {
    color: #d4a853;
    text-decoration: none;
}

.post-list-meta {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 15px;
}

.post-list-date {
    color: #6b7280;
}

.post-list-category a {
    color: #d4a853;
    text-decoration: none;
}

.post-list-category a:hover {
    text-decoration: underline;
}

.post-list-author {
    color: #6b7280;
}

.post-list-arrow {
    color: #6b7280;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}

.post-list-item:hover .post-list-arrow {
    color: #d4a853;
}

.post-list-empty {
    color: #6b7280;
    text-align: center;
    width: 100%;
    margin: 0;
}

/* 分页样式优化 */
.page-navigator {
    list-style: none;
    text-align: center;
    margin: 30px 0;
    padding: 0;
}

.page-navigator li {
    display: inline-block;
    margin: 0 4px;
}

.page-navigator a,
.page-navigator .current {
    display: inline-block;
    padding: 8px 16px;
    background: #1a1f35;
    border: 1px solid rgba(255,255,255,0.06);
    color: #9ca3af;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.page-navigator .current {
    background: #d4a853;
    color: #0a0e1a;
    border-color: #d4a853;
}

.page-navigator a:hover {
    background: #222942;
    color: #ffffff;
}