/* ========== 顶部栏 ========== */ .pc-app-shell { display: flex; flex-direction: column; min-height: 100vh; max-width: 100vw; overflow-x: clip; background: #f5f6f8; } .pc-topbar { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 20px; min-width: 0; max-width: 100%; height: 64px; padding: 0 24px; background: #fff; border-bottom: 1px solid #eef1f5; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04); } /* ========== 品牌 ========== */ .pc-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; } .pc-brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #fff3e8 0%, #ffe4cc 100%); color: #ff6a00; font-size: 20px; font-weight: 900; } .pc-brand-info { display: flex; flex-direction: column; line-height: 1.2; } .pc-brand-title-row { display: flex; align-items: center; gap: 6px; } .pc-brand-text { font-size: 16px; font-weight: 800; color: #17233d; } .pc-brand-badge { display: inline-flex; align-items: center; padding: 1px 6px; font-size: 10px; font-weight: 700; color: #ff6a00; background: rgba(255, 106, 0, 0.1); border: 1px solid rgba(255, 106, 0, 0.25); border-radius: 999px; line-height: 1.4; letter-spacing: 0.2px; } .pc-brand-sub { font-size: 11px; color: #8b9cb5; font-weight: 600; } /* ========== 导航 ========== */ .pc-nav { display: flex; align-items: center; gap: 4px; margin-left: 10px; min-width: 0; height: 100%; } .pc-nav-link { position: relative; display: flex; align-items: center; gap: 5px; padding: 8px 14px; border-radius: 10px; color: #5a6577; font-size: 14px; font-weight: 700; text-decoration: none; transition: all 0.2s; } .pc-nav-badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 10px; font-style: normal; font-weight: 800; line-height: 16px; text-align: center; } .pc-nav-link:hover, .pc-nav-link.router-link-active { background: #fff3e8; color: #ff6a00; } /* ========== 搜索 ========== */ .pc-search { display: flex; align-items: center; gap: 8px; margin-left: auto; padding: 0 14px; height: 40px; border-radius: 12px; background: #f4f6f8; border: 1px solid transparent; max-width: 320px; min-width: 180px; flex: 1; transition: all 0.2s; } .pc-search:focus-within { background: #fff; border-color: #ff6a00; box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.08); } .pc-search input { border: none; outline: none; background: transparent; color: #17233d; font-size: 13px; width: 100%; } .pc-search input::placeholder { color: #a0aab6; } .pc-search .el-icon { color: #a0aab6; font-size: 16px; flex-shrink: 0; } /* ========== 用户操作区 ========== */ .pc-user-actions { display: flex; align-items: center; gap: 12px; margin-left: 12px; min-width: 0; flex-shrink: 0; height: 100%; } .pc-icon-link { display: flex; align-items: center; gap: 10px; padding: 0 22px; height: 40px; border-radius: 12px; border: 1px solid #eef1f5; background: #ffffff; color: #5a6577; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; transition: all 0.2s; white-space: nowrap; } .pc-icon-link:hover { background: #fff3e8; border-color: #ff6a00; color: #ff6a00; box-shadow: 0 4px 12px rgba(255, 106, 0, 0.05); } .service-link { gap: 7px; min-width: 92px; justify-content: center; padding: 0 18px; border-color: rgba(255, 106, 0, 0.32); border-radius: 10px; background: #fff8f2; color: #ff6a00; font-size: 14px; font-weight: 800; } .service-link .el-icon { width: 18px; height: 18px; font-size: 18px; stroke-width: 2.2; } .service-link:hover { background: #fff3e8; border-color: #ff6a00; box-shadow: 0 6px 16px rgba(255, 106, 0, 0.1); transform: translateY(-1px); } .pc-login-link { display: flex; align-items: center; gap: 6px; padding: 0 16px; height: 40px; border-radius: 10px; background: #f4f6f8; color: #17233d; font-size: 13px; font-weight: 700; text-decoration: none; transition: all 0.2s; } .pc-login-link:hover { background: #eaeff5; } .pc-post-link { display: flex; align-items: center; gap: 6px; padding: 0 18px; height: 40px; border-radius: 10px; background: #ff6a00; color: #fff; font-size: 14px; font-weight: 800; text-decoration: none; box-shadow: 0 6px 16px rgba(255, 106, 0, 0.2); transition: all 0.2s; } .pc-post-link:hover { background: #e55d00; transform: translateY(-1px); } /* ========== 已登录 - 用户块 ========== */ .pc-user-block { position: relative; height: 40px; display: flex; align-items: center; } .pc-user-trigger { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; height: 36px; border: none; border-radius: 999px; background: #f4f6f8; cursor: pointer; transition: all 0.2s; } .pc-user-trigger:hover, .pc-user-trigger.active { background: #eaeff5; } .pc-avatar-chip { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #ff6a00 0%, #e55d00 100%); color: #fff; font-size: 13px; font-weight: 800; flex-shrink: 0; } .pc-avatar-img { width: 100%; height: 100%; object-fit: cover; } .pc-avatar-text { line-height: 1; } .pc-user-name { max-width: 100px; overflow: hidden; color: #17233d; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; } .pc-realname-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1; white-space: nowrap; } .pc-growth-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 900; line-height: 1; white-space: nowrap; } .pc-growth-badge.is-normal { background: #eef2ff; color: #4f46e5; } .pc-growth-badge.is-platinum { background: #eff6ff; color: #2563eb; } .pc-growth-badge.is-diamond { background: #ecfeff; color: #0891b2; } .pc-growth-badge.is-peak { background: #fff7ed; color: #ea580c; } .pc-realname-badge.is-verified, .dropdown-status.is-verified { background: #ecfdf3; color: #16a34a; } .pc-realname-badge.is-pending, .dropdown-status.is-pending { background: #fff7ed; color: #f97316; } .pc-realname-badge.is-rejected, .dropdown-status.is-rejected { background: #fff1f2; color: #e11d48; } .pc-realname-badge.is-unverified, .dropdown-status.is-unverified { background: #f1f5f9; color: #64748b; } .arrow-icon { font-size: 12px; color: #8b9cb5; transition: transform 0.3s; } .arrow-icon.rotated { transform: rotate(180deg); } /* ========== 下拉菜单容器 (Hover Bridge) ========== */ .pc-user-dropdown-container { position: absolute; top: 100%; right: 0; z-index: 200; padding-top: 12px; } .pc-user-dropdown { width: 388px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid #eef1f5; box-shadow: 0 10px 30px rgba(23, 35, 61, 0.15); } .dropdown-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: none; border-radius: 10px; background: none; color: #475569; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.2s; } .dropdown-growth-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; } .dropdown-growth-panel > div { display: grid; gap: 5px; min-width: 0; min-height: 62px; padding: 11px 12px; border-radius: 12px; background: #f8fafc; } .dropdown-growth-panel span { color: #8b9cb5; font-size: 12px; font-weight: 800; } .dropdown-growth-panel strong { min-width: 0; overflow: hidden; color: #7c3aed; font-size: 18px; font-weight: 900; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; } .dropdown-status { display: inline-flex; align-items: center; justify-content: center; min-width: 50px; height: 20px; margin-left: auto; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1; white-space: nowrap; } .dropdown-item:hover { background: #fff3e8; color: #ff6a00; transform: translateX(4px); } .dropdown-item .el-icon { font-size: 16px; color: #94a3b8; transition: color 0.2s; } .dropdown-item:hover .el-icon { color: #ff6a00; } .dropdown-item.logout { color: #ef4444; } .dropdown-item.logout .el-icon { color: #ef4444; } .dropdown-item.logout:hover { background: #fff1f0; } .dropdown-divider { height: 1px; margin: 12px 6px; background: #f1f5f9; } .dropdown-basic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .dropdown-basic-item { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 42px; padding: 0 12px; border-radius: 10px; background: #f8fafc; color: #475569; font-size: 13px; font-weight: 800; text-decoration: none; transition: all 0.2s; } .dropdown-basic-item .el-icon { flex: 0 0 auto; color: #94a3b8; font-size: 16px; } .dropdown-basic-item span:not(.dropdown-status) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dropdown-basic-item:hover { background: #fff3e8; color: #ff6a00; transform: translateY(-1px); } .dropdown-basic-item:hover .el-icon { color: #ff6a00; } .dropdown-service-group { padding: 0 2px; } .dropdown-service-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 8px; color: #17233d; font-size: 14px; font-weight: 900; } .dropdown-service-more { color: #64748b; font-size: 12px; font-weight: 800; text-decoration: none; } .dropdown-service-more:hover { color: #ff6a00; } .dropdown-service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .dropdown-service-card, .dropdown-seller-card { text-decoration: none; transition: all 0.2s; } .dropdown-service-card { display: grid; min-width: 0; min-height: 74px; place-items: center; gap: 6px; padding: 8px 4px; border-radius: 10px; background: #f8fafc; color: #475569; font-size: 12px; font-weight: 800; text-align: center; } .dropdown-service-card .el-icon { color: #ff6a00; font-size: 18px; } .dropdown-service-card:hover { background: #fff3e8; color: #ff6a00; transform: translateY(-1px); } .dropdown-seller-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .dropdown-seller-card { display: grid; min-width: 0; min-height: 74px; place-items: center; gap: 6px; padding: 8px 4px; border-radius: 10px; background: #f8fafc; color: #475569; font-size: 12px; font-weight: 800; text-align: center; } .dropdown-seller-card .el-icon { color: #ff6a00; font-size: 18px; } .dropdown-seller-card:hover { background: #fff3e8; color: #ff6a00; transform: translateY(-1px); } .dropdown-seller-card:hover .el-icon { color: #ff6a00; } /* 下拉动画 */ .dropdown-enter-active, .dropdown-leave-active { transition: opacity 0.2s ease, transform 0.2s ease; } .dropdown-enter-from { opacity: 0; transform: translateY(10px); } .dropdown-leave-to { opacity: 0; transform: translateY(5px); } /* ========== 主体 ---------- */ .pc-main { flex: 1; min-width: 0; padding: 20px 24px; overflow-x: clip; } /* ========== 页脚 ========== */ .pc-footer { flex-shrink: 0; padding: 16px 24px; background: #fff; border-top: 1px solid #eef1f5; } .pc-footer-inner { display: flex; align-items: center; justify-content: center; gap: 8px; max-width: 1280px; margin: 0 auto; color: #8b9cb5; font-size: 12px; line-height: 1.6; } .pc-footer-icp { color: #8b9cb5; text-decoration: none; transition: color 0.2s; } .pc-footer-icp:hover { color: #5a6577; } .pc-footer-divider { color: #d8dfe8; } .pc-footer-copyright { color: #8b9cb5; } @media (max-width: 1280px) { .pc-growth-badge { display: none; } .pc-realname-badge { display: none; } }