/* ============================================================
 * 德国双元制职业德语学习平台 - C端首页 & 插件列表页样式 (V1.2.1)
 * 命名规范: 首页 home- 前缀 / 插件列表页 plugin-list- 前缀,防止污染全局
 * 复用: common.css 的 pc-* 基础样式(卡片/标签/统计/进度条/头像等)
 * 适配: 原生流式布局 + 少量断点媒体查询,自动适配 PC/H5
 * ============================================================ */

/* ============================================================
 * 一、首页(home-)
 * ============================================================ */

/* 个人信息卡: 浅色渐变背景与其余卡片区分 */
.home-user-card {
    background: linear-gradient(135deg, #f0f7ff, #e8f4f8);
}

/* ENTRY 内部预备等级浅色提示 */
.home-entry-tip {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 12px;
    line-height: 18px;
    color: #e67e22;
    background: #fdf3e7;
}

/* 核心功能导航(区块3): 流式卡片 */
.home-nav-row {
    display: flex;
    flex-wrap: wrap;
    margin: -5px;
}

.home-nav-item {
    width: 50%;
    padding: 5px;
    box-sizing: border-box;
    cursor: pointer;
}

@media (min-width: 768px) {
    .home-nav-item {
        width: 25%;
    }
}

.home-nav-inner {
    padding: 14px 12px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

.home-nav-item:hover .home-nav-inner {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.home-nav-icon {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
}

.home-nav-icon-i1 { background: #337ab7; } /* 课程: 蓝 */
.home-nav-icon-i2 { background: #e67e22; } /* 题库: 橙 */
.home-nav-icon-i3 { background: #18bc9c; } /* 学情: 绿 */
.home-nav-icon-i4 { background: #8e44ad; } /* 我的: 紫 */

.home-nav-name {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.home-nav-desc {
    margin-top: 4px;
    font-size: 12px;
    color: #888;
}

/* 最近学习记录(区块4) */
.home-recent-item {
    padding: 10px 0;
    border-bottom: 1px solid #f2f2f2;
}

.home-recent-item:last-child {
    border-bottom: none;
}

.home-recent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.home-recent-name {
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-recent-pct {
    font-size: 12px;
    color: #888;
}

.home-recent-time {
    margin-top: 6px;
    font-size: 12px;
    color: #aaa;
}

/* ============================================================
 * 二、插件列表页(plugin-list-)
 * ============================================================ */

/* 登录个性化条 */
.plugin-list-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.plugin-list-greet {
    font-size: 14px;
    color: #333;
}

/* 插件卡片流式布局: 窄屏单列,宽屏两列 */
.plugin-list-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -6px;
}

.plugin-list-card {
    width: 100%;
    padding: 6px;
    box-sizing: border-box;
    cursor: pointer;
}

@media (min-width: 768px) {
    .plugin-list-card {
        width: 50%;
    }
}

.plugin-list-inner {
    display: flex;
    padding: 14px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

.plugin-list-card:hover .plugin-list-inner {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* 插件图标块(无第三方图标库,用两字简称标识) */
.plugin-list-icon {
    flex: none;
    width: 44px;
    height: 44px;
    margin-right: 12px;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plugin-list-icon-c1 { background: #337ab7; } /* 用户中心: 蓝 */
.plugin-list-icon-c2 { background: #18bc9c; } /* 学习记录: 绿 */
.plugin-list-icon-c3 { background: #e67e22; } /* 德语课程: 橙 */
.plugin-list-icon-c4 { background: #8e44ad; } /* 德语题库: 紫 */

.plugin-list-body {
    flex: 1;
    min-width: 0;
}

.plugin-list-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.plugin-list-version {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 400;
    color: #aaa;
}

.plugin-list-desc {
    margin-top: 6px;
    font-size: 12px;
    color: #888;
    line-height: 1.6;
}

.plugin-list-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

/* 插件类型标签 */
.plugin-list-tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 12px;
    color: #666;
    background: #f2f2f2;
}

/* 含 VIP 专属内容标签(金色系) */
.plugin-list-vip-tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 12px;
    color: #e67e22;
    background: #fdf3e7;
    font-weight: 600;
}

/* 立即进入按钮 */
.plugin-list-btn {
    padding: 4px 14px;
    border-radius: 4px;
    background: #337ab7;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
}

/* 插件禁用/未安装兜底(防御性: 当前四插件全部启用) */
.plugin-list-card.disabled {
    cursor: not-allowed;
}

.plugin-list-card.disabled .plugin-list-inner {
    opacity: 0.6;
    box-shadow: none;
    transform: none;
}

.plugin-list-card.disabled .plugin-list-btn {
    background: #bdc3c7;
}
