/* ==================== 极繁主义风格 CSS ==================== */
/* Maximalism Design - 大胆、丰富、装饰性强 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=Zcool+KuaiLe&display=swap');

/* -------------------------- 全局基础 -------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF006E;
    --secondary-color: #FB5607;
    --accent-color: #FFBE0B;
    --purple: #8338EC;
    --blue: #3A86FF;
    --teal: #06FFB4;
    --pink: #FF99C8;
    --dark: #1a1a2e;
    --light: #FFF5F5;
    --gradient-1: linear-gradient(135deg, #FF006E 0%, #FB5607 50%, #FFBE0B 100%);
    --gradient-2: linear-gradient(45deg, #8338EC 0%, #3A86FF 50%, #06FFB4 100%);
    --pattern-dots: radial-gradient(circle, #FF006E 2px, transparent 2px);
    --pattern-lines: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,0,110,0.1) 10px, rgba(255,0,110,0.1) 20px);
}

body {
    font-family: 'Noto Serif SC', 'Microsoft YaHei', serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark);
    background: var(--light);
    background-image: 
        var(--pattern-dots),
        var(--pattern-lines);
    background-size: 30px 30px, 100% 100%;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

a:hover {
    color: var(--secondary-color);
    transform: scale(1.05);
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* -------------------------- 装饰元素 -------------------------- */
.decorative-border {
    border: 4px solid var(--primary-color);
    box-shadow: 
        4px 4px 0 var(--accent-color),
        8px 8px 0 var(--purple),
        12px 12px 0 rgba(0,0,0,0.1);
}

.decorative-pattern {
    position: relative;
}

.decorative-pattern::before {
    content: '◆ ◇ ◆';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--light);
    padding: 0 20px;
    color: var(--primary-color);
    font-size: 14px;
    letter-spacing: 10px;
}

.sticker {
    display: inline-block;
    padding: 5px 15px;
    background: var(--gradient-1);
    color: white;
    font-weight: bold;
    transform: rotate(-3deg);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
    border: 2px solid white;
}

.sticker:nth-child(even) {
    transform: rotate(2deg);
    background: var(--gradient-2);
}

/* -------------------------- 主容器 -------------------------- */
#divAll {
    max-width: 1400px;
    margin: 30px auto;
    background: white;
    border: 5px solid var(--dark);
    box-shadow: 
        0 0 0 5px var(--primary-color),
        0 0 0 10px var(--accent-color),
        0 0 0 15px var(--purple),
        20px 20px 60px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

#divAll::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        var(--primary-color) 0px,
        var(--primary-color) 20px,
        var(--accent-color) 20px,
        var(--accent-color) 40px,
        var(--purple) 40px,
        var(--purple) 60px,
        var(--blue) 60px,
        var(--blue) 80px
    );
}

#divPage {
    padding: 40px;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,0,110,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(131,56,236,0.05) 0%, transparent 50%);
}

#divMiddle {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* -------------------------- 顶部区域 -------------------------- */
#divTop {
    width: 100%;
    text-align: center;
    padding: 60px 20px 40px;
    background: var(--gradient-1);
    position: relative;
    margin-bottom: 30px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 95% 100%, 5% 100%, 0 85%);
}

#divTop::before,
#divTop::after {
    content: '✦';
    position: absolute;
    font-size: 40px;
    color: rgba(255,255,255,0.3);
    animation: sparkle 2s ease-in-out infinite;
}

#divTop::before {
    top: 20px;
    left: 10%;
}

#divTop::after {
    top: 40px;
    right: 15%;
    animation-delay: 1s;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

#BlogTitle {
    font-family: 'Zcool KuaiLe', cursive;
    font-size: 4em;
    font-weight: 900;
    margin: 0;
    text-shadow: 
        3px 3px 0 var(--purple),
        6px 6px 0 rgba(0,0,0,0.2);
    letter-spacing: 5px;
}

#BlogTitle a {
    color: white;
    text-decoration: none;
}

#BlogTitle a:hover {
    color: var(--accent-color);
}

#BlogSubTitle {
    font-size: 1.3em;
    color: rgba(255,255,255,0.9);
    margin-top: 15px;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* -------------------------- 导航栏 -------------------------- */
#divNavBar {
    width: 100%;
    background: var(--dark);
    padding: 0;
    margin: -30px 0 30px;
    position: relative;
    z-index: 10;
    transform: rotate(-1deg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

#divNavBar ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 15px;
    margin: 0;
}

#divNavBar li {
    margin: 5px;
}

#divNavBar a {
    display: block;
    padding: 12px 25px;
    color: white;
    font-weight: 600;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: transparent;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

#divNavBar a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    transition: left 0.3s ease;
    z-index: -1;
}

#divNavBar a:hover::before,
#divNavBar a.on::before {
    left: 0;
}

#divNavBar a:hover,
#divNavBar a.on {
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,0,110,0.4);
}

#divNavBar a::after {
    display: none;
}

/* -------------------------- 主内容区 -------------------------- */
#divMain {
    flex: 1;
    min-width: 0;
    padding: 20px;
}

/* 文章卡片 */
.post {
    background: white;
    margin-bottom: 40px;
    padding: 30px;
    border: 3px solid var(--dark);
    position: relative;
    box-shadow: 
        8px 8px 0 var(--primary-color),
        16px 16px 0 rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.post:hover {
    transform: translate(-4px, -4px);
    box-shadow: 
        12px 12px 0 var(--secondary-color),
        20px 20px 0 rgba(0,0,0,0.15);
}

.post::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    height: 5px;
    background: var(--gradient-1);
}

.post.multi::after {
    content: 'NEW';
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    font-size: 0.7em;
    font-weight: bold;
    transform: rotate(5deg);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.post-title {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--dark);
}

.post-title a {
    color: var(--dark);
    background: linear-gradient(120deg, transparent 0%, transparent 100%);
    background-size: 0% 40%;
    background-repeat: no-repeat;
    background-position: 0 88%;
    transition: all 0.3s ease;
}

.post-title a:hover {
    color: var(--primary-color);
    background-size: 100% 40%;
    background-image: linear-gradient(120deg, rgba(255,0,110,0.2) 0%, rgba(255,0,110,0.2) 100%);
}

.post-date {
    display: inline-block;
    background: var(--gradient-2);
    color: white;
    padding: 5px 15px;
    font-size: 0.85em;
    margin-bottom: 15px;
    transform: skewX(-10deg);
    font-weight: 600;
}

.post-body {
    font-size: 1.05em;
    line-height: 2;
    color: #444;
    margin-bottom: 20px;
}

.post-body p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px dashed #ddd;
    font-size: 0.9em;
    color: #888;
}

.post-footer::before {
    content: '❖';
    color: var(--accent-color);
    font-size: 1.2em;
}

/* -------------------------- 侧边栏 -------------------------- */
#divSidebar {
    width: 320px;
    padding: 20px;
}

.function {
    background: white;
    margin-bottom: 30px;
    border: 3px solid var(--dark);
    box-shadow: 5px 5px 0 var(--purple);
    position: relative;
}

.function::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: -5px;
    bottom: -5px;
    background: repeating-linear-gradient(
        45deg,
        var(--accent-color),
        var(--accent-color) 5px,
        transparent 5px,
        transparent 10px
    );
    z-index: -1;
    opacity: 0.5;
}

.function_t {
    background: var(--gradient-1);
    color: white;
    padding: 15px 20px;
    font-size: 1.2em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    overflow: hidden;
}

.function_t::after {
    content: '◆';
    position: absolute;
    right: 20px;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.function_c {
    padding: 20px;
}

.function ul {
    list-style: none;
}

.function li {
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
    position: relative;
    padding-left: 25px;
    transition: all 0.3s ease;
}

.function li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.function li:hover {
    padding-left: 30px;
    background: rgba(255,0,110,0.05);
}

.function li:hover::before {
    transform: translateX(5px);
    color: var(--secondary-color);
}

.function a {
    color: var(--dark);
    font-weight: 500;
}

.function a:hover {
    color: var(--primary-color);
}

/* -------------------------- 分页 -------------------------- */
.pagebar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 40px 0;
    padding: 20px;
}

.page {
    display: inline-block;
}

.page a {
    display: block;
    padding: 10px 18px;
    background: white;
    border: 2px solid var(--dark);
    color: var(--dark);
    font-weight: 600;
    box-shadow: 3px 3px 0 var(--primary-color);
    transition: all 0.2s ease;
}

.page a:hover {
    background: var(--primary-color);
    color: white;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--secondary-color);
}

.now-page a {
    background: var(--gradient-1);
    color: white;
    box-shadow: 3px 3px 0 var(--purple);
}

/* -------------------------- 详情页样式 -------------------------- */
.post.single {
    background: white;
    padding: 40px;
    border: 4px solid var(--dark);
    box-shadow: 
        10px 10px 0 var(--primary-color),
        20px 20px 0 var(--accent-color),
        30px 30px 0 rgba(0,0,0,0.1);
}

.post.single .post-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--gradient-1);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post.single .post-body {
    font-size: 1.1em;
    line-height: 2.2;
}

.post.single .post-body h2 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin: 30px 0 15px;
    padding-left: 20px;
    border-left: 5px solid var(--accent-color);
}

.post.single .post-body h3 {
    font-size: 1.3em;
    color: var(--purple);
    margin: 25px 0 10px;
}

.post.single .post-body img {
    max-width: 100%;
    height: auto;
    border: 3px solid var(--dark);
    box-shadow: 5px 5px 0 var(--primary-color);
    margin: 20px 0;
}

.post.single .post-body blockquote {
    background: linear-gradient(135deg, rgba(255,0,110,0.1) 0%, rgba(131,56,236,0.1) 100%);
    border-left: 5px solid var(--primary-color);
    padding: 20px 25px;
    margin: 20px 0;
    font-style: italic;
    position: relative;
}

.post.single .post-body blockquote::before {
    content: '"';
    font-size: 4em;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: Georgia, serif;
}

/* -------------------------- 评论区域 -------------------------- */
#divCommentPost {
    background: white;
    padding: 30px;
    margin-top: 40px;
    border: 3px solid var(--dark);
    box-shadow: 5px 5px 0 var(--blue);
}

#divCommentPost p:first-child {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

#txaArticle {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--dark);
    font-family: inherit;
    font-size: 1em;
    resize: vertical;
    transition: all 0.3s ease;
}

#txaArticle:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,0,110,0.2);
}

.button {
    display: inline-block;
    padding: 12px 35px;
    background: var(--gradient-1);
    color: white;
    border: none;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 4px 4px 0 var(--dark);
    transition: all 0.2s ease;
    margin-top: 15px;
}

.button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--purple);
}

.button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--dark);
}

/* -------------------------- 底部区域 -------------------------- */
#divBottom {
    width: 100%;
    background: var(--dark);
    color: white;
    padding: 40px;
    margin-top: 40px;
    text-align: center;
    position: relative;
}

#divBottom::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: repeating-linear-gradient(
        45deg,
        var(--primary-color),
        var(--primary-color) 10px,
        var(--accent-color) 10px,
        var(--accent-color) 20px,
        var(--purple) 20px,
        var(--purple) 30px
    );
}

#BlogCopyRight {
    font-size: 0.95em;
    line-height: 2;
}

#BlogCopyRight a {
    color: var(--accent-color);
}

#BlogCopyRight a:hover {
    color: var(--teal);
}

/* -------------------------- 动画效果 -------------------------- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-shake:hover {
    animation: shake 0.5s ease-in-out;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* -------------------------- 装饰形状 -------------------------- */
.shape-circle {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-1);
    position: absolute;
    z-index: -1;
    opacity: 0.5;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 50px solid var(--accent-color);
    position: absolute;
    z-index: -1;
    opacity: 0.5;
}

/* -------------------------- 响应式设计 -------------------------- */
@media (max-width: 1200px) {
    #divAll {
        margin: 15px;
    }
    
    #divPage {
        padding: 20px;
    }
}

@media (max-width: 992px) {
    #divMiddle {
        flex-direction: column;
    }
    
    #divMain,
    #divSidebar {
        width: 100%;
    }
    
    #divSidebar {
        padding: 20px 0;
    }
    
    #BlogTitle {
        font-size: 2.5em;
    }
    
    .post.single {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    #BlogTitle {
        font-size: 2em;
    }
    
    #divNavBar ul {
        flex-direction: column;
        align-items: center;
    }
    
    #divNavBar a {
        padding: 10px 20px;
    }
    
    .post {
        padding: 20px;
    }
    
    .post-title {
        font-size: 1.4em;
    }
}

/* -------------------------- 工具类 -------------------------- */
.clear {
    clear: both;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,0,110,0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(131,56,236,0.1) 0%, transparent 50%);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 6px;
    border: 3px solid var(--light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-2);
}
