/* ========================================
   首页 Vue 幻灯片样式
   ======================================== */

[v-cloak] {
    display: none;
}

.home-slide {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

/* ---- 幻灯片主体容器 ---- */
.home-slide-inner {
    position: relative;
    width: 100%;
}

/* ---- 加载占位 ---- */
.slide-loading-placeholder {
    width: 100%;
    padding-top: 32.03125%;
    height: 0;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.slide-loading-inner {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.slide-loading-inner .thumb {
    display: block;
    width: 100%;
    height: 100%;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    -o-background-size: contain;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* ---- Element UI Carousel 覆写 ---- */
.home-slide .el-carousel {
    overflow: hidden;
}

.home-slide .el-carousel__container {
    position: relative;
    width: 100%;
    padding-top: 32.03125%;
    height: 0 !important;
}

.home-slide .el-carousel__item {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.home-slide .el-carousel__item.is-active {
    z-index: 2;
}

/* 隐藏 Element UI 默认箭头和指示器 */
.home-slide .el-carousel__arrow {
    display: none !important;
}

.home-slide .el-carousel__indicators {
    display: none !important;
}

/* ---- 幻灯片单项 ---- */
.slide-item-wrap {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slide-img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    object-fit: cover;
    object-position: center center;
    background-color: transparent;
}

/* ---- 自定义指示器 ---- */
.slide-indicator-wrap {
    position: absolute;
    bottom: 10px;
    right: 0;
    z-index: 10;
}

.slide-indicator-inner {
    text-align: right;
}

.slide-indicator-dots {
    display: inline-block;
    vertical-align: top;
    line-height: 30px;
    height: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    border-radius: 30px;
    background-color: rgba(51, 51, 51, 0.3);
    padding: 0 15px;
    margin: 0;
    list-style: none;
}

.slide-indicator-dots li {
    display: inline-block;
    vertical-align: top;
    width: 8px;
    height: 8px;
    margin: 11px 0;
    padding: 0;
    background-color: transparent;
    cursor: pointer;
    position: relative;
}

.slide-indicator-dots li::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}

.slide-indicator-dots li.active {
    width: 20px;
}

.slide-indicator-dots li.active::before {
    background-color: #fff;
}

.slide-indicator-dots li:hover::before {
    background-color: #fff;
}

/* ---- 自定义箭头按钮 ---- */
.slide-arrow-wrap {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 10;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    border-radius: 30px;
    line-height: 30px;
    height: 30px;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    background-color: rgba(51, 51, 51, 0.3);
}

.slide-arrow {
    display: inline-block;
    vertical-align: top;
    padding: 0 12px;
    line-height: 30px;
    height: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    -moz-transition: all 0.2s;
    transition: all 0.2s;
    outline: none;
    border-radius: 4px;
}

.slide-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.slide-arrow-left {
    border-radius: 4px 0 0 4px;
    margin-right: 1px;
}

.slide-arrow-right {
    border-radius: 0 4px 4px 0;
    margin-left: 1px;
}

.slide-arrow i {
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    vertical-align: middle;
}

/* ---- 桌面端大屏指示器微调 (1330+) ---- */
@media (min-width: 1330px) {
    .slide-indicator-wrap {
        bottom: 0.95rem;
    }
}

/* ---- 移动端指示器微调 ---- */
@media (max-width: 767px) {
    .home-slide {
        margin-top: 40px;
    }

    .slide-indicator-wrap {
        margin: 0 5px;
    }

    .slide-arrow-wrap {
        left: 5px;
        bottom: 5px;
        background-color: rgba(51, 51, 51, 0.5);
    }
    
    .slide-arrow {
        padding: 0 8px;
        font-size: 12px;
    }
}

/* ---- 1920+ 大屏适配，使用 rem ---- */
@media (min-width: 1920px) {
    .slide-indicator-wrap {
        bottom: 0.95rem;
    }

    .slide-indicator-inner {
        padding-right: 0.2rem;
    }

    .slide-indicator-dots {
        line-height: 0.3rem;
        height: 0.3rem;
        -webkit-border-radius: 0.3rem;
        -moz-border-radius: 0.3rem;
        border-radius: 0.3rem;
        padding: 0 0.15rem;
    }

    .slide-indicator-dots li {
        width: 0.08rem;
        height: 0.08rem;
        margin: 0.11rem 0;
    }

    .slide-indicator-dots li::before {
        -webkit-border-radius: 0.08rem;
        -moz-border-radius: 0.08rem;
        border-radius: 0.08rem;
    }

    .slide-indicator-dots li.active {
        width: 0.18rem;
    }

    .slide-arrow-wrap {
        -webkit-border-radius: 0.3rem;
        -moz-border-radius: 0.3rem;
        border-radius: 0.3rem;
        line-height: 0.3rem;
        height: 0.3rem;
        left: 0.1rem;
        background-color: rgba(51, 51, 51, 0.3);
    }

    .slide-arrow {
        padding: 0 0.12rem;
        line-height: 0.3rem;
        height: 0.3rem;
        font-size: 0.14rem;
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
        border-radius: 0.04rem;
    }

    .slide-arrow:hover {
        background: rgba(255, 255, 255, 0.4);
        color: #fff;
    }

    .slide-arrow-left {
        border-radius: 0.04rem 0 0 0.04rem;
        margin-right: 0.01rem;
    }

    .slide-arrow-right {
        border-radius: 0 0.04rem 0.04rem 0;
        margin-left: 0.01rem;
    }

    .slide-arrow i {
        font-size: 0.14rem;
        font-weight: bold;
        display: inline-block;
        vertical-align: middle;
    }
}

/* ---- 图片焦点适配 ---- */
@media (min-width: 1024px) {
    .slide-img {
        object-position: center center;
    }
}

@media (min-width: 1330px) {
    .slide-img {
        object-position: center center;
    }
}

@media (min-width: 1920px) {
    .slide-img {
        object-position: center center;
    }
}

/* ========================================
   首页 - 最新任务 无图列表样式
   ======================================== */

.home-task-list {
    margin-bottom: 2.85714286em;
}

.home-task-list .part-hot-course {
    background: #fff;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    padding: 2em 2.5em;
}

.home-task-list .p-title {
    margin-bottom: 1.5em;
}

/* 加载/空状态 */
.tasklist-loading,
.tasklist-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 14px;
}

/* 列表容器 */
.tasklist-inner {
    display: block;
}

/* 单行任务 */
.tasklist-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1.2em 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #323232;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    -moz-transition: all 0.2s;
    transition: all 0.2s;
}

.tasklist-row:first-child {
    padding-top: 0;
}

.tasklist-row:last-of-type {
    border-bottom: none;
}

.tasklist-row:hover {
    background-color: #fbf6f0;
    padding-left: 0.8em;
    padding-right: 0.8em;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    color: #ff6000;
}

.tasklist-row:hover .tasklist-title {
    color: #ff6000;
}

/* 左侧：标题 + 描述 */
.tasklist-left {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -moz-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
    padding-right: 1.5em;
}

.tasklist-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5em;
    color: #1a1a1a;
    overflow: hidden;
    white-space: nowrap;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    -webkit-transition: color 0.2s;
    -o-transition: color 0.2s;
    -moz-transition: color 0.2s;
    transition: color 0.2s;
}

.tasklist-desc {
    display: block;
    font-size: 12px;
    color: #999;
    line-height: 1.5em;
    margin-top: 0.35em;
    overflow: hidden;
    white-space: nowrap;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
}

/* 标签 */
.task-tag {
    display: inline-block;
    vertical-align: middle;
    font-style: normal;
    font-size: 11px;
    padding: 1px 6px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    margin-right: 6px;
    font-weight: 500;
    line-height: 1.4em;
}

.task-tag.urg {
    background: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

.task-tag.hot {
    background: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

/* 右侧：价格、信息 */
.tasklist-right {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 1.2em;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    white-space: nowrap;
}

.tasklist-price {
    font-size: 13px;
    color: #ff6000;
    min-width: 80px;
    text-align: right;
}

.tasklist-price strong {
    font-size: 16px;
    font-weight: 700;
    color: #ff4d2e;
}

.tasklist-info {
    font-size: 12px;
    color: #8a8a8a;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -moz-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 3px;
}

.tasklist-info i {
    font-size: 13px;
}

.tasklist-date {
    font-size: 12px;
    color: #aaa;
    min-width: 75px;
    text-align: right;
}

/* 查看更多 */
.tasklist-more {
    text-align: center;
    padding: 1.2em 0 0;
}

.btn-more {
    display: inline-block;
    padding: 8px 28px;
    font-size: 13px;
    color: #ff6000;
    border: 1px solid #ff6000;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    text-decoration: none;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    -moz-transition: all 0.2s;
    transition: all 0.2s;
}

.btn-more:hover {
    background: #ff6000;
    color: #fff;
}

.btn-more i {
    font-size: 12px;
    margin-left: 4px;
    vertical-align: -1px;
}

/* ---- 移动端适配 ---- */
@media (max-width: 767px) {
    .home-task-list .part-hot-course {
        padding: 1.2em 1em;
        -webkit-border-radius: 8px;
        -moz-border-radius: 8px;
        border-radius: 8px;
    }

    .tasklist-row {
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        padding: 0.8em 0;
    }

    .tasklist-row:hover {
        padding-left: 0.4em;
        padding-right: 0.4em;
    }

    .tasklist-left {
        width: 100%;
        -webkit-flex: 1 1 100%;
        -ms-flex: 1 1 100%;
        flex: 1 1 100%;
        padding-right: 0;
        margin-bottom: 0.5em;
    }

    .tasklist-title {
        font-size: 14px;
    }

    .tasklist-right {
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        gap: 0.6em;
        font-size: 12px;
    }

    .tasklist-price {
        min-width: auto;
        font-size: 12px;
    }

    .tasklist-price strong {
        font-size: 14px;
    }

    .tasklist-date {
        min-width: auto;
    }
}

/* 中等屏幕 */
@media (min-width: 768px) and (max-width: 1023px) {
    .home-task-list .part-hot-course {
        padding: 1.6em;
    }

    .tasklist-right {
        gap: 0.8em;
    }

    .tasklist-title {
        font-size: 14px;
    }
}

/* ========================================
   首页 - 最新任务 卡片无图模式
   ======================================== */

.home-task-cards {
    margin-bottom: 2.85714286em;
}

.home-task-cards .part-hot-course {
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    padding: 2em 2.5em;
}

.home-task-cards .p-title {
    margin-bottom: 1.5em;
}

/* 任务卡片 */
.task-card {
    display: block;
    height: 100%;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    -moz-transition: all 0.2s;
    transition: all 0.2s;
}

.task-card:hover {
    -webkit-transform: translateY(-4px);
    -moz-transform: translateY(-4px);
    -ms-transform: translateY(-4px);
    -o-transform: translateY(-4px);
    transform: translateY(-4px);
    -webkit-box-shadow: 0 12px 24px rgba(255, 96, 0, 0.1);
    -moz-box-shadow: 0 12px 24px rgba(255, 96, 0, 0.1);
    box-shadow: 0 12px 24px rgba(255, 96, 0, 0.1);
}

.task-card-header {
    margin-bottom: 1.2em;
}

.task-card-header .item-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 0.6em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.8em;
}

.task-card-header .item-entry p {
    font-size: 13px;
    color: #8a8a8a;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 3em;
}

/* 标签 */
.task-tag {
    display: inline-block;
    vertical-align: middle;
    font-style: normal;
    font-size: 11px;
    padding: 2px 8px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    margin-right: 6px;
    font-weight: 600;
    line-height: 1.4em;
}

.task-tag.urg {
    background: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

.task-tag.hot {
    background: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

/* 元数据区域 */
.task-card-meta {
    border-top: 1px solid #f0f0f0;
    padding-top: 1.2em;
}

.task-meta-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 0.8em;
}

.task-price {
    font-size: 14px;
    color: #ff6000;
}

.task-price strong {
    font-size: 18px;
    font-weight: 700;
    color: #ff4d2e;
}

.task-stats {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    gap: 0.8em;
    font-size: 12px;
    color: #8a8a8a;
}

.task-stat {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -moz-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 4px;
}

.task-stat i {
    font-size: 13px;
}

.task-meta-footer {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 12px;
    color: #aaa;
}

.task-date {
    color: #8a8a8a;
}

.task-action {
    color: #ff6000;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    -moz-transition: all 0.2s;
    transition: all 0.2s;
}

.task-card:hover .task-action {
    color: #ff4d2e;
    font-weight: 500;
}

.task-cards-more {
    text-align: center;
    padding: 1.5em 0 0;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .home-task-cards .part-hot-course {
        padding: 1.2em 1em;
        -webkit-border-radius: 8px;
        -moz-border-radius: 8px;
        border-radius: 8px;
    }

    .task-card-header .item-title {
        font-size: 15px;
        min-height: 2.2em;
    }

    .task-card-header .item-entry p {
        font-size: 13px;
        min-height: 2.6em;
    }

    .task-meta-row {
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        gap: 0.6em;
    }

    .task-price {
        font-size: 13px;
    }

    .task-price strong {
        font-size: 16px;
    }

    .task-stats {
        gap: 0.6em;
        font-size: 11px;
    }

    .task-meta-footer {
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        gap: 0.5em;
    }
}

/* 桌面端列数调整 */
@media (min-width: 768px) {
    .home-task-cards .f-4 > .f-item {
        width: 25%;
    }
}

@media (min-width: 1024px) and (max-width: 1330px) {
    .home-task-cards .f-4 > .f-item {
        width: 33.3333%;
    }
}
