/**
 * 中医典籍馆 - 全站样式表
 * 古铜棕 + 米白色调的中医传统文化风格
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: #8B4513;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== 通用容器 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 顶部导航 ========== */
.header {    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);    position: relative;    z-index: 100;    box-shadow: 0 2px 10px rgba(0,0,0,0.1);}

.nav-top {
    background: rgba(0,0,0,0.2);
    padding: 8px 0;
    font-size: 13px;
}

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

.site-slogan {
    color: rgba(255,255,255,0.8);
}

.nav-top-right a {
    color: rgba(255,255,255,0.8);
    margin-left: 15px;
}

.nav-top-right a:hover {
    color: #fff;
}

.user-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.user-avatar {
    font-size: 16px;
}

.vip-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}

.vip-link {
    background: #D4A574;
    color: #fff !important;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.nav-main {
    padding: 15px 0;
}

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

.logo {
    justify-content: flex-start;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #D4A574, #8B4513);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo-text h1 {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 2px;
}

.logo-text p {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    color: #fff;
    font-size: 15px;
    opacity: 0.9;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    opacity: 1;
    color: #D4A574;
    border-bottom-color: #D4A574;
}

.nav-search {
    display: flex;
    gap: 10px;
}

.nav-search input {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    width: 200px;
    font-size: 14px;
    outline: none;
}

.nav-search button {
    padding: 10px 25px;
    background: #D4A574;
    border: none;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.nav-search button:hover {
    background: #c49560;
}

/* ========== 闪存消息 ========== */
.flash-message {
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
}

.flash-close:hover {
    opacity: 1;
}

/* ========== Hero 区域 ========== */
.hero {
    background: linear-gradient(135deg, #8B4513 0%, #5D3A1A 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    text-align: center;
    color: #fff;
}

.hero h2 {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.hero h2 span {
    color: #D4A574;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 600;
    color: #D4A574;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 5px;
}

/* ========== 分类卡片 ========== */
.categories {
    padding: 50px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h3 {
    font-size: 28px;
    color: #333;
    font-weight: 500;
}

.section-title p {
    color: #999;
    margin-top: 10px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.category-card {
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.15);
    border-color: #D4A574;
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #8B4513, #654321);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    overflow: hidden;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.category-card h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 13px;
    color: #999;
}

/* ========== 资源卡片 ========== */
.hot-resources {
    padding: 50px 0;
    background: #f9f9f9;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.resource-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.resource-cover {
    height: 200px;
    background: linear-gradient(135deg, #e8d4b8 0%, #d4b896 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 封面图统一处理 - 保持比例美观裁剪 */
.resource-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* 优先显示图片顶部（书籍封面通常顶部重要） */
    transition: transform 0.3s ease;
}

.resource-card:hover .resource-cover img {
    transform: scale(1.05);
}

/* 默认书籍图标 */
.book-icon {
    font-size: 60px;
    opacity: 0.5;
}

.resource-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #8B4513;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.resource-info {
    padding: 15px;
}

.resource-info h5 {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.resource-author {
    color: #8B4513;
}

/* ========== VIP区域 ========== */
.vip-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #2c1810 0%, #1a0f0a 100%);
}

.vip-section .section-title h3 {
    color: #fff;
}

.vip-section .section-title p {
    color: rgba(255,255,255,0.6);
}

.vip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.vip-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.vip-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.vip-card.featured {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.2), rgba(139, 69, 19, 0.3));
    border-color: #D4A574;
    transform: scale(1.05);
}

.vip-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.vip-name {
    font-size: 20px;
    color: #D4A574;
    margin-bottom: 10px;
}

.vip-price {
    font-size: 36px;
    color: #fff;
    margin-bottom: 5px;
}

.vip-price span {
    font-size: 14px;
    opacity: 0.6;
}

.vip-period {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}

.vip-features {
    list-style: none;
    text-align: left;
    margin-bottom: 25px;
}

.vip-features li {
    color: rgba(255,255,255,0.8);
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.vip-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #D4A574;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.vip-btn:hover {
    background: #c49560;
}

.vip-btn.outline {
    background: transparent;
    border: 1px solid #D4A574;
    color: #D4A574;
}

.vip-btn.outline:hover {
    background: rgba(212, 165, 116, 0.1);
}

/* ========== 最新更新 ========== */
.latest-updates {
    padding: 50px 0;
    background: #fff;
}

.update-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.update-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #fafafa;
    border-radius: 10px;
    transition: all 0.3s;
}

.update-item:hover {
    background: #f0f0f0;
}

.update-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8B4513, #654321);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.update-content h5 {
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
}

.update-content p {
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
}

.update-date {
    font-size: 12px;
    color: #bbb;
}

/* ========== 表单样式 ========== */
.form-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B4513;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}

.form-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.form-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.form-link a {
    color: #8B4513;
}

.form-link a:hover {
    text-decoration: underline;
}

/* ========== 列表页 ========== */
.page-header {
    background: linear-gradient(135deg, #8B4513 0%, #5D3A1A 100%);
    padding: 40px 0;
    color: #fff;
    text-align: center;
}

.page-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.8;
}

.breadcrumb {
    padding: 15px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #999;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #8B4513;
}

.filter-bar {
    padding: 20px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.filter-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-tabs {
    display: flex;
    gap: 15px;
}

.filter-tab {
    padding: 8px 20px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}

.filter-tab:hover,
.filter-tab.active {
    background: #8B4513;
    color: #fff;
}

.resource-list {
    padding: 30px 0;
}

.resource-list .resource-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* ========== 详情页 ========== */
.detail-container {
    padding: 40px 0;
}

.detail-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.detail-cover {
    position: sticky;
    top: 100px;
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3/4; /* 书籍封面通常是3:4比例 */
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.cover-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #e8d4b8 0%, #d4b896 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.detail-info h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

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

.detail-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    padding: 5px 12px;
    background: #f5f5f5;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
}

.detail-description {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #666;
}

.download-section {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
}

.download-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.download-info {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    color: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
}

.download-link:hover {
    opacity: 0.9;
    color: #fff;
}

.download-password {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 3px;
}

.vip-only-tip {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #2c1810 0%, #1a0f0a 100%);
    border-radius: 10px;
    color: #fff;
}

.vip-only-tip h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.vip-only-tip p {
    opacity: 0.8;
    margin-bottom: 20px;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 30px 0;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #8B4513;
    color: #fff;
    border-color: #8B4513;
}

.pagination .current {
    background: #8B4513;
    color: #fff;
    border-color: #8B4513;
}

.pagination .ellipsis {
    border: none;
    background: none;
}

/* ========== 页脚 ========== */
.footer {
    background: #1a1a1a;
    padding: 50px 0 20px;
    color: #999;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h4 {
    color: #D4A574;
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
}

.footer-links h5 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #999;
    font-size: 14px;
}

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

.footer-bottom .icp {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* ========== 会员中心 ========== */
.member-hero {
    background: linear-gradient(135deg, #2c1810 0%, #1a0f0a 100%);
    padding: 40px 0;
    color: #fff;
}

.member-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.member-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #D4A574, #8B4513);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    border: 3px solid rgba(255,255,255,0.2);
}

.profile-info h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.profile-info p {
    opacity: 0.8;
}

.member-status {
    text-align: right;
}

.vip-expire {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.renew-btn {
    display: inline-block;
    padding: 10px 30px;
    background: #D4A574;
    color: #fff;
    border-radius: 25px;
    font-size: 14px;
}

.renew-btn:hover {
    background: #c49560;
    color: #fff;
}

.member-menu {
    padding: 30px 0;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-color: #D4A574;
}

.menu-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8B4513, #654321);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.menu-text h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 3px;
}

.menu-text p {
    font-size: 12px;
    color: #999;
}

/* ========== 帮助中心 ========== */
.help-section {
    padding: 40px 0;
}

.help-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.help-categories {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    height: fit-content;
}

.help-categories h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.help-categories ul li {
    margin-bottom: 12px;
}

.help-categories a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
}

.help-categories a:hover,
.help-categories a.active {
    background: #f5f5f5;
    color: #8B4513;
}

.help-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
}

.help-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.help-content h4 {
    font-size: 18px;
    margin: 25px 0 15px;
    color: #333;
}

.help-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #666;
}

.help-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.help-content ul li {
    margin-bottom: 8px;
    color: #666;
    list-style: disc;
}

/* ========== 搜索页 ========== */
.search-header {
    padding: 40px 0;
    background: linear-gradient(135deg, #8B4513 0%, #5D3A1A 100%);
    text-align: center;
    color: #fff;
}

.search-header h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
}

.search-box button {
    padding: 15px 30px;
    background: #D4A574;
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.search-result {
    padding: 30px 0;
}

.search-stats {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.search-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.search-item:hover {
    border-color: #D4A574;
    box-shadow: 0 3px 15px rgba(139, 69, 19, 0.1);
}

.search-cover {
    width: 100px;
    height: 130px;
    background: linear-gradient(135deg, #e8d4b8 0%, #d4b896 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    flex-shrink: 0;
}

.search-info {
    flex: 1;
}

.search-info h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.search-info h4 a:hover {
    color: #8B4513;
}

.search-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.search-tags {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
.header {        position: relative;        z-index: 100;    }
    .nav-menu {
        display: none;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .resource-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .vip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vip-card.featured {
        transform: none;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-wrapper {
        grid-template-columns: 1fr;
    }
    
    .detail-cover {
        position: static;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .help-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 28px;
    }
    
    .hero-stats {
        gap: 30px;
        flex-wrap: wrap;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vip-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .resource-list .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .member-card {
        flex-direction: column;
        text-align: center;
    }
    
    .member-status {
        text-align: center;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .search-item {
        flex-direction: column;
    }
    
    .search-cover {
        width: 100%;
        height: 150px;
    }
}

/* ========== 后台样式 ========== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: #2c1810;
    color: #fff;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar .logo {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar .logo h3 {
    color: #D4A574;
    font-size: 18px;
}

.admin-menu {
    padding: 20px 0;
}

.admin-menu li {
    margin-bottom: 5px;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.admin-menu a:hover,
.admin-menu a.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.admin-menu a.active {
    border-left: 3px solid #D4A574;
}

.admin-content {
    flex: 1;
    margin-left: 240px;
    background: #f5f5f5;
}

.admin-header {
    background: #fff;
    padding: 15px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h2 {
    font-size: 20px;
    color: #333;
}

.admin-main {
    padding: 30px;
}

.admin-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.admin-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f9f9f9;
    font-weight: 500;
    color: #666;
    font-size: 14px;
}

.data-table tr:hover {
    background: #f9f9f9;
}

.data-table .actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background: #8B4513;
    color: #fff;
}

.btn-primary:hover {
    background: #654321;
}

.btn-success {
    background: #27ae60;
    color: #fff;
}

.btn-danger {
    background: #e74c3c;
    color: #fff;
}

.btn-secondary {
    background: #95a5a6;
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.stat-card h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.stat-card .number {
    font-size: 32px;
    font-weight: bold;
    color: #8B4513;
}

.stat-card .trend {
    font-size: 12px;
    margin-top: 5px;
}

.stat-card .trend.up {
    color: #27ae60;
}

.stat-card .trend.down {
    color: #e74c3c;
}

/* ========== 通用封面图处理 ========== */
/* 适用于所有封面图容器，确保不同比例图片美观显示 */

/* 封面图容器 - 固定宽高比 */
.cover-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e8d4b8 0%, #d4b896 100%);
}

/* 横版封面 (如16:9) */
.cover-wrapper.landscape {
    aspect-ratio: 16/9;
}

/* 竖版封面 (如3:4，书籍常用) */
.cover-wrapper.portrait {
    aspect-ratio: 3/4;
}

/* 正方形封面 */
.cover-wrapper.square {
    aspect-ratio: 1/1;
}

/* 封面图片统一样式 */
.cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* 懒加载占位图样式 */
.cover-placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8d4b8 0%, #d4b896 100%);
    color: rgba(139, 69, 19, 0.3);
    font-size: 48px;
}

/* 图片加载失败时的样式 */
.cover-wrapper img.error,
.cover-wrapper img[src=""] {
    display: none;
}

.cover-wrapper img.error + .cover-placeholder-img,
.cover-wrapper img[src=""] + .cover-placeholder-img {
    display: flex;
}

/* 图片加载动画 */
.cover-wrapper img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cover-wrapper img.loaded {
    opacity: 1;
}

/* ========== 搜索结果页封面 ========== */
.search-result-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.search-result-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.search-result-cover {
    width: 100px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8d4b8 0%, #d4b896 100%);
}

.search-result-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.search-result-info {
    flex: 1;
}

.search-result-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.search-result-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* ========== 后台管理封面样式 ========== */
/* 资源列表缩略图 */
.admin-thumb {
    width: 50px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.admin-thumb .default-icon {
    font-size: 24px;
    color: #ccc;
}

/* AI发布页面预览图 */
.ai-preview-cover {
    width: 80px;
    height: 110px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
}

.ai-preview-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* 分类图标传统风格 */
.category-card[data-cat="yijing"] .category-icon { background: linear-gradient(135deg, #8B0000, #5c0000); }
.category-card[data-cat="bencao"] .category-icon { background: linear-gradient(135deg, #228B22, #145214); }
.category-card[data-cat="fangshu"] .category-icon { background: linear-gradient(135deg, #4169E1, #2a4a9e); }
.category-card[data-cat="zhenjiu"] .category-icon { background: linear-gradient(135deg, #DAA520, #b8860b); }
.category-card[data-cat="yian"] .category-icon { background: linear-gradient(135deg, #8B4513, #5c2d0e); }
.category-card[data-cat="yihua"] .category-icon { background: linear-gradient(135deg, #2F4F4F, #1a2f2f); }

/* 分类卡片传统风格配色 */
.category-card.cat-yijing .category-icon { 
    background: linear-gradient(135deg, #8B0000, #5c0000); 
    border-color: #ffcccc;
}
.category-card.cat-bencao .category-icon { 
    background: linear-gradient(135deg, #228B22, #145214); 
    border-color: #ccffcc;
}
.category-card.cat-fangshu .category-icon { 
    background: linear-gradient(135deg, #1565C0, #0d47a1); 
    border-color: #bbdefb;
}
.category-card.cat-zhenjiu .category-icon { 
    background: linear-gradient(135deg, #F57C00, #e65100); 
    border-color: #ffe0b2;
}
.category-card.cat-yian .category-icon { 
    background: linear-gradient(135deg, #5D4037, #3e2723); 
    border-color: #d7ccc8;
}
.category-card.cat-yihua .category-icon { 
    background: linear-gradient(135deg, #455A64, #263238); 
    border-color: #cfd8dc;
}

/* 分类卡片顶部装饰条 */
.category-card.cat-yijing { border-top: 4px solid #8B0000; }
.category-card.cat-bencao { border-top: 4px solid #228B22; }
.category-card.cat-fangshu { border-top: 4px solid #1565C0; }
.category-card.cat-zhenjiu { border-top: 4px solid #F57C00; }
.category-card.cat-yian { border-top: 4px solid #5D4037; }
.category-card.cat-yihua { border-top: 4px solid #455A64; }
.tag { padding: 8px 18px; background: linear-gradient(135deg, #fdfbf7, #f5f0e6); border: 1px solid #D4A574; border-radius: 20px; font-size: 14px; color: #8B4513; }


/* ========== 移动端导航 ========== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端遮罩 */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 50;
}

.nav-overlay.active {
    display: block;
}


/* ========== 响应式布局 ========== */
@media (max-width: 768px) {
.header {        position: relative;        z-index: 100;    }
    /* 隐藏顶部工具栏 */
    .nav-top {
        /* display: none; */
    }
    
    /* 导航主体 */
    .nav-main {
        padding: 0;
    }
    
    .nav-main .container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        padding: 15px;
    }
    
    /* 第一行：Logo居中放大 */
    .logo {
        order: 1;
        width: 100%;
        justify-content: center;
        margin-bottom: 12px;
    }
    
    /* Logo样式放大 */
    .logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
        width: 48px;
        height: 48px;
        font-size: 26px;
    }
    
    .logo-text h1 {
        font-size: 22px;
        letter-spacing: 3px;
    }
    
    .logo-text p {
        font-size: 13px;
        letter-spacing: 1px;
    }
    
    /* 第二行：汉堡菜单 + 搜索框 铺满 */
    .nav-toggle {
        display: flex;
        order: 2;
    }
    
    .nav-search {
        order: 3;
        flex: 1;
        margin-left: 12px;
    }
    
    .nav-search input {
        flex: 1;
        width: auto;
    }
    
    /* 隐藏桌面端顶部用户链接 */
    .nav-top-right {
        /* display: none; */
    }
    
    /* 侧滑菜单 */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
        flex-direction: column;
        padding: 0;
        gap: 0;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        display: flex;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 15px;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(255,255,255,0.1);
    }
}

@media (max-width: 576px) {
    .nav-main .container {
        padding: 12px;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
        width: 42px;
        height: 42px;
        font-size: 23px;
    }
    
    .logo-text h1 {
        font-size: 19px;
        letter-spacing: 2px;
    }
    
    .logo-text p {
        font-size: 12px;
    }
    
    .nav-search {
        margin-left: 10px;
    }
    
    .nav-search input {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .nav-search button {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* 移动端用户信息样式 */
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 10px;
}

    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

    display: inline-block;
    background: #D4A574;
    color: #fff;
    padding: 6px 16px;
    border-radius: 15px;
    font-size: 13px;
}

    display: inline-block;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 14px;
    margin: 0 5px;
}

    background: #fff;
    color: #8B4513;
}

    background: #D4A574;
    color: #fff;
}

    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 10px 0;
}

    color: rgba(255,255,255,0.6) !important;
    font-size: 13px !important;
}
/* 移动端用户信息样式 - 重新设计 */
.mobile-user-info {
    padding: 25px 20px;
    text-align: center;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-user-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 8px;
}

.mobile-user-name {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.mobile-vip-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

.mobile-vip-link {
    display: inline-block;
    background: #D4A574;
    color: #fff;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 12px;
}

/* 登录注册按钮 - 紧凑设计 */
.mobile-login-btn, .mobile-register-btn {
    display: inline-block;
    padding: 8px 28px;
    border-radius: 18px;
    font-size: 14px;
    margin: 5px;
    font-weight: 500;
}

.mobile-login-btn {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.5);
}

.mobile-login-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.mobile-register-btn {
    background: #D4A574;
    color: #fff;
    border: 1px solid #D4A574;
}

.mobile-register-btn:hover {
    background: #c49566;
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0;
}

.mobile-logout {
    color: rgba(255,255,255,0.5) !important;
    font-size: 13px !important;
}

/* 移动端Hero区域优化 */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
    }
    
    .hero h2 {
        font-size: 20px !important;
        letter-spacing: 1px !important;
        line-height: 1.6 !important;
        padding: 0 10px;
    }
    
    .hero p {
        font-size: 14px !important;
        padding: 0 15px;
        margin-bottom: 20px;
    }
    
    .hero-stats {
        gap: 20px !important;
        flex-wrap: wrap;
        margin-top: 25px;
    }
    
    .stat-item {
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 22px !important;
    }
    
    .stat-label {
        font-size: 12px !important;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 30px 0;
    }
    
    .hero h2 {
        font-size: 17px !important;
        padding: 0 8px;
    }
    
    .hero p {
        font-size: 13px !important;
        padding: 0 10px;
    }
    
    .hero-stats {
        gap: 15px !important;
    }
    
    .stat-number {
        font-size: 18px !important;
    }
    
    .stat-label {
        font-size: 11px !important;
    }
}

/* 移动端页脚优化 */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px 15px !important;
        margin-bottom: 25px !important;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        padding-bottom: 10px;
        border-bottom: 1px solid #333;
        margin-bottom: 5px;
    }
    
    .footer-brand h4 {
        font-size: 17px;
        margin-bottom: 8px;
    }
    
    .footer-brand p {
        font-size: 12px;
        line-height: 1.6;
        margin-bottom: 0;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links h5 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .footer-links li {
        margin-bottom: 6px;
    }
    
    .footer-links a {
        font-size: 12px;
    }
    
    .footer-bottom {
        padding-top: 15px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 25px 0 12px;
    }
    
    .footer-grid {
        gap: 15px 10px !important;
        margin-bottom: 20px !important;
    }
    
    .footer-brand h4 {
        font-size: 15px;
    }
    
    .footer-brand p {
        font-size: 11px;
    }
    
    .footer-links h5 {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .footer-links a {
        font-size: 11px;
    }
}

/* 移动端统计数据同一排 */
@media (max-width: 768px) {
    .hero-stats {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-around !important;
        gap: 10px !important;
    }
    
    .stat-item {
        flex: 1;
        min-width: auto !important;
    }
    
    .stat-number {
        font-size: 18px !important;
    }
    
    .stat-label {
        font-size: 10px !important;
    }
}

@media (max-width: 576px) {
    .stat-number {
        font-size: 15px !important;
    }
    
    .stat-label {
        font-size: 9px !important;
    }
}

/* 移动端资源卡片优化 */
@media (max-width: 768px) {
    .section-title {
        margin-bottom: 15px !important;
    }
    
    .section-title h3 {
        font-size: 18px !important;
        margin-bottom: 5px !important;
    }
    
    .section-title p {
        font-size: 12px !important;
    }
    
    .resource-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .resource-card {
        border-radius: 8px;
    }
    
    .resource-cover {
        height: 140px !important;
    }
    
    .book-icon {
        font-size: 40px !important;
    }
    
    .resource-info {
        padding: 10px !important;
    }
    
    .resource-info h5 {
        font-size: 13px !important;
        margin-bottom: 5px !important;
    }
    
    .resource-meta {
        font-size: 11px !important;
    }
    
    .resource-meta span {
        display: block;
        margin-bottom: 2px;
    }
}

@media (max-width: 576px) {
    .resource-grid {
        gap: 10px !important;
    }
    
    .resource-cover {
        height: 120px !important;
    }
    
    .resource-info {
        padding: 8px !important;
    }
    
    .resource-info h5 {
        font-size: 12px !important;
    }
    
    .resource-meta {
        font-size: 10px !important;
    }
}

/* 移动端搜索页优化 */
@media (max-width: 768px) {
    .search-hero {
        padding: 30px 15px !important;
    }
    
    .search-hero h2 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }
    
    .search-box-large {
        flex-direction: row !important;
        gap: 8px !important;
    }
    
    .search-box-large input {
        padding: 10px 15px !important;
        font-size: 14px !important;
        border-radius: 20px !important;
        border-width: 1px !important;
    }
    
    .search-box-large button {
        padding: 10px 18px !important;
        font-size: 13px !important;
        border-radius: 20px !important;
        white-space: nowrap;
    }
    
    .search-stats {
        padding: 15px 15px !important;
    }
    
    .search-stats p {
        font-size: 13px !important;
    }
    
    .search-stats strong {
        font-size: 18px !important;
    }
}

@media (max-width: 576px) {
    .search-hero {
        padding: 20px 12px !important;
    }
    
    .search-hero h2 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    
    .search-box-large input {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
    
    .search-box-large button {
        padding: 8px 14px !important;
        font-size: 12px !important;
    }
}

/* Logo图片样式 */
.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* 移动端详情页优化 */
@media (max-width: 768px) {
    .detail-container {
        padding: 15px 0;
    }
    
    .detail-wrapper {
        gap: 20px;
    }
    
    .detail-cover {
        max-width: 200px;
    }
    
    .detail-info h1 {
        font-size: 20px !important;
        margin-bottom: 10px;
    }
    
    .detail-meta {
        flex-wrap: wrap;
        gap: 10px 15px !important;
        font-size: 13px !important;
    }
    
    .detail-meta span {
        gap: 4px;
    }
    
    .detail-tags {
        gap: 8px;
    }
    
    .tag {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .detail-description {
        font-size: 14px;
        line-height: 1.7;
    }
}

@media (max-width: 576px) {
    .detail-container {
        padding: 10px 0;
    }
    
    .detail-cover {
        max-width: 160px;
    }
    
    .detail-info h1 {
        font-size: 18px !important;
    }
    
    .detail-meta {
        gap: 8px 12px !important;
        font-size: 12px !important;
    }
    
    .tag {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .detail-description {
        font-size: 13px;
    }
}
