/* 生物形态设计 - 沙色主题 */
:root {
    --sand-light: #F5E8D0;
    --sand-medium: #E1C9A9;
    --sand-dark: #D2B48C;
    --accent-color: #A78A7F;
    --text-color: #5A4A42;
    --shadow: 0 4px 15px rgba(90, 74, 66, 0.1);
    --radius-organic: 12px 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--sand-light);
    color: var(--text-color);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--text-color);
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 生物形态头部设计 */
header {
    background-color: var(--sand-medium);
    padding: 25px 0;
    border-radius: 0 0 var(--radius-organic);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    padding-left: 15px;
}

.logo::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    background-color: rgba(167, 138, 127, 0.1);
}

nav ul li a:hover {
    background-color: var(--accent-color);
    color: var(--sand-light);
    text-decoration: none;
}

/* 主要内容区域 - 有机形状 */
.main-content {
    background-color: white;
    border-radius: var(--radius-organic);
    padding: 35px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: var(--sand-dark);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

.section-title {
    font-size: 26px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--sand-medium);
    position: relative;
    color: var(--text-color);
    z-index: 1;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background-color: var(--accent-color);
}

/* 生物形态文章卡片 */
.article-flow {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.article-bubble {
    background-color: white;
    border-radius: 15px 15px 30px 15px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid var(--sand-medium);
    position: relative;
    z-index: 1;
}

.article-bubble:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 10px 25px rgba(90, 74, 66, 0.15);
}

.bubble-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--sand-medium);
}

.bubble-content {
    padding: 20px;
}

.bubble-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bubble-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--accent-color);
    margin-top: 15px;
    align-items: center;
}

/* 分类标签 - 有机形状 */
.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--sand-medium);
    color: var(--text-color);
    border-radius: 15px 5px 15px 5px;
    font-size: 12px;
    margin-bottom: 15px;
}

/* 文章详情页样式 */
.article-organism {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.article-title {
    font-size: 34px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--sand-medium);
    border-radius: 3px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--accent-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--radius-organic);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--sand-medium);
}

.article-content {
    line-height: 1.8;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 20px 0;
    border: 1px solid var(--sand-medium);
}

/* 分页导航 - 有机形状 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border-radius: 20px 5px 20px 5px;
    background-color: var(--sand-medium);
    color: var(--text-color);
    transition: all 0.3s;
    border: 1px solid var(--sand-dark);
}

.pagination a:hover {
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
}

/* 友情链接 - 气泡样式 */
.friend-links {
    background-color: white;
    border-radius: var(--radius-organic);
    padding: 30px;
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 22px;
}

.friend-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-bubbles a {
    padding: 8px 18px;
    background-color: var(--sand-medium);
    border-radius: 15px 5px 15px 5px;
    font-size: 14px;
    color: var(--text-color);
    transition: all 0.3s;
    border: 1px solid var(--sand-dark);
}

.friend-bubbles a:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    text-decoration: none;
}

/* 页脚样式 - 波浪形状 */
footer {
    background-color: var(--sand-dark);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    position: relative;
    color: white;
}

footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%23D2B48C"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%23E1C9A9"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23F5E8D0"/></svg>');
    background-size: cover;
}

.copyright {
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .article-flow {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        gap: 15px;
    }
}