/*
 * 1701 GEEK CORE - FINAL PC VERSION (V11.0)
 * Description: Detail Page Optimized (Wider Sidebar + Larger Text).
 */

/* === 1. 全局变量与重置 (VARIABLES & RESET) === */
:root {
    --primary: #673AB7;          /* 主题紫 */
    --text-main: #1c1c1c;        /* 主黑 */
    --text-sub: #767676;         /* 次灰 */
    --bg-body: #ffffff;
    --border-light: #eaeaea;     /* 浅边框 */
    --border-dark: #000000;      /* 深边框 */
    --font-mono: 'Courier New', Courier, monospace; /* 等宽字体 */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    
    /* 统一间距标准 */
    --gap-md: 30px;
    --gap-lg: 50px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--primary); color: #ffffff; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    min-width: 1200px; /* PC端最小宽度锁定 */
}

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
a:hover { color: var(--primary); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* === 2. 核心布局 (LAYOUT) === */
.container { 
    max-width: 1400px; 
    width: 100%; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* 顶部导航容器 */
.header { 
    background-color: #fff; 
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light); 
    position: sticky; top: 0; z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.header .container { display: flex; align-items: center; justify-content: space-between; }

.logo a { 
    font-family: var(--font-mono);
    font-size: 24px; font-weight: 800; letter-spacing: -1px; color: #000;
}

.nav { margin: 0 40px; flex-grow: 1; }

/* 导航网格 (大气间距版) */
.category-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 30px; /* 大气间距 */
}

/* 导航按钮 (像素边框风) */
.grid-item { position: relative; z-index: 100; }
.grid-item a {
    display: inline-block; 
    padding: 6px 16px; /* 精致尺寸 */
    font-family: var(--font-mono); 
    font-size: 12px; font-weight: 700;
    color: #333; 
    background: #fff;
    /* 像素双层边框 */
    box-shadow: 
        inset 2px 2px 0px #fff, 
        inset -2px -2px 0px #fff, 
        0 0 0 1px #000; 
    border: 2px solid transparent; 
    transition: all 0.2s;
    letter-spacing: 0.5px;
    border-radius: 2px;
}
.grid-item a:hover { 
    background-color: var(--primary);
    color: #fff;
    box-shadow: 
        inset 2px 2px 0px var(--primary), 
        inset -2px -2px 0px var(--primary), 
        0 0 0 1px #000;
    transform: translateY(-2px); /* 微微上浮 */
}
.grid-item.active a { 
    background-color: #000; color: #fff;
    box-shadow: none; border: 2px solid #000;
}

/* 下拉菜单 (极简清爽版) */
.submenu {
    display: none; 
    position: absolute; 
    top: calc(100% + 6px); /* 间距 */
    left: 0; 
    background-color: #fff; 
    min-width: 160px; 
    z-index: 1010;
    border: 1px solid #ebebeb; /* 极细边框 */
    box-shadow: 0 6px 16px rgba(0,0,0,0.08); /* 柔和阴影 */
    padding: 6px 0; border-radius: 4px;
}
.grid-item:hover > .submenu { display: block; }

.submenu li a {
    display: block; 
    padding: 9px 20px; 
    width: 100%; border: none; 
    text-align: left;
    font-family: var(--font-sans); 
    font-size: 13px; font-weight: 500;
    color: #666; background: transparent;
    transition: all 0.2s ease;
    box-shadow: none;
}
.submenu li a:hover { 
    background-color: #f9f9f9; 
    color: var(--primary); 
    padding-left: 26px; /* 文字滑动特效 */
    transform: none; border: none;
}

/* 语言切换 */
.language-switcher a {
    font-family: var(--font-mono);
    font-size: 12px; font-weight: 700; padding: 6px 12px;
    border: 1px solid var(--border-light);
}
.language-switcher a:hover { border-color: var(--border-dark); background: var(--border-dark); color: #fff; }

/* === 3. 通用组件 (COMPONENTS) === */

/* 版块标题 */
.section-header { 
    display: flex; justify-content: space-between; align-items: baseline; 
    margin-bottom: 25px; padding-bottom: 10px; 
    border-bottom: 2px solid var(--border-dark); 
}
.section-header h2 {
    font-family: var(--font-mono);
    font-size: 20px; font-weight: 800; color: #000;
    letter-spacing: -0.5px; margin: 0;
}
.more-link {
    font-family: var(--font-mono); font-size: 13px; color: #999; font-weight: 600;
}
.more-link:hover { color: var(--primary); text-decoration: underline; }

/* 视频网格 (Grid System) */
.video-grid {
    display: grid;
    /* 默认 5 列 (适合首页、分类页) */
    grid-template-columns: repeat(5, 1fr); 
    gap: 30px 20px;
}
/* 特殊网格：搜索页、专题页强制 4 列 */
.video-grid.grid-4-col {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px 25px !important;
}

/* 视频卡片 */
.video-card {
    display: block; position: relative; background: #fff;
    border: 1px solid var(--border-light);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.video-card:hover { 
    border-color: #bbb; 
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.video-card-image {
    position: relative; width: 100%; padding-top: 56.25%; /* 16:9 */
    background: #f0f0f0; overflow: hidden;
}
.video-card-image img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
}
.video-card-label {
    position: absolute; bottom: 5px; right: 5px;
    background: rgba(0,0,0,0.8); color: #fff;
    font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    padding: 2px 6px; border-radius: 2px;
}
.video-card-info { padding: 12px; }
.video-title {
    font-size: 14px; font-weight: 600; color: #333;
    line-height: 1.4; margin: 0;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.video-card:hover .video-title { color: var(--primary); }

/* 分页 */
.pagination { margin: 60px 0; text-align: center; }
.el-pager { display: inline-flex; gap: 10px; }
.el-pager a, .el-pager span {
    padding: 8px 16px; font-family: var(--font-mono); font-weight: 600;
    color: #666; border: 1px solid transparent; border-radius: 2px;
}
.el-pager .active span, .el-pager a:hover {
    color: #fff; background-color: var(--border-dark); border-color: var(--border-dark);
}

/* Footer */
.footer { 
    margin-top: 80px; padding: 60px 0; 
    border-top: 1px solid var(--border-light); 
    background: #fafafa;
    text-align: center; color: #999; font-size: 13px;
}
.footer-links { margin-bottom: 15px; }
.footer-links a { margin: 0 15px; color: #666; font-weight: 500; }
.footer-links a:hover { color: #000; text-decoration: underline; }

/* === 4. 专题/搜索/分类页 核心样式 (GEEK LANDING STYLE) === */

/* 页面顶部呼吸空间 */
.video-section[aria-label="专题内容页面"],
.video-section[aria-label="分類影片列表頁面"] {
    padding-top: var(--gap-lg);
}

/* 专题页头部 (Landing Header) - 上浮标签+高亮大标题 */
.landing-header {
    margin-bottom: 50px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 40px;
    position: relative;
}
.landing-title {
    font-family: var(--font-mono);
    color: #1c1c1c; margin: 0; line-height: 1.4;
}
.landing-title .prefix {
    display: flex; align-items: center;
    font-family: var(--font-sans); font-size: 13px; font-weight: 700;
    color: #999; text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 15px;
}
.landing-title .prefix::before {
    content: ''; display: inline-block; width: 8px; height: 8px;
    background-color: var(--primary); margin-right: 8px; border-radius: 2px;
}
.landing-title .keyword-highlight {
    display: inline-block; font-size: 36px; font-weight: 800; color: #000;
    background: linear-gradient(180deg, rgba(255,255,255,0) 60%, rgba(103, 58, 183, 0.15) 60%);
    padding: 0 5px; letter-spacing: -1px;
}
/* 修改后的 .landing-intro (全宽通栏版) */
.landing-intro {
    /* [核心修改] 移除 900px 限制，改为 100% 全宽 */
    max-width: 100%; 
    
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    font-weight: 400;
    
    /* 视觉样式微调 */
    border-left: 4px solid var(--primary); /* 加粗左侧紫线 */
    margin-top: 25px;
    background: #f9f9f9;
    
    /* [修改] 增加内边距，让大色块更舒适 */
    padding: 25px 35px; 
    
    border-radius: 0 4px 4px 0;
    
    /* [新增] 文本两端对齐，增强“极客文档块”的整齐感 */
    text-align: justify; 
}

/* 左右分栏布局系统 */
.landing-layout {
    display: flex; gap: 40px; align-items: flex-start;
}
.landing-main { flex: 1; min-width: 0; }
.landing-sidebar {
    width: 380px; /* [修改] 侧边栏宽度从300加大到380 */
    flex-shrink: 0;
    position: sticky; top: 100px; /* 侧边栏吸顶 */
}

/* 侧边栏：极客信息框 (Geek Meta Box) */
.geek-meta-box {
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.meta-header {
    font-family: var(--font-mono); 
    font-size: 14px; /* [修改] 字号加大 */
    color: #999;
    margin-bottom: 15px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    border-bottom: 1px dashed #ddd; padding-bottom: 5px;
}

/* 侧边栏元素：Key-Value 行 */
.meta-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px; /* [修改] 间距微增 */
    font-size: 15px; /* [修改] 字号加大 */
}
.meta-key { font-family: var(--font-mono); color: #bbb; margin-right: 10px; }
.meta-val-link {
    color: #333; font-weight: 600;
    border-bottom: 1px solid transparent;
    text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.meta-val-link:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* 侧边栏元素：列表模式 */
.list-view { display: flex; flex-direction: column; gap: 8px; }
.list-item {
    font-size: 15px; /* [修改] 字号加大 */
    color: #555; display: block; transition: all 0.2s;
    padding: 3px 0; /* [修改] 增加点击区域 */
}
.list-item .bullet {
    font-family: var(--font-mono); color: var(--primary); font-weight: bold; margin-right: 6px;
}
.list-item:hover { color: #000; transform: translateX(5px); }

/* 侧边栏元素：标签云 */
.tag-cloud-simple { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-tag {
    display: inline-block; 
    padding: 5px 12px; /* [修改] 内边距加大 */
    background: #f8f9fa; color: #666;
    font-size: 13px; /* [修改] 字号加大 */
    border-radius: 2px;
    border: 1px solid transparent; transition: all 0.2s;
    font-family: var(--font-mono);
}
.meta-tag:hover { background: #fff; color: var(--primary); border-color: var(--primary); }

/* 面包屑导航 (分类页/详情页) */
.geek-breadcrumb {
    font-family: var(--font-mono); font-size: 13px; color: #999;
    padding: 15px 0; margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center; flex-wrap: wrap;
}
.geek-breadcrumb span.sep { margin: 0 8px; color: #ddd; }
.geek-breadcrumb span.current { color: #333; font-weight: 700; }
.geek-breadcrumb a:hover { color: var(--primary); text-decoration: underline; }

/* 子分类面板 (分类页) */
.geek-panel {
    background-color: #fcfcfc; border: 1px dashed #ccc;
    padding: 20px; margin-bottom: 40px; border-radius: 4px;
}
.geek-panel-header {
    font-family: var(--font-mono); font-size: 12px; color: #999;
    letter-spacing: 1px; margin-bottom: 15px; text-transform: uppercase;
    display: flex; align-items: center;
}
.geek-panel-header::before { content: '[+]'; margin-right: 6px; color: var(--primary); font-weight: bold; }
.geek-tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.geek-tag-btn {
    display: inline-block; padding: 6px 12px;
    background: #fff; border: 1px solid #e0e0e0;
    color: #555; font-size: 13px; font-weight: 500;
    border-radius: 2px; transition: all 0.2s;
}
.geek-tag-btn:hover {
    border-color: var(--primary); color: var(--primary);
    transform: translateY(-2px); box-shadow: 2px 2px 0 rgba(103, 58, 183, 0.1);
}

/* 底部组合标签面板 (分类页底部 - 按钮风格) */
.related-combos-panel {
    margin-top: 60px; 
    border-top: 2px solid #000; /* 顶部硬朗分割线 */
    padding-top: 30px;
    margin-bottom: 40px;
}
.related-combos-header {
    font-family: var(--font-mono); 
    font-size: 16px; 
    font-weight: 800;
    margin-bottom: 25px; 
    color: #000;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}
.related-combos-header::before {
    content: '>>'; 
    color: var(--primary); 
    margin-right: 10px;
    font-weight: bold;
    letter-spacing: -2px;
}
.combo-cloud { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 12px; /* 按钮之间的间距 */
}
.combo-cloud a {
    display: inline-block;
    padding: 10px 18px;          /* 充裕的内边距 */
    background-color: #ffffff;   /* 纯白背景 */
    border: 1px solid #e0e0e0;   /* 浅灰边框 */
    color: #555;                 /* 深灰文字 */
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;          /* 4px 微圆角 */
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: var(--font-sans);
    text-decoration: none;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.combo-cloud a:hover {
    border-color: var(--primary);        /* 边框变紫 */
    color: var(--primary);               /* 文字变紫 */
    background-color: #fbf9ff;           /* 背景变极淡的紫色 */
    transform: translateY(-3px);         /* 向上浮动 */
    box-shadow: 0 4px 12px rgba(103, 58, 183, 0.15); /* 紫色柔光投影 */
}

/* === 5. 首页专用 (HOME SPECIFIC) === */
.home-section { margin-bottom: 48px; position: relative; }
.home-section:last-child { margin-bottom: 0; }

/* 首页布局容器 */
.main-content-grid { 
    display: grid; grid-template-columns: 280px 1fr;
    gap: 0 50px; align-items: flex-start; margin-top: 30px; 
}
.main-video-content { min-width: 0; }

/* 首页侧边栏：Clean White Style */
.combo-tag-sidebar { 
    margin-top: 25px !important; 
    position: sticky; top: 90px; 
}
.combo-tag-sidebar .section-header { 
    border-bottom: 2px solid #000; margin-bottom: 20px; 
    padding-bottom: 10px; display: flex; align-items: center; justify-content: space-between;
}
.combo-tag-sidebar .section-header h2 {
    background: #000; color: #fff; padding: 4px 10px;
    font-family: 'Courier New', Courier, monospace; font-size: 14px !important;
    font-weight: 700; letter-spacing: 1px; border-radius: 2px; margin: 0;
}
.heart-emoji { font-size: 12px; animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* 首页侧边栏列表 */
.combo-tag-list { 
    list-style: none; padding: 0; margin: 0; 
    display: flex; flex-direction: column; gap: 8px; 
}
.combo-tag-item {
    display: flex; align-items: center; padding: 10px 15px; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px; font-weight: 500; color: #666; 
    background-color: #fff; border: 1px solid #f2f2f2; 
    transition: all 0.2s ease; position: relative; border-radius: 4px;
}
.combo-tag-item::before {
    content: '>'; font-family: 'Courier New', monospace;
    margin-right: 10px; color: #e0e0e0; font-weight: bold; transition: all 0.2s;
}
.combo-tag-item:hover {
    border-color: var(--primary); color: #000; background-color: #fff;
    box-shadow: 0 4px 15px rgba(103, 58, 183, 0.1); 
    transform: translateX(5px); z-index: 1;
}
.combo-tag-item:hover::before { color: var(--primary); }

.combo-tag-item.special-tag { border-color: #ffcdd2; color: #d32f2f; background-color: #fff; }
.combo-tag-item.special-tag::before { color: #ffcdd2; }
.combo-tag-item.special-tag:hover { 
    border-color: #d32f2f; background-color: #fffafa;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.12);
}
.combo-tag-item.special-tag:hover::before { color: #d32f2f; }

/* 暂无数据提示 */
.no-data-box, .no-result-box {
    padding: 80px 0; text-align: center;
    background: #f9f9f9; color: #999;
    font-family: var(--font-mono); border-radius: 4px;
    grid-column: 1 / -1;
}

/* === 侧边栏递进式导航 (Silo Navigation) 样式微调 === */

/* 1. 动态面包屑标题容器 */
.silo-navigation-box .meta-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    line-height: 1.5;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-light); /* 使用系统浅色边框 */
}

/* 2. 面包屑中的原子链接 */
.breadcrumb-anchor-link {
    color: var(--text-sub); /* 默认使用次要灰色，降低视觉干扰 */
    font-family: var(--font-mono); /* 使用极客等宽字体 */
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.breadcrumb-anchor-link:hover {
    color: var(--primary); /* 悬停时激活主题紫 */
    border-bottom-color: var(--primary);
    text-decoration: none;
}

/* 3. 分隔符样式 */
.anchor-sep {
    margin: 0 6px;
    color: #ccc;
    font-weight: normal;
    font-family: var(--font-mono);
}

.breadcrumb-trail-arrow {
    margin-left: 8px;
    color: var(--primary); /* 箭头使用主题色，指引前进方向 */
    font-weight: 900;
    animation: pulse-arrow 2s infinite; /* 增加一个微弱的呼吸效果，引导注意 */
}

@keyframes pulse-arrow {
    0%, 100% { opacity: 1; transform: translateX(0); }
    50% { opacity: 0.5; transform: translateX(3px); }
}

/* 4. 下方探索建议项的强化 */
.silo-discovery-item {
    font-weight: 700 !important; /* 进阶标签加粗处理 */
    color: var(--text-main) !important; /* 文字颜色加深 */
    font-size: 15px;
    position: relative;
    padding-left: 5px;
}

.silo-discovery-item .bullet {
    color: var(--primary); /* 符号使用紫色 */
    margin-right: 10px;
    font-weight: 900;
}

.silo-discovery-item:hover {
    background-color: #fbf9ff; /* 悬停时淡淡的紫色背景 */
    padding-left: 10px; /* 增加向右滑动感 */
}

