/*
Theme Name: 汇客学习资料网
Theme URI: https://www.huike.com
Author: 汇客
Author URI: https://www.huike.com
Description: 仿子比资源站UI，橙蓝配色，带会员、积分、广告位、登录免广告
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: huike-learning
*/

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}
body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}
a:hover {
    color: #FF6A00;
}
.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
@media (max-width: 1200px) {
    .container { width: 100%; }
}

/* 主色调 */
:root {
    --huike-blue: #165DFF;
    --orange: #FF6A00;
    --white: #ffffff;
    --gray: #f5f5f5;
    --radius: 12px;
}

/* 顶部导航 */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo {
    font-size: 24px;
    font-weight: bold;
}
.logo .blue { color: var(--huike-blue); }
.logo .orange { color: var(--orange); }

/* 导航菜单 */
.nav-menu { list-style: none; display: flex; }
.nav-menu > li { position: relative; padding: 0 18px; }
.nav-menu > li > a {
    font-size: 16px;
    font-weight: 500;
    line-height: 70px;
    display: block;
}
/* 二级下拉菜单 */
.sub-menu {
    position: absolute;
    top: 70px;
    left: 0;
    background: var(--white);
    width: 200px;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    list-style: none;
    display: none;
    padding: 10px 0;
}
.sub-menu li { padding: 0 15px; }
.sub-menu li a {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
}
.sub-menu li a:hover {
    background: var(--gray);
    color: var(--orange);
}
.nav-menu > li:hover .sub-menu { display: block; }

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-menu-btn { display: block; }
}

/* 首页布局 */
.main-wrap {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}
.content { flex: 1; }
.sidebar { width: 320px; }
@media (max-width: 992px) {
    .main-wrap { flex-direction: column; }
    .sidebar { width: 100%; }
}

/* 卡片样式 */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: 0.3s;
}
.card:hover { transform: translateY(-3px); }
.card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #222;
}
.card-desc {
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-tags { margin-bottom: 15px; }
.tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--gray);
    border-radius: 20px;
    font-size: 12px;
    margin-right: 5px;
    color: #666;
}
.download-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--orange);
    color: var(--white) !important;
    border-radius: 6px;
    font-size: 14px;
}
.download-btn:hover {
    background: #e56000;
    color: var(--white) !important;
}

/* 侧边栏组件 */
.widget { margin-bottom: 20px; }
.widget-title {
    font-size: 16px;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--orange);
    margin-bottom: 15px;
}
.hot-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    list-style: none;
}
.vip-box {
    background: linear-gradient(45deg, var(--huike-blue), var(--orange));
    color: var(--white);
    text-align: center;
    padding: 20px;
    border-radius: var(--radius);
}
.notice {
    background: #fff3e0;
    padding: 15px;
    border-radius: var(--radius);
    border-left: 4px solid var(--orange);
}

/* 文章详情页 */
.single-title {
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
}
.single-meta {
    text-align: center;
    color: #999;
    margin-bottom: 20px;
}
.single-content {
    line-height: 1.8;
    font-size: 16px;
}
.download-group {
    margin: 30px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.download-item {
    padding: 12px 25px;
    background: var(--huike-blue);
    color: var(--white) !important;
    border-radius: var(--radius);
}
.download-item:hover {
    background: #0f4bd1;
    color: var(--white) !important;
}
.related-posts { margin: 40px 0; }
.comments { margin-top: 40px; }

/* 页脚 */
.footer {
    background: var(--white);
    padding: 30px 0;
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #eee;
}