/**
 * 八字算命主题样式
 * Bazi Fortune Telling Theme
 * 参考: s31.yczfcn.com
 */

:root {
    --primary-color: #d32f2f;
    --primary-dark: #b71c1c;
    --primary-light: #ef5350;
    --secondary-color: #c62828;
    --accent-color: #ffd700;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 3px 10px rgba(0,0,0,0.15);
    --shadow-lg: 0 5px 20px rgba(0,0,0,0.2);
    --border-radius: 4px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: var(--accent-color);
    font-size: 26px;
}

.main-nav {
    flex: 1;
    margin: 0 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-menu li a:hover,
.nav-menu li.active a {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.nav-menu li a i {
    font-size: 12px;
    color: var(--accent-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login, .btn-register {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-login {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
}

.btn-login:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.btn-register {
    background: var(--accent-color);
    color: var(--primary-dark);
}

.btn-register:hover {
    background: #ffed4a;
}

.guest-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guest-actions .btn-login,
.guest-actions .btn-register {
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-menu {
    position: relative;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
}

.user-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Breadcrumb */
.breadcrumb {
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    color: var(--border-color);
}

/* Main Wrapper */
.main-wrapper {
    background: var(--bg-light);
    padding: 20px 0 40px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 20px;
    display: flex;
    gap: 30px;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.hero-content {
    flex: 1;
    color: #fff;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.hero-desc {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

.bazi-form {
    width: 400px;
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-lg);
}

.bazi-form .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.bazi-form .form-group {
    flex: 1;
}

.bazi-form label {
    display: block;
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 500;
}

.bazi-form input,
.bazi-form select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 13px;
    transition: var(--transition);
}

.bazi-form input:focus,
.bazi-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.bazi-form .gender-group {
    flex: none;
    width: 100%;
}

.bazi-form .radio-group {
    display: flex;
    gap: 20px;
    padding-top: 5px;
}

.bazi-form .radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    cursor: pointer;
}

.bazi-form .submit-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.bazi-form .submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.bazi-form .score-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.bazi-form .tab-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.3s;
}

.bazi-form .tab-btn:hover {
    background: #eee;
}

.bazi-form .tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    border-color: var(--primary-color);
}

.bazi-form .tab-content {
    display: none;
}

.bazi-form .tab-content.active {
    display: block;
}

/* Content Layout */
.content-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Section Box */
.section-box {
    background: #fff;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    border-bottom: none;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--accent-color);
    font-size: 14px;
}

.more-link {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
}

.more-link:hover {
    color: #fff;
}

.section-body {
    padding: 15px;
}

/* Hot Recommend */
.hot-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hot-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
    transition: var(--transition);
}

.hot-item:hover {
    background: #fafafa;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: var(--border-radius);
}

.hot-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.hot-thumb {
    width: 140px;
    height: 90px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.hot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.hot-item:hover .hot-thumb img {
    transform: scale(1.05);
}

.hot-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hot-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-title a {
    color: var(--text-dark);
}

.hot-title a:hover {
    color: var(--primary-color);
}

.hot-excerpt {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
}

.hot-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hot-meta i {
    color: var(--primary-light);
}

/* Article List */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-item {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
}

.article-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.article-thumb {
    width: 120px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-item:hover .article-thumb img {
    transform: scale(1.05);
}

.article-info {
    flex: 1;
    min-width: 0;
}

.article-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.4;
}

.article-title a {
    color: var(--text-dark);
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-meta i {
    color: var(--primary-light);
}

/* Sidebar Widgets */
.sidebar-section {
    background: #fff;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.sidebar-title {
    padding: 10px 15px;
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.sidebar-section .score-legend,
.sidebar-section .history-list,
.sidebar-section .related-articles {
    padding: 15px;
}

.sidebar-section .clear-history-btn {
    margin: 0 15px 15px 15px;
    width: calc(100% - 30px);
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-right: 8px;
}

.legend-color.excellent {
    background: #4CAF50;
}

.legend-color.good {
    background: #2196F3;
}

.legend-color.average {
    background: #FF9800;
}

.legend-color.poor {
    background: #f44336;
}

.legend-text {
    font-size: 13px;
    color: #666;
}

.related-articles {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-article-item {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.related-article-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-article-item a {
    color: #d32f2f;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.related-article-item a:hover {
    color: #b71c1c;
    text-decoration: underline;
}

.widget-box {
    background: #fff;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.widget-header {
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-header i {
    color: var(--accent-color);
    font-size: 13px;
}

.widget-body {
    padding: 15px;
}

.search-box {
    display: flex;
    gap: 8px;
}

.search-box input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 13px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-box button {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--primary-dark);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    color: var(--text-dark);
    font-size: 12px;
    transition: var(--transition);
}

.tool-item:hover {
    background: var(--primary-color);
    color: #fff;
}

.tool-item i {
    font-size: 18px;
    color: var(--primary-color);
}

.tool-item:hover i {
    color: var(--accent-color);
}

.widget-list {
    list-style: none;
}

.widget-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-size: 13px;
}

.widget-list a:hover {
    color: var(--primary-color);
}

.widget-list .num {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
}

.widget-list li:nth-child(1) .num {
    background: var(--primary-color);
    color: #fff;
}

.widget-list li:nth-child(2) .num {
    background: var(--secondary-color);
    color: #fff;
}

.widget-list li:nth-child(3) .num {
    background: #e67e22;
    color: #fff;
}

.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hot-tags a {
    padding: 4px 10px;
    background: var(--bg-light);
    border-radius: 3px;
    font-size: 12px;
    color: var(--text-light);
    transition: var(--transition);
}

.hot-tags a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Links Section */
.links-section .links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.links-section .links-list a {
    padding: 5px 12px;
    background: var(--bg-light);
    border-radius: 3px;
    font-size: 12px;
    color: var(--text-light);
    transition: var(--transition);
}

.links-section .links-list a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #c62828 0%, #8b0000 100%);
    color: rgba(255,255,255,0.85);
    padding-top: 40px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section h4.footer-title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-logo h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 15px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
}

.footer-section .nav-list {
    list-style: none;
}

.footer-section .nav-list li {
    margin-bottom: 10px;
}

.footer-section .nav-list a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.footer-section .nav-list a:hover {
    color: var(--accent-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-item i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--accent-color);
    font-size: 13px;
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

.contact-value {
    font-size: 13px;
    color: #fff;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--accent-color);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    transition: var(--transition);
}

.contact-btn:hover {
    background: #ffed4a;
    color: var(--primary-dark);
}

.footer-bottom {
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-stats {
    display: flex;
    gap: 25px;
}

.footer-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-stats .stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

.footer-stats .stat-value {
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 600;
}

.footer-copyright {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copyright p {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.footer-copyright a {
    color: rgba(255,255,255,0.7);
}

.footer-copyright a:hover {
    color: var(--accent-color);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
}

/* Pagination */
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.pagination a,
.pagination span {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-dark);
    font-size: 13px;
    transition: var(--transition);
}

.pagination a:hover,
.pagination span.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* List Page */
.list-header {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}

.list-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.list-title i {
    color: var(--primary-color);
}

.list-desc {
    color: var(--text-light);
    font-size: 14px;
}

/* Read Page */
.read-header {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}

.read-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 12px;
}

.read-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

.read-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-meta i {
    color: var(--primary-light);
}

.read-content {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    line-height: 1.8;
    font-size: 15px;
    color: var(--text-dark);
}

.read-content p {
    margin-bottom: 12px;
}

.read-content h2,
.read-content h3,
.read-content h4 {
    margin: 20px 0 10px;
    font-weight: 600;
    color: var(--text-dark);
}

.read-content h2 { font-size: 20px; }
.read-content h3 { font-size: 18px; }
.read-content h4 { font-size: 16px; }

.read-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 12px 0;
}

.read-content ul,
.read-content ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.read-content li {
    margin-bottom: 6px;
}

.read-content blockquote {
    border-left: 3px solid var(--primary-color);
    padding: 12px 15px;
    background: var(--bg-light);
    margin: 15px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.read-tags {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 8px;
    border: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.read-tags .label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.read-tags .label i {
    color: var(--primary-color);
}

.read-tags a {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.read-tags a:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(211, 47, 47, 0.3);
}

.read-tags a::before {
    content: '#';
    margin-right: 2px;
    opacity: 0.6;
}

.read-tags a:hover::before {
    opacity: 1;
}

/* Related Posts */
.related-posts {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-top: 15px;
    box-shadow: var(--shadow-sm);
}

.related-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-title i {
    color: var(--primary-color);
}

.related-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.related-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.related-item:hover {
    background: var(--primary-color);
}

.related-item:hover a {
    color: #fff;
}

.related-item .num {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    flex-shrink: 0;
}

.related-item:hover .num {
    background: rgba(255,255,255,0.2);
}

.related-item a {
    font-size: 13px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Comments */
.comments-section {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-top: 15px;
    box-shadow: var(--shadow-sm);
}

.comments-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-title i {
    color: var(--primary-color);
}

.comment-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 13px;
    resize: vertical;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form button {
    margin-top: 8px;
    padding: 8px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-size: 13px;
    cursor: pointer;
}

.comment-form button:hover {
    background: var(--primary-dark);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.comment-author {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 13px;
}

.comment-date {
    font-size: 11px;
    color: var(--text-muted);
}

.comment-text {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
    }
    
    .bazi-form {
        width: 100%;
    }
    
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .related-list {
        grid-template-columns: 1fr;
    }
    
    .read-title {
        font-size: 18px;
    }
    
    .read-content {
        padding: 15px;
        font-size: 14px;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-thumb {
        width: 100%;
        height: 150px;
    }
}
