/* ============================================================
   home.css — Tuofeng Outdoor B2B homepage
   Design system inherited from catalog.css (brand green #155d37,
   Inter, tight gaps, white cards, subtle borders, orange accent).
   Goal: professional, dense, lively — consistent with Products page.
   ============================================================ */

/* ---------- base ---------- */
body.home-page {
    margin: 0;
    background: var(--bg);
    color: var(--ink-2);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
body.home-page a { color: inherit; text-decoration: none; }
body.home-page img { max-width: 100%; display: block; }

.container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 18px;
}

/* ---------- section headers ---------- */
.sec-head {
    margin-bottom: 18px;
}
.sec-head h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.35px;
}
.sec-head p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    max-width: 760px;
}
.sec-head .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 8px;
}
.sec-head .tag:before {
    content: '';
    width: 18px; height: 2px;
    background: var(--accent);
}

.sec {
    padding: 34px 0 40px;
}
.sec-light { background: var(--bg); }
.sec-white { background: #fff; }
.sec-dark {
    background: linear-gradient(135deg, #0f3d26 0%, #155d37 100%);
    color: #fff;
}
.sec-dark .sec-head h2,
.sec-dark .sec-head .tag { color: #fff; }
.sec-dark .sec-head p { color: rgba(255,255,255,.72); }

/* ---------- hero ---------- */
.hero {
    position: relative;
    min-height: 70vh;
    max-height: 800px;
    display: flex;
    align-items: center;
    background-image: url('back1-hero.webp');
    background-image: image-set(url('back1-hero.webp') 1x, url('back1-hero.jpg') 1x);
    background-size: cover;
    background-position: center 60%;
    background-repeat: no-repeat;
    color: #fff;
    /* performance: no fixed-attachment on mobile */
}
.hero:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15,61,38,.93) 0%, rgba(21,93,55,.78) 55%, rgba(21,122,74,.55) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner {
    max-width: 820px;
    padding: 110px 0 42px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    backdrop-filter: blur(4px);
}
.hero h1 {
    margin: 0 0 14px;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1px;
}
.hero h1 span { color: #fdba74; }
.hero p {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,.82);
    max-width: 680px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: filter .12s, transform .12s;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 8px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .12s;
}
.btn-ghost:hover { background: rgba(255,255,255,.18); }

.hero-stats {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}
.hero-stats .stat {
    min-width: 110px;
}
.hero-stats .stat b {
    display: block;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}
.hero-stats .stat span {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.65);
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* ---------- trust bar ---------- */
.trust-bar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 55;
}
.trust-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    align-items: center;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
}
.trust-item i {
    width: 30px; height: 30px;
    display: grid; place-items: center;
    background: var(--line-2);
    border-radius: 7px;
    color: var(--brand);
    font-size: 13px;
}

/* ---------- category cards ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: var(--gap);
}
.cat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .14s, box-shadow .14s, border-color .14s;
    display: flex;
    flex-direction: column;
}
.cat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -8px rgba(15,23,42,.18);
    border-color: #c9d6d0;
}
.cat-card-img {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #e8f2ec, #dfece6);
    overflow: hidden;
}
.cat-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.cat-card:hover .cat-card-img img { transform: scale(1.04); }
.cat-card-img .cnt {
    position: absolute;
    right: 8px; top: 8px;
    background: rgba(255,255,255,.92);
    color: var(--ink);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}
.cat-card-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.cat-card-body h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}
.cat-card-body p {
    margin: 0;
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cat-card-body .more {
    margin-top: auto;
    padding-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cat-card-body .more:hover { color: var(--accent); }

/* ---------- hot products ---------- */
.hot-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}
.hot-header a {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
}
.hot-header a:hover { color: var(--accent); }

/* Reuse .pcard from catalog.css */
#homeHotGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
    gap: var(--gap);
}

/* ---------- capability grid ---------- */
.cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--gap);
}
.cap-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 12px;
    transition: transform .12s, box-shadow .12s;
}
.cap-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.cap-card .icon {
    width: 38px; height: 38px;
    flex-shrink: 0;
    background: #e8f2ec;
    color: var(--brand);
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 15px;
}
.cap-card .txt h4 {
    margin: 0 0 3px;
    font-size: 13.5px;
    color: var(--ink);
}
.cap-card .txt p {
    margin: 0;
    font-size: 11.8px;
    color: var(--muted);
    line-height: 1.45;
}

/* ---------- OEM process ---------- */
.proc {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
    counter-reset: proc;
}
.proc-step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    position: relative;
    box-shadow: var(--shadow-sm);
}
.proc-step:before {
    counter-increment: proc;
    content: counter(proc);
    position: absolute;
    top: -10px; left: 14px;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(249,115,22,.35);
}
.proc-step h4 {
    margin: 10px 0 4px;
    font-size: 14px;
    color: var(--ink);
}
.proc-step p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
}

/* ---------- factory + quality split ---------- */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.split .copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.split .copy h3 { margin: 0; font-size: 18px; color: var(--ink); }
.split .copy p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.split .copy ul { margin: 0; padding-left: 18px; }
.split .copy li { margin-bottom: 5px; font-size: 13px; color: var(--ink-2); }
.split .copy li strong { color: var(--ink); }

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 4px 9px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink);
}
.cert-badge i { color: var(--accent); }

/* ---------- photo slot placeholder system ---------- */
.photo-slot {
    position: relative;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, #e8f2ec 0%, #d4e6db 100%);
    border: 1.5px dashed #b4c9be;
    transition: border-color .12s;
}
.photo-slot img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 2;
}
.photo-slot .ph-note {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    padding: 12px;
    opacity: .85;
}
.photo-slot.empty { border-color: #9bb3a7; }

/* ---------- blog cards ---------- */
.blog-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--gap);
}
.blog-card-home {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .12s, box-shadow .12s;
    display: flex;
    flex-direction: column;
}
.blog-card-home:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.blog-card-home img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.blog-card-home .content { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.blog-card-home .meta { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.blog-card-home h4 { margin: 0; font-size: 14px; color: var(--ink); line-height: 1.35; }
.blog-card-home p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-home a { margin-top: auto; padding-top: 10px; font-size: 12px; font-weight: 700; color: var(--brand); }
.blog-card-home a:hover { color: var(--accent); }

/* ---------- partners ---------- */
.partners {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}
.partner {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    backdrop-filter: blur(3px);
}
.partner i { margin-right: 6px; opacity: .85; }

/* ---------- FAQ + contact ---------- */
.help-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    overflow: hidden;
}
.faq summary {
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--muted); font-size: 11px; transition: transform .15s; }
.faq details[open] summary i { transform: rotate(180deg); }
.faq .ans {
    padding: 0 14px 12px;
    font-size: 12.5px;
    color: var(--ink-2);
    line-height: 1.55;
}
.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 76px;
}
.contact-card h3 { margin: 0 0 4px; font-size: 16px; color: var(--ink); }
.contact-card > p { margin: 0 0 14px; font-size: 12px; color: var(--muted); }
.contact-card input,
.contact-card select,
.contact-card textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 11px;
    font-size: 13px;
    margin-bottom: 9px;
    outline: none;
    font-family: inherit;
}
.contact-card input:focus,
.contact-card select:focus,
.contact-card textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(21,93,55,.1); }
.contact-card textarea { resize: vertical; min-height: 72px; }
.contact-card button { width: 100%; margin-top: 4px; justify-content: center; }
.contact-card .direct {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line-2);
    font-size: 12px;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.contact-card .direct i { color: var(--brand); width: 18px; display: inline-block; }

/* ---------- footer ---------- */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,.7);
    padding: 30px 0;
    font-size: 12.5px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 22px;
}
.footer-col h4 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: rgba(255,255,255,.7); transition: color .12s; }
.footer-col a:hover { color: #fff; }
.footer-col p { margin: 0 0 6px; line-height: 1.5; }
.footer-col strong { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,.7); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
    .proc { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; }
    .help-wrap { grid-template-columns: 1fr; }
    .contact-card { position: static; }
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .hero h1 { font-size: 30px; }
    .hero p { font-size: 14px; }
    .hero-stats { gap: 14px; }
    .hero-stats .stat b { font-size: 22px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    #homeHotGrid { grid-template-columns: repeat(2, 1fr); }
    .proc { grid-template-columns: 1fr; }
    .cap-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
    .cat-grid { grid-template-columns: 1fr; }
    #homeHotGrid { grid-template-columns: 1fr; }
    .blog-grid-home { grid-template-columns: 1fr; }
}
