:root {
    --by-primary: #58a6ff;
    --by-primary-dark: #388bfd;
    --by-accent: #f0883e;
    --by-accent-dark: #d2691e;
    --by-bg: #0d1117;
    --by-card-bg: #161b22;
    --by-card-sub: #21262d;
    --by-border: #30363d;
    --by-text: #c9d1d9;
    --by-text-bright: #ffffff;
    --by-sub: #8b949e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--by-bg); color: var(--by-text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 13px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; transition: 0.2s; }

.boy-topbar { background: #010409; border-bottom: 1px solid var(--by-border); font-size: 12px; height: 36px; line-height: 36px; color: var(--by-sub); }
.boy-topbar-inner { max-width: 1300px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: flex-end; align-items: center; }

.boy-header { background: var(--by-bg); padding: 15px 0; border-bottom: 1px solid var(--by-border); }
.boy-header-inner { max-width: 1300px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; }
.boy-logo img { height: 38px; width: auto; max-width: 180px; object-fit: contain; filter: brightness(1.2); }

.boy-nav-bar { background: var(--by-card-bg); border-bottom: 1px solid var(--by-border); }
.boy-nav-inner { max-width: 1300px; margin: 0 auto; padding: 0 15px; }
.boy-nav-list { display: flex; list-style: none; flex-wrap: wrap; }
.boy-nav-list li a { display: block; padding: 12px 20px; color: var(--by-sub); font-size: 14px; font-weight: 600; }
.boy-nav-list li a:hover, .boy-nav-list li.active a { color: var(--by-primary); border-bottom: 2px solid var(--by-primary); }

.boy-notice { max-width: 1300px; margin: 15px auto 0; padding: 10px 15px; background: rgba(56, 139, 253, 0.1); border-left: 4px solid var(--by-primary); border-radius: 4px; color: var(--by-primary); font-size: 13px; }

.boy-container { max-width: 1300px; margin: 20px auto; padding: 0 15px; min-height: 60vh; }

.boy-bento-layout { display: grid; grid-template-columns: 280px 1fr 320px; gap: 20px; margin-bottom: 25px; }
.boy-col-left, .boy-col-center, .boy-col-right { display: flex; flex-direction: column; gap: 20px; }

.boy-card { background: var(--by-card-bg); border: 1px solid var(--by-border); border-radius: 8px; padding: 16px; position: relative; overflow: hidden; }
.boy-card-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; margin-bottom: 15px; border-bottom: 1px solid var(--by-border); }
.boy-card-title { font-size: 14px; font-weight: bold; color: var(--by-text-bright); display: flex; align-items: center; }
.boy-card-title::before { content: ""; width: 3px; height: 12px; background: var(--by-primary); margin-right: 8px; border-radius: 2px; }

.boy-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.boy-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.boy-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.boy-card-item { border: 1px solid var(--by-border); padding: 12px; text-align: center; background: var(--by-card-sub); border-radius: 6px; transition: 0.2s; }
.boy-card-item:hover { border-color: var(--by-primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.boy-card-img-box { width: 50px; height: 50px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; background: #0d1117; border-radius: 4px; border: 1px solid var(--by-border); }
.boy-card-img-box img { max-width: 38px; max-height: 38px; object-fit: contain; }
.boy-card-name { font-size: 13px; font-weight: 600; height: 36px; overflow: hidden; margin-bottom: 6px; color: var(--by-text-bright); }
.boy-card-price { font-size: 15px; font-weight: bold; color: var(--by-accent); margin-bottom: 8px; }
.boy-btn-buy { display: block; width: 100%; padding: 5px 0; background: var(--by-primary); color: #ffffff; font-size: 12px; font-weight: bold; text-align: center; border-radius: 4px; }
.boy-btn-buy:hover { background: var(--by-primary-dark); }

.boy-row-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 8px; border-bottom: 1px dashed var(--by-border); font-size: 13px; }
.boy-row-item:last-child { border-bottom: none; }
.boy-badge { display: inline-block; padding: 1px 5px; font-size: 10px; font-weight: bold; border-radius: 3px; margin-right: 6px; }
.boy-badge-top { background: rgba(240, 136, 62, 0.2); color: var(--by-accent); border: 1px solid var(--by-accent); }
.boy-badge-hot { background: rgba(88, 166, 255, 0.2); color: var(--by-primary); border: 1px solid var(--by-primary); }

.boy-detail-layout { display: flex; gap: 25px; background: var(--by-card-bg); border: 1px solid var(--by-border); padding: 25px; border-radius: 8px; }
.boy-detail-media { flex: 0 0 260px; text-align: center; }
.boy-detail-img-wrap { width: 220px; height: 220px; margin: 0 auto 12px; border: 1px solid var(--by-border); border-radius: 6px; display: flex; align-items: center; justify-content: center; background: #0d1117; padding: 10px; }
.boy-detail-img-wrap img { max-width: 180px; max-height: 180px; object-fit: contain; }
.boy-detail-info { flex: 1; }
.boy-detail-name { font-size: 18px; font-weight: bold; color: var(--by-text-bright); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--by-border); }
.boy-detail-meta-box { background: var(--by-card-sub); border: 1px solid var(--by-border); padding: 12px 18px; border-radius: 6px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }

.boy-form-group { margin-bottom: 15px; }
.boy-form-label { display: block; font-weight: bold; margin-bottom: 6px; font-size: 13px; color: var(--by-text); }
.boy-input { width: 100%; height: 40px; background: var(--by-card-sub); border: 1px solid var(--by-border); border-radius: 4px; padding: 0 12px; outline: none; font-size: 13px; color: #ffffff; }
.boy-input:focus { border-color: var(--by-primary); }
.boy-btn-submit { width: 100%; height: 44px; background: var(--by-accent); color: #ffffff; font-size: 15px; font-weight: bold; border: none; border-radius: 4px; cursor: pointer; transition: 0.2s; }
.boy-btn-submit:hover { background: var(--by-accent-dark); }

.boy-footer { background: var(--by-card-bg); border-top: 1px solid var(--by-border); color: var(--by-sub); padding: 30px 15px; text-align: center; margin-top: 40px; font-size: 13px; }
.boy-footer-links { margin-bottom: 10px; }
.boy-footer-links a { color: var(--by-text); margin: 0 10px; font-weight: 500; }
.boy-footer-links a:hover { color: var(--by-primary); }

@media (max-width: 1100px) {
    .boy-bento-layout { grid-template-columns: 1fr 1fr; }
    .boy-col-left { display: none; }
}
@media (max-width: 768px) {
    .boy-bento-layout { grid-template-columns: 1fr; }
    .boy-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .boy-detail-layout { flex-direction: column; }
    .boy-detail-media { flex: 1; }
}
@media (max-width: 480px) {
    .boy-grid-4, .boy-grid-2 { grid-template-columns: 1fr; }
    .boy-nav-list li a { padding: 9px 12px; font-size: 13px; }
}
