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

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.clear {
    clear: both;
}

.clear:after {
    content: "";
    display: table;
    clear: both;
}

.box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.whitebg {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.blank {
    height: 20px;
}

/* 头部样式 */
header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.logo-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo img {
    max-height: 60px;
}

.logo a {
    text-decoration: none;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #007bff;
    text-decoration: none;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 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, #0056b3 0%, #004085 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.05);
}

.search form {
    display: flex;
    gap: 10px;
}

.input_text {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
}

.input_submit {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.input_submit:hover {
    background: #0056b3;
}

/* 导航样式 */
.topnav {
    background: #2c3e50;
    padding: 0;
}

.topnav h2 {
    display: none;
}

/* 导航与内容对齐的容器 */
.topnav nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.navbar {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-item {
    border-right: 1px solid #34495e;
}

.navbar-item:last-child {
    border-right: none;
}

.navbar-item a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
}

.navbar-item a:hover {
    background: #34495e;
}

/* 主内容区域 */
article {
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    gap: 20px;
    padding: 0 15px;
}

.left-box {
    flex: 1;
}

.right-box {
    width: 300px;
}

/* 博客列表样式 */
.blogs-box {
    padding: 20px;
    margin-bottom: 20px;
}

.news-title h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 3px solid #007bff;
    padding-bottom: 10px;
}

.blogs-list ul {
    list-style: none;
}

.blogs-list li {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.blogs-list li:last-child {
    border-bottom: none;
}

.blogs-list li i {
    flex-shrink: 0;
}

.blogs-list li i img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.blogs-list li div {
    flex: 1;
}

.blogs-list li h2 {
    font-size: 16px;
    margin-bottom: 8px;
}

.blogs-list li h2 a {
    color: #333;
    text-decoration: none;
}

.blogs-list li h2 a:hover {
    color: #007bff;
}

.blogs-list li span {
    color: #666;
    font-size: 12px;
}

/* 分页样式 */
.pagelist {
    text-align: center;
    padding: 20px 0;
}

.pagelist a, .pagelist b {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    color: #007bff;
    text-decoration: none;
    border-radius: 4px;
}

.pagelist b {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagelist a:hover {
    background: #f8f9fa;
}

.pagelist .page-info {
    margin-left: 15px;
    color: #666;
    font-size: 12px;
}

/* 侧边栏样式 */
.widget {
    margin-bottom: 20px;
    padding: 20px;
}

.side-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #333;
    text-decoration: none;
}

.widget a:hover {
    color: #007bff;
}

/* 推荐内容样式 */
.topnews {
    margin-bottom: 15px;
}

.topnews img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.modMenu li {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.modMenu li:last-child {
    border-bottom: none;
}

.modMenu .l-i {
    flex-shrink: 0;
    width: 40px;
}

.modMenu .l-i img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.modMenu .l-i .date {
    background: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    display: block;
    text-align: center;
}

.modMenu a {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
}

.modMenu a:hover {
    color: #007bff;
}

/* 猜你喜欢样式 */
.recommend .topnews li {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    transition: all 0.3s;
}

.recommend .topnews li:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}

.recommend .topnews a {
    display: block;
    text-decoration: none;
}

.recommend .topnews h3 {
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.4;
}

.recommend .topnews a:hover h3 {
    color: #007bff;
}

.recommend .topnews .date {
    color: #999;
    font-size: 11px;
}

/* 标签云样式 */
.cloud a {
    display: inline-block;
    padding: 4px 8px;
    margin: 2px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
}

.cloud a:hover {
    background: #007bff;
    color: white;
}

/* 友情链接样式 */
.aslinks ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.link-item a {
    display: block;
    padding: 8px 12px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
}

.link-item a:hover {
    background: #007bff;
    color: white;
}

/* 底部样式 */
footer {
    background: #2c3e50;
    color: #fff;
    margin-top: 40px;
    padding: 30px 0;
}

.footer {
    text-align: center;
}

.footer a {
    color: #bdc3c7;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

/* 搜索页面样式 */
.search-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
}

.is-search {
    display: none;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .navbar {
        display: none;
    }
    
    .topnav h2 {
        display: block;
        padding: 15px 20px;
        color: #fff;
        background: #2c3e50;
    }
    
    #mnavh {
        display: block;
        cursor: pointer;
    }
    
    article {
        flex-direction: column;
    }
    
    .right-box {
        width: 100%;
    }
    
    .blogs-list li {
        flex-direction: column;
    }
    
    .blogs-list li i img {
        width: 100%;
        height: 200px;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 15px;
    }
}

/* 搜索排行样式 */
.search-paihang li a {
    display: flex;
    align-items: center;
    padding: 8px 15px 8px 0;
    position: relative;
}

.search-paihang i {
    background: #007bff;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 8px;
    flex-shrink: 0;
}

.search-paihang span {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-right: 15px;
}

.search-paihang .date {
    color: #999;
    font-size: 11px;
    position: absolute;
    right: 0;
    flex-shrink: 0;
}

/* 文章详情页样式 */
.article-detail {
    padding: 20px;
    margin-bottom: 20px;
}

.article-header {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.article-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-word;
}

.article-meta {
    color: #666;
    font-size: 14px;
}

.article-meta span {
    margin-right: 20px;
}

/* 文章图片样式 */
.article-image {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.article-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.article-main-image:hover {
    transform: scale(1.02);
}

/* 十二生肖列表样式 */
.zodiac-item {
    display: flex;
    align-items: center;
    position: relative;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.zodiac-item:hover {
    background-color: #f8f9fa;
}

.zodiac-item .zodiac-image {
    flex-shrink: 0;
    margin-right: 0 !important;
    display: inline-block !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
}

/* 更具体的选择器确保覆盖 */
.blogs-list .zodiac-item .zodiac-image {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.zodiac-thumbnail {
    object-fit: cover;
    transition: transform 0.3s ease;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.zodiac-thumbnail:hover {
    transform: scale(1.05);
}

.content-info {
    flex: 1;
    min-width: 0;
}

.content-info h2 {
    margin: 0 0 8px 0;
    font-size: 16px;
    line-height: 1.4;
}

.content-info h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-info h2 a:hover {
    color: #007bff;
}

.zodiac-years {
    color: #666;
    font-size: 12px;
    font-weight: normal;
    margin: 5px 0 8px 0;
    line-height: 1.4;
}

.content-info p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.content-info span {
    color: #999;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zodiac-item {
        padding: 12px 0;
    }
    
    .zodiac-item .zodiac-image {
        margin-right: 0 !important;
    }
    
    .content-info h2 {
        font-size: 15px;
    }
    
    .content-info p {
        font-size: 13px;
    }
    
    .content-info span {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .zodiac-item {
        padding: 10px 0;
    }
    
    .zodiac-item .zodiac-image {
        margin-right: 0 !important;
    }
    
    .content-info h2 {
        font-size: 14px;
    }
}

.article-content {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow: hidden;
}

.article-content * {
    max-width: 100% !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

.article-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 10px auto;
}

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

.article-content div {
    max-width: 100%;
    overflow-wrap: break-word;
}

.article-content br {
    display: block;
    margin: 5px 0;
}

/* 数据表格样式 - 防止溢出 */
.data-table {
    width: 100%;
    margin: 20px 0;
    overflow: hidden;
    table-layout: fixed;
}

.data-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    word-wrap: break-word;
    overflow: hidden;
}

.data-label {
    min-width: 120px;
    width: 120px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    word-wrap: break-word;
}

.data-value {
    flex: 1;
    color: #333;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: calc(100% - 130px);
    overflow: hidden;
}

/* 文章标签 */
.article-tags {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
}

.article-tags h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.tags-list .tag {
    display: inline-block;
    padding: 4px 8px;
    margin: 0 5px 5px 0;
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
}

.tags-list .tag:hover {
    background: #e0e0e0;
}

/* 文章操作 */
.article-actions {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 5px 10px;
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
}

.share-btn:hover {
    background: #e0e0e0;
}

.article-operations button {
    padding: 5px 10px;
    margin-left: 10px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    cursor: pointer;
    border-radius: 3px;
}

.article-operations button:hover {
    background: #f0f0f0;
}

/* 相关推荐 */
.related-articles {
    padding: 20px;
    margin-bottom: 20px;
}

.related-articles h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.related-list {
    list-style: none;
}

.related-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.related-list a {
    color: #333;
    text-decoration: none;
    flex: 1;
    margin-right: 10px;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-list a:hover {
    color: #007acc;
}

.related-date {
    color: #999;
    font-size: 12px;
    flex-shrink: 0;
}

/* 上下页导航 - 左右布局 */
.page-navigation {
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.prev-page, .next-page {
    flex: 1;
    max-width: 48%;
}

.prev-page {
    text-align: left;
}

.next-page {
    text-align: right;
}

.prev-page a, .next-page a {
    color: #007acc;
    text-decoration: none;
    word-wrap: break-word;
    display: block;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.prev-page a:hover, .next-page a:hover {
    text-decoration: none;
    background: #f0f0f0;
    border-color: #007acc;
}

.prev-page span, .next-page span {
    font-size: 12px;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

/* 面包屑导航 */
.breadcrumb {
    background: #f8f8f8;
    padding: 10px 0;
    font-size: 14px;
}

/* 十二生肖运势标签页样式 */
.zodiac-fortunes-tabs {
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.layui-tab-title {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #e6e6e6;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.layui-tab-title .layui-tab-item {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    text-align: center;
    cursor: pointer;
    border-right: 1px solid #e6e6e6;
    background: #f8f9fa;
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
}

.layui-tab-title .layui-tab-item:last-child {
    border-right: none;
}

.layui-tab-title .layui-tab-item:hover {
    background: #e9ecef;
    color: #333;
}

.layui-tab-title .layui-tab-item.layui-this {
    background: #007bff;
    color: #fff;
    border-bottom: 2px solid #007bff;
}

.layui-tab-content {
    padding: 20px;
    min-height: 200px;
}

.layui-tab-content .layui-tab-item {
    display: none;
}

.layui-tab-content .layui-tab-item.layui-show {
    display: block;
}

.fortune-section {
    line-height: 1.8;
}

.fortune-section h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
}

.fortune-section p {
    margin-bottom: 12px;
    color: #555;
    font-size: 14px;
}

.fortune-section hr {
    margin: 15px 0;
    border: none;
    border-top: 1px solid #e6e6e6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .layui-tab-title .layui-tab-item {
        min-width: 100px;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .layui-tab-content {
        padding: 15px;
    }
    
    .fortune-section h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .layui-tab-title {
        flex-direction: column;
    }
    
    .layui-tab-title .layui-tab-item {
        border-right: none;
        border-bottom: 1px solid #e6e6e6;
    }
    
    .layui-tab-title .layui-tab-item:last-child {
        border-bottom: none;
    }
}

.breadcrumb a {
    color: #007acc;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 移动端响应式优化 */
@media (max-width: 768px) {
    .article-detail {
        padding: 15px;
    }
    
    .article-header h1 {
        font-size: 20px;
    }
    
    .article-content {
        font-size: 14px;
    }
    
    .data-row {
        flex-direction: column;
    }
    
    .data-label {
        min-width: auto;
        width: auto;
        margin-bottom: 5px;
    }
    
    .data-value {
        max-width: 100%;
    }
    
    .article-actions {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .share-buttons {
        width: 100%;
    }
    
    /* 移动端上下页导航调整 */
    .page-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .prev-page, .next-page {
        max-width: 100%;
        text-align: left;
    }
}

/* 可滑动菜单样式 */
.navbar-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.navbar-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.navbar {
    display: flex;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.nav-arrow {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10;
    min-width: 40px;
    height: 40px;
}

.nav-arrow:hover {
    background: #0056b3;
}

.nav-arrow-left {
    margin-right: 10px;
}

.nav-arrow-right {
    margin-left: 10px;
}

.nav-arrow i {
    font-size: 16px;
    font-style: normal;
}

/* 确保菜单项不换行 */
.navbar-item {
    white-space: nowrap;
    flex-shrink: 0;
}

/* 响应式设计 - 小屏幕时调整菜单 */
@media (max-width: 768px) {
    .nav-arrow {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 35px;
        height: 35px;
    }
    
    .nav-arrow-left {
        margin-right: 5px;
    }
    
    .nav-arrow-right {
        margin-left: 5px;
    }
    
    .nav-arrow i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .nav-arrow {
        padding: 4px 8px;
        font-size: 10px;
        min-width: 30px;
        height: 30px;
    }
    
    .nav-arrow i {
        font-size: 12px;
    }
}

/* 十二生肖运势导航样式 */
.zodiac-fortunes-nav {
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
}

.fortune-nav-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.fortune-nav-item {
    display: inline-block;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    font-size: 14px;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
}

.fortune-nav-item:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
    border-color: #007bff;
}

.fortune-nav-item.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .fortune-nav-container {
        flex-direction: column;
        align-items: center;
    }
    
    .fortune-nav-item {
        width: 100%;
        max-width: 200px;
    }
}

/* 十二生肖列表项布局调整 - 已合并到上面的.zodiac-item定义中 */

.zodiac-item .content-info {
    flex: 1;
    margin-right: 15px;
}

/* 十二生肖列表中的"查看生肖运势"按钮样式 */
.blogs-box .zodiac-fortune-link {
    position: absolute;
    right: 20px; /* 与blogs-box的padding对齐，与"最新内容"横线右边对齐 */
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
}

.blogs-box .fortune-link-btn {
    display: inline-block !important;
    padding: 8px 20px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 25px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

.fortune-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.blogs-box .fortune-link-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
}

.blogs-box .fortune-link-btn:hover::before {
    left: 100% !important;
}

.blogs-box .fortune-link-btn:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

/* 响应式设计 - 在小屏幕上按钮移到下方 */
@media (max-width: 768px) {
    .zodiac-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .zodiac-item .content-info {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }
    
    .zodiac-fortune-link {
        position: static;
        transform: none;
        align-self: flex-end;
    }
}

/* 黄帝内经内容线框样式 */
.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: #4a90e2;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
}

.article-content fieldset legend {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 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: #d4a574;
}

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

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

.article-content fieldset:last-of-type legend {
    background: linear-gradient(135deg, #6c7b7f 0%, #5a6b6f 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;
    }
}

/* 友情链接样式 */
.widget.friendly-links {
    /* 确保继承通用widget样式 */
    padding: 20px !important;
}

.widget.friendly-links .side-title {
    /* 确保标题样式正确 */
    font-size: 18px;
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.friendly-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.friendly-links li {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.friendly-links li:last-child {
    border-bottom: none;
}

.friendly-links li a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.friendly-links li a:hover {
    color: #007bff;
}

/* 药茶大全表格样式 */
.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%;
    }
}
