* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
body { background-color: #0a0f1d; color: #e2e8f0; font-family: 'Fira Code', Consolas, monospace; line-height: 1.6; font-size: 14px; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }

.pwf-nav-wrap { background: #131b2e; border-bottom: 1px solid #212d4a; width: 100%; position: sticky; top: 0; z-index: 1000; }
.pwf-nav-inner { max-width: 1240px; margin: 0 auto; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.pwf-logo { height: 26px; }
.pwf-menu { display: flex; list-style: none; gap: 20px; align-items: center; }
.pwf-menu a { color: #8a99ad; font-weight: 500; font-size: 13px; }
.pwf-menu a:hover, .pwf-menu a.active { color: #5a67d8; }

.pwf-container { max-width: 1240px; margin: 30px auto; padding: 0 20px; min-height: 75vh; }
.pwf-frame { display: flex; flex-direction: row-reverse; gap: 24px; }
.pwf-sidebar { width: 240px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
.pwf-side-card { background: #131b2e; border: 1px solid #212d4a; border-radius: 12px; padding: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
.pwf-side-link { display: block; padding: 10px 14px; border-radius: 12px; color: #8a99ad; font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.pwf-side-link:hover, .pwf-side-link.active { background: rgba(90, 103, 216, 0.15); color: #5a67d8; }
.pwf-main { flex: 1; min-width: 0; }

.pwf-notice { background: #131b2e; border: 1px solid #212d4a; border-left: 3px solid #5a67d8; border-radius: 12px; padding: 14px 20px; margin-bottom: 24px; font-size: 13px; color: #8a99ad; box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
.pwf-cat-title { font-size: 16px; font-weight: 700; color: #e2e8f0; margin: 25px 0 15px; display: flex; align-items: center; gap: 10px; }
.pwf-cat-title::before { content: ""; width: 6px; height: 14px; background: #5a67d8; border-radius: 2px; }

.pwf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.pwf-card { background: #131b2e; border: 1px solid #212d4a; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 8px 20px rgba(0,0,0,0.4); transition: transform 0.2s, border-color 0.2s; }
.pwf-card:hover { transform: translateY(-2px); border-color: #5a67d8; }
.pwf-card-top { display: flex; gap: 14px; margin-bottom: 14px; }
.pwf-card-img { width: 56px; height: 56px; border-radius: 12px; background: #0a0f1d; border: 1px solid #212d4a; padding: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.pwf-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pwf-card-info { flex: 1; min-width: 0; }
.pwf-card-name { font-size: 13px; font-weight: 600; color: #e2e8f0; line-height: 1.4; height: 36px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pwf-card-tag { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 2px; background: rgba(90, 103, 216, 0.15); color: #5a67d8; margin-top: 4px; }
.pwf-card-btm { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed #212d4a; padding-top: 12px; margin-top: 4px; }
.pwf-price { font-size: 16px; font-weight: 700; color: #5a67d8; }
.pwf-buy-btn { background: #5a67d8; color: #0a0f1d; padding: 4px 14px; border-radius: 12px; font-size: 12px; font-weight: 600; flex-shrink: 0; }

.pwf-table-wrap { background: #131b2e; border: 1px solid #212d4a; border-radius: 12px; overflow: hidden; margin-top: 20px; }
.pwf-table-row { display: flex; align-items: center; padding: 14px 20px; border-bottom: 1px solid #212d4a; justify-content: space-between; font-size: 13px; }
.pwf-table-row:last-child { border-bottom: none; }
.pwf-table-row:hover { background: rgba(90, 103, 216, 0.15); }

.pwf-dt-panel { background: #131b2e; border: 1px solid #212d4a; border-radius: 12px; padding: 30px; display: flex; gap: 30px; margin-bottom: 24px; box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
.pwf-dt-media { width: 220px; flex-shrink: 0; background: #0a0f1d; border: 1px solid #212d4a; border-radius: 12px; padding: 20px; display: flex; align-items: center; justify-content: center; }
.pwf-dt-form { flex: 1; min-width: 0; }
.pwf-dt-title { font-size: 18px; font-weight: 700; color: #e2e8f0; margin-bottom: 12px; }
.pwf-dt-price-bar { background: #0a0f1d; border: 1px solid #212d4a; border-radius: 12px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.pwf-input-box { width: 100%; height: 42px; border: 1px solid #212d4a; border-radius: 12px; padding: 0 14px; background: #131b2e; color: #e2e8f0; margin-bottom: 14px; font-size: 13px; outline: none; }
.pwf-input-box:focus { border-color: #5a67d8; }
.pwf-btn-submit { width: 100%; height: 44px; background: #5a67d8; color: #0a0f1d; border: none; border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.pwf-desc-card { background: #131b2e; border: 1px solid #212d4a; border-radius: 12px; padding: 25px; font-size: 13px; line-height: 1.8; color: #8a99ad; }
.pwf-desc-card p { margin-bottom: 14px; }

.pwf-query-box { max-width: 560px; margin: 40px auto; background: #131b2e; border: 1px solid #212d4a; border-radius: 12px; padding: 30px; box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
.pwf-query-tab { display: flex; border-bottom: 1px solid #212d4a; margin-bottom: 24px; }
.pwf-query-tab a { flex: 1; text-align: center; padding: 10px 0; font-size: 13px; color: #8a99ad; font-weight: 600; border-bottom: 2px solid transparent; }
.pwf-query-tab a.active { color: #5a67d8; border-bottom-color: #5a67d8; }

.pwf-footer { background: #131b2e; border-top: 1px solid #212d4a; padding: 35px 20px; margin-top: 60px; text-align: center; font-size: 12px; color: #8a99ad; }
.pwf-ft-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; }

@media (max-width: 960px) {
  .pwf-frame { flex-direction: column !important; }
  .pwf-sidebar { width: 100%; }
  .pwf-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .pwf-dt-panel { flex-direction: column; align-items: center; }
  .pwf-dt-media { width: 100%; max-width: 240px; }
}
@media (max-width: 560px) {
  .pwf-grid { grid-template-columns: 1fr !important; }
  .pwf-nav-inner { padding: 0 15px; }
  .pwf-container { padding: 0 12px; margin-top: 15px; }
}
