/*=======================================
  拟物化 2.0 风格 - Skeuomorphism 2.0
  特点：细腻阴影、真实材质、3D立体感
=======================================*/

/*--------------------------
  基础重置与字体
--------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #4a4a4a;
    background: linear-gradient(135deg, #e8e4df 0%, #d4cfc7 50%, #c9c4bc 100%);
    min-height: 100vh;
    padding: 20px 0;
}

a {
    color: #6b5b4f;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #8b4513;
    text-shadow: 0 0 1px rgba(139, 69, 19, 0.3);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

ul, ol {
    list-style: none;
}

/*--------------------------
  主容器 - 皮革笔记本风格
--------------------------*/
#divAll {
    max-width: 1200px;
    margin: 30px auto;
    background: linear-gradient(145deg, #faf8f5 0%, #f5f2ed 100%);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.15),
        0 8px 25px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.8),
        inset 0 -1px 0 rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

/* 纸张纹理效果 */
#divAll::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 28px,
            rgba(139, 69, 19, 0.03) 28px,
            rgba(139, 69, 19, 0.03) 29px
        );
    pointer-events: none;
    z-index: 0;
}

#divPage {
    position: relative;
    z-index: 1;
    padding: 0;
}

#divMiddle {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
}

/*--------------------------
  顶部区域 - 木质纹理标题栏
--------------------------*/
#divTop {
    width: 100%;
    background: linear-gradient(180deg, #8b7355 0%, #6b5344 50%, #5a4539 100%);
    padding: 50px 40px 40px;
    text-align: center;
    position: relative;
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.2),
        inset 0 -2px 4px rgba(0,0,0,0.3),
        0 4px 15px rgba(0,0,0,0.2);
}

/* 木质纹理 */
#divTop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0,0,0,0.03) 2px,
            rgba(0,0,0,0.03) 4px
        );
    pointer-events: none;
}

#BlogTitle {
    font-size: 2.8em;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

#BlogTitle a {
    color: #f5f0e8;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.4),
        0 0 30px rgba(255,255,255,0.1);
    letter-spacing: 2px;
}

#BlogTitle a:hover {
    color: #fff;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.5),
        0 0 40px rgba(255,255,255,0.3);
}

#BlogSubTitle {
    font-size: 1.1em;
    color: rgba(245, 240, 232, 0.85);
    font-weight: 400;
    letter-spacing: 3px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

/*--------------------------
  导航栏 - 立体按钮风格
--------------------------*/
#divNavBar {
    width: 100%;
    background: linear-gradient(180deg, #f0ebe5 0%, #e5ddd4 100%);
    padding: 0 30px;
    border-bottom: 1px solid rgba(139, 69, 19, 0.15);
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

#divNavBar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 12px 0;
}

#divNavBar li {
    list-style: none;
}

#divNavBar a {
    display: block;
    padding: 10px 22px;
    color: #5a4a3f;
    font-weight: 500;
    font-size: 0.95em;
    background: linear-gradient(180deg, #faf8f5 0%, #ebe5dc 100%);
    border-radius: 25px;
    border: 1px solid rgba(139, 69, 19, 0.2);
    box-shadow: 
        0 3px 6px rgba(0,0,0,0.1),
        0 1px 3px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.9);
    transition: all 0.2s ease;
}

#divNavBar a:hover {
    background: linear-gradient(180deg, #fff 0%, #f5f0e8 100%);
    color: #8b4513;
    transform: translateY(-2px);
    box-shadow: 
        0 5px 12px rgba(0,0,0,0.15),
        0 2px 5px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,1);
}

#divNavBar a.on {
    background: linear-gradient(180deg, #8b7355 0%, #6b5344 100%);
    color: #fff;
    border-color: #5a4539;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.3),
        0 1px 2px rgba(255,255,255,0.3);
}

/*--------------------------
  主内容区
--------------------------*/
#divMain {
    flex: 1;
    min-width: 0;
    padding: 35px 40px 40px;
}

/*--------------------------
  文章卡片 - 凸版印刷风格
--------------------------*/
.post {
    background: linear-gradient(145deg, #fff 0%, #faf8f5 100%);
    border-radius: 16px;
    padding: 28px 30px;
    margin-bottom: 25px;
    border: 1px solid rgba(139, 69, 19, 0.1);
    box-shadow: 
        0 4px 15px rgba(0,0,0,0.06),
        0 2px 8px rgba(0,0,0,0.04),
        inset 0 1px 0 rgba(255,255,255,1);
    position: relative;
    transition: all 0.3s ease;
}

.post:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.1),
        0 4px 12px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,1);
}

/* 左侧装饰线 */
.post::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    background: linear-gradient(180deg, #c4a77d 0%, #a08060 50%, #c4a77d 100%);
    border-radius: 0 3px 3px 0;
    opacity: 0.6;
}

.post.multi {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.post.single {
    padding: 35px;
}

.post-title {
    flex: 1;
    min-width: 0;
    font-size: 1.35em;
    font-weight: 600;
    color: #4a3f35;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-title a {
    color: #5a4a3f;
    background: linear-gradient(90deg, #6b5b4f 0%, #8b7355 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-title a:hover {
    background: linear-gradient(90deg, #8b4513 0%, #a0522d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post.single .post-title {
    font-size: 1.8em;
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}

.post-date {
    font-size: 0.85em;
    color: #999;
    font-weight: 400;
    padding: 5px 0;
    margin-left: 15px;
}

.post.single .post-date {
    text-align: center;
    width: 100%;
    margin: 0 0 20px 0;
    color: #a08060;
}

.post-body {
    width: 100%;
    color: #555;
    line-height: 1.9;
    font-size: 0.98em;
}

.post-body p {
    margin-bottom: 15px;
    text-align: justify;
}

.post-body a {
    color: #8b7355;
    border-bottom: 1px dotted #c4a77d;
    transition: all 0.2s;
}

.post-body a:hover {
    color: #8b4513;
    border-bottom-style: solid;
}

.post-footer {
    width: 100%;
    font-size: 0.85em;
    color: #a09080;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(139, 69, 19, 0.15);
    text-align: right;
}

/*--------------------------
  侧边栏 - 便签风格
--------------------------*/
#divSidebar {
    width: 320px;
    padding: 35px 30px 40px 20px;
    border-left: 1px solid rgba(139, 69, 19, 0.08);
}

.function {
    background: linear-gradient(145deg, #fefdfa 0%, #f8f5f0 100%);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(139, 69, 19, 0.12);
    box-shadow: 
        0 3px 12px rgba(0,0,0,0.05),
        0 1px 5px rgba(0,0,0,0.03),
        inset 0 1px 0 rgba(255,255,255,1);
    position: relative;
}

/* 便签胶带效果 */
.function::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: linear-gradient(180deg, rgba(196, 167, 125, 0.4) 0%, rgba(196, 167, 125, 0.2) 100%);
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.function_t {
    font-size: 1.1em;
    font-weight: 600;
    color: #6b5344;
    padding: 8px 0 15px;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(139, 69, 19, 0.1);
    text-align: center;
    letter-spacing: 2px;
}

.function_c ul {
    padding: 0;
}

.function_c li {
    padding: 10px 0 10px 20px;
    border-bottom: 1px dashed rgba(139, 69, 19, 0.1);
    position: relative;
    transition: all 0.2s;
}

.function_c li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: #c4a77d;
    font-size: 0.6em;
    top: 50%;
    transform: translateY(-50%);
}

.function_c li:last-child {
    border-bottom: none;
}

.function_c li:hover {
    padding-left: 25px;
}

.function_c li:hover::before {
    color: #8b7355;
}

.function_c a {
    color: #6b5b4f;
    font-size: 0.95em;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.function_c a:hover {
    color: #8b4513;
}

/*--------------------------
  分页条 - 立体页码
--------------------------*/
.pagebar {
    text-align: center;
    padding: 30px 0;
    margin-top: 20px;
}

.page {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background: linear-gradient(180deg, #faf8f5 0%, #ebe5dc 100%);
    border: 1px solid rgba(139, 69, 19, 0.2);
    border-radius: 8px;
    color: #6b5b4f;
    font-weight: 500;
    box-shadow: 
        0 2px 5px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.9);
    transition: all 0.2s;
}

.page:hover {
    background: linear-gradient(180deg, #fff 0%, #f5f0e8 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 10px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,1);
}

.now-page {
    background: linear-gradient(180deg, #8b7355 0%, #6b5344 100%) !important;
    color: #fff !important;
    border-color: #5a4539;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.3),
        0 1px 2px rgba(0,0,0,0.1);
}

.now-page:hover {
    transform: none;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.3),
        0 1px 2px rgba(0,0,0,0.1);
}

/*--------------------------
  评论区 - 信纸风格
--------------------------*/
#divCommentPost {
    background: linear-gradient(145deg, #fefcfa 0%, #f8f5f0 100%);
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid rgba(139, 69, 19, 0.1);
    box-shadow: 
        0 4px 15px rgba(0,0,0,0.05),
        inset 0 1px 0 rgba(255,255,255,1);
}

#divCommentPost p:first-child {
    font-size: 1.1em;
    font-weight: 600;
    color: #6b5344;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(139, 69, 19, 0.1);
}

#txaArticle {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(139, 69, 19, 0.2);
    border-radius: 10px;
    background: #fff;
    font-size: 0.95em;
    line-height: 1.7;
    resize: vertical;
    box-shadow: 
        inset 0 2px 5px rgba(0,0,0,0.03),
        0 1px 0 rgba(255,255,255,1);
    transition: all 0.3s;
}

#txaArticle:focus {
    outline: none;
    border-color: #c4a77d;
    box-shadow: 
        inset 0 2px 5px rgba(0,0,0,0.05),
        0 0 0 3px rgba(196, 167, 125, 0.15);
}

.button {
    display: inline-block;
    padding: 12px 35px;
    background: linear-gradient(180deg, #8b7355 0%, #6b5344 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 
        0 4px 10px rgba(107, 83, 68, 0.3),
        0 2px 5px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.2s;
}

.button:hover {
    background: linear-gradient(180deg, #9b8365 0%, #7b634f 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 15px rgba(107, 83, 68, 0.35),
        0 3px 8px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

/*--------------------------
  底部版权区 - 深色木质感
--------------------------*/
#divBottom {
    width: 100%;
    background: linear-gradient(180deg, #5a4539 0%, #4a3529 100%);
    padding: 30px 40px;
    text-align: center;
    position: relative;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.3),
        0 -2px 8px rgba(0,0,0,0.1);
}

#divBottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

#BlogCopyRight {
    color: rgba(245, 240, 232, 0.8);
    font-size: 0.9em;
    line-height: 1.8;
}

#BlogCopyRight a {
    color: rgba(245, 240, 232, 0.9);
    border-bottom: 1px dotted rgba(245, 240, 232, 0.3);
}

#BlogCopyRight a:hover {
    color: #fff;
    border-bottom-style: solid;
}

/*--------------------------
  响应式适配
--------------------------*/
@media (max-width: 992px) {
    #divAll {
        margin: 15px;
        border-radius: 16px;
    }
    
    #divTop {
        padding: 35px 25px 30px;
    }
    
    #BlogTitle {
        font-size: 2.2em;
    }
    
    #divNavBar {
        padding: 0 20px;
    }
    
    #divNavBar a {
        padding: 8px 16px;
        font-size: 0.9em;
    }
    
    #divMain {
        width: 100%;
        padding: 25px;
    }
    
    #divSidebar {
        width: 100%;
        padding: 0 25px 30px;
        border-left: none;
        border-top: 1px solid rgba(139, 69, 19, 0.08);
    }
    
    .function {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px 0;
    }
    
    #divAll {
        margin: 10px;
        border-radius: 12px;
    }
    
    #divTop {
        padding: 25px 20px;
    }
    
    #BlogTitle {
        font-size: 1.8em;
    }
    
    #BlogSubTitle {
        font-size: 0.95em;
    }
    
    #divNavBar ul {
        justify-content: center;
    }
    
    .post {
        padding: 20px;
    }
    
    .post-title {
        font-size: 1.15em;
    }
}

/*--------------------------
  清除浮动
--------------------------*/
.clear {
    clear: both;
}
