/* ============================================================
   电竞护航 - PC 桌面端专用样式（desktop.css）
   仅在 ≥768px 生效，通过 user_head.php 引入。
   完全独立，不改变任何手机端 UI。
   ============================================================ */
@media (min-width: 768px) {
  /* ---------- 全局基调 ---------- */
  body {
    background: #f4f6f9;
    color: #3a3f4b;
  }

  /* ---------- 隐藏移动端顶部栏（橙色渐变）与底部导航 ---------- */
  .header { display: none; }
  .bottom-nav { display: none; }

  /* ---------- 子页面白色返回栏：保留但重做为桌面面包屑栏 ---------- */
  .header.white {
    display: flex;
    position: sticky;
    top: 64px;
    z-index: 40;
    height: 56px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #eceef2;
    box-shadow: 0 1px 4px rgba(16, 24, 40, .03);
  }
  .header.white .title { font-size: 16px; color: #1f2430; }
  .header.white .icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f4f6f9;
    color: #3a3f4b;
    border: 1px solid #eef0f4;
  }

  /* ---------- 桌面容器 ---------- */
  .container {
    max-width: 1160px;
    padding: 0 28px;
  }
  main.container {
    padding-top: 28px !important;
    padding-bottom: 64px;
    min-height: calc(100vh - 64px);
  }

  /* ---------- 桌面导航（重做） ---------- */
  .desktop-nav {
    display: block;
    position: sticky;
    top: 0;
    z-index: 80;
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid #eceef2;
    box-shadow: 0 1px 8px rgba(16, 24, 40, .04);
  }
  .desktop-nav .inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .desktop-nav .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
    color: #1f2430;
    letter-spacing: -.2px;
    white-space: nowrap;
  }
  .desktop-nav .logo .mark,
  .desktop-nav .logo img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .desktop-nav .logo .mark {
    background: var(--brand-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 106, 0, .28);
  }
  .desktop-nav nav {
    display: flex;
    gap: 2px;
    height: 100%;
    flex-shrink: 0;
  }
  .desktop-nav nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: 100%;
    font-size: 15px;
    color: #5a6170;
    position: relative;
    border-bottom: none;
    transition: color .15s;
    white-space: nowrap;
  }
  .desktop-nav nav a::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--brand-gradient);
    opacity: 0;
    transform: translateY(2px);
    transition: opacity .15s, transform .15s;
  }
  .desktop-nav nav a:hover { color: #1f2430; }
  .desktop-nav nav a.active { color: var(--brand); font-weight: 600; }
  .desktop-nav nav a.active::after { opacity: 1; transform: none; }
  .desktop-nav .actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
  }
  .desktop-nav .desktop-search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    background: #f2f4f7;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #9aa1ad;
    transition: background .15s, border-color .15s, box-shadow .15s;
  }
  .desktop-nav .desktop-search:focus-within {
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, .12);
  }
  .desktop-nav .desktop-search input {
    border: none;
    outline: none;
    background: transparent;
    width: 200px;
    font-size: 14px;
    color: #1f2430;
  }
  .desktop-nav .desktop-search input::placeholder { color: #a7aeb9; }
  .desktop-nav .actions .ghost-link {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #5a6170;
    transition: color .15s;
  }
  .desktop-nav .actions .ghost-link:hover { color: var(--brand); }
  .desktop-nav .user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 999px;
    transition: background .15s;
  }
  .desktop-nav .user-chip:hover { background: #f4f6f9; }
  .desktop-nav .user-chip img,
  .desktop-nav .user-chip .avatar-fallback {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
  }
  .desktop-nav .user-chip .avatar-fallback {
    background: var(--brand-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
  }
  .desktop-nav .user-chip .uname { font-size: 14px; color: #1f2430; font-weight: 600; }

  /* ---------- 卡片质感 ---------- */
  .card, .panel {
    border-radius: 14px;
    border: 1px solid #eef0f4;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03), 0 4px 16px rgba(16, 24, 40, .04);
    transition: transform .18s ease, box-shadow .18s ease;
  }
  .card:hover, .panel:hover {
    box-shadow: 0 2px 4px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .08);
  }

  /* ---------- 按钮 ---------- */
  .btn { transition: opacity .15s, transform .05s, box-shadow .15s; }
  .btn-primary { box-shadow: 0 4px 14px rgba(255, 106, 0, .28); }
  .btn-primary:hover { box-shadow: 0 6px 20px rgba(255, 106, 0, .4); }
  .btn-outline:hover { background: var(--brand-pale); }

  /* ---------- 商品卡片 ---------- */
  .product-card {
    border-radius: 14px;
    border: 1px solid #eef0f4;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
  }
  .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(16, 24, 40, .1);
  }
  .product-card .thumb { aspect-ratio: 4 / 3; }
  .product-card .title { min-height: auto; }

  /* ---------- 打手卡片 ---------- */
  .worker-card {
    border-radius: 14px;
    border: 1px solid #eef0f4;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
  }
  .worker-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(16, 24, 40, .1);
  }
  .worker-card .thumb { aspect-ratio: 1 / 1; }

  /* ---------- 设置列表 ---------- */
  .set-item { transition: background .15s; }
  .set-item:hover { background: #fafbfc; }

  /* ---------- 弹窗 ---------- */
  .modal {
    max-width: 460px;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(16, 24, 40, .22);
  }

  /* ---------- 桌面端顶部搜索栏加宽 ---------- */
  .searchbar {
    max-width: 680px;
    border: 1px solid #eef0f4;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  }

  /* ---------- 商品详情：左右布局 ---------- */
  .detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: start;
  }
  .detail-main { min-width: 0; }
  .detail-side { position: sticky; top: 84px; }
  .detail-gallery { border-radius: 16px; }
  .detail-gallery img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
  }
  .detail-gallery-ph {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #ddd;
    background: #f7f8fa;
  }
  .detail-buy-card { border-radius: 16px; }

  /* ---------- 打手详情：左右布局 ---------- */
  .worker-detail-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }
  .worker-detail-side { position: sticky; top: 84px; }

  /* ---------- 选人：横向卡片 ---------- */
  .worker-grid { gap: 20px; }
  .worker-card { overflow: hidden; }
  .worker-card .thumb { aspect-ratio: 1 / 1; }

  /* ---------- 选人页顶部筛选区（PC） ---------- */
  .workers-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }
  .workers-toolbar .searchbar { flex: 1; max-width: 360px; }

  /* ---------- 底部操作栏（订单详情等页面） ---------- */
  /* 商品/打手详情的底部操作栏由各自页面样式在桌面隐藏（改用侧边卡片操作），此处不再全局隐藏 */
  .sticky-bar {
    padding: 12px 28px;
    box-shadow: 0 -6px 24px rgba(16, 24, 40, .06);
  }
  .sticky-bar .sticky-inner {
    max-width: 1160px;
    margin: 0 auto;
  }

  /* ---------- 用户中心：桌面端左右布局 ---------- */
  .me-mobile { display: none; }
  .me-desktop {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }

  /* 左侧导航 */
  .me-side {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03), 0 4px 16px rgba(16, 24, 40, .04);
    padding: 16px;
    position: sticky;
    top: 84px;
  }
  .me-side-account {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 16px;
    border-bottom: 1px solid #f0f2f5;
    margin-bottom: 12px;
  }
  .me-side-account img,
  .me-avatar-ph {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
  }
  .me-avatar-ph {
    background: #fff3e8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .me-side-info { min-width: 0; }
  .me-side-name {
    font-size: 15px;
    font-weight: 700;
    color: #1f2430;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .me-side-phone { font-size: 12px; color: #8c94a3; margin-top: 2px; }

  .me-side-nav { display: flex; flex-direction: column; margin-bottom: 16px; }
  .me-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #4a5060;
    font-size: 14px;
    transition: background .15s, color .15s;
  }
  .me-nav-item:hover { background: #f7f8fa; color: #1f2430; }
  .me-nav-ico { display: flex; color: #8c94a3; }
  .me-nav-item:hover .me-nav-ico { color: var(--brand); }
  .me-nav-chev { display: flex; color: #c2c8d1; }

  /* 右侧内容 */
  .me-content { min-width: 0; }
  .me-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--brand-gradient);
    border-radius: 16px;
    padding: 24px 28px;
    color: #fff;
    margin-bottom: 16px;
  }
  .me-welcome-title { font-size: 20px; font-weight: 800; }
  .me-welcome-sub { font-size: 13px; opacity: .92; margin-top: 6px; }

  .me-balance-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03), 0 4px 16px rgba(16, 24, 40, .04);
    padding: 20px 24px;
    margin-bottom: 16px;
  }
  .me-balance-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
  }
  .me-balance-ico { display: flex; color: var(--brand); }
  .me-balance-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--brand);
    margin: 8px 0 12px;
  }
  .me-balance-actions { display: flex; align-items: center; gap: 10px; }

  .me-orders-card,
  .me-quick-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03), 0 4px 16px rgba(16, 24, 40, .04);
    padding: 20px 24px;
    margin-bottom: 16px;
  }
  .me-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }
  .me-card-head .bold { font-size: 15px; color: #1f2430; }

  .me-order-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }
  .me-order-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: 12px;
    color: #4a5060;
    transition: background .15s, transform .15s;
  }
  .me-order-item:hover { background: #fff6ef; transform: translateY(-2px); }
  .me-order-ico { display: flex; color: var(--brand); }
  .me-order-name { font-size: 13px; }
  .me-order-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #f25555;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
  }

  .me-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .me-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 8px;
    border-radius: 12px;
    transition: background .15s, transform .15s;
  }
  .me-quick-item:hover { background: #f7f8fa; transform: translateY(-2px); }
  .me-quick-ico {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .me-quick-name { font-size: 13px; color: #4a5060; }

  /* ---------- 首页：隐藏移动端搜索框（导航栏已常驻搜索） ---------- */
  .home-mobile-search { display: none; }

  /* ---------- 首页：左幻灯片 + 右快捷分类 ---------- */
  .home-hero {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 20px;
  }
  .home-banner,
  .home-quick-cats {
    border-radius: 16px;
    overflow: hidden;
  }
  .banner-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffb56b, #ff6a00);
  }
  .banner-box .banner-slide,
  .banner-box .banner-slide img { width: 100%; height: 100%; display: block; }
  .banner-box .banner-slide img { object-fit: cover; }
  .banner-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
  }
  .banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
  }
  .banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: width .2s, background .2s;
  }
  .banner-dot.on { width: 20px; background: #fff; }

  .home-quick-cats {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03), 0 4px 16px rgba(16, 24, 40, .04);
    padding: 16px;
    display: flex;
    flex-direction: column;
  }
  .quick-cat-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .quick-cat-title .bold { font-size: 15px; color: #1f2430; }
  .quick-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .quick-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 4px;
    border-radius: 12px;
    color: #3a3f4b;
    font-size: 13px;
    transition: background .15s, transform .15s;
  }
  .quick-cat:hover { background: #fff6ef; transform: translateY(-2px); }
  .quick-cat-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f4f6f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    overflow: hidden;
  }
  .quick-cat-ico img { width: 100%; height: 100%; object-fit: cover; }
}

/* 大屏进一步优化网格 */
@media (min-width: 1200px) {
  .container { max-width: 1240px; }
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .worker-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
