/* css/style.css */

/* 全局重置 */
* { box-sizing: border-box; margin: 0; padding: 0; outline: none; -webkit-tap-highlight-color: transparent; }
body { font-family: "Microsoft YaHei", sans-serif; background-color: #f3f0e9; color: #333; font-size: 14px; padding-top: 70px; /* 给固定头部留空 */ }
a { text-decoration: none; color: #333; transition: 0.2s; }
ul, li { list-style: none; }
img { border: 0; vertical-align: middle; }

/* --- 1. 头部导航 (墨绿色背景) --- */
.fixed-header {
    position: fixed; top: 0; left: 0; width: 100%; height: 60px;
    background: #6a7c73; /* 核心：修复白色方块，改为墨绿色 */
    z-index: 999; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.h-margin {
    max-width: 1400px; margin: 0 auto; height: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 15px;
}

/* Logo区域 */
/* --- Logo 文字版样式 --- */
.logo {
    height: 100%;
    display: flex;
    align-items: center;
    margin-right: 30px; /* 右侧留出间距 */
    width: auto; /* 取消固定宽度，随文字长度自适应 */
}

.logo a {
    display: flex;
    flex-direction: column; /* 让主标题和小标语垂直排列 */
    justify-content: center;
    text-decoration: none;
}

.logo-text {
    font-size: 24px; /* 字号大一点 */
    font-weight: 700; /* 加粗 */
    color: #ffffff; /* 白色文字，配合墨绿色背景 */
    letter-spacing: 1px; /* 字间距，显得大气 */
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.15); /* 微微的阴影，增加立体感 */
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 鼠标悬停效果 */
.logo a:hover .logo-text {
    color: #f0f0f0; /* 悬停变稍微灰一点的白 */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* 如果你加了副标题 (logo-sub)，这里是样式 */
.logo-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.7); /* 半透明白色 */
    letter-spacing: 0.5px;
    text-transform: lowercase; /* 强制小写 */
}

/* 搜索框 (修复出现两个的问题) */
.block-search-menu-desktop { flex: 1; margin: 0 30px; max-width: 500px; }
.search-holder { position: relative; width: 100%; }
.input-search {
    width: 100%; height: 34px; border-radius: 17px; border: 1px solid #5a6c63;
    padding: 0 40px 0 15px; background: rgba(255,255,255,0.9); color: #333; font-size: 13px;
}
.input-search:focus { background: #fff; }
.search-holder button {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; padding: 0;
}
.search-holder .svg-icon { width: 18px; height: 18px; fill: #6a7c73; }

/* 顶部导航菜单 (图标+文字) */
.header-btns-wrapper { flex-shrink: 0; }
.header-btns { display: flex; align-items: center; gap: 25px; }
.header-btns li { text-align: center; }
.header-btns a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #d0dcd7; /* 默认浅灰色 */
    font-size: 14px; font-weight: 500;
}
.header-btns a:hover, .header-btns a.active { color: #fff; /* 激活高亮白色 */ text-shadow: 0 0 5px rgba(255,255,255,0.3); }
.header-btns svg {
    width: 24px; height: 24px; fill: currentColor; margin-bottom: 4px;
}

/* 移动端搜索 (默认隐藏) */
.block-search-menu, .overcover-search, .btn-search-menu { display: none; }

/* --- 2. 主体布局 --- */
.main { max-width: 1400px; margin: 20px auto; display: flex; padding: 0 10px; align-items: flex-start; }

/* 左侧侧边栏 */
.sidebar { width: 240px; flex-shrink: 0; margin-right: 20px; }
.box { margin-bottom: 25px; }
.cat {
    display: block; font-weight: bold; margin-bottom: 12px; color: #333; font-size: 16px;
    border-left: 4px solid #6a7c73; padding-left: 10px;
}
.box ul { display: flex; flex-wrap: wrap; gap: 8px; }
.box li { width: auto; }
.box a {
    display: block; padding: 6px 12px; background: #e0e6e4;
    border-radius: 4px; font-size: 13px; color: #556660;
}
.box a:hover { background: #6a7c73; color: #fff; }
.leftnav_banner { margin-bottom: 20px; border-radius: 5px; overflow: hidden; }

/* 右侧内容区 */
.content { flex: 1; min-width: 0; }

/* 模块标题 (最近更新/评分最高) */
.module-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px; border-bottom: 2px solid #ddd; padding-bottom: 8px;
}
.module-head h2 {
    font-size: 18px; color: #333; font-weight: bold;
    border-left: 5px solid #6a7c73; padding-left: 10px; line-height: 1;
}
.module-head .next { font-size: 13px; color: #666; display: flex; align-items: center; }
.module-head .next svg { width: 12px; height: 12px; margin-left: 4px; fill: #666; }

/* --- 3. 视频网格 (修复图片不显示) --- */
.thumb-list { width: 100%; }
.outer-item { display: flex; flex-wrap: wrap; margin: 0 -10px; }

.item {
    width: 25%; /* 一行4个 */
    padding: 0 10px; margin-bottom: 25px;
}

/* 图片容器 */
.thumb-ratio {
    position: relative; width: 100%; padding-bottom: 60%; /* 16:10 比例 */
    background: #222; border-radius: 6px; overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.thumb-img {
    display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}
/* 核心修复：强制图片填满容器 */
.thumb-img img {
    width: 100%; height: 100%; object-fit: cover;
    display: block; transition: transform 0.3s ease;
}
.thumb-ratio:hover img { transform: scale(1.08); }

/* 角标 */
.flag-hd {
    position: absolute; top: 6px; left: 6px; z-index: 2;
    background: rgba(0,0,0,0.6); color: #fff; padding: 1px 5px;
    font-size: 12px; border-radius: 3px; border: 1px solid rgba(255,255,255,0.2);
}
.time {
    position: absolute; bottom: 6px; right: 6px; z-index: 2;
    background: rgba(0,0,0,0.7); color: #fff; padding: 1px 5px;
    font-size: 12px; border-radius: 3px;
}

/* 标题 */
.video-title {
    display: block; margin-top: 8px; font-size: 14px; line-height: 1.4;
    height: 38px; overflow: hidden; color: #333;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.video-title:hover { color: #6a7c73; }

/* 底部信息 */
.info {
    margin-top: 6px; font-size: 12px; color: #999;
    display: flex; justify-content: space-between;
}
.info span { display: flex; align-items: center; }
.info svg { width: 14px; height: 14px; margin-right: 4px; fill: #999; }

/* 响应式 */
@media (max-width: 1024px) { .item { width: 33.33%; } .sidebar { display: none; } .block-search-menu-desktop { display: none; } }
@media (max-width: 768px) { .item { width: 50%; } .fixed-header { height: 50px; } .header-btns { display: none; } }