/* 踌躇风格全局样式 */
:root {
    --primary-color: #9a8fdd;
    --secondary-color: #c4b9f8;
    --accent-color: #b5ead7;
    --bg-color: #f9f7fe;
    --text-color: #5a5678;
    --light-gray: #e4e1f6;
    --year: "2088"; /* 将通过JS动态更新 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* 踌躇风格特有的不对称边框 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 15px solid transparent;
    border-image: linear-gradient(135deg, var(--primary-color), var(--accent-color)) 1;
    pointer-events: none;
    z-index: 1000;
    mix-blend-mode: multiply;
    opacity: 0.15;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

a:hover {
    color: var(--primary-color);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

/* 踌躇风格头部 - 不对称浮动效果 */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(154, 143, 221, 0.1);
    transform: rotate(0.5deg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
    transform: skewX(-5deg);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.4s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 踌躇风格主要内容区域 */
.main-content {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 5px 5px 15px rgba(154, 143, 221, 0.08);
    transform: rotate(-0.3deg);
    transition: transform 0.4s ease;
}

.main-content:hover {
    transform: rotate(0deg);
}

.section-title {
    font-size: 26px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
    color: var(--primary-color);
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 3px;
}

/* 踌躇风格文章网格 - 不对称排列 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 3px 3px 10px rgba(154, 143, 221, 0.1);
    transform: rotate(0.7deg);
    position: relative;
}

.article-card:nth-child(even) {
    transform: rotate(-0.5deg);
}

.article-card:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 5px 10px 20px rgba(154, 143, 221, 0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .card-image {
    transform: scale(1.03);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-color);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--primary-color);
    margin-top: 15px;
}

/* 踌躇风格分类标签 */
.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 15px;
    position: absolute;
    top: 15px;
    right: 15px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* 文章详情页踌躇风格 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    transform: rotate(0.3deg);
}

.article-title {
    font-size: 34px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--text-color);
    font-weight: 700;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--primary-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 5px 5px 15px rgba(154, 143, 221, 0.2);
    transform: rotate(-0.5deg);
    transition: transform 0.4s ease;
}

.article-image:hover {
    transform: rotate(0deg);
}

.article-content {
    line-height: 1.9;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 3px 3px 10px rgba(154, 143, 221, 0.1);
}

/* 踌躇风格分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    border-radius: 30px;
    background-color: white;
    border: 1px solid var(--light-gray);
    transition: all 0.4s ease;
    font-weight: 500;
}

.pagination a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

/* 友情链接踌躇风格 */
.friend-links {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 3px 3px 10px rgba(154, 143, 221, 0.1);
    transform: rotate(0.2deg);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 22px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-container a {
    padding: 8px 18px;
    background-color: var(--bg-color);
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

.friend-links-container a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: transparent;
}

/* 踌躇风格页脚 */
footer {
    background-color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
    box-shadow: 0 -2px 15px rgba(154, 143, 221, 0.1);
}

.copyright {
    font-size: 14px;
    color: var(--text-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .main-content {
        padding: 25px;
    }
}

/* 踌躇风格特有的浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0.5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-0.5deg);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}