/* ============================================
   版权所有 © 2026 墨迹语CMS 
   https://www.mojiyucms.com/
   ============================================ 
*/

/* 全局变量定义 */
:root {
    --primary: #2F4F4F;
    --primary-light: #4A7070;
    --primary-dark: #1E3333;
    --secondary: #E0EEE0;
    --secondary-dark: #C8DCC8;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAF8;
    --border-color: #DDD;
    --shadow: 0 2px 8px rgba(47, 79, 79, 0.1);
    --shadow-hover: 0 4px 16px rgba(47, 79, 79, 0.15);
    --transition: all 0.3s ease;
}

/* 基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* 容器 */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   头部导航
   ========================================================================== */
.yixue2-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.header-logo .logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    font-size: 24px;
    font-weight: bold;
}

.header-logo .fa-yin-yang {
    font-size: 28px;
}

.header-nav {
    flex: 1;
    margin: 0 30px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 5px;
}

.nav-item a {
    display: block;
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    transition: var(--transition);
}

.nav-item a:hover,
.nav-item.active a {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.header-search {
    min-width: 240px;
}

.search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    overflow: hidden;
}

.search-form input {
    flex: 1;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
}

.search-form button {
    border: none;
    background: var(--primary-dark);
    color: #FFFFFF;
    padding: 0 18px;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
}

/* 移动端导航 */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #FFFFFF;
    z-index: 1999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--primary);
    color: #FFFFFF;
}

.mobile-nav-title {
    font-size: 18px;
    font-weight: bold;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav-menu ul {
    list-style: none;
    padding: 10px 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
}

.mobile-nav-menu li.active a {
    background: var(--secondary);
    color: var(--primary);
    font-weight: bold;
}

/* ==========================================================================
   首页核心功能区
   ========================================================================== */
.function-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.function-item {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.function-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.function-icon {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 12px;
}

.function-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.function-desc {
    font-size: 13px;
    color: var(--text-gray);
}

/* ==========================================================================
   内容区域布局
   ========================================================================== */
.content-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.main-content {
    flex: 1;
}

.yixue2-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* ==========================================================================
   首页焦点区：三栏布局
   ========================================================================== */
.home-hero-section {
    display: grid;
    grid-template-columns: 1fr 400px 300px;
    gap: 20px;
    margin: 30px 0;
}

/* 左侧：超大图焦点轮播 */
.hero-left {
    position: relative;
}

.hero-carousel {
    position: relative;
    height: 100%;
    min-height: 500px;
    background: var(--secondary);
    border-radius: 12px;
    overflow: hidden;
}

.hero-slide {
    display: none;
    position: relative;
    height: 100%;
}

.hero-slide.active {
    display: block;
}

.hero-link {
    display: block;
    height: 100%;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    color: #FFFFFF;
    z-index: 1;
}

.hero-title {
    font-size: 22px;
    margin-bottom: 10px;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-desc {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 2;
}

.indicator {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-dark);
    font-size: 13px;
    border-radius: 20px;
    font-weight: bold;
}

/* 轮播切换按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    transition: var(--transition);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

/* 中间：头条推荐 + 站长推荐 */
.hero-middle {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-header-small {
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}

.section-title-small {
    font-size: 16px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 头条推荐 */
.headline-section {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--shadow);
}

.headline-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.headline-item {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}

.headline-item:last-child {
    border-bottom: none;
}

.headline-item a {
    display: block;
    color: inherit;
}

.headline-item a:hover .headline-title {
    color: var(--primary);
}

.headline-title {
    font-size: 15px;
    margin-bottom: 6px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.headline-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 站长推荐 */
.editor-picks-section {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--shadow);
}

.editor-picks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.pick-card {
    background: var(--bg-light);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition);
}

.pick-card:hover {
    box-shadow: var(--shadow);
    transform: translateX(3px);
}

.pick-link {
    display: flex;
    gap: 10px;
    padding: 10px;
    color: inherit;
}

.pick-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--secondary);
}

.pick-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pick-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pick-title {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pick-desc {
    font-size: 12px;
    color: var(--text-gray);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 右侧：热门文章排行榜 */
.hero-right {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.ranking-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.ranking-item:last-child {
    border-bottom: none;
}

.rank-number {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    border-radius: 4px;
    background: var(--border-color);
    color: #FFFFFF;
}

.rank-number.rank-top {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
}

.rank-title {
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-title:hover {
    color: var(--primary);
}

/* ==========================================================================
   面包屑导航
   ========================================================================== */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a {
    color: var(--text-gray);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .current {
    color: var(--text-dark);
}

/* ==========================================================================
   列表页（list.html）
   ========================================================================== */
.category-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.category-title {
    font-size: 28px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.category-desc {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.6;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-item {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    gap: 20px;
    padding: 20px;
}

.article-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.article-thumb-link {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--secondary);
}

.article-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-item:hover .article-thumb-img {
    transform: scale(1.05);
}

.article-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-item .article-title {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-item .article-title a {
    color: var(--text-dark);
}

.article-item .article-title a:hover {
    color: var(--primary);
}

.article-excerpt {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-item .article-meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}

.empty-state i {
    font-size: 80px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 16px;
}

/* 分页 */
.pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}

/* 分页样式覆盖（使用高权重选择器覆盖后端默认样式） */
.main-content .pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.main-content .pagination li {
    display: inline-block !important;
    margin: 0 !important;
}

.main-content .pagination a,
.main-content .pagination span {
    display: inline-block !important;
    min-width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    padding: 0 12px !important;
    text-align: center !important;
    border-radius: 8px !important;
    background: #FFFFFF !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text) !important;
    font-size: 14px !important;
    transition: var(--transition) !important;
    text-decoration: none !important;
}

.main-content .pagination a:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(47, 79, 79, 0.2) !important;
}

.main-content .pagination .current,
.main-content .pagination .active,
.main-content .pagination span.current,
.main-content .pagination li.active,
.main-content .pagination li.active a,
.main-content .pagination li.active span,
.main-content .pagination li.current,
.main-content .pagination li.current a,
.main-content .pagination li.current span {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    cursor: default !important;
    border-radius: 8px !important;
}

.main-content .pagination .disabled,
.main-content .pagination span.disabled {
    background: var(--bg-light) !important;
    border-color: var(--border-color) !important;
    color: var(--text-light) !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

.main-content .pagination .prev,
.main-content .pagination .next {
    font-weight: 600 !important;
}

.main-content .pagination .ellipsis {
    border: none !important;
    background: transparent !important;
    cursor: default !important;
}

/* ==========================================================================
   详情页（detail.html）
   ========================================================================== */
.article-detail {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.article-header {
    padding-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.article-detail .article-title {
    font-size: 32px;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.article-detail .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--text-gray);
}

.article-detail .article-meta a {
    color: var(--primary);
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 15px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 25px 0 15px;
    color: var(--primary);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    overflow-x: auto;
    display: block;
}

.article-content table th,
.article-content table td {
    border: 1px solid var(--border-color);
    padding: 10px;
    text-align: left;
}

.article-content table th {
    background: var(--secondary);
    font-weight: bold;
}

.article-content pre,
.article-content code {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre;
}

.article-content pre {
    padding: 15px;
    margin: 20px 0;
}

.article-content code {
    padding: 2px 6px;
    font-size: 90%;
}

.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
}

.tags-label {
    color: var(--text-gray);
}

.tag-item {
    padding: 5px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    color: var(--primary);
    transition: var(--transition);
}

.tag-item:hover {
    background: var(--primary);
    color: #FFFFFF;
}

/* 上下篇导航 */
.article-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.article-nav-item {
    flex: 1;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.article-nav-item a,
.article-nav-item .nav-disabled {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 15px;
    color: inherit;
    transition: var(--transition);
}

.article-nav-item a:hover {
    background: var(--bg-light);
}

.nav-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.article-nav-item i {
    font-size: 20px;
    color: var(--primary);
}

.nav-content {
    flex: 1;
}

.nav-label {
    font-size: 12px;
    color: var(--text-light);
    display: block;
    margin-bottom: 5px;
}

.nav-title {
    font-size: 15px;
    color: var(--text-dark);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-next {
    text-align: right;
}

/* 相关推荐 */
.related-articles {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.related-articles .section-title {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--secondary);
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.related-item:hover {
    box-shadow: var(--shadow);
}

.related-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--secondary);
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info {
    flex: 1;
}

.related-title {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.related-title a {
    color: var(--text-dark);
}

.related-title a:hover {
    color: var(--primary);
}

.related-meta {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    gap: 15px;
}

/* ==========================================================================
   搜索页（search.html）
   ========================================================================== */
.search-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #FFFFFF;
    padding: 40px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.search-title {
    font-size: 28px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.search-title .keyword {
    color: #FFE66D;
    font-weight: bold;
}

.search-stats {
    font-size: 15px;
    opacity: 0.9;
}

.search-stats strong {
    color: #FFE66D;
    font-size: 18px;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.search-item {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    gap: 20px;
    padding: 20px;
}

.search-item:hover {
    box-shadow: var(--shadow-hover);
}

.search-thumb {
    flex-shrink: 0;
    width: 150px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--secondary);
}

.search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-body {
    flex: 1;
}

.search-item-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.search-item-title a {
    color: var(--text-dark);
}

.search-item-title a:hover {
    color: var(--primary);
}

.search-item-title mark {
    background: #FFE66D;
    color: var(--text-dark);
    padding: 0 3px;
    border-radius: 2px;
}

.search-excerpt {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-excerpt mark {
    background: #FFE66D;
    color: var(--text-dark);
    padding: 0 3px;
}

.search-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
}

.empty-text {
    font-size: 18px;
    color: var(--text-dark);
    margin: 20px 0;
}

.empty-tip {
    font-size: 16px;
    color: var(--primary);
    margin: 20px 0 10px;
}

.empty-suggestions {
    text-align: left;
    display: inline-block;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.empty-suggestions li {
    padding: 8px 0;
    color: var(--text-gray);
}

.empty-suggestions li:before {
    content: "• ";
    color: var(--primary);
    font-weight: bold;
    margin-right: 8px;
}

.hot-section {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.hot-section .section-title {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hot-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.hot-item:last-child {
    border-bottom: none;
}

.hot-index {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-color);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
}

.hot-item:nth-child(-n+3) .hot-index {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
}

.hot-link {
    flex: 1;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-link:hover {
    color: var(--primary);
}

.hot-views {
    font-size: 12px;
    color: var(--text-light);
}

/* ==========================================================================
   404页（404.html）
   ========================================================================== */
.yixue2-404 {
    min-height: 60vh;
}

.error-section {
    text-align: center;
    padding: 80px 20px;
    background: #FFFFFF;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.error-icon {
    font-size: 100px;
    color: #FFA500;
    margin-bottom: 20px;
}

.error-code {
    font-size: 100px;
    font-weight: bold;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}

.error-title {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.error-desc {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--border-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--text-gray);
    color: #FFFFFF;
}

.recommend-section,
.category-section {
    margin-bottom: 40px;
}

.recommend-section .section-title,
.category-section .section-title {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--secondary);
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.recommend-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.recommend-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.recommend-link {
    display: block;
    color: inherit;
}

.recommend-thumb {
    width: 100%;
    padding-top: 56.25%;
    position: relative;
    overflow: hidden;
    background: var(--secondary);
}

.recommend-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommend-info {
    padding: 20px;
}

.recommend-title {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommend-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommend-meta {
    font-size: 13px;
    color: var(--text-light);
}

.category-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: #FFFFFF;
    border-radius: 8px;
    color: var(--text-dark);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-link:hover {
    background: var(--primary);
    color: #FFFFFF;
    transform: translateY(-3px);
}

.category-link i {
    color: var(--primary);
}

.category-link:hover i {
    color: #FFFFFF;
}

/* ==========================================================================
   首页楼层
   ========================================================================== */
.home-floor {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.floor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary);
}

.floor-title {
    font-size: 22px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.floor-more {
    color: var(--primary);
    font-size: 14px;
}

.floor-more:hover {
    color: var(--primary-dark);
}

.floor-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.article-card {
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.article-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.article-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.article-title a {
    color: var(--text-dark);
}

.article-title a:hover {
    color: var(--primary);
}

.article-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
}

/* ==========================================================================
   侧边栏
   ========================================================================== */
.sidebar-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 国学功能导航 */
.guoxue-functions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.function-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 10px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s;
    text-align: center;
    gap: 8px;
}

.function-item:hover {
    border-color: var(--primary);
    background: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.function-item i {
    font-size: 24px;
    color: var(--primary);
}

.function-item span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.sidebar-list {
    list-style: none;
}

.sidebar-item {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
}

.sidebar-item a:hover {
    color: var(--primary);
}

.item-index {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: var(--secondary);
    color: var(--primary);
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.sidebar-item:nth-child(1) .item-index,
.sidebar-item:nth-child(2) .item-index,
.sidebar-item:nth-child(3) .item-index {
    background: var(--primary);
    color: #FFFFFF;
}

.item-title {
    flex: 1;
}

.item-date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
    padding-left: 28px;
}

/* ==========================================================================
   底部
   ========================================================================== */
.yixue2-footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.85);
    padding: 30px 0 20px;
}

/* 全国分站（SEO链轮） - 放最上面，视觉占比最大 */
.footer-branches {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.branches-title {
    font-size: 16px;
    margin-bottom: 15px;
    color: #FFFFFF;
    font-weight: bold;
}

.branches-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    line-height: 2;
}

.branches-list a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    transition: var(--transition);
}

.branches-list a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

/* 友情链接 - 中间位置，视觉占比小于全国分站 */
.footer-links-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-section-title {
    font-size: 14px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 6px;
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.friend-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    transition: var(--transition);
}

.friend-links a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

/* 版权信息 - 最下面 */
.footer-copyright {
    text-align: center;
    padding: 15px 0 0;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-copyright a:hover {
    color: #FFFFFF;
}

/* ==========================================================================
   侧边栏小图+标题列表
   ========================================================================== */
.sidebar-thumb-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-thumb-item {
    background: var(--bg-light);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition);
}

.sidebar-thumb-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.thumb-link {
    display: flex;
    gap: 10px;
    padding: 10px;
    color: inherit;
}

.thumb-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--secondary);
}

.thumb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.sidebar-thumb-item:hover .thumb-image img {
    transform: scale(1.1);
}

.thumb-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.thumb-title {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thumb-link:hover .thumb-title {
    color: var(--primary);
}

.thumb-date {
    font-size: 12px;
    color: var(--text-light);
}

/* ==========================================================================
   响应式布局 (必须放在文件末尾)
   ========================================================================== */

/* 平板适配 (≤ 768px) */
@media (max-width: 768px) {

    .header-nav,
    .header-search {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .function-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin: 20px 0;
    }

    .function-item {
        padding: 20px 10px;
    }

    .function-icon {
        font-size: 36px;
    }

    .function-name {
        font-size: 15px;
    }

    .function-desc {
        font-size: 12px;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .yixue2-sidebar {
        width: 100% !important;
    }

    .floor-articles {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-hero-section {
        grid-template-columns: 1fr 300px;
    }

    .hero-right {
        display: none;
    }

    .hero-middle {
        order: 2;
    }

    .hero-left {
        order: 1;
    }

    .hero-carousel {
        min-height: 350px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .article-item,
    .search-item {
        flex-direction: column;
    }

    .article-thumb-link,
    .search-thumb {
        width: 100%;
        height: 200px;
    }

    .article-nav {
        flex-direction: column;
    }

    .related-item {
        flex-direction: column;
    }

    .related-thumb {
        width: 100%;
        height: 180px;
    }

    .recommend-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机适配 (≤ 430px) */
@media (max-width: 430px) {
    .container {
        padding: 0 15px;
    }

    .function-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin: 15px 0;
    }

    .function-item {
        padding: 15px 8px;
    }

    .function-icon {
        font-size: 32px;
        margin-bottom: 8px;
    }

    .function-name {
        font-size: 14px;
    }

    .function-desc {
        font-size: 11px;
    }

    .home-hero-section {
        grid-template-columns: 1fr;
    }

    .hero-right,
    .hero-middle {
        display: none;
    }

    .hero-carousel {
        min-height: 300px;
    }

    .hero-title {
        font-size: 18px;
    }

    .hero-desc {
        font-size: 13px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .floor-articles {
        grid-template-columns: 1fr;
    }

    .home-floor {
        padding: 15px;
    }

    .floor-title {
        font-size: 18px;
    }

    .article-card {
        padding: 12px;
    }

    .floor-articles {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        padding: 15px;
    }

    .category-title,
    .search-title,
    .error-title {
        font-size: 22px;
    }

    .article-detail {
        padding: 25px 20px;
    }

    .article-detail .article-title {
        font-size: 24px;
    }

    .article-content {
        font-size: 15px;
    }

    .recommend-grid {
        grid-template-columns: 1fr;
    }

    .category-links {
        grid-template-columns: 1fr;
    }

    .error-code {
        font-size: 80px;
    }

    .error-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .friend-links {
        gap: 10px;
    }

    .branches-list {
        gap: 8px;
    }
}

/* ==========================================================================
   首页测算表单切换区
   ========================================================================== */
.yixue2-hero-form-wrapper {
    /* background: linear-gradient(135deg, var(--secondary) 0%, #F0F5F0 100%); */
    padding: 40px 0;
    margin-bottom: 30px;
}

.hero-form-card {
    background: white;
    border: 3px solid var(--primary);
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}

/* Tab切换栏 */
.form-tabs {
    display: flex;
    background: var(--bg-light);
    border-bottom: 3px solid var(--primary);
    overflow-x: auto;
}

.form-tab {
    flex: 1;
    min-width: 120px;
    padding: 20px 16px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-gray);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-tab i {
    font-size: 20px;
    color: var(--primary-light);
}

.form-tab:hover {
    background: rgba(47, 79, 79, 0.05);
    color: var(--primary);
}

.form-tab.active {
    background: white;
    border-bottom-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.form-tab.active i {
    color: var(--primary);
}

/* 表单容器 */
.form-container {
    position: relative;
    min-height: 400px;
}

.hero-form {
    display: none;
    padding: 40px;
    animation: fadeIn 0.4s ease;
}

.hero-form.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-title i {
    font-size: 28px;
    color: var(--primary-light);
}

/* 表单网格 */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-item label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-item label i {
    color: var(--primary-light);
    margin-right: 6px;
}

.form-item input[type="text"],
.form-item select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-dark);
    background: white;
    transition: var(--transition);
}

.form-item input[type="text"]:focus,
.form-item select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47, 79, 79, 0.1);
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    gap: 12px;
}

.radio-label {
    flex: 1;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-text {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 47px;
    padding: 0 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-gray);
    font-size: 15px;
    transition: var(--transition);
}

.radio-label input[type="radio"]:checked+.radio-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
    color: white;
    font-weight: 600;
}

/* 双人表单 (合婚) */
.double-person-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.person-section h4 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.person-section h4 i {
    color: var(--primary-light);
    margin-right: 8px;
}

/* 提交按钮 */
.hero-submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(47, 79, 79, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hero-submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #142626 100%);
    box-shadow: 0 6px 24px rgba(47, 79, 79, 0.4);
    transform: translateY(-2px);
}

.hero-submit-btn i {
    font-size: 20px;
}

/* 响应式 */
@media (max-width: 992px) {
    .form-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .form-tab {
        flex-shrink: 0;
    }

    .double-person-form {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .yixue2-hero-form-wrapper {
        padding: 24px 0;
    }

    .hero-form {
        padding: 24px 20px;
    }

    .form-title {
        font-size: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-tab {
        padding: 16px 12px;
        font-size: 14px;
    }

    .form-tab span {
        display: none;
    }

    .form-tab i {
        font-size: 24px;
    }
}

/* ==========================================================================
   侧边栏黄历功能样式
   ========================================================================== */
.huangli-container {
    padding: 0;
}

/* 日历头部 */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin-bottom: 12px;
}

.calendar-current {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.calendar-nav-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* 星期头 */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 8px;
}

.calendar-weekdays span {
    padding: 8px 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-gray);
}

/* 日期网格 */
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 16px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #F5F8F5;
}

.calendar-day:hover {
    background: rgba(47, 79, 79, 0.08);
}

.calendar-day.other-month {
    color: #BDBDBD;
    background: transparent;
}

.calendar-day.today {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.calendar-day.selected {
    background: var(--secondary);
    color: white;
    font-weight: 600;
}

.day-solar {
    font-size: 14px;
    font-weight: 500;
}

.day-lunar {
    font-size: 10px;
    color: var(--text-gray);
    margin-top: 2px;
}

.calendar-day.today .day-lunar,
.calendar-day.selected .day-lunar {
    color: rgba(255, 255, 255, 0.8);
}

/* 当日详情 */
.today-info {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.today-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #F5F8F5;
    border-radius: 8px;
    margin-bottom: 12px;
}

.solar-date {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-large {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.date-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.date-detail span {
    font-size: 13px;
    color: var(--text-dark);
}

.lunar-date {
    text-align: right;
}

.lunar-month {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.lunar-day {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 4px;
}

/* 干支信息 */
.ganzhi-info {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background: #F5F8F5;
    border-radius: 6px;
    margin-bottom: 12px;
}

.ganzhi-info span {
    font-size: 13px;
    color: var(--text-dark);
}

.ganzhi-info i {
    color: var(--primary);
    margin-right: 4px;
}

/* 宜忌区域 */
.yiji-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.yi-box,
.ji-box {
    background: #F5F8F5;
    border-radius: 6px;
    padding: 10px;
}

.yiji-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.yi-box .yiji-title {
    color: #4CAF50;
}

.yi-box .yiji-title i {
    color: #4CAF50;
}

.ji-box .yiji-title {
    color: #F44336;
}

.ji-box .yiji-title i {
    color: #F44336;
}

.yiji-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.yiji-item {
    display: inline-block;
    padding: 4px 8px;
    background: white;
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-dark);
}

/* 查看详情按钮 */
.view-detail-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.view-detail-btn:hover {
    background: var(--primary-dark);
}

/* ==========================================================================
   侧边栏节气功能样式
   ========================================================================== */
.jieqi-container {
    padding: 0;
}

.jieqi-current,
.jieqi-next {
    background: #F5F8F5;
    border-radius: 8px;
    padding: 14px;
    border: 1px solid rgba(47, 79, 79, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.jieqi-current:hover,
.jieqi-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 79, 79, 0.1);
}

.jieqi-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}

.jieqi-badge.current {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.15));
    color: #4CAF50;
}

.jieqi-badge.next {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 152, 0, 0.15));
    color: #FF9800;
}

.jieqi-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.jieqi-date {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.jieqi-days,
.jieqi-countdown {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

/* 本月节气列表 */
.jieqi-month {
    margin-bottom: 12px;
}

.jieqi-month-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.jieqi-month-title i {
    color: var(--primary);
}

.jieqi-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jieqi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #F5F8F5;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.jieqi-item:hover {
    background: rgba(47, 79, 79, 0.05);
    transform: translateX(4px);
}

.jieqi-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.jieqi-item-date {
    font-size: 11px;
    color: var(--text-gray);
}

.jieqi-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.jieqi-more-btn:hover {
    background: var(--primary-dark);
}

.jieqi-empty {
    text-align: center;
    padding: 12px;
    color: var(--text-gray);
    font-size: 12px;
}