/* tem3 样式 - 现代简约设计 */

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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

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

/* Header 样式 */
.header {
    background: linear-gradient(135deg, #8b9dc3 0%, #a8b5c0 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

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

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    background: linear-gradient(45deg, #fff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo a {
    text-decoration: none;
}

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

.search-input {
    padding: 12px 16px;
    border: none;
    border-radius: 25px 0 0 25px;
    font-size: 14px;
    width: 300px;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
}

.search-btn {
    padding: 12px 20px;
    background: #9bb5a8;
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #8ba397;
    transform: translateY(-1px);
}

/* 导航样式 */
.main-nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e9ecef;
}

.nav-content {
    padding: 0;
}

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

.nav-wrapper {
    flex: 1;
    overflow: hidden;
}

.nav-list {
    display: flex;
    list-style: none;
    transition: transform 0.3s ease;
}

.nav-item,
.navbar-item {
    margin: 0;
}

.nav-item a,
.navbar-item a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    white-space: nowrap;
}

.nav-item a:hover,
.nav-item a.active,
.navbar-item a:hover,
.navbar-item a.active {
    color: #8b9dc3;
    border-bottom-color: #8b9dc3;
    background: rgba(139, 157, 195, 0.05);
}

.nav-arrow {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #8b9dc3;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: #8b9dc3;
    color: white;
}

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

/* Hero 区域 */
.hero-section {
    background: linear-gradient(135deg, #8b9dc3 0%, #a8b5c0 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(139, 157, 195, 0.2);
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-description {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 内容网格布局 */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

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

/* 文章区域 */
.articles-section {
    padding: 30px;
}

.section-header {
    margin-bottom: 30px;
    text-align: center;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8b9dc3, #a8b5c0);
    margin: 0 auto;
    border-radius: 2px;
}

.articles-grid {
    display: grid;
    gap: 20px;
}

.article-item {
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.article-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: #8b9dc3;
}

.article-item h3 {
    margin-bottom: 10px;
}

.article-item h3 a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.article-item h3 a:hover {
    color: #8b9dc3;
}

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

.article-excerpt {
    color: #666;
    line-height: 1.6;
}

/* 文章详情页 */
.article-detail {
    padding: 40px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #666;
    font-size: 14px;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin: 30px 0 15px 0;
    color: #333;
}

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

.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
}

/* 导航链接 */
.article-navigation {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    margin-top: 30px;
}

/* 上一篇/下一篇导航样式 */
.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: #8b9dc3;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.prev-page a, .next-page a {
    color: #8b9dc3;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(139, 157, 195, 0.1);
    border: 1px solid rgba(139, 157, 195, 0.2);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prev-page a:hover, .next-page a:hover {
    color: #a8b5c0;
    background: rgba(139, 157, 195, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 157, 195, 0.2);
}

.nav-link {
    padding: 12px 20px;
    background: #f8f9fa;
    color: #8b9dc3;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #8b9dc3;
    color: white;
    transform: translateY(-1px);
}

/* 搜索页面 */
.search-results {
    padding: 30px;
}

.search-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.search-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.search-info {
    color: #666;
    font-size: 14px;
}

.results-list {
    display: grid;
    gap: 20px;
}

.result-item {
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: #8b9dc3;
}

.result-item h3 {
    margin-bottom: 10px;
}

.result-item h3 a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.result-item h3 a:hover {
    color: #8b9dc3;
}

.result-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.result-excerpt {
    color: #666;
    line-height: 1.6;
}

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

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

.card-header {
    background: linear-gradient(135deg, #8b9dc3 0%, #a8b5c0 100%);
    color: white;
    padding: 15px 20px;
}

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

.card-content {
    padding: 20px;
}

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

.info-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.info-list p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* 列表样式 */
.sidebar-card ul {
    list-style: none;
}

.sidebar-card li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.sidebar-card a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.sidebar-card a:hover {
    color: #8b9dc3;
}

/* tem3 侧边栏项目样式 */
.sidebar-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.sidebar-item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    line-height: 1.4;
}

.sidebar-item a:hover {
    color: #8b9dc3;
}

/* 点击排行的排名样式 */
.sidebar-item .rank {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #8b9dc3;
    color: white;
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    vertical-align: middle;
}

.sidebar-item .title {
    vertical-align: middle;
}

/* 友情链接 */
.friendly-links-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 20px;
}

.friendly-links-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8b9dc3;
}

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

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

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

.friendly-links a:hover {
    background: #8b9dc3;
    color: white;
    border-color: #8b9dc3;
    transform: translateY(-1px);
}

/* 分页 */
.pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 5px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    background: white;
    color: #8b9dc3;
    text-decoration: none;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #8b9dc3;
    color: white;
    border-color: #8b9dc3;
}

.pagination .current {
    background: #8b9dc3;
    color: white;
    border-color: #8b9dc3;
}

/* tem3 分页样式 (pagelist) */
.pagelist {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagelist a {
    display: inline-block;
    padding: 8px 12px;
    background: white;
    color: #8b9dc3;
    text-decoration: none;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.pagelist a:hover {
    background: #8b9dc3;
    color: white;
    border-color: #8b9dc3;
    transform: translateY(-1px);
}

.pagelist b {
    display: inline-block;
    padding: 8px 12px;
    background: #8b9dc3;
    color: white;
    border: 1px solid #8b9dc3;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.pagelist .page-info {
    color: #666;
    font-size: 13px;
    margin-left: 15px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* 黄帝内经内容线框样式 */
.article-content fieldset {
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    margin: 20px 0;
    padding: 0;
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

.article-content fieldset:hover {
    border-color: #8b9dc3;
    box-shadow: 0 4px 12px rgba(139, 157, 195, 0.15);
}

.article-content fieldset legend {
    background: linear-gradient(135deg, #8b9dc3 0%, #a8b5c0 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 20px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.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: #8b9dc3;
}

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

.article-content fieldset:last-of-type {
    border-color: #9bb5a8;
}

.article-content fieldset:last-of-type legend {
    background: linear-gradient(135deg, #9bb5a8 0%, #8b9dc3 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;
    }
}

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

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

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ecf0f1;
}

.footer-section p,
.footer-section li {
    color: #bdc3c7;
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

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

.footer-section a:hover {
    color: #8b9dc3;
}

.footer-disclaimer {
    margin: 30px 0 20px 0;
    padding: 20px 0;
    border-top: 1px solid #34495e;
    border-bottom: 1px solid #34495e;
    text-align: center;
}

.footer-disclaimer h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ecf0f1;
}

.footer-disclaimer p {
    color: #bdc3c7;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #95a5a6;
    font-size: 14px;
}

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

.footer-bottom a:hover {
    color: #8b9dc3;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

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

.footer-links a:hover {
    color: #8b9dc3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .search-input {
        width: 100%;
        max-width: 300px;
    }
    
    .content-grid,
    .content-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-list {
        flex-wrap: wrap;
    }
    
    .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;
    }
    
    .nav-item a,
    .navbar-item a {
        padding: 12px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 24px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .article-detail {
        padding: 20px;
    }
    
    .articles-section {
        padding: 20px;
    }
    
    .search-results {
        padding: 20px;
    }
}

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

/* 搜索分页样式 */
.search-pagination {
    margin: 30px 0;
    text-align: center;
}
.search-pagination .page-link {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    color: #8b9dc3;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    transition: all 0.3s ease;
}
.search-pagination .page-link:hover {
    background: #8b9dc3;
    color: #fff;
    border-color: #8b9dc3;
}
.search-pagination .current-page {
    background: #8b9dc3;
    color: #fff;
    border-color: #8b9dc3;
}
.search-pagination .page-ellipsis {
    display: inline-block;
    padding: 8px 4px;
    color: #666;
}
.search-pagination .prev-page,
.search-pagination .next-page {
    font-weight: bold;
}

/* 相关推荐 - tem3 风格 */
.article-detail .related-articles {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.article-detail .related-title {
    font-size: 20px;
    font-weight: 600;
    color: #8b9dc3;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

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

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

.article-detail .related-item {
    background: white;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(139, 157, 195, 0.1);
    border: 1px solid #e9ecef;
    position: relative;
    transition: all 0.3s ease;
}

.article-detail .related-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #8b9dc3 0%, #a8b5c0 100%);
    border-radius: 10px 10px 0 0;
}

.article-detail .related-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 157, 195, 0.15);
    border-color: #8b9dc3;
}

.article-detail .related-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.5;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.article-detail .related-item a:hover {
    color: #8b9dc3;
}

.article-detail .related-date {
    color: #666;
    font-size: 12px;
    font-weight: 400;
}

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

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

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

.fortune-nav-item:hover {
    background: linear-gradient(135deg, #8b9dc3 0%, #6c7a89 100%);
    color: white;
    border-color: #8b9dc3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 157, 195, 0.3);
}

.fortune-nav-item.active {
    background: linear-gradient(135deg, #8b9dc3 0%, #6c7a89 100%);
    color: white;
    border-color: #8b9dc3;
}
