/*
Theme Name: 环球家居网
Theme URI: https://www.jiaju365.com.cn
Description: 环球家居网（jiaju365）——面向家居家具行业的垂直 B2B 门户 WordPress 主题。以「品类」组织内容（全屋定制 / 软体家具 / 实木家具 / 智能家居 / 门窗建材 / 照明灯饰 / 卫浴 / 厨电厨柜），炭灰 + 哑光金 + 暖白配色，Tailwind CSS 构建。内置招商品牌库、供应链工厂库、全国家具产业带专区、招商线索拦截与广告位招商体系，覆盖品牌推广 + 招商加盟 + 行业资讯 + 供应链对接四大场景。
Version: 1.0.0
Author: 环球家居网
Author URI: https://www.jiaju365.com.cn
Requires at least: 5.6
Tested up to: 6.8
Requires PHP: 7.0
License: GPL-2.0-or-later
Text Domain: jiaju365
Tags: business, furniture, directory, magazine, portal, b2b, tailwindcss
*/

/* =========================================================
   变量
   ========================================================= */
:root {
    --brand: #B8935A;
    --brand-dark: #8A6A38;
    --brand-accent: #D6BC8C;
    --brand-soft: #FBF8F1;
    --gold: #8B6F4E;
    --gold-deep: #6E5738;
    --iris: #3E7C8C;
    --ink: #2C2A29;
    --ink-gray: #5C5854;
    --ink-muted: #9A948C;
    --ink-line: #EAE5DD;
    --ink-bg: #FAFAF8;
    --wrap: 1280px;
}

* { box-sizing: border-box; }

/* =========================================================
   Hero 轮播（首页大图机制：可用于 Showroom 之外的通用轮播）
   ========================================================= */
.hero { position: relative; background: #1F1D1C; }
.hero-slides { position: relative; height: 480px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide > img { width: 100%; height: 100%; object-fit: cover; }
.hero-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 62px; border: 0; cursor: pointer;
    background: rgba(0,0,0,.35); color: #fff; font-size: 22px; line-height: 1;
    transition: background .2s;
}
.hero-nav:hover { background: var(--brand); }
.hero-prev { left: 0; }
.hero-next { right: 0; }
.hero-num { position: absolute; right: 20px; bottom: 22px; color: #fff; font-size: 14px; letter-spacing: 2px; }
.hero-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 22px; display: flex; gap: 8px; }
.hero-dots button {
    width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.5); cursor: pointer; transition: all .25s;
}
.hero-dots button.is-active { width: 24px; border-radius: 999px; background: var(--brand); }

/* Hero 右侧要闻条 */
.hero-side { display: grid; grid-template-rows: repeat(4, 1fr); gap: 12px; }
.hero-side a {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 14px; border-radius: 10px; background: #fff;
    border: 1px solid var(--ink-line); font-size: 13.5px; line-height: 1.6;
    color: var(--ink-gray); transition: all .25s;
}
.hero-side a:hover { border-color: var(--brand); color: var(--brand-dark); box-shadow: 0 6px 18px rgba(184,147,90,.12); }
.hero-side .hs-idx { flex: none; font-family: Georgia, serif; font-weight: 700; color: var(--brand); }

/* =========================================================
   焦点区（大图 + 列表）
   ========================================================= */
.focus-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: stretch; }
.focus-lead { display: block; }
.focus-lead .thumb { aspect-ratio: 16/10; overflow: hidden; border-radius: 14px; background: var(--ink-bg); }
.focus-lead .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.focus-lead:hover .thumb img { transform: scale(1.04); }
.focus-lead h3 { margin: 14px 0 8px; font-size: 21px; font-weight: 700; line-height: 1.45; transition: color .2s; }
.focus-lead:hover h3 { color: var(--brand-dark); }
.focus-lead p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--ink-gray); }

/* =========================================================
   品类分区（大图 + 侧列表）
   ========================================================= */
.biz-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; }
.biz-split .lead { display: block; }
.biz-split .lead .thumb { aspect-ratio: 16/10; overflow: hidden; border-radius: 14px; background: var(--ink-bg); }
.biz-split .lead .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.biz-split .lead:hover .thumb img { transform: scale(1.04); }
.biz-split .lead h3 { margin: 14px 0 8px; font-size: 21px; font-weight: 700; line-height: 1.45; }
.biz-split .lead:hover h3 { color: var(--brand-dark); }
.biz-split .lead p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--ink-gray); }

/* 品类色条（sec-head 前的小色块） */
.biz-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }

/* =========================================================
   移动端导航抽屉
   ========================================================= */
@media (max-width: 900px) {
    .nav-bar { display: flex; height: 48px; }
    .nav-bar-title { padding-left: 16px; font-size: 15px; font-weight: 600; color: #fff; }
    .nav-toggle { display: inline-flex; }
    .nav-links { display: none; flex-direction: column; align-items: stretch; height: auto; }
    .nav-links.is-open { display: flex; }
    .nav-links > a { height: 46px; line-height: 46px; border-bottom: 1px solid rgba(255,255,255,.12); }
    .site-nav-inner { height: auto; flex-direction: column; align-items: stretch; }
}

/* =========================================================
   返回顶部
   ========================================================= */
.back-top {
    position: fixed; right: 22px; bottom: 40px; z-index: 50;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--brand); color: #fff; font-size: 18px;
    display: none; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 8px 22px rgba(184,147,90,.35);
}
.back-top.is-show { display: flex; }
.back-top:hover { background: var(--brand-dark); }

/* =========================================================
   招商 / 合作页（品牌入驻 + 广告位招商）
   ========================================================= */
.join-hero { position: relative; background: linear-gradient(135deg, #171614 0%, #3A3229 52%, #B8935A 100%); color: #fff; padding: 68px 0 56px; overflow: hidden; }
.join-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.20), transparent 70%); }
.join-hero h1 { font-family: "Songti SC","Noto Serif SC",serif; font-size: 42px; font-weight: 800; letter-spacing: 2px; margin: 0 0 16px; }
.join-hero .lead { max-width: 880px; margin: 0; font-size: 16px; line-height: 2; color: rgba(255,255,255,.86); }
.join-hero .lead strong { color: #EBDCBB; font-weight: 600; }
.join-badge { display: inline-block; margin-bottom: 20px; padding: 5px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); font-size: 13px; letter-spacing: 2px; }
.join-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.join-stat { text-align: center; padding: 20px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.join-stat b { display: block; font-family: Georgia, serif; font-size: 34px; font-weight: 700; line-height: 1.2; color: #fff; }
.join-stat span { font-size: 13px; color: rgba(255,255,255,.7); }

.join-sec { padding: 56px 0; }
.join-sec-alt { background: var(--ink-bg); }
.join-head { max-width: 780px; margin: 0 auto 38px; text-align: center; }
.join-head-left { margin: 0 0 20px; text-align: left; }
.join-head h2 { font-family: "Songti SC","Noto Serif SC",serif; font-size: 30px; font-weight: 800; margin: 0 0 12px; }
.join-head h2 em { margin-left: 10px; font-family: Georgia, serif; font-size: 17px; font-style: italic; letter-spacing: 1px; color: var(--brand-dark); }
.join-head p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--ink-muted); }

/* 两大合作主线 */
.join-main { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.join-main-card { position: relative; padding: 30px 28px; border-radius: 16px; background: #fff; border: 1px solid var(--ink-line); overflow: hidden; transition: all .3s; }
.join-main-card:hover { border-color: var(--brand); box-shadow: 0 16px 40px rgba(184,147,90,.14); transform: translateY(-4px); }
.join-main-card .tag { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--brand-soft); color: var(--brand-dark); }
.join-main-card.alt .tag { background: #F3EDE8; color: var(--gold-deep); }
.join-main-card h3 { margin: 0 0 10px; font-size: 22px; font-weight: 800; }
.join-main-card p { margin: 0 0 16px; font-size: 14px; line-height: 1.9; color: var(--ink-gray); }
.join-main-card ul { list-style: none; margin: 0 0 18px; padding: 0; }
.join-main-card li { position: relative; padding-left: 22px; font-size: 13.5px; line-height: 2; color: var(--ink-gray); }
.join-main-card li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--brand); }
.join-main-card.alt li::before { color: var(--gold); }

/* 产业带专区（合作页 / 产业带概览） */
.belt-zone-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; }
.belt-zone-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--ink-line); background: #fff; font-size: 14px; }
.belt-zone-item .st { font-size: 12px; font-weight: 600; }
.belt-zone-item.open .st { color: var(--gold-deep); }
.belt-zone-item.taken { opacity: .62; }
.belt-zone-item.taken .st { color: var(--ink-muted); }

/* 广告位套餐卡片 */
.ad-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ad-plan { padding: 26px 24px; border-radius: 14px; background: #fff; border: 1px solid var(--ink-line); transition: all .3s; }
.ad-plan:hover { border-color: var(--brand); box-shadow: 0 14px 36px rgba(44,42,41,.08); transform: translateY(-4px); }
.ad-plan .pos { display: inline-block; margin-bottom: 12px; padding: 3px 10px; border-radius: 6px; font-family: Georgia, serif; font-size: 14px; font-weight: 700; color: #fff; background: var(--brand); }
.ad-plan h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.ad-plan .spec { margin: 0 0 14px; font-size: 13px; color: var(--ink-muted); }
.ad-plan .price { font-family: Georgia, serif; font-size: 26px; font-weight: 700; color: var(--brand-dark); }
.ad-plan .price small { font-family: inherit; font-size: 13px; font-weight: 400; color: var(--ink-muted); }
.ad-plan ul { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px dashed var(--ink-line); padding-top: 14px; }
.ad-plan li { font-size: 13px; line-height: 2; color: var(--ink-gray); }

/* 通用表格 */
.tbl-scroll { overflow-x: auto; border-radius: 12px; border: 1px solid var(--ink-line); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; min-width: 640px; }
.tbl th, .tbl td { padding: 13px 14px; border-bottom: 1px solid var(--ink-line); font-size: 14px; color: var(--ink-gray); text-align: left; }
.tbl th { background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.tbl tbody tr:hover { background: #FBF8F1; }
.tbl td strong { color: var(--ink); }

/* 流程 */
.join-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.join-step { display: flex; gap: 16px; padding: 24px 22px; border-radius: 12px; background: #fff; border: 1px solid var(--ink-line); }
.join-step .n { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; font-family: Georgia, serif; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.join-step h3 { margin: 6px 0 8px; font-size: 17px; font-weight: 700; }
.join-step p { margin: 0; font-size: 13.5px; line-height: 1.8; color: var(--ink-gray); }

/* FAQ */
.join-faq { max-width: 900px; margin: 0 auto; }
.join-faq details { margin-bottom: 12px; border-radius: 10px; border: 1px solid var(--ink-line); background: #fff; overflow: hidden; }
.join-faq summary { position: relative; padding: 17px 22px; font-size: 15.5px; font-weight: 600; cursor: pointer; list-style: none; }
.join-faq summary::-webkit-details-marker { display: none; }
.join-faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--brand); }
.join-faq details[open] summary::after { content: "−"; }
.join-faq details[open] summary { color: var(--brand-dark); }
.join-faq .ans { padding: 0 22px 20px; font-size: 14px; line-height: 1.9; color: var(--ink-gray); }

/* 申请 CTA */
.join-cta { padding: 60px 0; background: linear-gradient(135deg, #171614 0%, #3A3229 100%); color: #fff; }
.join-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.join-cta h2 { font-family: "Songti SC","Noto Serif SC",serif; font-size: 32px; font-weight: 800; margin: 0 0 16px; }
.join-cta .c-text > p { font-size: 15px; line-height: 1.9; color: rgba(255,255,255,.82); margin: 0 0 22px; }
.join-contact { list-style: none; margin: 0; padding: 0; }
.join-contact li { padding: 7px 0; font-size: 15px; }
.join-contact li span { display: inline-block; width: 92px; font-size: 13px; color: #EBDCBB; }
.join-form { padding: 30px 28px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.join-form h3 { margin: 0 0 18px; font-size: 20px; font-weight: 800; }
.join-form label { display: block; margin-bottom: 14px; font-size: 13px; color: var(--ink-gray); }
.join-form input, .join-form select, .join-form textarea { width: 100%; margin-top: 6px; padding: 11px 14px; border: 1px solid var(--ink-line); border-radius: 8px; font-family: inherit; font-size: 14px; outline: none; }
.join-form input:focus, .join-form select:focus, .join-form textarea:focus { border-color: var(--brand); }
.join-form button { width: 100%; margin-top: 6px; padding: 13px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s; }
.join-form button:hover { background: var(--brand-dark); }
.join-form-tip { margin: 12px 0 0; font-size: 13px; text-align: center; }
.join-form-tip.is-ok { color: #1A9C5B; }
.join-form-tip.is-err { color: #C0392B; }

/* 页面 Hero（通用页头） */
.page-hero { background: linear-gradient(135deg, #FAFAF8 0%, #F2EDE4 100%); padding: 44px 0; margin-bottom: 32px; }
.page-hero h1 { font-family: "Songti SC","Noto Serif SC",serif; font-size: 32px; font-weight: 800; margin: 0; }
.page-hero p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.9; color: var(--ink-gray); max-width: 820px; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1024px) {
    .focus-grid { grid-template-columns: 1fr; }
    .biz-split { grid-template-columns: 1fr; }
    .join-main { grid-template-columns: 1fr; }
    .ad-plans { grid-template-columns: repeat(2, 1fr); }
    .join-steps { grid-template-columns: repeat(2, 1fr); }
    .belt-zone-grid { grid-template-columns: repeat(3, 1fr); }
    .join-cta-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 720px) {
    .hero-slides { height: 300px; }
    .hero-caption { padding: 28px 16px 40px; }
    .hero-caption h1 { font-size: 20px; }
    .hero-nav { width: 36px; height: 48px; }
    .hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
    .biz-split .lead h3, .focus-lead h3 { font-size: 18px; }
    .site-top-inner { height: 66px; gap: 10px; }
    .site-logo { font-size: 26px; letter-spacing: 2px; }
    .head-search { display: none; }
    .join-hero { padding: 44px 0 36px; }
    .join-hero h1 { font-size: 27px; }
    .join-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
    .join-stat b { font-size: 26px; }
    .join-sec { padding: 36px 0; }
    .join-head h2 { font-size: 23px; }
    .ad-plans, .join-steps { grid-template-columns: 1fr; }
    .belt-zone-grid { grid-template-columns: repeat(2, 1fr); }
    .page-hero h1 { font-size: 24px; }
}
