/**
 * 黄中宫主题样式
 * 基于书籍封面设计的金色主题
 */

/* 主背景 - 金色/棕色渐变 */
body {
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 235, 200, 0.3) 0, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 165, 116, 0.25) 0, transparent 50%),
        linear-gradient(135deg, #d4a574 0%, #b8860b 30%, #8b6914 70%, #6b4e1a 100%);
    color: #2c2416;
}

/* 容器 - 暖金色背景 */
.container {
    background: rgba(249, 240, 220, 0.98);
    border: 2px solid rgba(184, 134, 11, 0.4);
    box-shadow: 0 20px 60px rgba(139, 105, 20, 0.4);
}

/* 顶部导航栏 - 深金色 */
.top-navbar {
    background: linear-gradient(135deg, rgba(139, 105, 20, 0.95) 0%, rgba(107, 78, 26, 0.95) 100%);
    color: #f9f0dc;
    box-shadow: 0 4px 15px rgba(107, 78, 26, 0.3);
}

.navbar-item {
    color: #f9f0dc;
    transition: all 0.3s;
}

.navbar-item:hover,
.navbar-item.active {
    background: rgba(212, 165, 116, 0.3);
    color: #fff;
    border-color: rgba(212, 165, 116, 0.5);
}

/* 头部区域 - 金色渐变 */
.header {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.95) 0%, rgba(184, 134, 11, 0.95) 50%, rgba(139, 105, 20, 0.95) 100%);
    color: #2c2416;
    position: relative;
    overflow: hidden;
}

/* 装饰性白色抽象图案（模拟封面设计） */
.header::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 40%;
    height: 140%;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.4) 0, transparent 50%),
        linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.3) 30%, transparent 60%);
    transform: rotate(-15deg);
    border-radius: 50%;
    pointer-events: none;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -5%;
    width: 35%;
    height: 120%;
    background: 
        radial-gradient(ellipse at 70% 80%, rgba(255, 255, 255, 0.35) 0, transparent 50%),
        linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.25) 40%, transparent 70%);
    transform: rotate(25deg);
    border-radius: 50%;
    pointer-events: none;
}

.header h1 {
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header p {
    position: relative;
    z-index: 1;
    opacity: 0.85;
}

/* 主导航 - 浅金色背景 */
.main-nav {
    background: linear-gradient(to bottom, #f9f0dc 0%, #f5e6d3 100%);
    border-bottom: 2px solid rgba(184, 134, 11, 0.3);
}

.main-nav-item {
    background: rgba(255, 250, 240, 0.96);
    border: 1px solid rgba(184, 134, 11, 0.4);
    color: #6b4e1a;
}

.main-nav-item:hover,
.main-nav-item.active {
    background: linear-gradient(135deg, #d4a574 0%, #b8860b 100%);
    color: #fff;
    border-color: #8b6914;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

/* 分类标签 */
.category-tabs {
    background: linear-gradient(to bottom, #f5e6d3 0%, #f0dcc0 100%);
    border-bottom: 2px solid rgba(184, 134, 11, 0.3);
}

.category-tab {
    background: rgba(255, 250, 240, 0.96);
    border: 1px solid rgba(184, 134, 11, 0.4);
    color: #6b4e1a;
}

.category-tab:hover,
.category-tab.active {
    background: linear-gradient(135deg, #d4a574 0%, #b8860b 100%);
    color: #fff;
    border-color: #8b6914;
}

/* 视频/书籍卡片 */
.video-card,
.book-card {
    background: rgba(255, 250, 240, 0.98);
    border: 1px solid rgba(184, 134, 11, 0.3);
    box-shadow: 0 4px 15px rgba(139, 105, 20, 0.15);
}

.video-card:hover,
.book-card:hover {
    border-color: rgba(184, 134, 11, 0.6);
    box-shadow: 0 8px 25px rgba(139, 105, 20, 0.25);
    transform: translateY(-3px);
}

/* 分类标题 */
.category-title {
    color: #6b4e1a;
}

.category-title i {
    color: #b8860b;
}

.category-subtitle {
    color: #8b6914;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #d4a574 0%, #b8860b 100%);
    color: #2c2416;
    border: 1px solid #8b6914;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.4);
}

.btn-secondary {
    background: rgba(139, 105, 20, 0.1);
    color: #6b4e1a;
    border: 1px solid rgba(184, 134, 11, 0.4);
}

.btn-secondary:hover {
    background: rgba(139, 105, 20, 0.2);
    border-color: rgba(184, 134, 11, 0.6);
}

/* 内容区域 */
.content-section {
    background: rgba(255, 250, 240, 0.5);
}

/* 书籍封面区域 */
.book-cover {
    background: linear-gradient(135deg, #d4a574 0%, #b8860b 50%, #8b6914 100%);
}

/* 视频缩略图区域 */
.video-thumbnail {
    background: linear-gradient(135deg, #d4a574 0%, #b8860b 100%);
}

/* 播放图标 */
.play-icon {
    background: rgba(212, 165, 116, 0.9);
    color: #2c2416;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header::before,
    .header::after {
        opacity: 0.5;
    }
}

