/* §361 第 2 批 客户「AI 绘图」功能总览(templates/portal_draw.html)。颜色 / 圆角 / 字号只用设计变量(ds/tokens.css),深色自动跟随。 */
.dw-main { max-width: 1160px; }
.dw-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.dw-hero-text { max-width: 720px; }
.dw-hero .p-lead { margin-bottom: 0; }
.dw-hero-btn { flex-shrink: 0; }

.dw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-4); margin-bottom: var(--s-6); }
.dw-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 196px; padding: 18px 18px 16px;
  background: var(--p-card); border: 1px solid var(--p-border); border-radius: var(--r-xl); box-shadow: var(--p-shadow);
  color: var(--p-text); transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast), box-shadow var(--dur) var(--ease-out);
  overflow: hidden;
}
.dw-card::after {
  content: ""; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, var(--p-primary-soft) 0%, transparent 70%); pointer-events: none;
}
.dw-card:hover { transform: translateY(-2px); border-color: var(--p-primary); box-shadow: var(--p-shadow-lg); }
.dw-card:focus-visible { outline: 2px solid var(--p-primary); outline-offset: 2px; }
.dw-ico { width: 52px; height: 52px; border-radius: var(--r-lg); overflow: hidden; background: var(--p-card-2); display: block; margin-bottom: 4px; }
.dw-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dw-name { font-size: var(--fs-lg); font-weight: 700; }
.dw-desc { color: var(--p-sub); font-size: var(--fs-sm); line-height: 1.6; }
.dw-foot { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding-top: 8px; }
.dw-price { color: var(--p-primary); font-size: var(--fs-md); }
.dw-sub { color: var(--p-faint); font-size: var(--fs-xs); }
.dw-go { margin-left: auto; color: var(--p-faint); font-size: var(--fs-md); transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast); }
.dw-card:hover .dw-go { color: var(--p-primary); transform: translateX(3px); }

.dw-tasks { scroll-margin-top: 76px; }
.dw-tasks .p-card-title { flex-wrap: wrap; }
.dw-guest { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dw-guest p { margin: 4px 0 0; }
.dw-link { color: var(--p-primary) !important; font-weight: 600; }

@media (max-width: 620px) {
  .dw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .dw-card { min-height: 0; padding: 14px; border-radius: var(--r-lg); }
  .dw-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .dw-ico { width: 44px; height: 44px; }
  .dw-name { font-size: var(--fs-md); }
}
