@charset "UTF-8";
/* ==========================================
 * 宜省 - 全局核心样式库 (自适应 PC & 移动端)
 * ========================================== */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f0f2f5; color: #333; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }

.ys-header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0,0,0,0.06); transition: all 0.3s ease; }
.ys-top-bar { max-width: 1200px; margin: 0 auto; height: 65px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; gap: 20px; }
.ys-logo { display: flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 900; color: #222; text-decoration: none; letter-spacing: 0.5px; font-style: italic; }
.ys-logo .logo-icon { font-size: 24px; font-style: normal; }
.ys-search-wrapper { flex: 1; max-width: 550px; display: flex; justify-content: center; }
.ys-search-form { display: flex; width: 100%; position: relative; background: #f5f6f8; border-radius: 25px; border: 2px solid transparent; transition: 0.3s; overflow: hidden; }
.ys-search-form:focus-within { border-color: #ff5000; background: #fff; box-shadow: 0 4px 15px rgba(255,80,0,0.1); }
.ys-search-input { flex: 1; height: 40px; border: none; background: transparent; padding: 0 15px 0 20px; outline: none; font-size: 14px; color: #333; }
.ys-search-btn { height: 40px; padding: 0 25px; background: linear-gradient(90deg, #ff9000, #ff5000); color: #fff; border: none; font-weight: bold; font-size: 15px; cursor: pointer; transition: 0.3s; }
.ys-header-actions { display: flex; align-items: center; gap: 15px; }
.ys-action-btn { display: flex; align-items: center; gap: 6px; text-decoration: none; font-size: 14px; font-weight: bold; color: #ff5000; border: 1px solid #ff5000; padding: 6px 18px; border-radius: 20px; transition: 0.3s; background: transparent; }
.ys-action-btn.logged-in { background: linear-gradient(90deg, #ff9000, #ff5000); color: #fff; border: none; }

.ys-top-nav { display: flex; padding: 10px 15px; background: #fff; gap: 15px; max-width: 1200px; margin: 0 auto; border-bottom: 1px solid #f5f5f5;}
.ys-nav-btn { padding: 8px 0; border-radius: 20px; font-size: 15px; font-weight: bold; text-decoration: none; color: #666; background: #f5f5f5; flex: 1; text-align: center; transition: 0.3s; }
.ys-nav-btn.active-tb { background: linear-gradient(90deg, #ff9000, #ff5000); color: #fff; box-shadow: 0 4px 10px rgba(255,80,0,0.2); }
.ys-nav-btn.active-pdd { background: linear-gradient(90deg, #f5222d, #e02e24); color: #fff; box-shadow: 0 4px 10px rgba(224,46,36,0.2); }

.nav-hot-tags { display: flex; padding: 10px 15px; background: #fff; gap: 10px; overflow-x: auto; white-space: nowrap; max-width: 1200px; margin: 0 auto; border-bottom: 1px solid #f5f5f5; }
.nav-hot-tags::-webkit-scrollbar { display: none; }
.hot-tag { background: #f0f2f5; color: #555; padding: 4px 12px; border-radius: 15px; font-size: 13px; text-decoration: none; }
.hot-tag.active { background: #ff5000; color: #fff; font-weight: bold; }

.ys-rank-boards { max-width: 1200px; margin: 15px auto; display: flex; flex-direction: column; gap: 15px; padding: 0 15px; }
.ys-rb-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.ys-rb-header { padding: 12px 15px; background: linear-gradient(90deg, #fff3e0, #fff); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f9f9f9; }
.ys-rb-header.comm { background: linear-gradient(90deg, #fde8e8, #fff); }
.ys-rb-title { font-size: 15px; font-weight: bold; color: #e65100; display: flex; align-items: center; gap: 6px; }
.ys-rb-title.comm { color: #c0392b; }
.ys-rb-scroll { display: flex; overflow-x: auto; gap: 12px; padding: 15px; scroll-snap-type: x mandatory; cursor: grab; }
.ys-rb-scroll:active { cursor: grabbing; }
.ys-rb-scroll::-webkit-scrollbar { display: none; }
.ys-rb-item { flex: 0 0 115px; text-decoration: none; color: #333; position: relative; scroll-snap-align: start; display: flex; flex-direction: column; padding-bottom: 6px; background: #fff; border-radius: 8px; }
.ys-rb-img { width: 100%; aspect-ratio: 1/1; border-radius: 8px; object-fit: cover; background: #f5f5f5; margin-bottom: 8px; pointer-events: none; }
.ys-rb-rank-num { position: absolute; top: -6px; left: -6px; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: bold; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,0.2); z-index: 2; border: 2px solid #fff;}
.ys-rb-rank-num.r-1 { background: linear-gradient(135deg, #ffc107, #f39c12); }
.ys-rb-rank-num.r-2 { background: linear-gradient(135deg, #e0e0e0, #95a5a6); color: #333;}
.ys-rb-rank-num.r-3 { background: linear-gradient(135deg, #e67e22, #d35400); }
.ys-rb-rank-num.r-n { background: rgba(0,0,0,0.4); }
.ys-rb-price { color: #ff5000; font-weight: bold; font-size: 15px; text-align: center; line-height: 1.1; }
.ys-rb-sales { font-size: 11px; color: #999; text-align: center; margin-top: 3px; }
.ys-rb-earn-tag { background: #fff1eb; color: #ff5000; border: 1px solid #ffcdb2; font-size: 11px; padding: 2px 4px; border-radius: 4px; text-align: center; margin: 5px auto 0; display: inline-block; font-weight: bold; width: 90%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.ys-rb-item.pdd-style .ys-rb-price { color: #e02e24; }
.ys-rb-item.pdd-style .ys-rb-earn-tag { background: #fde8e8; color: #e02e24; border-color: #f5baba; }

.ys-filter-bar { display: flex; flex-direction: column; gap: 10px; background: #fff; padding: 10px 15px; margin: 0 auto 10px; max-width: 1200px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); font-size: 13px; color: #666; position: sticky; top: 65px; z-index: 280; }
.ys-filter-row { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 10px;}
.ys-filter-sort { display: flex; gap: 20px; overflow-x: auto; white-space: nowrap; flex: 1; }
.ys-filter-sort::-webkit-scrollbar { display: none; }
.ys-filter-sort a { text-decoration: none; color: #666; transition: 0.2s; display:flex; align-items:center; gap:2px; padding: 4px 0;}
.ys-filter-sort a.active { color: #ff5000; font-weight: bold; }
.ys-filter-tags { display: flex; gap: 10px; overflow-x: auto; white-space: nowrap; width: 100%; padding-bottom: 2px; }
.ys-filter-tags::-webkit-scrollbar { display: none; }
.ys-pill-btn { display: inline-flex; align-items: center; justify-content: center; background: #f5f6f8; color: #555; padding: 6px 14px; border-radius: 15px; font-size: 12px; text-decoration: none; transition: 0.2s; border: 1px solid transparent; }
.ys-pill-btn.active { background: #fff0e6; color: #ff5000; border-color: #ffcdb2; font-weight: bold; }
.ys-pill-select { position: relative; display: inline-block; }
.ys-pill-select select { appearance: none; -webkit-appearance: none; background: #f5f6f8; border: 1px solid transparent; padding: 6px 24px 6px 14px; border-radius: 15px; font-size: 12px; color: #555; outline: none; cursor: pointer; transition: 0.2s; font-family: inherit; }
.ys-pill-select::after { content: '▼'; font-size: 8px; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #999; pointer-events: none; }
.ys-pill-select.active select { background: #fff0e6; color: #ff5000; border-color: #ffcdb2; font-weight: bold; }
.ys-pill-select.active::after { color: #ff5000; }

.ys-main-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 15px 15px; min-height: 50vh; }
.ys-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ys-card { background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; border: 1px solid #f0f0f0; }
.ys-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); border-color: #ff5000; }
.ys-card-img { position: relative; width: 100%; aspect-ratio: 1/1; background: #f9f9f9; }
.ys-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ys-card-info { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.ys-card-title { font-size: 13.5px; color: #222; line-height: 1.5; height: 40px; overflow: hidden; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-weight: 500; }
.tag-tmall { display: inline-block; background: #dd2727; color: #fff; font-size: 10px; padding: 1px 4px; border-radius: 3px; margin-right: 5px; vertical-align: text-top; line-height: 1.4; }
.tag-taobao { display: inline-block; background: #ff5000; color: #fff; font-size: 10px; padding: 1px 4px; border-radius: 3px; margin-right: 5px; vertical-align: text-top; line-height: 1.4; }
.tag-pdd { display: inline-block; background: #e02e24; color: #fff; font-size: 10px; padding: 1px 4px; border-radius: 3px; margin-right: 5px; vertical-align: text-top; line-height: 1.4; }
.ys-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.tag-vip { background: #333; color: #f5d195; font-size: 10px; padding: 1px 5px; border-radius: 4px; border:1px solid #f5d195; font-weight:bold;}
.tag-promo { background: #fff1eb; color: #ff5000; border: 1px solid #ffcdb2; font-size: 10px; padding: 1px 5px; border-radius: 4px; }
.tag-brand { background: #333; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 4px; }
.ys-card-price-row { display: flex; align-items: baseline; margin-top: auto; margin-bottom: 8px; gap: 4px;}
.ys-card-price-lbl { font-size: 10px; color: #ff5000; background: #fff1eb; padding: 1px 4px; border-radius: 3px; }
.ys-card-price { color: #ff5000; font-size: 20px; font-weight: 900; letter-spacing: -0.5px; }
.ys-card-old-price { font-size: 11px; color: #aaa; text-decoration: line-through; margin-left: 2px;}
.ys-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #999; border-top: 1px dashed #f5f5f5; padding-top: 8px; }
.ys-card-sales { color: #888; }
.ys-card-earn { background: linear-gradient(90deg, #ff0036, #ff6a00); color: #fff; padding: 2px 6px; border-radius: 4px; font-weight: bold; font-size: 11px; display: flex; align-items: center; gap: 2px; }
.ys-loading-tips { text-align: center; padding: 30px 0 80px; color: #999; font-size: 14px; }
.ys-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #ccc; border-top-color: #ff5000; border-radius: 50%; animation: spin 1s linear infinite; vertical-align: middle; margin-right: 5px;}

.ys-detail-container { max-width: 1000px; margin: 20px auto; display: flex; flex-direction: column; gap: 15px; padding: 0 15px; padding-bottom: 80px; }
.ys-gallery { width: 100%; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); position: relative; background: #fff; }
.ys-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.ys-badge { position: absolute; top: 15px; left: 15px; background: linear-gradient(90deg, #ff9000, #ff5000); color: #fff; padding: 5px 15px; border-radius: 20px; font-size: 13px; font-weight: bold; z-index: 10; }
.ys-badge.pdd { background: linear-gradient(90deg, #f5222d, #e02e24); }
.ys-info-box { background: transparent; display: flex; flex-direction: column; gap: 15px; }
.ys-price-card { background: linear-gradient(135deg, #ff5000, #ff8c00); color: #fff; padding: 20px 20px; border-radius: 16px; position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-end; box-shadow: 0 6px 15px rgba(255,80,0,0.2); }
.ys-price-card.pdd { background: linear-gradient(135deg, #f5222d, #e02e24); box-shadow: 0 6px 15px rgba(224,46,36,0.2); }
.ys-price-card::after { content: '狂欢特惠'; position: absolute; right: -10px; top: -10px; font-size: 60px; opacity: 0.1; font-weight: 900; font-style: italic; pointer-events: none; }
.ys-price-main { display: flex; align-items: baseline; gap: 4px; }
.ys-price-main .rmb { font-size: 18px; font-weight: bold; }
.ys-price-main .num { font-size: 40px; font-weight: 900; letter-spacing: -1px; line-height: 1; }
.ys-price-sub { font-size: 13px; opacity: 0.9; text-decoration: line-through; margin-bottom: 6px; }
.ys-detail-sales { font-size: 12px; background: rgba(0,0,0,0.15); padding: 4px 10px; border-radius: 12px; margin-bottom: 6px; backdrop-filter: blur(4px); }
.ys-title-card { background: #fff; padding: 20px; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.ys-marketing-panel { background: #fff; border: 1px solid #ffe4d6; border-radius: 12px; padding: 15px; margin-top: 15px; position: relative; overflow: hidden; }
.ys-marketing-panel::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #ff9000, #ff5000); }
.ys-marketing-panel.pdd::before { background: linear-gradient(180deg, #f5222d, #e02e24); }
.ys-m-title { font-size: 14px; font-weight: bold; color: #222; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.ys-m-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.ys-m-row:last-child { margin-bottom: 0; }
.ys-m-label { font-size: 12px; color: #ff5000; font-weight: bold; white-space: nowrap; background: rgba(255,80,0,0.1); padding: 2px 6px; border-radius: 4px; }
.ys-m-label.pdd { color: #e02e24; background: rgba(224,46,36,0.1); }
.ys-m-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ys-m-tag { border: 1px solid #ffcdb2; color: #ff5000; font-size: 11px; padding: 2px 8px; border-radius: 12px; background: #fff; }
.ys-m-tag.vip { background: #222; color: #f5d195; border-color: #333; font-weight: bold; }
.ys-m-tag.pdd { border-color: #f5baba; color: #e02e24; }
.ys-trust-bar { display: flex; flex-wrap: wrap; gap: 15px; padding: 15px 0 0; margin-top: 15px; border-top: 1px dashed #eee; font-size: 12px; color: #666; }
.ys-trust-bar span { display: flex; align-items: center; gap: 4px; }
.ys-trust-bar span::before { content: '✓'; color: #ff5000; font-weight: bold; font-size: 14px; }
.ys-trust-bar.pdd span::before { color: #e02e24; }
.ys-coupon-box { background: #fff8f5; border: 1px solid #ffcdb2; border-radius: 12px; display: flex; align-items: center; overflow: hidden; position: relative; text-decoration: none; display: flex; transition: 0.2s;}
.ys-coupon-box:active { transform: scale(0.98); }
.ys-coupon-box::after { content: ''; position: absolute; left: 100px; top: -5px; bottom: -5px; width: 0; border-left: 2px dashed #ffcdb2; }
.ys-coupon-box.pdd { background: #fde8e8; border-color: #f5baba; }
.ys-coupon-box.pdd::after { border-left-color: #f5baba; }
.ys-coupon-val { width: 100px; background: linear-gradient(135deg, #ff9000, #ff5000); color: #fff; text-align: center; padding: 15px 0; font-size: 24px; font-weight: bold; }
.ys-coupon-val.pdd { background: linear-gradient(135deg, #f5222d, #e02e24); }
.ys-coupon-desc { padding: 0 20px; flex: 1; color: #ff5000; font-weight: bold; font-size: 15px; display:flex; flex-direction:column; justify-content:center;}
.ys-coupon-desc.pdd { color: #e02e24; }
.ys-coupon-btn { margin-right: 15px; background: #ff5000; color: #fff; padding: 6px 15px; border-radius: 20px; font-size: 13px; font-weight: bold; text-decoration:none;}
.ys-coupon-btn.pdd { background: #e02e24; }
.ys-action-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(255,255,255,0.98); backdrop-filter: blur(10px); height: calc(65px + env(safe-area-inset-bottom)); display: flex; align-items: center; padding: 0 15px; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 20px rgba(0,0,0,0.06); z-index: 100; gap: 15px; }
.ys-btn-share { flex: 1; height: 44px; background: #fff; color: #ff0036; border: 1px solid #ff0036; border-radius: 22px; font-size: 15px; font-weight: bold; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.2s;}
.ys-btn-buy { flex: 1.5; height: 44px; background: linear-gradient(90deg, #ff9000, #ff5000); color: #fff; border: none; border-radius: 22px; font-size: 15px; font-weight: bold; cursor: pointer; display: flex; justify-content: center; align-items: center; text-decoration: none; box-shadow: 0 4px 15px rgba(255,80,0,0.3); transition: 0.2s;}
.ys-btn-share.pdd { color: #e02e24; border-color: #e02e24; }
.ys-btn-buy.pdd { background: linear-gradient(90deg, #f5222d, #e02e24); box-shadow: 0 4px 15px rgba(224,46,36,0.3); }

/* 🚀 底部导航 (移动端专属) */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: calc(55px + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.98); backdrop-filter: blur(10px); border-top: 1px solid #eee; display: flex; z-index: 1000; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 10px rgba(0,0,0,0.03);}
.b-nav-item { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-decoration: none; color: #999; font-size: 11px; transition: 0.2s;}
.b-nav-item.active { color: #ff5000; font-weight: bold; }
.b-nav-icon { font-size: 20px; margin-bottom: 2px; }

.ys-modal { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.7); z-index:9999; justify-content:center; align-items:center; backdrop-filter: blur(5px); }
.ys-modal-box { background:#fff; width:90%; max-width: 400px; border-radius:20px; padding:25px; text-align:center; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.ys-modal-title { color:#ff5000; font-weight:bold; font-size: 18px; margin-bottom:15px; }
.ys-modal-title.pdd { color:#e02e24; }
.ys-modal-textarea { width:100%; height:120px; background:#fdf0f0; border:1px dashed #ffcdb2; padding:15px; font-size:14px; margin-bottom:20px; color:#ff5000; border-radius: 12px; resize:none; outline:none; }
.ys-modal-textarea.pdd { background:#fde8e8; border-color:#f5baba; color:#e02e24; }
.ys-modal-btn { width:100%; background:linear-gradient(90deg, #ff9000, #ff5000); color:#fff; border:none; padding:14px; border-radius:25px; font-weight:bold; font-size: 16px; cursor: pointer; margin-bottom: 15px; box-shadow: 0 4px 15px rgba(255,80,0,0.3);}
.ys-modal-btn.pdd { background:linear-gradient(90deg, #f5222d, #e02e24); box-shadow: 0 4px 15px rgba(224,46,36,0.3);}

@media (min-width: 768px) {
    /* 🚀 核心修复：PC端彻底隐藏底部导航 */
    .bottom-nav { display: none !important; }
    
    .ys-grid { grid-template-columns: repeat(4, 1fr); gap: 15px; }
    .ys-rank-boards { flex-direction: row; }
    .ys-rb-card { flex: 1; min-width: 0; }
    .ys-filter-bar { flex-direction: row; padding: 12px 20px; }
    .ys-filter-row { width: auto; border: none !important; padding: 0 !important; margin: 0 !important; }
    .ys-rb-scroll { overflow-x: auto; padding-bottom: 20px; }
    .ys-rb-scroll::-webkit-scrollbar { display: block; height: 6px; }
    .ys-rb-scroll::-webkit-scrollbar-thumb { background: #dcdcdc; border-radius: 4px; cursor: pointer; }
    .ys-rb-scroll::-webkit-scrollbar-thumb:hover { background: #ff5000; }
    .ys-rb-scroll::-webkit-scrollbar-track { background: #f9f9f9; border-radius: 4px; }
    .ys-detail-container { flex-direction: row; align-items: flex-start; padding-top: 40px; gap: 30px;}
    .ys-gallery { flex: 0 0 450px; position: sticky; top: 90px; } 
    .ys-info-box { flex: 1; min-height: 450px; } 
    .ys-action-bar { position: static; box-shadow: none; padding: 0; margin-top: auto; border-radius: 20px; background: transparent;} 
}
@media (min-width: 1024px) {
    body { padding-bottom: 30px; }
    .ys-grid { grid-template-columns: repeat(5, 1fr); gap: 20px; }
    .ys-top-bar { height: 75px; }
    .ys-filter-bar { top: 75px; }
}
@media (max-width: 768px) {
    .ys-top-bar { height: 55px; padding: 0 10px; gap: 10px; }
    .ys-logo { font-size: 18px; gap: 4px;}
    .ys-logo .logo-icon { font-size: 20px; }
    .ys-search-form { background: #f0f2f5; }
    .ys-search-input { height: 34px; font-size: 13px; padding: 0 10px 0 15px; }
    .ys-search-btn { height: 34px; padding: 0 15px; font-size: 13px; }
    .ys-header-actions { display: none; }
    .ys-filter-bar { top: 55px; font-size: 12px; }
}