/* ============================================================
   三骑机械 83777.cn · 前端站点样式
   深蓝 #0b1a2b / 红 #d42e2e / 金 #f5b342 / 浅灰底 #f1f5f9
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Microsoft YaHei', Roboto, Arial, sans-serif;
    background: #f1f5f9;
    color: #0b1a2b;
    line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== 顶部导航 ===== */
.top-bar { background: #0b1a2b; border-bottom: 3px solid #d42e2e; position: sticky; top: 0; z-index: 100; }
.top-bar .container { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo .logo-icon {
    width: 42px; height: 42px; border-radius: 11px; background: #d42e2e; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800;
}
.logo .logo-text { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.3px; white-space: nowrap; }
.logo .logo-text em { color: #d42e2e; font-style: normal; }
.logo .logo-sub { display: block; font-size: 11px; color: #8aa3bb; letter-spacing: .5px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: #dce5ef; padding: 8px 13px; border-radius: 8px; font-size: 14.5px; font-weight: 500; transition: .2s; white-space: nowrap; flex-shrink: 0; }
.nav a:hover { color: #f5b342; }
.nav a.active { color: #f5b342; font-weight: 700; background: rgba(245,179,66,.08); }

/* 多语言: 英/俄导航较长, 横排时紧凑留出 logo 空间 (汉堡菜单不受影响) */
@media (min-width: 1201px) {
    html[lang="en"] .nav { gap: 2px; }
    html[lang="en"] .nav a { padding: 8px 9px; font-size: 13.5px; }
    html[lang="ru"] .nav { gap: 1px; }
    html[lang="ru"] .nav a { padding: 8px 6px; font-size: 12.5px; }
}
.nav .admin-link {
    background: #d42e2e; color: #fff; padding: 8px 18px; border-radius: 40px; font-weight: 600; font-size: 13px;
}
.nav .admin-link:hover { background: #b82222; color: #fff; }

/* 头部右侧: 购物车/登录/注册 */
.nav-right { display: flex; align-items: center; gap: 14px; margin-left: 18px; }
.nav-right .cart-badge {
    position: relative; color: #dce5ef; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: .2s;
}
.nav-right .cart-badge:hover { background: rgba(245,179,66,.14); color: #f5b342; }
.nav-right .cart-badge .badge {
    position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
    background: #d42e2e; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px;
    border-radius: 30px; text-align: center; box-shadow: 0 2px 6px rgba(212,46,46,.4);
}
.nav-right .login-btn { color: #fff; background: #d42e2e; padding: 8px 18px; border-radius: 40px; font-weight: 600; font-size: 13px; transition: .2s; }
.nav-right .login-btn:hover { background: #b82222; }
.nav-right .user-btn { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 8px 16px; border-radius: 40px; font-weight: 600; font-size: 13px; transition: .2s; }
.nav-right .user-btn:hover { background: rgba(245,179,66,.15); color: #f5b342; }
.nav-right .register-link { color: #f5b342; padding: 8px 14px; font-weight: 600; font-size: 13px; transition: .2s; }
.nav-right .register-link:hover { color: #fff; }
.nav-right .logout-link { color: #8aa3bb; font-size: 13px; padding: 8px 4px; transition: .2s; }
.nav-right .logout-link:hover { color: #f5b342; }

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #0b1a2b 0%, #1f3853 60%, #274a6b 100%);
    color: #fff; padding: 64px 0 70px; position: relative; overflow: hidden;
}
.hero::after { content:''; position:absolute; right:-60px; bottom:-60px; width:320px; height:320px;
    background: radial-gradient(circle, rgba(212,46,46,.25), transparent 70%); border-radius: 50%; }
.hero .container { position: relative; z-index: 2; }
.hero .tag { background: #f5b342; color: #0b1a2b; padding: 4px 18px; border-radius: 60px; font-weight: 700; font-size: 12px; display: inline-block; margin-bottom: 14px; letter-spacing: .3px; }
.hero h1 { font-size: 38px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; margin-bottom: 10px; }
.hero p { font-size: 16px; opacity: .82; max-width: 560px; }
.hero .btns { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 30px; border-radius: 60px; font-weight: 700; font-size: 14px; transition: .2s; }
.btn-gold { background: #f5b342; color: #0b1a2b; }
.btn-gold:hover { background: #e0a030; transform: translateY(-2px); }
.btn-outline { border: 2px solid rgba(255,255,255,.35); color: #fff; }
.btn-outline:hover { border-color: #f5b342; background: rgba(245,179,66,.1); }

/* ===== 区块 ===== */
.section { padding: 52px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; gap: 12px; }
.section-head h1, .section-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -.3px; }
.section-head h1 span, .section-head h2 span { color: #d42e2e; }
.section-head .more { color: #d42e2e; font-weight: 600; font-size: 14px; }
.section-head .more:hover { color: #b82222; }

/* 分类 */
.cats { display: flex; gap: 10px; flex-wrap: wrap; }
.cats a { background: #eef2f6; padding: 6px 18px; border-radius: 40px; font-size: 13px; font-weight: 600; color: #2c3e50; transition: .2s; }
.cats a:hover, .cats a.active { background: #d42e2e; color: #fff; }

/* 品牌专区 */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.brand-item {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px 14px;
    display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
    transition: .22s;
}
.brand-item:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(11,26,43,.1); border-color: #f5b342; }
.brand-item img { height: 42px; max-width: 90%; object-fit: contain; }
.brand-item .b-letter {
    width: 44px; height: 44px; border-radius: 12px; background: #0b1a2b; color: #f5b342;
    display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800;
}
.brand-item .b-name { font-size: 14px; font-weight: 600; color: #0b1a2b; }

/* 产品卡片设备信息 (年份/小时/地区) */
.prod-card .p-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: #5a6b7c; font-size: 12px; margin-bottom: 8px; }

/* 新闻卡片 */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.news-card {
    background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(11,26,43,.05); transition: .25s; display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11,26,43,.12); }
.news-card .cover { height: 190px; background: #eef2f6; overflow: hidden; position: relative; }
.news-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.news-card:hover .cover img { transform: scale(1.05); }
.news-card .cover .noimg { display:flex; align-items:center; justify-content:center; height:100%; font-size: 46px; opacity:.35; }
.news-card .cover .top-badge { position: absolute; top: 12px; left: 12px; background: #f5b342; color: #0b1a2b; font-size: 11px; font-weight: 700; padding: 2px 12px; border-radius: 30px; }
.news-card .body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.news-card .meta { display: flex; align-items: center; gap: 12px; color: #8aa3bb; font-size: 12px; margin-bottom: 10px; }
.news-card .meta .cat { background: #dbeafe; color: #1d4ed8; padding: 2px 12px; border-radius: 30px; font-weight: 600; }
.news-card h3 { font-size: 17px; font-weight: 700; line-height: 1.45; margin-bottom: 8px; }
.news-card h3 a:hover { color: #d42e2e; }
.news-card .desc { color: #5a6b7c; font-size: 13.5px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .more-link { margin-top: 14px; color: #d42e2e; font-weight: 600; font-size: 13px; }

/* 列表布局 (新闻列表页) */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-row {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px 22px;
    display: flex; gap: 18px; align-items: center; transition: .2s;
}
.news-row:hover { box-shadow: 0 8px 22px rgba(11,26,43,.08); }
.news-row .row-thumb { width: 120px; height: 84px; border-radius: 10px; overflow: hidden; background: #eef2f6; flex-shrink: 0; display:flex; align-items:center; justify-content:center; font-size:26px; opacity:.4; }
.news-row .row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-row .row-body { flex: 1; min-width: 0; }
.news-row h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.news-row h3 a:hover { color: #d42e2e; }
.news-row .row-desc { color: #5a6b7c; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-row .row-meta { display: flex; gap: 14px; color: #8aa3bb; font-size: 12px; margin-top: 8px; }

/* 详情页 */
.detail-wrap { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 40px; }
.detail-wrap .d-title { font-size: 30px; font-weight: 800; line-height: 1.35; margin-bottom: 14px; }
.detail-wrap .d-meta { display: flex; flex-wrap: wrap; gap: 16px; color: #8aa3bb; font-size: 13px; padding-bottom: 18px; border-bottom: 1px solid #eef2f6; margin-bottom: 26px; }
.detail-wrap .d-cover { margin-bottom: 26px; border-radius: 14px; overflow: hidden; }
.detail-wrap .d-content { font-size: 15.5px; color: #2c3e50; line-height: 1.9; }
.detail-wrap .d-content img { max-width: 100%; border-radius: 10px; margin: 12px 0; }
.detail-wrap .d-content h2, .detail-wrap .d-content h3 { margin: 20px 0 10px; color: #0b1a2b; }
.detail-wrap .d-content p { margin-bottom: 12px; }
.detail-wrap .d-content a { color: #d42e2e; }
.detail-wrap .d-share { display: flex; align-items: center; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid #eef2f6; font-size: 13px; color: #8aa3bb; }
.detail-wrap .d-share a { color: #5a6b7c; padding: 4px 14px; border: 1px solid #e2e8f0; border-radius: 30px; font-size: 12.5px; }
.detail-wrap .d-share a:hover { color: #d42e2e; border-color: #d42e2e; }
.detail-wrap .d-share .d-views { margin-left: auto; }
.detail-wrap .d-prevnext { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding: 16px 18px; background: #f8fafc; border: 1px solid #eef2f6; border-radius: 12px; font-size: 13.5px; }
.detail-wrap .d-prevnext .pn-item { display: flex; gap: 10px; min-width: 0; }
.detail-wrap .d-prevnext .pn-label { flex-shrink: 0; color: #8aa3bb; font-size: 12.5px; padding-top: 1px; }
.detail-wrap .d-prevnext .pn-item a { color: #2c3e50; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-wrap .d-prevnext .pn-item a:hover { color: #d42e2e; }
.detail-wrap .d-prevnext .pn-empty { color: #c3ced9; }

/* ===== 详情页双栏布局 ===== */
.news-detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: start; }
.nd-main { min-width: 0; }
.nd-side { position: sticky; top: 80px; }
.side-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; margin-bottom: 18px; }
.side-card .side-title { font-size: 15px; font-weight: 800; color: #0b1a2b; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #f1f5f9; }
.side-card .side-empty { color: #8aa3bb; font-size: 13px; text-align: center; padding: 16px 0; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #eef2f6; font-size: 13.5px; }
.side-list li:last-child { border-bottom: none; }
.side-list .sl-num { width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px; background: #eef2f6; color: #5a6b7c; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.side-list .sl-num.top { background: #d42e2e; color: #fff; }
.side-list a { color: #2c3e50; line-height: 1.5; }
.side-list a:hover { color: #d42e2e; }
.side-contact p { font-size: 13px; color: #5a6b7c; margin-bottom: 8px; }
.side-contact a { color: #d42e2e; }
.side-btn { display: block; text-align: center; background: #f5b342; color: #0b1a2b !important; font-weight: 700; padding: 10px; border-radius: 10px; margin-top: 10px; font-size: 13.5px; }
.side-btn:hover { background: #e0a030; }
@media (max-width: 900px) {
    .news-detail-layout { grid-template-columns: 1fr; }
    .nd-side { position: static; }
}

/* ===== 评论区 ===== */
.comment-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 26px; margin-top: 26px; }
.cb-head h2 { font-size: 18px; font-weight: 800; color: #0b1a2b; margin-bottom: 18px; }
.cb-head h2 span { color: #d42e2e; margin-left: 6px; }
.cb-empty { text-align: center; color: #8aa3bb; font-size: 14px; padding: 30px 0; }
.cb-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid #eef2f6; }
.cb-item:last-of-type { border-bottom: none; }
.cb-avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: #0b1a2b; color: #f5b342; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.cb-avatar.sm { width: 30px; height: 30px; font-size: 13px; }
.cb-body { flex: 1; min-width: 0; }
.cb-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.cb-name { font-weight: 700; font-size: 14px; color: #0b1a2b; }
.cb-vip { background: #fef3c7; color: #92400e; font-size: 11px; padding: 1px 8px; border-radius: 20px; }
.cb-time { color: #8aa3bb; font-size: 12px; }
.cb-floor { color: #8aa3bb; font-size: 12px; }
.cb-reply { color: #d42e2e; font-size: 12.5px; margin-left: auto; }
.cb-reply:hover { text-decoration: underline; }
.cb-content { font-size: 14px; color: #2c3e50; line-height: 1.7; word-break: break-word; }
.cb-sub { display: flex; gap: 10px; background: #f8fafc; border-radius: 10px; padding: 12px; margin-top: 12px; }
.cb-form { margin-top: 22px; background: #f8fafc; border: 1px solid #eef2f6; border-radius: 12px; padding: 18px; }
.cf-title { font-weight: 700; font-size: 14.5px; color: #0b1a2b; margin-bottom: 12px; }
.cf-user { display: flex; gap: 12px; margin-bottom: 12px; }
.cf-user input { flex: 1; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 13.5px; outline: none; }
.cf-user input:focus { border-color: #d42e2e; }
.cb-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; outline: none; resize: vertical; min-height: 90px; box-sizing: border-box; }
.cb-form textarea:focus { border-color: #d42e2e; }
.cf-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.cf-tip { color: #8aa3bb; font-size: 12px; }
.cf-submit { background: #d42e2e; color: #fff; border: none; padding: 10px 28px; border-radius: 30px; font-weight: 700; font-size: 14px; cursor: pointer; transition: .2s; }
.cf-submit:hover { background: #b82222; }
.cf-submit:disabled { opacity: .6; cursor: not-allowed; }
.cb-pager { margin-top: 14px; }
@media (max-width: 480px) {
    .comment-box { padding: 18px; }
    .cf-user { flex-direction: column; }
}

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pagination li { list-style: none; display: inline-block; }
.pagination a, .pagination span {
    min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 10px; border: 1px solid #e2e8f0; border-radius: 9px; font-size: 14px; color: #5a6b7c; background: #fff; margin: 0 2px;
}
.pagination a:hover { border-color: #d42e2e; color: #d42e2e; }
.pagination .current, .pagination li.active > span { background: #d42e2e; border-color: #d42e2e; color: #fff; font-weight: 700; }
.pagination .disabled, .pagination li.disabled > span { opacity: .5; pointer-events: none; }

/* 搜索 */
.search-box { display: flex; max-width: 460px; }
.search-box input { flex: 1; padding: 10px 16px; border: 1px solid #e2e8f0; border-radius: 40px 0 0 40px; outline: none; font-size: 14px; }
.search-box button { padding: 10px 24px; border: none; background: #d42e2e; color: #fff; border-radius: 0 40px 40px 0; font-weight: 700; cursor: pointer; font-size: 14px; }

/* ===== 页脚 ===== */
.footer { background: #0b1a2b; color: #8aa3bb; padding: 40px 0 26px; margin-top: 40px; }
.footer .f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer p { font-size: 13px; margin-bottom: 6px; }
.footer a:hover { color: #f5b342; }
.footer .f-links { display: flex; flex-wrap: wrap; gap: 6px 16px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 26px; padding-top: 18px; font-size: 12.5px; }
.footer .f-links .fl-title { color: #dce5ef; font-weight: 600; }
.footer .f-links a { color: #8aa3bb; }
.footer .f-links a:hover { color: #f5b342; }
.footer .f-copy { text-align: center; border-top: 1px solid rgba(255,255,255,.08); margin-top: 22px; padding-top: 18px; font-size: 12px; }
.footer .f-about { border-top: 1px solid rgba(255,255,255,.08); margin-top: 22px; padding-top: 18px; }
.footer .f-about h4 { color: #fff; font-size: 14px; margin-bottom: 8px; }
.footer .f-about p { font-size: 12.5px; line-height: 1.9; color: #8aa3bb; max-width: 960px; }
.footer .f-about p b { color: #dce5ef; font-weight: 600; }

/* 悬浮按钮 */
.float-bar { position: fixed; right: 20px; bottom: 24px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.float-bar .fb-online, .float-bar .fb-top {
    width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 22px; box-shadow: 0 6px 18px rgba(11,26,43,.25); cursor: pointer; border: none; transition: .2s;
}
.float-bar .fb-online { background: #d42e2e; color: #fff; }
.float-bar .fb-online:hover { transform: translateY(-3px); background: #b82222; }
.float-bar .fb-top { background: #0b1a2b; color: #f5b342; font-size: 20px; opacity: 0; pointer-events: none; }
.float-bar .fb-top:hover { background: #1f3853; }
@media (max-width: 480px) {
    .float-bar { right: 14px; bottom: 18px; }
    .float-bar .fb-online, .float-bar .fb-top { width: 42px; height: 42px; font-size: 19px; }
}

.empty-tip { text-align: center; padding: 60px 20px; color: #8aa3bb; background: #fff; border-radius: 16px; border: 1px dashed #e2e8f0; }

/* ============================================================
   响应式 & 移动端适配
   ============================================================ */

/* 汉堡菜单按钮 (默认桌面端隐藏) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    cursor: pointer;
    padding: 10px;
    margin-left: 6px;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: .25s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== 导航切换断点 (< 1200px): 改用汉堡菜单, 防止导航溢出 (多语言导航+语言按钮较宽) ===== */
@media (max-width: 1200px) {
    .top-bar .container { height: 60px; flex-wrap: nowrap; }

    /* 汉堡菜单显示 */
    .menu-toggle { display: flex; position: relative; z-index: 101; }

    /* 导航变为下拉面板 */
    .nav {
        display: none;
        position: absolute;
        top: 63px;
        left: 0;
        right: 0;
        background: #0b1a2b;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 14px;
        border-bottom: 3px solid #d42e2e;
        box-shadow: 0 20px 30px rgba(0,0,0,.3);
        z-index: 99;
    }
    .nav.open { display: flex; }
    .nav a {
        padding: 13px 12px;
        font-size: 15px;
        border-bottom: 1px solid rgba(255,255,255,.06);
        border-radius: 0;
        flex-shrink: 1;
    }
    .nav a:last-child { border-bottom: none; }
    .nav a.active { background: rgba(212,46,46,.15); }

    /* 登录/注册紧凑显示 */
    .nav-right .login-btn { font-size: 12px; padding: 6px 12px; }
    .nav-right .register-link { font-size: 12px; }
}

/* ===== 平板/手机端 (< 1200px) ===== */
@media (max-width: 1200px) {
    .hero-slide { padding: 46px 0 50px; }
    .hero-slide h1 { font-size: 30px; }
    .pd-top { grid-template-columns: 1fr; }
    .pd-gallery .pd-main { height: 300px; }
}

/* ===== 手机端 (< 900px) ===== */
@media (max-width: 900px) {
    .logo-text { font-size: 19px; }
    .logo-sub { font-size: 10px; }

    /* 区块间距 */
    .section { padding: 34px 0; }
    .hero-slide { padding: 40px 0 44px; }
    .hero-slide h1 { font-size: 24px; }
    .hero-slide p { font-size: 14px; }

    /* 产品网格: 两列 */
    .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .prod-card .p-cover { height: 120px; }
    .prod-card .p-title { font-size: 13px; }
    .prod-card .p-price .val { font-size: 16px; }

    /* 首页分类: 3-4 列 */
    .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .cat-item { padding: 14px 6px; }
    .cat-item .ci-icon { font-size: 24px; }

    /* 新闻网格: 单列 */
    .news-grid { grid-template-columns: 1fr; }

    /* 筛选条 */
    .filter-bar .fb-search { width: 100%; margin-top: 10px; }
    .filter-bar .fb-search input { flex: 1; }

    /* 结算/用户中心: 单列 */
    .checkout-wrap, .uc-wrap { grid-template-columns: 1fr; }
    .uc-side .uc-menu { display: flex; overflow-x: auto; gap: 4px; }
    .uc-menu a { white-space: nowrap; padding: 9px 12px; font-size: 13px; }
    .uc-content { padding: 16px; }

    /* 表格横向滚动 */
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .cart-table { min-width: 640px; }

    /* 页脚单列 */
    .footer .f-grid { grid-template-columns: 1fr; gap: 22px; }
    .footer { padding: 28px 0 20px; }

    /* 订单卡片 */
    .co-card { padding: 16px; }
}

/* ===== 小屏手机 (< 480px) ===== */
@media (max-width: 480px) {
    .top-bar .container { padding: 0 12px; }
    .logo { gap: 8px; }
    .logo .logo-icon { width: 36px; height: 36px; border-radius: 9px; font-size: 17px; }
    .logo .logo-text { font-size: 16px; letter-spacing: -.3px; }
    .logo .logo-sub { display: none; }
    .nav-right { gap: 4px; }
    .nav-right .login-btn, .nav-right .user-btn { font-size: 11px; padding: 5px 10px; }
    .nav-right .register-link, .nav-right .logout-link { font-size: 11px; }
    .nav-right .cart-badge { margin-right: 4px; }
    .menu-toggle { width: 38px; height: 38px; padding: 8px; margin-left: 4px; }
    .prod-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .prod-card .p-cover { height: 110px; }
    .prod-card .p-actions .btn-cart { font-size: 12px; padding: 7px; }
    .hero-slide h1 { font-size: 21px; }
    .section-head h1, .section-head h2 { font-size: 21px; }
    .auth-card { padding: 24px 20px; }
    .nav-right .cart-badge svg { width: 20px; height: 20px; }
    .detail-wrap { padding: 16px; }
    .d-title { font-size: 22px; }
}
