/* TEM2 模板样式 - 现代简洁风格 */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;   
    line-height: 1.6;
    color: #2d5a27;
    background: linear-gradient(135deg, #f8faf8 0%, #f0f8f0 50%, #e8f5e8 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 - 养生风格 */
.header {
    background: linear-gradient(135deg, #ffffff 0%, #f8faf8 100%);
    color: #2d5a27;
    padding: 18px 0;
    box-shadow: 0 2px 15px rgba(45,90,39,0.1);
    border-bottom: 3px solid #e8f5e8;
}

.header-content {
    display: flex;
    justify-content: space-between !important;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo a {
    text-decoration: none;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #2d5a27;
    text-decoration: none;
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.logo-text:hover {
    background: linear-gradient(135deg, #4a7c59 0%, #6b8e6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.05);
}

.search-box {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 12px 18px;
    border: 2px solid #e8f5e8;
    border-radius: 25px 0 0 25px;
    width: 300px;
    font-size: 14px;
    outline: none;
    background: #f8faf8;
    color: #2d5a27;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #4a7c59;
    background: white;
    box-shadow: 0 0 0 3px rgba(74,124,89,0.1);
}

.search-btn {
    padding: 12px 22px;
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(45,90,39,0.3);
}

.search-btn:hover {
    background: linear-gradient(135deg, #4a7c59 0%, #6b8e6b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45,90,39,0.4);
}

/* 主导航菜单 - 养生风格 */
.main-nav {
    background: linear-gradient(135deg, #f8faf8 0%, #f0f8f0 100%);
    border-bottom: 2px solid #e8f5e8;
    padding: 20px 0;
    position: relative;
}

.main-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2d5a27 0%, #4a7c59 50%, #6b8e6b 100%);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    flex: 1;
    margin-left: 30px;
    max-width: calc(100% - 200px);
    min-width: 0;
}

.site-title {
    font-size: 26px;
    font-weight: 700;
    color: #2d5a27;
    text-shadow: 0 1px 2px rgba(45,90,39,0.1);
    white-space: nowrap;
    flex-shrink: 0;
}

.site-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: #4a7c59;
}

.nav-container {
    display: flex;
    align-items: center;
    position: relative;
    gap: 15px;
}

.nav-wrapper {
    overflow: hidden;
    flex: 1;
    padding: 5px 0;
    max-width: 100%;
    min-width: 0;
}

.nav-wrapper::-webkit-scrollbar {
    display: none;
}

.nav-list {
    display: flex;
    list-style: none;
    white-space: nowrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    align-items: center;
    transition: transform 0.3s ease;
}

.nav-item {
    margin: 0;
}

.nav-item a {
    display: block;
    padding: 14px 22px;
    text-decoration: none;
    color: #2d5a27;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    border: 2px solid transparent;
}

.nav-item a:hover {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    color: #4a7c59;
    border-color: #d4e6d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45,90,39,0.2);
}

.nav-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-item a:hover::before {
    opacity: 0.1;
}

/* 导航菜单项样式 - 兼容navbar-item类名 */
.navbar-item {
    margin: 0;
}

.navbar-item a {
    display: block;
    padding: 14px 22px;
    text-decoration: none;
    color: #2d5a27;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    border: 2px solid transparent;
}

.navbar-item a:hover {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    color: #4a7c59;
    border-color: #d4e6d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45,90,39,0.2);
}

.navbar-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.navbar-item a:hover::before {
    opacity: 0.1;
}

.nav-arrow {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border: 2px solid #d4e6d4;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2d5a27;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(45,90,39,0.1);
    position: absolute;
    z-index: 10;
}

.nav-arrow:hover {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    color: white;
    border-color: #2d5a27;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45,90,39,0.3);
}

.nav-arrow-left {
    left: -50px;
}

.nav-arrow-right {
    right: -50px;
}

/* 面包屑导航 - 养生风格 */
.breadcrumb {
    background: linear-gradient(135deg, #f8faf8 0%, #f0f8f0 100%);
    padding: 18px 0;
    border-bottom: 2px solid #e8f5e8;
}

.breadcrumb-content {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb-content a {
    color: #4a7c59;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.breadcrumb-content a:hover {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    color: #2d5a27;
    transform: translateY(-1px);
}

.separator {
    margin: 0 12px;
    color: #7a8a7a;
    font-weight: 600;
}

.current {
    color: #2d5a27;
    font-weight: 600;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    padding: 6px 12px;
    border-radius: 15px;
    border: 1px solid #d4e6d4;
    font-weight: 500;
}

/* 主要内容区域 */
.main-content {
    padding: 30px 0;
}

/* 旧的布局样式已删除，使用新的网格布局 */

/* 文章列表 */
.article-list {
    list-style: none;
}

.article-item {
    padding: 20px 0;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover {
    background: #f8f9fa;
    margin: 0 -25px;
    padding: 20px 25px;
    border-radius: 8px;
}

.article-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.article-date {
    background: #667eea;
    color: white;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.article-info {
    flex: 1;
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: #667eea;
}

.article-excerpt {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

/* 分页 */
.pagination {
    padding: 25px;
    text-align: center;
    background: #f8f9fa;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination .current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 右侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.sidebar-box .box-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    color: white;
    padding: 15px 20px;
}

.sidebar-box .box-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.sidebar-box .box-content {
    padding: 20px;
}

/* 旧的侧边栏样式已删除，使用新的底部侧边栏样式 */

/* 旧的侧边栏悬停样式已删除 */

/* 顶部横幅区域 - 养生风格 */
.hero-section {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 50%, #6b8e6b 100%);
    color: white;
    padding: 50px 0;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="leaf" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M10,2 C6,8 6,12 10,18 C14,12 14,8 10,2 Z" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23leaf)"/></svg>');
    opacity: 0.3;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 15px 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.95;
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

/* 网格布局区域 */
.grid-section {
    margin-bottom: 40px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* 网格卡片样式 - 养生风格 */
.grid-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(45,90,39,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #e8f5e8;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

.grid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2d5a27 0%, #4a7c59 50%, #6b8e6b 100%);
}

.grid-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(45,90,39,0.2);
    border-color: #4a7c59;
}

.card-image {
    height: 140px;
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 50%, #6b8e6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.06)"/><circle cx="70" cy="80" r="2.5" fill="rgba(255,255,255,0.05)"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateX(-50px) translateY(-50px); }
    100% { transform: translateX(50px) translateY(50px); }
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: none;
    border: none;
    position: relative;
    z-index: 1;
}

.image-text {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-content {
    padding: 20px;
}

.card-date {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    color: #2d5a27;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
    border: 1px solid #d4e6d4;
}

.card-title {
    margin: 0 0 12px 0;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    color: #2d5a27;
}

.card-title a {
    color: #2d5a27;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #4a7c59;
}

.card-excerpt {
    color: #5a6b5a;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 18px 0;
    font-style: italic;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #7a8a7a;
}

.card-views {
    background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
    color: #4a7c59;
    padding: 6px 12px;
    border-radius: 15px;
    border: 1px solid #d4e6d4;
    font-weight: 500;
}

/* 底部侧边栏区域 */
.bottom-sidebar {
    margin-top: 40px;
}

.sidebar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.sidebar-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(45,90,39,0.1);
    overflow: hidden;
    border: 2px solid #e8f5e8;
    position: relative;
}

.sidebar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2d5a27 0%, #4a7c59 50%, #6b8e6b 100%);
}

.card-header {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 50%, #6b8e6b 100%);
    color: white;
    padding: 18px 20px;
    position: relative;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10,20 Q20,10 30,20 Q40,30 50,20 Q60,10 70,20 Q80,30 90,20" stroke="rgba(255,255,255,0.1)" stroke-width="1" fill="none"/></svg>');
    opacity: 0.5;
}

.card-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 1;
    color: white;
}

.card-content {
    padding: 20px;
}

/* 底部侧边栏项目样式 */
.sidebar-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.sidebar-item:hover {
    background: #f8f9ff;
    padding-left: 8px;
    border-radius: 6px;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.item-number, .item-rank {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(45,90,39,0.3);
}

.item-content {
    flex: 1;
}

.item-title {
    color: #2d5a27;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.item-title:hover {
    color: #4a7c59;
}

.item-date {
    color: #7a8a7a;
    font-size: 12px;
    font-style: italic;
}

/* 文章详情页 */
.article-detail {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.article-header {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 50%, #6b8e6b 100%);
    color: white;
    padding: 30px 25px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="leaf" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M10,2 C6,8 6,12 10,18 C14,12 14,8 10,2 Z" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23leaf)"/></svg>');
    opacity: 0.3;
}

.article-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.article-meta {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 1;
    font-size: 14px;
    opacity: 0.9;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item a {
    color: white;
    text-decoration: none;
}

.meta-item a:hover {
    text-decoration: underline;
}

/* 文章内容 */
.article-content {
    padding: 30px 25px;
    font-size: 16px;
    line-height: 1.8;
    color: #2c3e50;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    color: #2c3e50;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 文章标签 */
.article-tags {
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8faf8 0%, #f0f8f0 100%);
    border-top: 1px solid #e8f5e8;
}

.tag-label {
    font-weight: 600;
    color: #2d5a27;
    margin-right: 10px;
}

.article-tags a {
    display: inline-block;
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    margin: 2px 5px 2px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(45,90,39,0.2);
}

.article-tags a:hover {
    background: linear-gradient(135deg, #4a7c59 0%, #6b8e6b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(45,90,39,0.3);
}

/* 标签样式 */
.tag {
    display: inline-block;
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    margin: 2px 5px 2px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(45,90,39,0.2);
}

.tag:hover {
    background: linear-gradient(135deg, #4a7c59 0%, #6b8e6b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(45,90,39,0.3);
}

/* 文章导航 */
.article-navigation {
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8faf8 0%, #f0f8f0 100%);
    border-top: 1px solid #e8f5e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 15px 15px;
    margin-top: 20px;
}

/* 上一篇/下一篇导航样式 */
.prev-page, .next-page {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 45%;
}

.prev-page {
    justify-content: flex-start;
}

.next-page {
    justify-content: flex-end;
    text-align: right;
}

.prev-page span, .next-page span {
    color: #2d5a27;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.prev-page a, .next-page a {
    color: #2d5a27;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(45,90,39,0.1);
    border: 1px solid rgba(45,90,39,0.2);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.prev-page a:hover, .next-page a:hover {
    color: #4a7c59;
    background: rgba(45,90,39,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(45,90,39,0.2);
}

/* 兼容旧的nav-link样式 */
.nav-link {
    color: #2d5a27;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(45,90,39,0.1);
}

.nav-link:hover {
    color: #4a7c59;
    background: rgba(45,90,39,0.2);
    transform: translateY(-2px);
}

.nav-link.disabled {
    color: #6c757d;
    cursor: not-allowed;
}

/* 相关推荐 - tem2 风格 */
.related-articles {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8faf8 0%, #f0f8f0 100%);
    border-radius: 15px;
    border: 2px solid #e8f5e8;
    box-shadow: 0 4px 20px rgba(45,90,39,0.1);
}

.related-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d5a27;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

.related-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    border-radius: 2px;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.related-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(45,90,39,0.08);
    border: 1px solid #e8f5e8;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.related-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2d5a27 0%, #4a7c59 50%, #6b8e6b 100%);
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(45,90,39,0.15);
    border-color: #4a7c59;
}

.related-item a {
    color: #2d5a27;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.5;
    display: block;
    transition: color 0.3s ease;
}

.related-item a:hover {
    color: #4a7c59;
}

.related-date {
    color: #6b8e6b;
    font-size: 12px;
    margin-top: 8px;
    font-weight: 400;
}

/* 十二生肖运势导航 */
.zodiac-fortunes-nav {
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.fortune-nav-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fortune-nav-item {
    background: white;
    color: #495057;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #dee2e6;
    transition: all 0.3s;
}

.fortune-nav-item:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.fortune-nav-item.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.footer-info p {
    margin-bottom: 8px;
    color: #bdc3c7;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #bdc3c7;
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 8px;
}

.footer-bottom a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #4a7c59;
}

/* 黄帝内经内容线框样式 */
.article-content fieldset {
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    margin: 20px 0;
    padding: 0;
    background: #fafafa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.article-content fieldset:hover {
    border-color: #4a7c59;
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.15);
}

.article-content fieldset legend {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 20px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.article-content .layui-field-box {
    padding: 20px;
    background: white;
    border-radius: 0 0 6px 6px;
    line-height: 1.8;
    color: #333;
}

.article-content .layui-field-box p {
    margin-bottom: 15px;
    text-indent: 2em;
    font-size: 15px;
    color: #444;
}

.article-content .layui-field-box p:last-child {
    margin-bottom: 0;
}

/* 原文和译文的区分样式 */
.article-content fieldset:first-of-type {
    border-color: #4a7c59;
}

.article-content fieldset:first-of-type legend {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
}

.article-content fieldset:last-of-type {
    border-color: #6b8e6b;
}

.article-content fieldset:last-of-type legend {
    background: linear-gradient(135deg, #4a7c59 0%, #6b8e6b 100%);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-content fieldset {
        margin: 15px 0;
        border-radius: 6px;
    }
    
    .article-content fieldset legend {
        font-size: 13px;
        padding: 6px 12px;
        margin-left: 15px;
        border-radius: 15px;
    }
    
    .article-content .layui-field-box {
        padding: 15px;
    }
    
    .article-content .layui-field-box p {
        font-size: 14px;
        text-indent: 1.5em;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-input {
        width: 100%;
        max-width: 300px;
    }
    
    .nav-content {
        flex-direction: row;
        gap: 15px;
        align-items: center;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    /* 旧的content-layout样式已删除 */
    
    .article-meta {
        flex-direction: row;
        gap: 15px;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 20px;
    }
    
    .prev-page, .next-page {
        max-width: 100%;
        justify-content: center;
    }
    
    .next-page {
        text-align: center;
    }
    
    .prev-page a, .next-page a {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }
    
    .sidebar-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav-arrow-left {
        left: -30px;
    }
    
    .nav-arrow-right {
        right: -30px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 20px;
    }
    
    .article-content {
        padding: 20px 15px;
        font-size: 15px;
    }
    
    .box-content {
        padding: 20px 15px;
    }
    
    .nav-arrow-left {
        left: -20px;
    }
    
    .nav-arrow-right {
        right: -20px;
    }
}

/* tem2 友情链接样式 */
.friendly-links-section {
    margin-top: 20px;
}

.friendly-links-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d5a27;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4a7c59;
}

.friendly-links-section .friendly-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.friendly-links-section .friendly-links li {
    margin: 0;
    padding: 0;
}

.friendly-links-section .friendly-links li a {
    display: inline-block;
    padding: 6px 12px;
    background: #f8f9fa;
    color: #4a7c59;
    text-decoration: none;
    border-radius: 15px;
    font-size: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e8f5e8;
}

.friendly-links-section .friendly-links li a:hover {
    background: #4a7c59;
    color: white;
    border-color: #4a7c59;
    transform: translateY(-1px);
}

/* 药茶大全表格样式 */
.tisana-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.tisana-info-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.tisana-info-table tr:last-child {
    border-bottom: none;
}

.tisana-info-table td {
    padding: 1rem;
    vertical-align: top;
    line-height: 1.6;
}

.tisana-info-table td.label {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    width: 25%;
    border-right: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

.tisana-info-table td.value {
    background: #fff;
    color: #333;
    width: 75%;
    font-size: 0.95rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tisana-info-table {
        margin: 1rem 0;
    }
    
    .tisana-info-table td {
        padding: 0.75rem;
    }
    
    .tisana-info-table td.label {
        font-size: 0.85rem;
        width: 30%;
    }
    
    .tisana-info-table td.value {
        font-size: 0.9rem;
        width: 70%;
    }
}
