/* ========================================
   Hero 区域 — 渐变背景 + 柔阴影
   ======================================== */
.epwk-hero {
  padding: 50px 0;
  background: linear-gradient(180deg, var(--gp-primary-ghost) 0%, var(--gp-bg-card) 100%);
  text-align: center;
  position: relative;
}

/* Hero 微光斑装饰 */
.epwk-hero::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  background: rgba(37, 99, 235, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.epwk-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--gp-text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.epwk-subtitle {
  font-size: 16px;
  color: var(--gp-text-muted);
  margin-bottom: 30px;
  letter-spacing: 0.02em;
}

.epwk-search-box {
  max-width: 800px;
  margin: 0 auto 30px;
  display: flex;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border-radius: var(--gp-radius-sm);
  overflow: hidden;
}

.epwk-search-input {
  flex: 1;
  border: 1px solid var(--gp-accent);
  border-right: none;
  padding: 15px 20px;
  font-size: 16px;
  outline: none;
  border-radius: var(--gp-radius-sm) 0 0 var(--gp-radius-sm);
}

.epwk-search-btn {
  background: linear-gradient(135deg, var(--gp-accent) 0%, var(--gp-accent-hover) 100%);
  color: #fff;
  border: none;
  padding: 0 40px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  border-radius: 0 var(--gp-radius-sm) var(--gp-radius-sm) 0;
  transition: opacity var(--gp-transition-fast);
}

.epwk-publish-btn {
  background: linear-gradient(135deg, var(--gp-accent) 0%, var(--gp-accent-hover) 100%);
  color: #fff;
  border: none;
  padding: 0 30px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  line-height: 52px;
  font-weight: 600;
  border-radius: 0;
  transition: opacity var(--gp-transition-fast);
}
.epwk-publish-btn:hover, .epwk-search-btn:hover {
  color: #fff;
  opacity: 0.9;
  text-decoration: none;
}

.epwk-hero-content {
  display: flex;
  max-width: 1200px;
  margin: 40px auto 0;
  gap: 20px;
  text-align: left;
}
.epwk-banner {
  flex: 7;
  background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
  border-radius: 8px;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 0;
  height: 300px;
}
.epwk-banner::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  pointer-events: none;
}
.epwk-banner-default {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  position: relative;
  z-index: 1;
}
.epwk-banner-default h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 15px;
}
.epwk-banner-default p {
  font-size: 18px;
  opacity: 0.8;
}

.epwk-roles {
  flex: 5;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  height: 300px;
}
.epwk-roles-tabs {
  display: flex;
  border-bottom: 1px solid var(--gp-border);
}

.epwk-roles-tab {
  flex: 1;
  text-align: center;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--gp-text-muted);
  border-top-left-radius: var(--gp-radius-lg);
  border-top-right-radius: var(--gp-radius-lg);
  cursor: pointer;
  transition: color var(--gp-transition-fast);
  letter-spacing: 0.01em;
}
.epwk-roles-tab.active {
  color: var(--gp-text);
  border-bottom: 2px solid var(--gp-accent);
}
.epwk-roles-body {
  padding: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 180px;
}
.epwk-role-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--gp-text);
  width: 100%;
}
.epwk-role-action.hidden {
  display: none;
}
.epwk-role-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gp-accent-ghost);
  color: var(--gp-accent);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: transform 0.3s;
}
.epwk-role-action:hover {
  text-decoration: none;
}
.epwk-role-action:hover .epwk-role-icon {
  transform: translateY(-5px);
}
.epwk-role-title {
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--gp-text);
}
.epwk-role-desc {
  font-size: 12px;
  color: var(--gp-text-faint);
  margin-bottom: 15px;
}
.epwk-role-btn {
  background: #f4f6f8;
  color: var(--gp-text-muted);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 13px;
}

.epwk-section {
  max-width: 1200px;
  margin: 50px auto;
}

.epwk-section-title {
  text-align: center;
  margin-bottom: 40px;
}

.epwk-section-title h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--gp-text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.epwk-section-title p {
  color: var(--gp-text-faint);
  font-size: 14px;
}

.epwk-task-list {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--gp-border-light);
  border-left: 1px solid var(--gp-border-light);
  background: #fff;
}
.epwk-category-group {
  width: 33.333%;
  border-right: 1px solid var(--gp-border-light);
  border-bottom: 1px solid var(--gp-border-light);
  padding: 30px;
  box-sizing: border-box;
}
@media (max-width: 992px) {
  .epwk-category-group {
    width: 50%;
  }
}
@media (max-width: 768px) {
  .epwk-category-group {
    width: 100%;
  }
  .epwk-hero-content {
    flex-direction: column;
  }
  .epwk-search-box {
    flex-direction: column;
  }
  .epwk-search-input {
    border-right: 1px solid var(--gp-accent);
    border-bottom: none;
  }
}
.epwk-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.epwk-category-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--gp-text);
  margin: 0;
  letter-spacing: -0.01em;
}
.epwk-category-more {
  width: 24px;
  height: 24px;
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gp-text-faint);
  text-decoration: none;
  transition: all 0.3s;
}
.epwk-category-more:hover {
  border-color: var(--gp-accent);
  color: var(--gp-accent);
  text-decoration: none;
}
.epwk-category-tasks {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.epwk-category-task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.epwk-category-task-item:hover {
  text-decoration: none;
}
.epwk-category-task-item:hover .epwk-category-task-title {
  color: var(--gp-accent);
}
.epwk-category-task-title {
  font-size: 14px;
  color: var(--gp-text);
  width: 50%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s;
}
.epwk-category-task-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 50%;
  padding-left: 10px;
}
.epwk-category-task-price {
  color: var(--gp-accent);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.epwk-category-task-apply {
  color: var(--gp-text-faint);
  font-size: 12px;
}

.epwk-bottom-actions {
  text-align: center;
  margin-top: 40px;
}
.epwk-bottom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 40px;
  font-size: 16px;
  border-radius: var(--gp-radius-sm);
  margin: 0 10px;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--gp-transition-fast), box-shadow var(--gp-transition-fast);
  letter-spacing: 0.02em;
}

.epwk-bottom-btn:hover {
  transform: translateY(-1px);
}

.epwk-btn-red {
  background: linear-gradient(135deg, var(--gp-accent) 0%, var(--gp-accent-hover) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 89, 12, 0.25);
}
/* ========================================
   门户头部 — 精致卡片 + 柔阴影
   ======================================== */
.epwk-portal-header {
  display: flex;
  margin-bottom: 20px;
  background: var(--gp-bg-card);
  border-radius: var(--gp-radius-lg);
  box-shadow: var(--gp-shadow-md);
  border: 1px solid var(--gp-border);
  overflow: hidden;
  height: 300px;
}
.epwk-portal-nav {
  width: 220px;
  background: #2a2e3d;
  color: #fff;
  position: relative;
  z-index: 10;
}
.epwk-portal-nav-list {
  list-style: none;
  padding: 10px 0;
  margin: 0;
  height: 100%;
}
.epwk-portal-nav-item {
  position: relative;
}
.epwk-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  color: #c0c4cc;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s;
}
.epwk-nav-link:hover {
  background: var(--gp-accent);
  color: #fff;
  text-decoration: none;
}
.epwk-portal-subnav {
  position: absolute;
  left: 220px;
  top: 0;
  width: 600px;
  height: 300px;
  background: #fff;
  box-shadow: 2px 0 8px rgba(0,0,0,0.1);
  display: none;
  padding: 20px;
  color: var(--gp-text);
  overflow-y: auto;
}
.epwk-portal-nav-item:hover .epwk-portal-subnav {
  display: block;
}
.epwk-subnav-group {
  margin-bottom: 20px;
}
.epwk-subnav-group h4 {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 10px 0;
  border-bottom: 1px solid var(--gp-border-light);
  padding-bottom: 5px;
}
.epwk-subnav-group h4 a {
  color: var(--gp-text);
}
.epwk-subnav-group h4 a:hover {
  color: var(--gp-accent);
}
.epwk-subnav-links a {
  display: inline-block;
  margin-right: 15px;
  margin-bottom: 10px;
  color: var(--gp-text-muted);
  font-size: 13px;
}
.epwk-subnav-links a:hover {
  color: var(--gp-accent);
  text-decoration: none;
}
.epwk-portal-banner {
  flex: 1;
  min-width: 0;
  position: relative;
}
.epwk-banner-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.epwk-hero-default {
  height: 300px;
  border-radius: 0;
}
.epwk-portal-sidebar {
  width: 280px;
  background: var(--gp-bg-card);
  padding: 24px 20px;
  border-left: 1px solid var(--gp-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.epwk-sidebar-user {
  text-align: center;
}
.epwk-sidebar-avatar {
  margin: 0 auto 10px;
}
.epwk-sidebar-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.epwk-sidebar-greeting {
  font-size: 16px;
  font-weight: 700;
  color: var(--gp-text);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.epwk-btn-publish {
  background: linear-gradient(135deg, var(--gp-accent) 0%, var(--gp-accent-hover) 100%);
  border-color: var(--gp-accent-hover);
  color: #fff;
  font-weight: 700;
  padding: 12px 0;
  margin-bottom: 10px;
  border-radius: var(--gp-radius-sm);
  letter-spacing: 0.02em;
  transition: transform var(--gp-transition-fast), box-shadow var(--gp-transition-fast);
}

.epwk-btn-publish:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(232, 89, 12, 0.25);
  background-color: var(--gp-accent-hover);
  border-color: var(--gp-accent-hover);
  color: #fff;
}
.epwk-sidebar-stats {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--gp-border-dashed);
  padding-top: 16px;
  gap: 12px;
}

.epwk-stat-item {
  text-align: center;
  font-size: 12px;
  color: var(--gp-text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.epwk-stat-item i {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}
.epwk-cascader {
  position: relative;
}
.epwk-cascader-input-wrap {
  position: relative;
}
.epwk-cascader-input-wrap input {
  background-color: #fff !important;
  cursor: pointer;
  padding-right: 30px;
}
.epwk-cascader-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gp-text-faint);
  pointer-events: none;
}
.epwk-cascader-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  background: var(--gp-bg-card);
  border: 1px solid var(--gp-border);
  box-shadow: var(--gp-shadow-md);
  display: flex;
  margin-top: 8px;
  border-radius: var(--gp-radius-sm);
  overflow: hidden;
}
.epwk-cascader-column {
  width: 160px;
  height: 250px;
  overflow-y: auto;
  border-right: 1px solid var(--gp-border-light);
  padding: 5px 0;
}
.epwk-cascader-column:last-child {
  border-right: none;
}
.epwk-cascader-item {
  padding: 8px 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--gp-text-muted);
}
.epwk-cascader-item:hover {
  background: #f5f7fa;
}
.epwk-cascader-item.active {
  color: var(--gp-accent);
  font-weight: bold;
}

/* ========================================
   任务列表条目 — 精致排版
   ======================================== */
.epwk-list-item {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--gp-border);
  transition: background var(--gp-transition-fast);
}

.epwk-list-item:hover {
  background: var(--gp-bg-subtle);
}

.epwk-list-price {
  width: 150px;
  font-size: 22px;
  color: var(--gp-accent);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
}
.epwk-list-main {
  flex: 1;
  min-width: 0;
  padding: 0 20px;
}
.epwk-list-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.epwk-list-title a {
  color: var(--gp-text);
  text-decoration: none;
}
.epwk-list-title a:hover {
  color: var(--gp-accent);
}
.epwk-list-desc {
  color: var(--gp-text-faint);
  font-size: 13px;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.epwk-list-tags {
  display: flex;
  align-items: center;
}
.epwk-task-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  border: 1px solid var(--gp-accent);
  color: var(--gp-accent);
  border-radius: 6px;
  margin-right: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.epwk-task-tag.gray {
  border-color: #ddd;
  color: var(--gp-text-faint);
}
.epwk-task-tag.orange {
  border-color: #f39c12;
  color: #f39c12;
  background: rgba(243, 156, 18, 0.08);
}
.epwk-list-status {
  width: 120px;
  text-align: center;
}
.epwk-status-text {
  font-size: 14px;
  color: var(--gp-text-faint);
  margin-bottom: 5px;
}
.epwk-status-text.active {
  color: #27c24c;
  font-weight: bold;
}
.epwk-apply-count {
  font-size: 12px;
  color: var(--gp-text-faint);
}
.epwk-list-action {
  width: 120px;
  text-align: center;
}
.epwk-btn-list-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--gp-accent) 0%, var(--gp-accent-hover) 100%);
  color: #fff;
  border-radius: var(--gp-radius-sm);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: transform var(--gp-transition-fast), box-shadow var(--gp-transition-fast);
}

.epwk-btn-list-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232, 89, 12, 0.25);
  color: #fff;
}

.epwk-btn-list-action:active {
  transform: scale(0.97);
}
.epwk-btn-list-action.outline {
  background: #fff;
  color: var(--gp-accent);
  border: 1px solid var(--gp-accent);
}
.epwk-btn-list-action.outline:hover {
  background: var(--gp-accent-ghost);
}

/* ========================================
   分类筛选 — 卡片式设计
   ======================================== */
.epwk-filter-box {
  background: var(--gp-bg-card);
  padding: 12px 24px;
  margin-bottom: 20px;
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-sm);
  box-shadow: var(--gp-shadow-sm);
}
.epwk-filter-row {
  display: flex;
  border-bottom: 1px dashed var(--gp-border-light);
  padding: 10px 0;
}
.epwk-filter-row:last-child {
  border-bottom: none;
}
.epwk-filter-label {
  width: 80px;
  color: var(--gp-text-faint);
  font-weight: bold;
  padding-top: 5px;
  font-size: 14px;
}
.epwk-filter-items {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
}
.epwk-filter-item {
  padding: 5px 16px;
  margin-right: 10px;
  margin-bottom: 5px;
  color: var(--gp-text-secondary);
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background var(--gp-transition-fast), color var(--gp-transition-fast);
}

.epwk-filter-item:hover {
  color: var(--gp-accent);
  text-decoration: none;
  background: var(--gp-accent-ghost);
}

.epwk-filter-item.active {
  background: var(--gp-accent);
  color: #fff;
  font-weight: 600;
}

/* ========================================
   任务详情页 — 精致卡片排版
   ======================================== */
.epwk-detail-page {
  font-family: "Microsoft YaHei", sans-serif;
  color: var(--gp-text);
}

.epwk-detail-header {
  background: var(--gp-bg-card);
  padding: 30px;
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-lg);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--gp-shadow-sm);
}
.epwk-detail-header-left {
  flex: 1;
}
.epwk-detail-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--gp-text);
  letter-spacing: -0.02em;
}
.epwk-detail-meta {
  color: var(--gp-text-faint);
  font-size: 13px;
}
.epwk-detail-meta span {
  margin-right: 20px;
}
.epwk-detail-meta span i {
  margin-right: 5px;
}
.epwk-detail-header-right {
  width: 250px;
  text-align: right;
  border-left: 1px dashed var(--gp-border-light);
  padding-left: 30px;
}
.epwk-detail-price {
  font-size: 30px;
  color: var(--gp-accent);
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: -0.02em;
}
.epwk-detail-body {
  display: flex;
  align-items: flex-start;
}
.epwk-detail-main {
  flex: 1;
  background: var(--gp-bg-card);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-lg);
  margin-right: 20px;
  box-shadow: var(--gp-shadow-sm);
}
.epwk-detail-sidebar {
  width: 300px;
}
.epwk-detail-section {
  padding: 30px;
  border-bottom: 1px solid var(--gp-border-light);
}
.epwk-detail-section:last-child {
  border-bottom: none;
}
.epwk-detail-section-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--gp-accent);
  letter-spacing: -0.01em;
}
.epwk-detail-content-html {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gp-text-secondary);
  word-wrap: break-word;
}
.epwk-detail-content-html * {
  max-width: 100%;
}
.epwk-detail-content-html p {
  margin-bottom: 10px;
}
.epwk-detail-content-html img {
  max-width: 100%;
  height: auto;
}
.epwk-employer-card {
  background: var(--gp-bg-card);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--gp-shadow-sm);
}
.epwk-employer-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 15px;
  background: var(--gp-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #ccc;
  overflow: hidden;
}
.epwk-employer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.epwk-employer-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.epwk-employer-meta {
  font-size: 13px;
  color: var(--gp-text-faint);
  margin-bottom: 15px;
}
.epwk-employer-guarantee {
  background: var(--gp-accent-ghost);
  color: var(--gp-accent);
  padding: 14px;
  border-radius: var(--gp-radius-sm);
  font-size: 14px;
  text-align: left;
  line-height: 1.7;
  font-weight: 500;
}
.epwk-employer-guarantee div {
  margin-bottom: 5px;
}
.epwk-employer-guarantee div:last-child {
  margin-bottom: 0;
}
.epwk-bid-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px dashed var(--gp-border-light);
}
.epwk-bid-item:last-child {
  border-bottom: none;
}
.epwk-bid-user {
  display: flex;
  align-items: center;
}
.epwk-bid-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gp-border-light);
  margin-right: 15px;
  text-align: center;
  line-height: 40px;
  color: var(--gp-text-faint);
}
.epwk-bid-info {
  flex: 1;
}
.epwk-bid-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}
.epwk-bid-time {
  font-size: 12px;
  color: var(--gp-text-faint);
}
.epwk-bid-status {
  text-align: right;
}
.epwk-portal-title {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gp-border);
}
.epwk-blocks-title {
  display: inline-block;
  border-left: 4px solid var(--gp-accent);
  padding-left: 12px;
  font-weight: 800;
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.02em;
}

.epwk-blocks-subtitle {
  color: var(--gp-text-faint);
  margin-left: 10px;
  font-size: 14px;
}
.epwk-btn-show-all {
  background: var(--gp-accent);
}
.epwk-cat-block {
  display: flex;
  margin-bottom: 20px;
  background: var(--gp-bg-card);
  box-shadow: var(--gp-shadow-md);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-lg);
  overflow: hidden;
}
.epwk-cat-left {
  width: 220px;
  padding: 30px 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.epwk-cat-name {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 30px;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  padding-bottom: 10px;
  display: inline-block;
  letter-spacing: -0.02em;
}
.epwk-cat-sublist {
  flex: 1;
}
.epwk-cat-sublist a {
  display: inline-block;
  width: 45%;
  color: rgba(255,255,255,0.9);
  margin-bottom: 15px;
  font-size: 13px;
  text-decoration: none;
}
.epwk-cat-sublist a:hover {
  color: #fff;
  text-decoration: underline;
}
.epwk-cat-more {
  display: block;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 8px 0;
  margin-top: 20px;
  text-decoration: none;
  transition: all 0.3s;
}
.epwk-cat-more:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  text-decoration: none;
}
.epwk-cat-right {
  flex: 1;
  padding: 20px 30px;
  min-width: 0;
}
.epwk-cat-tasks-header, .epwk-cat-users-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.epwk-cat-tasks-header h4, .epwk-cat-users-header h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--gp-text);
  letter-spacing: 0.01em;
}
.epwk-cat-tasks-header a, .epwk-cat-users-header a {
  color: var(--gp-text-faint);
  font-size: 13px;
}
.epwk-cat-tasks-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--gp-border-light);
  padding-bottom: 15px;
}
.epwk-cat-task-item {
  width: 50%;
  display: flex;
  align-items: center;
  padding: 10px 15px 10px 0;
  color: var(--gp-text-muted);
  text-decoration: none;
}
.epwk-cat-task-item:nth-child(even) {
  padding-left: 15px;
  padding-right: 0;
}
.epwk-cat-task-price {
  color: var(--gp-accent);
  width: 80px;
  flex-shrink: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.epwk-cat-task-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--gp-text);
}
.epwk-cat-task-apply {
  width: 60px;
  text-align: right;
  color: var(--gp-text-faint);
  flex-shrink: 0;
  font-size: 13px;
}
.epwk-cat-task-item:hover .epwk-cat-task-title {
  color: var(--gp-accent);
}
.epwk-cat-users-list {
  display: flex;
  justify-content: space-between;
}
.epwk-cat-user-item {
  display: flex;
  align-items: center;
  width: 23%;
}
.epwk-cat-user-item img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  margin-right: 10px;
  object-fit: cover;
}
.epwk-cat-user-info {
  flex: 1;
  min-width: 0;
}
.epwk-cat-user-name {
  font-size: 14px;
  font-weight: bold;
  color: var(--gp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.epwk-cat-user-loc {
  font-size: 12px;
  color: var(--gp-text-faint);
  margin-top: 4px;
}

/* ========================================
   响应式适配 — 平板 (≤991px)
   ======================================== */
@media (max-width: 991px) {
  /* 门户头部：隐藏左侧分类导航，Banner + 侧边栏双栏 */
  .epwk-portal-header {
    height: auto;
    flex-wrap: wrap;
  }
  .epwk-portal-nav {
    display: none;
  }
  .epwk-portal-banner {
    flex: 1 1 60%;
  }
  .epwk-banner-img {
    height: 240px;
  }
  .epwk-hero-default {
    height: 240px;
  }
  .epwk-portal-sidebar {
    flex: 1 1 35%;
    width: auto;
    border-left: none;
    border-top: 1px solid var(--gp-border-light);
  }

  /* 分类区块：左侧色块缩窄 */
  .epwk-cat-left {
    width: 180px;
    padding: 20px 15px;
  }
  .epwk-cat-name {
    font-size: 22px;
    margin-bottom: 20px;
  }

  /* 任务详情页：双栏改单栏 */
  .epwk-detail-body {
    flex-direction: column;
  }
  .epwk-detail-main {
    margin-right: 0;
    margin-bottom: 20px;
  }
  .epwk-detail-sidebar {
    width: 100%;
  }

  /* 详情头部：右侧价格区缩窄 */
  .epwk-detail-header-right {
    width: 200px;
    padding-left: 20px;
  }
}

/* ========================================
   响应式适配 — 手机 (≤767px)
   ======================================== */
@media (max-width: 767px) {
  /* ---- 门户头部：完全堆叠 ---- */
  .epwk-portal-header {
    flex-direction: column;
    height: auto;
  }
  .epwk-portal-banner {
    flex: none;
    width: 100%;
  }
  .epwk-banner-img {
    height: 180px;
  }
  .epwk-hero-default {
    height: 180px;
  }
  .epwk-portal-sidebar {
    flex: none;
    width: 100%;
    padding: 16px;
    border-top: 1px solid var(--gp-border-light);
  }
  .epwk-sidebar-avatar img {
    width: 48px;
    height: 48px;
  }
  .epwk-sidebar-greeting {
    font-size: 14px;
    margin-bottom: 12px;
  }
  .epwk-btn-publish {
    padding: 8px 0;
    font-size: 14px;
  }

  /* ---- 门户标题区 ---- */
  .epwk-portal-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .epwk-portal-title h3,
  .epwk-blocks-title {
    font-size: 18px;
  }
  .epwk-portal-title span {
    font-size: 12px;
    margin-left: 6px;
  }
  #btn-show-all-tasks {
    width: 100%;
    margin-top: 8px;
  }

  /* ---- 分类区块：完全堆叠 ---- */
  .epwk-cat-block {
    flex-direction: column;
  }
  .epwk-cat-left {
    width: 100%;
    padding: 16px;
  }
  .epwk-cat-name {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .epwk-cat-sublist a {
    width: 32%;
    margin-bottom: 8px;
    font-size: 12px;
  }
  .epwk-cat-right {
    padding: 14px;
  }

  /* ---- 分类任务列表：单列 ---- */
  .epwk-cat-task-item {
    width: 100% !important;
    padding: 8px 0 !important;
  }

  /* ---- 推荐服务商：横向滚动 ---- */
  .epwk-cat-users-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 4px;
  }
  .epwk-cat-user-item {
    width: 140px;
    flex-shrink: 0;
  }

  /* ---- 搜索框 ---- */
  .epwk-search-box {
    flex-direction: column;
    border-radius: 8px;
  }
  .epwk-search-input {
    border: 1px solid var(--gp-accent);
    border-right: 1px solid var(--gp-accent);
    border-bottom: none;
    padding: 12px 16px;
    font-size: 15px;
  }
  .epwk-search-btn {
    padding: 12px 20px;
    width: 100%;
  }
  .epwk-publish-btn {
    width: 100%;
    line-height: 44px;
    padding: 0;
  }

  /* ---- Hero 区域 ---- */
  .epwk-hero {
    padding: 30px 16px;
  }
  .epwk-title {
    font-size: 24px;
  }
  .epwk-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .epwk-hero-content {
    flex-direction: column;
    margin-top: 20px;
  }
  .epwk-banner,
  .epwk-roles {
    height: auto;
    min-height: 200px;
  }
  .epwk-banner-default {
    padding: 24px;
  }
  .epwk-banner-default h2 {
    font-size: 24px;
  }

  /* ---- 任务列表条目：纵向堆叠 ---- */
  .epwk-list-item {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 0;
  }
  .epwk-list-price {
    width: 100%;
    text-align: left;
    font-size: 18px;
    padding-bottom: 6px;
  }
  .epwk-list-main {
    padding: 0;
    width: 100%;
  }
  .epwk-list-title {
    font-size: 15px;
  }
  .epwk-list-desc {
    font-size: 12px;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow: hidden;
  }
  .epwk-list-status,
  .epwk-list-action {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
  }
  .epwk-status-text {
    margin-bottom: 0;
  }

  /* ---- 任务详情页 ---- */
  .epwk-detail-header {
    flex-direction: column;
    padding: 16px;
  }
  .epwk-detail-header-left {
    width: 100%;
  }
  .epwk-detail-title {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .epwk-detail-meta span {
    display: inline-block;
    margin-right: 12px;
    margin-bottom: 4px;
    font-size: 12px;
  }
  .epwk-detail-header-right {
    width: 100%;
    text-align: left;
    border-left: none;
    border-top: 1px dashed var(--gp-border-light);
    padding-left: 0;
    padding-top: 12px;
    margin-top: 12px;
  }
  .epwk-detail-price {
    font-size: 22px;
    margin-bottom: 8px;
  }
  .epwk-detail-section {
    padding: 16px;
  }
  .epwk-detail-section-title {
    font-size: 16px;
  }
  .epwk-detail-content-html {
    font-size: 14px;
  }
  .epwk-employer-card {
    padding: 16px;
  }

  /* ---- 级联选择器：全宽弹层 ---- */
  .epwk-cascader-dropdown {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    border-radius: 8px 8px 0 0;
    max-height: 60vh;
    overflow-y: auto;
  }
  .epwk-cascader-column {
    width: 100%;
    height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--gp-border-light);
  }

  /* ---- 筛选区域 ---- */
  .epwk-filter-box {
    padding: 8px 12px;
  }
  .epwk-filter-row {
    flex-direction: column;
    padding: 6px 0;
  }
  .epwk-filter-label {
    width: 100%;
    padding-top: 0;
    padding-bottom: 4px;
  }
  .epwk-filter-items {
    flex-wrap: wrap;
    gap: 4px;
  }
  .epwk-filter-item {
    padding: 6px 12px;
    font-size: 13px;
    margin-bottom: 4px;
  }

  /* ---- 投标条目 ---- */
  .epwk-bid-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }
  .epwk-bid-avatar {
    width: 36px;
    height: 36px;
    line-height: 36px;
    margin-right: 10px;
    font-size: 14px;
  }
  .epwk-bid-name {
    font-size: 14px;
  }
  .epwk-bid-status {
    text-align: left;
    width: 100%;
    padding-top: 6px;
  }

  /* ---- 轮播控制按钮隐藏（触摸滑动操作） ---- */
  .carousel-control {
    display: none;
  }

  /* ---- 底部操作按钮 ---- */
  .epwk-bottom-btn {
    display: block;
    width: 100%;
    margin: 8px 0;
    padding: 12px 20px;
    text-align: center;
  }
}

/* ========================================
   响应式适配 — 超小屏手机 (≤575px)
   ======================================== */
@media (max-width: 575px) {
  /* 门户 Banner 进一步缩小 */
  .epwk-banner-img {
    height: 140px;
  }
  .epwk-hero-default {
    height: 140px;
  }
  .epwk-banner-default h2 {
    font-size: 20px;
  }
  .epwk-banner-default p {
    font-size: 14px;
  }

  /* 分类子链接改为单列 */
  .epwk-cat-sublist a {
    width: 48%;
  }

  /* 任务列表标题进一步缩小 */
  .epwk-list-price {
    font-size: 16px;
  }
  .epwk-list-title {
    font-size: 14px;
  }

  /* 筛选项更紧凑 */
  .epwk-filter-item {
    padding: 5px 10px;
    font-size: 12px;
  }

  /* 推荐服务商卡片缩窄 */
  .epwk-cat-user-item {
    width: 120px;
  }
  .epwk-cat-user-item img {
    width: 36px;
    height: 36px;
  }

  /* 详情页元信息单行显示 */
  .epwk-detail-meta {
    font-size: 11px;
  }
}

/* ========================================
   触控优化 — 所有移动设备
   ======================================== */
@media (hover: none) and (pointer: coarse) {
  /* 移除 hover 效果避免移动端粘滞 */
  .epwk-list-item:hover,
  .epwk-cat-task-item:hover {
    background: transparent;
  }

  /* 增大可点击区域 */
  .epwk-btn-list-action,
  .epwk-filter-item,
  .epwk-nav-link {
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  /* 级联选择器在触摸设备上用点击触发 */
  .epwk-cascader-input-wrap input {
    min-height: 44px;
  }
}

/* ========================================
   深色模式适配
   ======================================== */
@media (prefers-color-scheme: dark) {
  /* Hero 区域深色 */
  .epwk-hero {
    background: linear-gradient(180deg, var(--gp-bg) 0%, var(--gp-bg-card) 100%);
  }

  /* 搜索框深色 */
  .epwk-search-input {
    background: var(--gp-bg-subtle);
    border-color: var(--gp-accent);
    color: var(--gp-text);
  }

  .epwk-search-btn {
    background: var(--gp-accent);
  }

  .epwk-publish-btn {
    background: var(--gp-accent-hover);
  }

  /* Banner 深色 */
  .epwk-roles {
    background: var(--gp-bg-card);
  }

  .epwk-roles-tabs {
    border-bottom-color: var(--gp-border);
  }

  .epwk-role-icon {
    background: var(--gp-accent-ghost);
  }

  .epwk-role-btn {
    background: var(--gp-bg-subtle);
    color: var(--gp-text-muted);
  }

  /* 任务列表深色 */
  .epwk-list-item:hover {
    background: var(--gp-bg-subtle);
  }

  .epwk-list-status,
  .epwk-list-action {
    color: var(--gp-text);
  }

  /* 分类筛选深色 */
  .epwk-filter-box {
    background: var(--gp-bg-card);
    border-color: var(--gp-border);
  }

  .epwk-filter-row {
    border-bottom-color: var(--gp-border);
  }

  .epwk-filter-item {
    color: var(--gp-text-secondary);
  }

  .epwk-filter-item:hover {
    color: var(--gp-accent);
  }

  .epwk-filter-item.active {
    background: var(--gp-accent);
  }

  /* 任务详情深色 */
  .epwk-detail-header {
    background: var(--gp-bg-card);
    border-color: var(--gp-border);
  }

  .epwk-detail-header-right {
    border-left-color: var(--gp-border);
  }

  .epwk-detail-main {
    background: var(--gp-bg-card);
    border-color: var(--gp-border);
  }

  .epwk-detail-section {
    border-bottom-color: var(--gp-border);
  }

  .epwk-detail-content-html {
    color: var(--gp-text-secondary);
  }

  .epwk-employer-card {
    background: var(--gp-bg-card);
    border-color: var(--gp-border);
  }

  .epwk-employer-avatar {
    background: var(--gp-bg-subtle);
  }

  .epwk-employer-guarantee {
    background: var(--gp-accent-ghost);
  }

  /* 投标条目深色 */
  .epwk-bid-item {
    border-bottom-color: var(--gp-border);
  }

  .epwk-bid-avatar {
    background: var(--gp-bg-subtle);
    color: var(--gp-text-faint);
  }

  /* 门户头部深色 */
  .epwk-portal-header {
    background: var(--gp-bg-card);
  }

  .epwk-portal-sidebar {
    background: var(--gp-bg-card);
    border-left-color: var(--gp-border);
  }

  /* 分类区块深色 */
  .epwk-cat-block {
    background: var(--gp-bg-card);
  }

  /* 级联选择器深色 */
  .epwk-cascader-dropdown {
    background: var(--gp-bg-card);
    border-color: var(--gp-border);
  }

  .epwk-cascader-column {
    border-right-color: var(--gp-border);
  }

  .epwk-cascader-item:hover {
    background: var(--gp-bg-subtle);
  }

  .epwk-cascader-input-wrap input {
    background: var(--gp-bg-subtle) !important;
    color: var(--gp-text);
  }

  /* 门户标题深色 */
  .epwk-portal-title {
    border-bottom-color: var(--gp-border);
  }

  /* 分类任务列表深色 */
  .epwk-cat-tasks-list {
    border-bottom-color: var(--gp-border);
  }

  .epwk-task-list {
    border-top-color: var(--gp-border);
    border-left-color: var(--gp-border);
  }

  /* 按钮深色 */
  .epwk-btn-list-action {
    background: var(--gp-accent);
  }

  .epwk-btn-list-action:hover {
    background: var(--gp-accent-hover);
  }

  .epwk-btn-list-action.outline {
    background: var(--gp-bg-card);
    color: var(--gp-accent);
    border-color: var(--gp-accent);
  }

  .epwk-btn-list-action.outline:hover {
    background: var(--gp-accent-ghost);
  }

  .epwk-btn-publish {
    background-color: var(--gp-accent);
    border-color: var(--gp-accent);
  }

  .epwk-btn-publish:hover {
    background-color: var(--gp-accent-hover);
    border-color: var(--gp-accent-hover);
  }

  .epwk-btn-red {
    background: var(--gp-accent);
  }

  .epwk-btn-show-all {
    background: var(--gp-accent);
  }

  /* 标签深色 */
  .epwk-task-tag {
    border-color: var(--gp-accent);
    color: var(--gp-accent);
  }

  .epwk-task-tag.gray {
    border-color: var(--gp-border);
    color: var(--gp-text-faint);
  }

  .epwk-task-tag.orange {
    border-color: var(--gp-warning);
    color: var(--gp-warning);
    background: var(--gp-warning-light);
  }
}
