/* ICLinkWorld.com - Main Stylesheet
   Professional B2B electronic components marketplace, light theme */

:root{
  --primary:#0a4d8c;        /* deep blue - trust/tech */
  --primary-dark:#073763;
  --primary-light:#e8f1fa;
  --accent:#ff6a00;         /* orange CTA */
  --accent-dark:#e25b00;
  --green:#16a34a;
  --red:#dc2626;
  --text:#1f2937;
  --text-muted:#6b7280;
  --border:#e5e7eb;
  --bg:#ffffff;
  --bg-soft:#f7f9fc;
  --bg-card:#ffffff;
  --radius:8px;
  --shadow:0 1px 3px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.04);
  --shadow-lg:0 10px 30px rgba(0,0,0,.10);
  --maxw:1280px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;color:var(--text);background:var(--bg);line-height:1.6;font-size:15px}
a{color:var(--primary);text-decoration:none;transition:color .15s}
a:hover{color:var(--accent)}
img{max-width:100%;display:block}
ul{list-style:none}
.container{max-width:var(--maxw);margin:0 auto;padding:0 20px}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px}

/* ===== Top bar ===== */
.topbar{background:var(--primary-dark);color:#cfe0f0;font-size:13px;padding:7px 0}
.topbar .container{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}
.topbar a{color:#cfe0f0}
.topbar a:hover{color:#fff}
.topbar .right{display:flex;gap:18px;align-items:center}
.topbar .right .cart{display:flex;align-items:center;gap:5px}

/* ===== Header ===== */
.header{background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:100;box-shadow:var(--shadow)}
.header .container{display:flex;align-items:center;gap:24px;padding:14px 20px}
.logo{font-size:26px;font-weight:800;color:var(--primary);letter-spacing:-.5px;white-space:nowrap}
.logo span{color:var(--accent)}
.logo small{display:block;font-size:11px;font-weight:500;color:var(--text-muted);letter-spacing:0}
.search-box{flex:1;max-width:560px;position:relative}
.search-box form{display:flex;border:2px solid var(--primary);border-radius:var(--radius);overflow:hidden}
.search-box input{flex:1;border:0;padding:11px 14px;font-size:14px;outline:none}
.search-box button{background:var(--primary);color:#fff;border:0;padding:0 22px;font-size:14px;font-weight:600;cursor:pointer}
.search-box button:hover{background:var(--primary-dark)}
.header-actions{display:flex;align-items:center;gap:18px}
.cart-btn{position:relative;display:flex;align-items:center;gap:6px;color:var(--text);font-size:14px;font-weight:600;cursor:pointer}
.cart-btn .badge{background:var(--accent);color:#fff;border-radius:50%;min-width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;padding:0 5px}

/* ===== Nav / mega menu ===== */
.nav{background:var(--primary);position:relative}
.nav .container{display:flex;align-items:stretch}
.nav ul{display:flex; gap: 15px;}
.nav ul li a{color:#fff; line-height:40px;}
.nav>ul>li>a{color:#fff;padding:13px 18px;display:block;font-weight:500;font-size:14.5px}
.nav>ul>li>a:hover{background:var(--primary-dark)}
.nav .has-mega{position:static}
.mega{position:absolute;left:0;right:0;top:100%;background:#fff;border:1px solid var(--border);box-shadow:var(--shadow-lg);padding:24px 30px;display:none;grid-template-columns:repeat(4,1fr);gap:20px;z-index:200; max-width:1280px; margin:0 auto;}
.nav .has-mega:hover .mega{display:grid}
.mega-col h4{color:var(--primary);font-size:14px;margin-bottom:8px;padding-bottom:6px;border-bottom:2px solid var(--primary-light)}
.nav ul li .mega-col a{display:block;padding:3px 0;color:var(--text);font-size:13.5px; line-height: 1.5em;}
.nav ul li .mega-col a:hover{color:var(--accent);padding-left:4px}

/* mobile nav toggle */
.nav-toggle{display:none;background:none;border:0;color:#fff;font-size:22px;cursor:pointer;padding:10px}

/* ===== Breadcrumb ===== */
.breadcrumb{background:var(--bg-soft);padding:11px 0;font-size:13px;color:var(--text-muted)}
.breadcrumb a{color:var(--text-muted)}
.breadcrumb a:hover{color:var(--primary)}
.breadcrumb .sep{margin:0 7px;color:#cbd5e1}

/* ===== Hero ===== */
.hero{background:linear-gradient(120deg,#073763 0%,#0a4d8c 55%,#1170c9 100%);color:#fff;padding:54px 0;position:relative;overflow:hidden}
.hero::after{content:"";position:absolute;right:-80px;top:-80px;width:380px;height:380px;background:rgba(255,255,255,.06);border-radius:50%}
.hero h1{font-size:38px;font-weight:800;margin-bottom:14px;line-height:1.2;max-width:680px}
.hero p{font-size:17px;opacity:.92;max-width:600px;margin-bottom:24px}
.hero-search{background:#fff;border-radius:var(--radius);padding:8px;display:flex;max-width:560px;box-shadow:var(--shadow-lg)}
.hero-search input{flex:1;border:0;padding:12px 14px;font-size:15px;outline:none;color:var(--text)}
.hero-search button{background:var(--accent);color:#fff;border:0;padding:0 26px;border-radius:6px;font-weight:700;cursor:pointer;font-size:15px}
.hero-search button:hover{background:var(--accent-dark)}
.hero-stats{display:flex;gap:40px;margin-top:34px;flex-wrap:wrap}
.hero-stats .stat .n{font-size:28px;font-weight:800}
.hero-stats .stat .l{font-size:13px;opacity:.85}

/* ===== Sections ===== */
section{padding:48px 0}
.section-head{text-align:center;margin-bottom:34px}
.section-head h2{font-size:28px;font-weight:800;color:var(--text)}
.section-head h2 b{color:var(--primary)}
.section-head p{color:var(--text-muted);margin-top:8px;font-size:15px}

/* category grid */
.cat-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:14px}
.cat-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:18px 10px;text-align:center;transition:.18s;cursor:pointer}
.cat-card:hover{border-color:var(--primary);box-shadow:var(--shadow-lg);transform:translateY(-3px)}
.cat-card .ic{margin-bottom:8px;display:flex;align-items:center;justify-content:center;min-height:48px}
.cat-card .ic img{width:40px;height:40px;object-fit:contain}
.cat-card .nm{font-size:13px;font-weight:600;color:var(--text)}
.cat-card .ct{font-size:11px;color:var(--text-muted)}

/* product grid */
.prod-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.prod-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:.18s;display:flex;flex-direction:column}
.prod-card:hover{box-shadow:var(--shadow-lg);border-color:var(--primary);transform:translateY(-3px)}
.prod-card .img{background:var(--bg-soft);height:170px;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}
.prod-card .img img{width:100%;height:100%;object-fit:contain;padding:14px}
.prod-card .img .featured-tag{position:absolute;top:8px;left:8px;background:var(--accent);color:#fff;font-size:10px;padding:2px 7px;border-radius:3px;font-weight:600}
.prod-card .body{padding:13px 14px;display:flex;flex-direction:column;flex:1}
.prod-card .model{font-size:14px;font-weight:700;color:var(--text);margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prod-card .name{font-size:12.5px;color:var(--text-muted);margin-bottom:8px;line-height:1.4;min-height:35px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.prod-card .supplier{font-size:12px;color:var(--primary);margin-bottom:9px;display:flex;align-items:center;gap:4px}
.prod-card .supplier .v{color:var(--green);font-size:11px}
.prod-card .foot{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:8px}
.prod-card .price-hint{font-size:12px;color:var(--text-muted)}
.prod-card .price-hint b{color:var(--primary)}
.prod-card .btn-add{background:var(--primary-light);color:var(--primary);border:1px solid var(--primary);border-radius:5px;padding:5px 9px;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}
.prod-card .btn-add:hover{background:var(--primary);color:#fff}

/* buttons */
.btn{display:inline-flex;align-items:center;gap:7px;padding:10px 20px;border-radius:6px;font-weight:600;font-size:14px;cursor:pointer;border:1px solid transparent;transition:.15s;text-decoration:none}
.btn-primary{background:var(--primary);color:#fff}
.btn-primary:hover{background:var(--primary-dark);color:#fff}
.btn-accent{background:var(--accent);color:#fff !important; text-align: center;}
.btn-accent:hover{background:var(--accent-dark);color:#fff}
.btn-outline{background:#fff;color:var(--primary);border-color:var(--primary)}
.btn-outline:hover{background:var(--primary);color:#fff}
.btn-lg{padding:13px 28px;font-size:15px}
.btn-block{width:100%;justify-content:center}

/* ===== Product detail ===== */
.pd-wrap{display:grid;grid-template-columns:0.85fr 1fr 340px;gap:28px;padding:36px 0;align-items:start}
.pd-gallery{position:sticky;top:90px;align-self:start}
.pd-wrap #directInquiry{align-self:start;max-width:none;margin:0}
.pd-main-img{background:var(--bg-soft);border:1px solid var(--border);border-radius:var(--radius);height:380px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.pd-main-img img{max-width:90%;max-height:90%;object-fit:contain}
.pd-info h1{font-size:26px;font-weight:800;margin-bottom:8px}
.pd-model{font-size:15px;color:var(--text-muted);margin-bottom:14px}
.pd-model b{color:var(--primary)}
.pd-specs{background:var(--bg-soft);border-radius:var(--radius);padding:16px 20px;margin:16px 0}
.pd-specs .row{display:flex;padding:6px 0;border-bottom:1px dashed var(--border);font-size:14px}
.pd-specs .row:last-child{border:0}
.pd-specs .row .k{width:140px;color:var(--text-muted);font-weight:500}
.pd-specs .row .v{flex:1;color:var(--text);font-weight:600}
.pd-actions{display:flex;gap:12px;margin:20px 0;flex-wrap:wrap}
.pd-supplier{border:1px solid var(--border);border-radius:var(--radius);padding:16px;margin-top:18px}
.pd-supplier h4{font-size:14px;margin-bottom:8px;color:var(--primary)}
.pd-supplier .sn{font-weight:700;font-size:16px;display:flex;align-items:center;gap:6px}
.pd-supplier .vtag{background:var(--green);color:#fff;font-size:10px;padding:2px 6px;border-radius:3px}
.pd-desc{margin-top:24px}
.pd-desc h3{font-size:18px;margin-bottom:10px;color:var(--text)}
.pd-desc p{color:var(--text);margin-bottom:10px;line-height:1.7}
.pd-related{margin-top:40px; padding-bottom: 40px;}
.pd-related h3{font-size:20px;margin-bottom:18px}

/* ===== Inquiry cart / form ===== */
.inquiry-page{display:grid;grid-template-columns:1fr 380px;gap:30px;padding:30px 0}
.cart-list .cart-item{display:grid;grid-template-columns:80px 1fr auto auto;gap:14px;align-items:center;background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:12px;margin-bottom:12px}
.cart-item .ci-img{width:80px;height:80px;background:var(--bg-soft);border-radius:6px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.cart-item .ci-img img{max-width:90%;max-height:90%}
.cart-item .ci-info .m{font-weight:700;font-size:14px}
.cart-item .ci-info .s{font-size:12px;color:var(--text-muted)}
.cart-item .qty{width:64px;padding:6px;border:1px solid var(--border);border-radius:5px;text-align:center}
.cart-item .rm{color:var(--red);cursor:pointer;font-size:13px;background:none;border:0}
/* Manual part row in inquiry page (desktop: model/qty/remark/remove in one row) */
.cart-item.manual-row{grid-template-columns:2fr 90px 2fr auto;margin-bottom:12px}
.cart-empty{text-align:center;padding:60px 20px;color:var(--text-muted)}
.cart-empty .big{font-size:48px;margin-bottom:14px}
.form-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:24px}
.form-card h3{font-size:18px;margin-bottom:16px;color:var(--primary)}
.form-group{margin-bottom:14px}
.form-group label{display:block;font-size:13px;font-weight:600;margin-bottom:5px;color:var(--text)}
.form-group label .req{color:var(--red)}
.form-group input,.form-group select,.form-group textarea{width:100%;padding:9px 12px;border:1px solid var(--border);border-radius:6px;font-size:14px;font-family:inherit;outline:none}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.gdpr{font-size:12px;color:var(--text-muted);display:flex;gap:8px;align-items:flex-start;margin:10px 0}
.gdpr input{width:auto;margin-top:3px}
.summary-box{background:var(--bg-soft);border-radius:var(--radius);padding:16px;margin-top:16px}
.summary-box .sr{display:flex;justify-content:space-between;padding:5px 0;font-size:14px}
.summary-box .sr b{font-size:16px;color:var(--primary)}

/* ===== Filters / sidebar ===== */
.list-layout{display:grid;grid-template-columns:240px 1fr;gap:26px;padding:26px 0}
.sidebar{position:sticky;top:90px;align-self:start}
.side-box{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:16px;margin-bottom:16px}
.side-box h4{font-size:14px;margin-bottom:10px;color:var(--primary);padding-bottom:8px;border-bottom:2px solid var(--primary-light)}
.side-box a{display:block;padding:5px 0;font-size:13.5px;color:var(--text)}
.side-box a.active{color:var(--accent);font-weight:700}
.side-box a:hover{color:var(--primary)}
.list-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;flex-wrap:wrap;gap:10px}
.list-head .count{font-size:14px;color:var(--text-muted)}
.list-head select{padding:7px 10px;border:1px solid var(--border);border-radius:6px;font-size:13px}
.pagination{display:flex;justify-content:center;gap:5px;margin-top:30px;flex-wrap:wrap}
.pagination a,.pagination span{padding:8px 13px;border:1px solid var(--border);border-radius:6px;font-size:14px;color:var(--text)}
.pagination a:hover{background:var(--primary-light);border-color:var(--primary)}
.pagination .cur{background:var(--primary);color:#fff;border-color:var(--primary)}
.pagination .dis{color:var(--text-muted);opacity:.5}

/* category landing */
.cat-landing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.cat-land-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:24px;transition:.18s}
.cat-land-card:hover{box-shadow:var(--shadow-lg);border-color:var(--primary)}
.cat-land-card h3{color:var(--primary);font-size:18px;margin-bottom:10px;display:flex;align-items:center;gap:8px}
.cat-land-card .sub-list{display:flex;flex-direction:column;gap:6px}
.cat-land-card .sub-list a{font-size:13.5px;color:var(--text);padding:3px 0}
.cat-land-card .sub-list a:hover{color:var(--accent)}

/* ===== Why choose / features ===== */
.features{background:var(--bg-soft)}
.feat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.feat-card{text-align:center;padding:10px}
.feat-card .ic{width:60px;height:60px;background:var(--primary-light);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 14px;font-size:26px}
.feat-card h4{font-size:16px;margin-bottom:6px}
.feat-card p{font-size:13.5px;color:var(--text-muted)}

/* CTA band */
.cta-band{background:linear-gradient(120deg,var(--accent),var(--accent-dark));color:#fff;text-align:center;padding:48px 0}
.cta-band h2{font-size:28px;margin-bottom:10px}
.cta-band p{opacity:.95;margin-bottom:20px}
.cta-band .btn{background:#fff;color:var(--accent-dark)}
.cta-band .btn:hover{background:var(--text);color:#fff}

/* ===== Footer ===== */
.footer{background:#0f1b2d;color:#a9b6c8;padding:50px 0 0;margin-top:0}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;gap:30px;padding-bottom:34px}
.footer h4{color:#fff;font-size:15px;margin-bottom:16px}
.footer a{color:#a9b6c8;font-size:13.5px;display:block;padding:4px 0}
.footer a:hover{color:#fff}
.footer .brand-blk p{font-size:13.5px;line-height:1.7;margin-top:10px}
.footer .soc{display:flex;gap:10px;margin-top:14px}
.footer .soc a{width:34px;height:34px;background:#1e2d44;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px}
.footer-bottom{border-top:1px solid #1e2d44;padding:18px 0;text-align:center;font-size:13px;color:#7d8a9c}
.footer-bottom a{display:inline;color:#a9b6c8}

/* page content */
.page-content{padding:40px 0;min-height:50vh}
.page-content h1{font-size:30px;margin-bottom:18px;color:var(--text)}
.page-content h2{font-size:22px;margin:24px 0 12px}
.page-content p{margin-bottom:14px;color:var(--text);line-height:1.8}
.page-content .contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}

/* alerts */
.alert{padding:12px 16px;border-radius:6px;margin-bottom:16px;font-size:14px}
.alert-success{background:#dcfce7;color:#166534;border:1px solid #86efac}
.alert-error{background:#fee2e2;color:#991b1b;border:1px solid #fca5a5}
.alert-info{background:#dbeafe;color:#1e40af;border:1px solid #93c5fd}

/* toast */
.toast{position:fixed;bottom:24px;right:24px;background:var(--text);color:#fff;padding:14px 20px;border-radius:8px;box-shadow:var(--shadow-lg);z-index:9999;opacity:0;transform:translateY(20px);transition:.3s;font-size:14px}
.toast.show{opacity:1;transform:translateY(0)}
.toast.ok{background:var(--green)}
.toast.err{background:var(--red)}

/* ===== Responsive ===== */

/* Large tablets and small desktops */
@media(max-width:1024px){
  .cat-grid{grid-template-columns:repeat(5,1fr)}
  .prod-grid{grid-template-columns:repeat(3,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr 1fr}
  .feat-grid{grid-template-columns:repeat(2,1fr)}
  .mega{grid-template-columns:repeat(3,1fr)}
  /* Product detail: stack 3-column into 2-column (gallery+info, inquiry below) */
  .pd-wrap{grid-template-columns:1fr;gap:24px}
  .pd-gallery{position:static}
  /* Move #directInquiry (3rd child) to appear after .pd-info (2nd) - already in DOM order */
  .inquiry-page{grid-template-columns:1fr;gap:24px}
  .list-layout{grid-template-columns:220px 1fr;gap:20px}
  .topbar .left{font-size:12px}
}

/* Tablets portrait and large phones */
@media(max-width:768px){
  .container{padding:0 14px}
  /* Topbar: simplify */
  .topbar{padding:5px 0;font-size:12px}
  .topbar .left{display:none}
  .topbar .right{gap:14px;width:100%;justify-content:center;font-size:12px}
  /* Header: stack logo+cart on first row, search on second row */
  .header .container{flex-wrap:wrap;gap:10px;padding:10px 14px}
  .logo{font-size:22px}
  .logo small{font-size:10px}
  .search-box{order:3;max-width:100%;flex:1 1 100%}
  .search-box input{padding:10px 12px;font-size:14px}
  .search-box button{padding:0 16px}
  .header-actions{gap:10px}
  .cart-btn{font-size:13px}
  /* Nav: 横向排列自动换行，手机端不显示下拉菜单 */
  .nav-toggle{display:none}
  .nav .container{padding:0 14px;display:block !important;width:100%;box-sizing:border-box}
  .nav ul,
  .nav>ul{display:flex !important;flex-direction:row !important;flex-wrap:wrap !important;width:100% !important;max-width:100% !important;position:static !important;background:var(--primary);max-height:none;overflow:visible;gap:0 !important;box-sizing:border-box}
  .nav ul li,
  .nav>ul>li{width:auto !important;flex:0 0 auto !important;max-width:100% !important;box-sizing:border-box;float:none !important}
  .nav ul li a,
  .nav>ul>li>a{padding:10px 12px !important;border-top:0;font-size:13px;line-height:1.4 !important;height:auto !important;white-space:nowrap !important;display:block !important}
  .nav>ul>li.has-mega>a{display:block !important}
  .nav>ul>li.has-mega>a::after{content:'' !important;margin:0 !important}
  /* 手机端隐藏 mega 下拉菜单（点击直接跳转） */
  .mega{display:none !important}
  /* Breadcrumb */
  .breadcrumb{padding:9px 0;font-size:12px}
  .breadcrumb .sep{margin:0 5px}
  /* Hero */
  .hero{padding:32px 0}
  .hero h1{font-size:24px;line-height:1.25;margin-bottom:10px}
  .hero p{font-size:14px;margin-bottom:18px}
  .hero-search{padding:6px}
  .hero-search input{padding:10px 12px;font-size:14px}
  .hero-search button{padding:0 18px;font-size:14px}
  .hero-stats{gap:18px 26px;margin-top:24px;justify-content:space-around}
  .hero-stats .stat .n{font-size:22px}
  .hero-stats .stat .l{font-size:11px}
  /* Sections */
  section{padding:32px 0}
  .section-head{margin-bottom:22px}
  .section-head h2{font-size:22px}
  .section-head p{font-size:14px}
  /* Product detail */
  .pd-wrap{grid-template-columns:1fr;gap:20px;padding:24px 0}
  .pd-gallery{position:static}
  .pd-main-img{height:280px}
  .pd-info h1{font-size:20px;line-height:1.3}
  .pd-model{font-size:13px}
  .pd-specs{padding:12px 14px}
  .pd-specs .row{font-size:13px}
  .pd-specs .row .k{width:110px;font-size:12px}
  .pd-specs .row .v{font-size:13px}
  .pd-actions{gap:8px}
  .pd-actions .btn{flex:1 1 calc(50% - 4px);min-width:0;padding:11px 12px;font-size:13px}
  .pd-actions .btn-lg{font-size:13px}
  .pd-supplier{padding:12px;margin-top:14px}
  .pd-supplier .sn{font-size:14px}
  #directInquiry{padding:18px 16px !important}
  #directInquiry h3{font-size:16px}
  #directInquiry p{font-size:12px}
  .pd-desc h3{font-size:17px}
  .pd-desc p{font-size:14px;line-height:1.65}
  .pd-related{margin-top:28px}
  .pd-related h3{font-size:18px;margin-bottom:14px}
  /* Product/specs table: horizontal scroll on small screens (already has overflow-x:auto) */
  .specs-table{font-size:12.5px}
  .specs-table th,.specs-table td{padding:7px 10px}
  /* Product grid: 2 columns on tablets */
  .prod-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .prod-card .img{height:140px}
  .prod-card .body{padding:10px 11px}
  .prod-card .model{font-size:13px}
  .prod-card .name{font-size:11.5px;min-height:30px}
  .prod-card .foot{gap:6px}
  .prod-card .price-hint{font-size:11px}
  .prod-card .btn-add{padding:5px 7px;font-size:11px}
  /* Category grid */
  .cat-grid{grid-template-columns:repeat(3,1fr);gap:10px}
  .cat-card{padding:14px 8px}
  .cat-card .ic img{width:34px;height:34px}
  .cat-card .nm{font-size:12px}
  .cat-card .ct{font-size:10px}
  /* Category landing */
  .cat-landing-grid{grid-template-columns:1fr;gap:14px}
  .cat-land-card{padding:18px}
  /* Features */
  .feat-grid{grid-template-columns:repeat(2,1fr);gap:18px}
  .feat-card .ic{width:50px;height:50px;font-size:22px}
  .feat-card h4{font-size:15px}
  .feat-card p{font-size:12.5px}
  /* CTA band */
  .cta-band{padding:32px 0}
  .cta-band h2{font-size:22px}
  .cta-band p{font-size:14px}
  /* Inquiry page */
  .inquiry-page{grid-template-columns:1fr;gap:20px}
  .cart-list .cart-item{grid-template-columns:64px 1fr;gap:10px;padding:10px}
  .cart-item .ci-img{width:64px;height:64px}
  .cart-item .ci-info .m{font-size:13px}
  .cart-item .ci-info .s{font-size:11.5px}
  .cart-item .qty{width:54px;padding:5px;font-size:13px}
  .cart-item .rm{font-size:12px;padding:4px 0;text-align:left}
  .form-card{padding:18px 16px}
  .form-card h3{font-size:16px}
  .form-row{grid-template-columns:1fr;gap:10px}
  .form-group input,.form-group select,.form-group textarea{padding:10px 12px;font-size:15px /* 16px+ to prevent iOS zoom */}
  .form-group label{font-size:13px}
  .gdpr{font-size:12px}
  /* List layout (products page): stack sidebar below main, hide less-critical sidebar boxes */
  .list-layout{grid-template-columns:1fr;gap:16px}
  .sidebar{position:static;order:2;display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .side-box{margin-bottom:0;padding:12px}
  .side-box h4{font-size:13px}
  .side-box a{font-size:12.5px;padding:4px 0}
  .list-layout>main{order:1}
  .list-head{margin-bottom:12px}
  .list-head h1{font-size:18px}
  .list-head .count{font-size:12px}
  .list-head select{padding:6px 8px;font-size:12px}
  /* Pagination */
  .pagination{gap:4px;margin-top:22px}
  .pagination a,.pagination span{padding:7px 10px;font-size:13px}
  /* Footer */
  .footer{padding:36px 0 0}
  .footer-grid{grid-template-columns:1fr 1fr;gap:22px;padding-bottom:24px}
  .footer .brand-blk{grid-column:1 / -1}
  .footer .brand-blk p{font-size:13px}
  .footer h4{font-size:14px;margin-bottom:10px}
  .footer a{font-size:13px;padding:3px 0}
  .footer-bottom{padding:14px 0;font-size:12px;line-height:1.6}
  /* Page content (CMS, about, contact, etc.) */
  .page-content{padding:28px 0}
  .page-content h1{font-size:24px;margin-bottom:14px}
  .page-content h2{font-size:19px}
  .page-content p{font-size:14px;line-height:1.7}
  .page-content .contact-grid{grid-template-columns:1fr;gap:20px}
  /* Buttons: full-width on mobile when block, larger touch targets */
  .btn{padding:11px 18px;font-size:14px}
  .btn-lg{padding:13px 22px;font-size:15px}
  .btn-block{width:100%}
  /* Alerts */
  .alert{padding:11px 14px;font-size:13px}
  /* Toast: position at bottom center on mobile */
  .toast{right:14px;left:14px;bottom:14px;text-align:center;padding:12px 16px;font-size:13px}
  /* Categories page */
  .cat-land-card h3{font-size:17px}
  /* Suppliers page cards */
  .supplier-detail-head{flex-direction:column !important;align-items:flex-start !important}
  /* Search page: keep form in one row, ensure padding */
  .search-page-wrap{padding:24px 12px}
  .search-page-form{flex-direction:row !important;flex-wrap:nowrap}
  .search-page-form input{flex:1 1 auto;min-width:0}
  .search-page-form button{flex-shrink:0}
}

/* Small phones */
@media(max-width:480px){
  .container{padding:0 12px}
  .topbar .right{gap:10px;font-size:11px}
  .header .container{padding:9px 12px;gap:8px}
  .logo{font-size:20px}
  .logo small{font-size:9px;display:none}
  .search-box input{padding:9px 11px;font-size:13px}
  .search-box button{padding:0 14px;font-size:13px}
  .cart-btn{font-size:12px}
  .cart-btn svg{width:18px;height:18px}
  .nav ul li a,
  .nav>ul>li>a{padding:9px 10px !important;font-size:12px !important}
  /* Hero */
  .hero{padding:26px 0}
  .hero h1{font-size:20px;line-height:1.3;margin-bottom:8px}
  .hero p{font-size:13px;margin-bottom:14px}
  .hero-search{padding:5px}
  .hero-search input{padding:9px 11px;font-size:13px}
  .hero-search button{padding:0 14px;font-size:13px}
  .hero-stats{gap:14px 20px;margin-top:18px}
  .hero-stats .stat .n{font-size:18px}
  .hero-stats .stat .l{font-size:10px}
  /* Sections */
  section{padding:26px 0}
  .section-head{margin-bottom:18px}
  .section-head h2{font-size:19px}
  .section-head p{font-size:13px}
  /* Product grid: 2 columns even on small phones (cards are compact enough) */
  .prod-grid{grid-template-columns:1fr 1fr;gap:10px}
  .prod-card .img{height:120px}
  .prod-card .img img{padding:10px}
  .prod-card .body{padding:9px 10px}
  .prod-card .model{font-size:12.5px}
  .prod-card .name{font-size:11px;min-height:28px;-webkit-line-clamp:2}
  .prod-card .foot{flex-wrap:wrap;gap:5px}
  .prod-card .price-hint{font-size:10.5px;flex:1 1 100%}
  .prod-card .btn-add{padding:5px 8px;font-size:11px;flex:1 1 100%;text-align:center}
  /* Category grid: 2 columns */
  .cat-grid{grid-template-columns:repeat(2,1fr);gap:8px}
  .cat-card{padding:12px 6px}
  .cat-card .ic img{width:30px;height:30px}
  .cat-card .nm{font-size:11.5px}
  .cat-card .ct{font-size:10px}
  /* Product detail */
  .pd-main-img{height:220px}
  .pd-info h1{font-size:18px}
  .pd-specs .row{font-size:12.5px}
  .pd-specs .row .k{width:100px;font-size:11.5px}
  .pd-specs .row .v{font-size:12.5px}
  .pd-actions{flex-direction:column}
  .pd-actions .btn{flex:1 1 100%;width:100%}
  #directInquiry{padding:16px 14px !important}
  /* Features: 1 column */
  .feat-grid{grid-template-columns:1fr;gap:14px}
  .feat-card{padding:6px}
  /* Footer: keep 2 columns for nav divs, brand-blk full width */
  .footer-grid{grid-template-columns:1fr 1fr;gap:18px}
  .footer .brand-blk{grid-column:1 / -1}
  /* Sidebar: 1 column on very small */
  .sidebar{grid-template-columns:1fr}
  /* Inquiry cart: tighter */
  .cart-list .cart-item{grid-template-columns:54px 1fr;gap:8px;padding:8px}
  .cart-item .ci-img{width:54px;height:54px}
  .cart-item .ci-info .m{font-size:12px}
  .cart-item .ci-info .s{font-size:11px}
  /* Manual part rows in inquiry page */
  .cart-item.manual-row{grid-template-columns:1fr !important;gap:6px !important}
  /* Page content */
  .page-content{padding:22px 0}
  .page-content h1{font-size:21px}
  .page-content h2{font-size:17px}
  .page-content p{font-size:13.5px}
  /* Buttons */
  .btn{padding:10px 16px;font-size:13.5px}
  .btn-lg{padding:12px 20px;font-size:14px}
  /* CTA band */
  .cta-band{padding:26px 0}
  .cta-band h2{font-size:19px}
  .cta-band .btn{width:100%}
  /* Specs table */
  .specs-table{font-size:12px}
  .specs-table th,.specs-table td{padding:6px 8px}
  /* Categories landing */
  .cat-land-card{padding:14px}
  .cat-land-card h3{font-size:16px}
  /* 404 page */
  .page-content > .container > div[style*="font-size:80px"]{font-size:60px !important}
  .page-content h1{font-size:20px}
}

/* Very small phones (≤360px) */
@media(max-width:360px){
  .container{padding:0 10px}
  .logo{font-size:18px}
  .topbar .right{gap:8px;font-size:10.5px}
  .hero h1{font-size:18px}
  .hero p{font-size:12.5px}
  .hero-stats{gap:12px 16px}
  .hero-stats .stat .n{font-size:16px}
  .prod-grid{gap:8px}
  .prod-card .body{padding:8px 9px}
  .prod-card .model{font-size:12px}
  .cat-grid{gap:6px}
  .cat-card{padding:10px 5px}
}

/* ── 机器人防护：蜜罐字段隐藏 ─────────────── */
.hp-field{
    position:absolute !important;
    left:-9999px !important;
    top:-9999px !important;
    width:0 !important;
    height:0 !important;
    overflow:hidden !important;
    z-index:-9999 !important;
}

/* ── 表单行内验证错误 ───────────────────────── */
.form-error{
    color:#dc2626;
    font-size:12px;
    margin-top:4px;
    min-height:16px;
}
input.error,
select.error,
textarea.error{
    border-color:#dc2626 !important;
    box-shadow:0 0 0 2px rgba(220,38,38,.15) !important;
}

/* ── 产品规格表格 ───────────────────────────── */
.specs-table-wrap{
    margin-top:18px;
    overflow-x:auto;
}
.specs-table{
    width:100%;
    border-collapse:collapse;
    margin-bottom:28px;
    font-size:13.5px;
}
.specs-table th{
    background:var(--primary);
    color:#fff;
    padding:9px 14px;
    text-align:left;
    font-weight:600;
    white-space:nowrap;
}
.specs-table td{
    padding:8px 14px;
    border-bottom:1px solid var(--border);
    vertical-align:top;
}
.specs-table tr:nth-child(even) td{
    background:var(--bg-soft);
}
.specs-table tr:hover td{
    background:#e8f1fa;
}
.specs-table .sp-k{
    font-weight:600;
    color:var(--text);
    white-space:nowrap;
    width:38%;
}
.specs-table .sp-v{
    color:var(--text-muted);
}
