@charset "utf-8";
:root {
    --dt-primary: #008e3e;
    --dt-primary-light: #00a84d;
    --dt-primary-dark: #006b30;
    --dt-primary-bg: rgba(0, 142, 62, 0.06);
    --dt-primary-border: rgba(0, 142, 62, 0.15);
}

/* ========== Page Inner ========== */
.dt-page-inner {
    max-width: 96rem;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ========== Banner ========== */
.dt-banner {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 32px 0 28px;
}
.dt-breadcrumb {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}
.dt-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color .15s;
}
.dt-breadcrumb a:hover { color: var(--dt-primary); text-decoration: none; }
.dt-breadcrumb-sep {
    margin: 0 6px;
    color: #ccc;
}
.dt-banner h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
    line-height: 1.3;
}
.dt-banner-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
}

/* ========== Search Bar ========== */
.dt-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px;
    flex-wrap: wrap;
}
.dt-search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 240px;
}
.dt-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}
.dt-search-input {
    width: 100%;
    height: 42px;
    padding: 0 14px 0 38px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    outline: none;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}
.dt-search-input::placeholder { color: #aaa; }
.dt-search-input:focus {
    border-color: var(--dt-primary);
    box-shadow: 0 0 0 2px var(--dt-primary-bg);
}
.dt-publish-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 20px;
    background: var(--dt-primary);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}
.dt-publish-btn:hover {
    background: var(--dt-primary-dark);
    text-decoration: none;
    color: #fff;
}

/* ========== Filter Panel ========== */
.dt-filter-panel {
    display: none;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0;
}
.dt-filter-panel.show {
    display: block;
}
.dt-filter-inner {
    padding: 20px 0;
}
.dt-filter-inner dl {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #f5f5f5;
    padding: 10px 0;
    margin: 0;
}
.dt-filter-inner dl:last-child { border-bottom: none; }
.dt-filter-inner dt {
    width: 84px;
    flex-shrink: 0;
    font-size: 14px;
    color: #666;
    line-height: 26px;
    text-align: center;
    padding-top: 2px;
}
.dt-filter-inner dd {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.dt-filter-inner .chooseClass a {
    display: inline-block;
    padding: 0 10px;
    height: 26px;
    line-height: 26px;
    font-size: 13px;
    color: #787878;
    text-decoration: none;
    border-radius: 3px;
    transition: all .15s;
}
.dt-filter-inner .chooseClass a:hover {
    color: #fff;
    background: var(--dt-primary);
    text-decoration: none;
}
.dt-filter-inner .chooseClass a.curr {
    color: #fff;
    background: var(--dt-primary);
}
.dt-filter-inner .subnav {
    width: 100%;
    padding: 8px 0 0;
    margin-top: 4px;
    border-top: 1px solid var(--dt-primary-border);
}
.dt-filter-inner .subnav a {
    margin-bottom: 4px;
}

/* Price inputs */
.dt-filter-inner .inpbox {
    display: flex;
    align-items: center;
    gap: 6px;
}
.dt-filter-inner .inpbox input {
    border: 1px solid #d9d9d9;
    height: 30px;
    line-height: 30px;
    text-align: center;
    width: 70px;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: border-color .2s;
}
.dt-filter-inner .inpbox input:focus {
    border-color: var(--dt-primary);
}
.dt-filter-inner .inpbox .btn {
    display: inline-block;
    background: var(--dt-primary);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    height: 30px;
    line-height: 30px;
    padding: 0 14px;
    font-size: 13px;
    border: none;
    transition: background .15s;
}
.dt-filter-inner .inpbox .btn:hover {
    background: var(--dt-primary-dark);
}

/* Active filter tags */
.dt-filter-active {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
    gap: 8px;
}
.dt-filter-active-label {
    font-size: 14px;
    color: #666;
    width: 84px;
    flex-shrink: 0;
    text-align: center;
}
.dt-filter-active-tags {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.dt-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px 0 10px;
    height: 26px;
    line-height: 26px;
    font-size: 12px;
    background: var(--dt-primary-bg);
    color: var(--dt-primary);
    border-radius: 3px;
    text-decoration: none;
    border: 1px solid var(--dt-primary-border);
}
.dt-active-tag:hover { text-decoration: none; opacity: 0.8; }
.dt-active-tag i {
    font-style: normal;
    font-size: 16px;
    cursor: pointer;
}
.dt-filter-clear {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    cursor: pointer;
}
.dt-filter-clear:hover { color: var(--dt-primary); text-decoration: none; }

/* ========== Section Header ========== */
.dt-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--dt-primary);
}
.dt-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0;
}
.dt-sort-actions {
    display: flex;
    align-items: center;
    gap: 0;
}
.dt-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 21px;
    height: 42px;
    font-size: 14px;
    color: #666;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    border: 1px solid transparent;
    border-bottom: none;
}
.dt-sort-btn:hover {
    color: var(--dt-primary);
    text-decoration: none;
}
.dt-sort-btn.active {
    background: var(--dt-primary);
    color: #fff;
    font-weight: bold;
}

/* ========== Listing Cards ========== */
.dt-listings {
    margin-bottom: 20px;
}
.dt-listing-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all .2s;
    margin-bottom: 16px;
    position: relative;
}
.dt-listing-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--dt-primary-border);
}
.dt-listing-card:hover .dt-listing-title a { color: var(--dt-primary); }
.dt-listing-card .top_tag {
    position: absolute;
    top: -1px;
    left: -1px;
    background: var(--dt-primary);
    color: #fff;
    font-size: 12px;
    padding: 2px 12px;
    border-radius: 12px 0 12px 0;
}

/* Listing image */
.dt-listing-img {
    width: 240px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}
.dt-listing-img a {
    display: block;
    width: 100%;
    height: 100%;
}
.dt-listing-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.dt-listing-card:hover .dt-listing-img img { transform: scale(1.05); }

/* Listing main content */
.dt-listing-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dt-listing-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.dt-listing-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dt-listing-title a {
    color: #333;
    text-decoration: none;
    transition: color .15s;
}
.dt-listing-title a:hover { text-decoration: none; }
.dt-listing-category {
    font-size: 13px;
    color: var(--dt-primary);
    flex-shrink: 0;
}
.dt-listing-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #999;
}
.dt-listing-info span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.dt-listing-info svg {
    flex-shrink: 0;
}

/* Listing bottom bar */
.dt-listing-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f5f5f5;
}
.dt-listing-org {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dt-listing-org-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}
.dt-listing-org-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dt-listing-org-avatar .vip {
    position: absolute;
    bottom: -2px;
    right: -4px;
    width: 14px;
    height: 14px;
    background: url(../images/vip.png) no-repeat center center;
    background-size: 20px 20px;
}
.dt-listing-org-name {
    font-size: 14px;
    color: #787878;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}
.dt-listing-price {
    font-size: 14px;
    color: var(--dt-primary);
    font-weight: 600;
    flex-shrink: 0;
}
.dt-listing-price strong {
    font-size: 22px;
    font-weight: 700;
}
.dt-listing-price em {
    font-style: normal;
    font-size: 13px;
    font-weight: 400;
    margin-left: 2px;
}

/* Card actions */
.dt-listing-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    align-self: center;
    min-width: 100px;
    align-items: center;
}
.dt-btn-enroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 40px;
    font-size: 15px;
    color: #fff;
    background: var(--dt-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    text-decoration: none;
}
.dt-btn-enroll:hover {
    background: var(--dt-primary-dark);
    color: #fff;
    text-decoration: none;
}

/* Empty state */
.dt-list-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    border: none;
}
.dt-list-empty img {
    width: 200px;
    max-width: 100%;
    margin-bottom: 16px;
}
.dt-list-empty span {
    font-size: 14px;
    color: #999;
}

/* ========== Pagination ========== */
.pagination { margin-top: 20px; padding: 10px 0 30px; text-align: center; line-height: 32px; font-size: 14px; color: #666; }
.pagination li { display: inline-block; margin-right: 7px; background-color: #fff; }
.pagination li.page_current span { border: solid 1px var(--dt-primary); background: var(--dt-primary); color: #fff; }
.pagination li.page_disabled { display: none; }
.pagination li a,
.pagination li span { display: block; padding: 0 10px; color: #797a82; border: 1px solid #D9D9D9; border-radius: 3px; box-sizing: border-box; text-decoration: none; }
.pagination li a:hover,
.pagination li.page_current span { background: var(--dt-primary); border-color: var(--dt-primary); color: #fff; }
.pagination li.page_more span { background: #fff; color: #797a82; cursor: default; border-radius: 3px; }
.pagination .page_info { display: none; }
.pagination .inner { display: flex; justify-content: flex-end; }

/* ========== Responsive ========== */
@media screen and (max-width: 1220px) {
    .dt-page-inner { padding-left: 16px; padding-right: 16px; }
}
@media screen and (max-width: 900px) {
    .dt-banner { padding: 24px 0 20px; }
    .dt-banner h1 { font-size: 24px; }
    .dt-banner-desc { font-size: 13px; }
    .dt-search-bar { flex-direction: column; }
    .dt-search-input-wrap { width: 100%; }
    .dt-publish-btn { width: 100%; justify-content: center; }
    .dt-listing-card { flex-direction: column; }
    .dt-listing-img { width: 100%; height: 200px; }
    .dt-listing-actions { flex-direction: row; width: 100%; }
    .dt-listing-actions .dt-btn-enroll { flex: 1; }
    .dt-section-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .dt-listing-header { flex-direction: column; gap: 4px; }
    .dt-listing-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
    .dt-filter-inner dt { width: 60px; font-size: 13px; }
}
@media screen and (max-width: 600px) {
    .dt-banner h1 { font-size: 22px; }
    .dt-listing-title { font-size: 16px; }
    .dt-listing-price strong { font-size: 18px; }
    .dt-listing-info { gap: 10px; }
}
