/*
Theme Name: Office Furniture B2B
Theme URI: https://www.doubao.com
Author: Doubao
Author URI: https://www.doubao.com
Description: 专为办公家具外贸 B2B 询盘站设计的响应式 WordPress 主题。内置产品中心（自定义文章类型）、产品规格、询盘表单、Get a Quote 弹窗、全站轮播、自定义器设置与示例数据一键导入，上传激活即可使用，桌面端与移动端完美适配。
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ofb2b
Tags: business, e-commerce, responsive-layout, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ============ 基础变量与重置 ============ */
:root {
  --of-primary: #123a5f;
  --of-primary-dark: #0c2a47;
  --of-accent: #1f7a3d;
  --of-accent-2: #28a745;
  --of-text: #26384a;
  --of-muted: #64788c;
  --of-bg: #ffffff;
  --of-bg-soft: #f3f7fb;
  --of-border: #e2e9f1;
  --of-radius: 10px;
  --of-shadow: 0 8px 28px rgba(18, 58, 95, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--of-text);
  background: var(--of-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--of-accent); text-decoration: none; }
a:hover { color: #145a2c; }
h1, h2, h3, h4 { color: var(--of-primary); line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 30px; }
.section-title p { color: var(--of-muted); max-width: 640px; margin: 10px auto 0; font-size: 16.5px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; }

/* 按钮 */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 6px;
  font-size: 16px; font-weight: 600; line-height: 1.4; border: 0; cursor: pointer;
  transition: background .2s, color .2s, transform .15s; text-align: center;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--of-accent); color: #fff; }
.btn-primary:hover { background: #145a2c; color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--of-accent); color: var(--of-accent); }
.btn-outline:hover { background: var(--of-accent); color: #fff; }
.btn-accent { background: var(--of-accent); color: #fff; font-size: 15px; padding: 11px 20px; }
.btn-accent:hover { background: #145a2c; color: #fff; }

/* ============ 顶部联系条 ============ */
.of-topbar { background: var(--of-primary-dark); color: #cfe0f3; font-size: 14px; }
.of-topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; }
.of-topbar a { color: #cfe0f3; }
.of-topbar a:hover { color: #fff; }
.of-topbar .of-top-left { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.of-topbar .of-top-left > span { display: inline-flex; align-items: center; gap: 6px; line-height: 1.4; }
.of-topbar svg { width: 14px; height: 14px; flex: none; }
.of-topbar .of-top-right { display: flex; gap: 14px; }

/* ============ 头部导航 ============ */
.of-header { background: #fff; border-bottom: 1px solid var(--of-border); position: sticky; top: 0; z-index: 999; }
.of-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 20px; }
.of-logo { display: flex; align-items: center; gap: 10px; }
.of-logo img { max-height: 50px; width: auto; }
.of-logo-link { display: flex; align-items: center; gap: 12px; }
.of-logo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--of-accent), #123a5f);
  color: #fff;
}
.of-logo-icon svg { width: 26px; height: 26px; }
.of-logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.of-logo-name { font-size: 21px; font-weight: 800; color: var(--of-primary); letter-spacing: .01em; }
.of-logo-sub { font-size: 11px; font-weight: 600; color: var(--of-muted); letter-spacing: .08em; text-transform: uppercase; }

.of-nav { display: flex; align-items: center; gap: 14px; }
.of-nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.of-nav-item { position: relative; }
.of-nav-item > a {
  display: block; padding: 12px 15px; font-weight: 600; font-size: 16px; color: var(--of-text); border-radius: 6px;
}
.of-nav-item > a:hover, .of-nav-item.current > a { color: var(--of-accent); }
.of-nav-item .of-caret {
  display: inline-block; width: 7px; height: 7px; margin-left: 5px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .7;
}
/* 分类下拉 */
.of-dropdown {
  display: none; position: absolute; top: 100%; left: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--of-border); border-radius: 8px;
  box-shadow: 0 14px 34px rgba(18,58,95,.14); padding: 8px 0; z-index: 1000;
}
.of-nav-item.has-dropdown:hover .of-dropdown { display: block; }
.of-dropdown li { list-style: none; }
.of-dropdown li a { display: block; padding: 10px 18px; font-size: 15px; color: var(--of-text); }
.of-dropdown li a:hover { background: var(--of-bg-soft); color: var(--of-accent); }
.of-dropdown li.current a { color: var(--of-accent); font-weight: 700; }

.of-nav-actions { display: flex; align-items: center; gap: 10px; }
.of-search-toggle {
  background: none; border: 1px solid var(--of-border); border-radius: 8px;
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--of-primary);
}
.of-search-toggle:hover { background: var(--of-bg-soft); }
.of-search-toggle svg { width: 19px; height: 19px; }
.of-quote-btn { white-space: nowrap; }
.of-burger { display: none; background: none; border: 1px solid var(--of-border); border-radius: 6px; padding: 8px 10px; cursor: pointer; }
.of-burger span { display: block; width: 22px; height: 2px; background: var(--of-primary); margin: 4px 0; border-radius: 2px; }

/* 搜索面板 */
.of-search-panel {
  display: none; background: var(--of-primary-dark); padding: 0;
  position: sticky; top: 80px; z-index: 998;
}
.of-search-panel.open { display: block; }
.of-search-panel form { max-width: 900px; margin: 0 auto; padding: 18px 20px; display: flex; gap: 10px; }
.of-search-panel input[type="search"] {
  flex: 1; padding: 12px 16px; font-size: 16px; border: 0; border-radius: 6px; outline: none;
}
.of-search-panel .btn { flex: none; }
.of-search-close {
  position: absolute; top: 10px; right: 14px; background: none; border: 0; color: #9db4cc; cursor: pointer;
}
.of-search-close svg { width: 20px; height: 20px; }
.of-search-close:hover { color: #fff; }

/* ============ 轮播（内页顶部） ============ */
.of-slider { position: relative; overflow: hidden; height: 380px; background: var(--of-bg-soft); }
.of-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.of-slide.active { opacity: 1; }
.of-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.of-slide-title {
  position: absolute; left: 0; right: 0; bottom: 46px; text-align: center;
  color: #fff; font-size: 30px; font-weight: 700; text-shadow: 0 2px 14px rgba(0,0,0,.45);
  padding: 0 20px;
}
.of-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(18,58,95,.55); color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background .2s; z-index: 5;
}
.of-slider-arrow:hover { background: var(--of-accent); }
.of-slider-arrow svg { width: 20px; height: 20px; }
.of-slider-arrow.prev { left: 18px; }
.of-slider-arrow.next { right: 18px; }
.of-slider-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.of-slider-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.of-slider-dots span.active { background: #fff; }

/* ============ 首页 Hero ============ */
.of-hero {
  position: relative; min-height: 78vh; display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.of-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,32,54,.88) 0%, rgba(10,32,54,.55) 55%, rgba(10,32,54,.15) 100%); }
.of-hero .container { position: relative; z-index: 2; }
.of-hero h1 { color: #fff; font-size: 46px; max-width: 720px; margin-bottom: 18px; }
.of-hero p.of-hero-sub { color: #d7e5f4; font-size: 19px; max-width: 640px; margin-bottom: 32px; }
.of-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.of-hero .btn { font-size: 17px; padding: 15px 34px; }

/* ============ 数据条 ============ */
.of-stats { background: var(--of-accent); padding: 30px 0; }
.of-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.of-stat { text-align: center; color: #fff; }
.of-stat-num { font-size: 34px; font-weight: 800; }

/* ============ 产品网格 ============ */
.of-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.of-products-grid-3 { grid-template-columns: repeat(3, 1fr); }
.of-product-card {
  background: #fff; border: 1px solid var(--of-border); border-radius: var(--of-radius);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.of-product-card:hover { transform: translateY(-4px); box-shadow: var(--of-shadow); }
.of-product-thumb { display: block; overflow: hidden; aspect-ratio: 4/3; background: var(--of-bg-soft); }
.of-product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.of-product-card:hover .of-product-thumb img { transform: scale(1.05); }
.of-product-body { padding: 16px 18px 18px; text-align: center; }
.of-product-model { display: inline-block; font-size: 12.5px; color: var(--of-accent); background: #eaf6ee; border-radius: 4px; padding: 2px 10px; margin-bottom: 8px; }
.of-product-body h3 { font-size: 17px; margin-bottom: 8px; }
.of-product-body h3 a { color: var(--of-primary); }
.of-product-body h3 a:hover { color: var(--of-accent); }
.of-product-link { font-size: 14.5px; font-weight: 600; }
.of-product-excerpt { font-size: 14px; color: var(--of-muted); margin-bottom: 10px; }

/* ============ 产品归档：左分类 + 右网格 ============ */
.of-cat-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
.of-cat-sidebar { background: var(--of-bg-soft); border: 1px solid var(--of-border); border-radius: var(--of-radius); padding: 22px 0; position: sticky; top: 100px; }
.of-cat-title { font-size: 17px; padding: 0 22px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--of-border); }
.of-cat-list { list-style: none; margin: 0; padding: 6px 0; }
.of-cat-list li a { display: block; padding: 11px 22px; font-size: 15.5px; color: var(--of-text); border-left: 3px solid transparent; }
.of-cat-list li a:hover { background: #fff; color: var(--of-accent); }
.of-cat-list li.active a { background: #fff; color: var(--of-accent); font-weight: 700; border-left-color: var(--of-accent); }

/* 分页 */
.of-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.of-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px;
  padding: 0 12px; border: 1px solid var(--of-border); border-radius: 6px; font-size: 15px; color: var(--of-text); background: #fff;
}
.of-pagination .page-numbers.current { background: var(--of-accent); border-color: var(--of-accent); color: #fff; }
.of-pagination .page-numbers:hover { border-color: var(--of-accent); color: var(--of-accent); }

/* ============ 关于我们 ============ */
.of-about-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.of-about-text h2 { font-size: 30px; margin-bottom: 18px; }
.of-about-text .entry-content p { font-size: 16.5px; color: #44586c; }
.of-about-img { border-radius: var(--of-radius); overflow: hidden; box-shadow: var(--of-shadow); }
.of-about-img img { display: block; width: 100%; }

/* HISTORY 时间线 */
.of-history { background: var(--of-bg-soft); }
.of-history-tip { text-align: center; color: var(--of-accent); font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.of-history-title { text-align: center; font-size: 34px; margin-bottom: 34px; }
.of-history-slider { position: relative; max-width: 900px; margin: 0 auto; }
.of-history-slide { display: none; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; background: #fff; border-radius: var(--of-radius); padding: 26px; box-shadow: var(--of-shadow); }
.of-history-slide.active { display: grid; }
.of-history-img { border-radius: 8px; overflow: hidden; }
.of-history-img img { display: block; width: 100%; height: 260px; object-fit: cover; }
.of-history-year { display: block; font-size: 44px; font-weight: 800; color: var(--of-accent); margin-bottom: 8px; }
.of-history-body p { font-size: 17px; color: #44586c; margin: 0; }
.of-history-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--of-accent); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(31,122,61,.35); z-index: 5;
}
.of-history-arrow:hover { background: #145a2c; }
.of-history-arrow svg { width: 20px; height: 20px; }
.of-history-arrow.prev { left: -20px; }
.of-history-arrow.next { right: -20px; }

/* OUR FACTORY */
.of-factory-title { text-align: center; font-size: 32px; margin-bottom: 34px; }
.of-factory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.of-factory-item { border-radius: var(--of-radius); overflow: hidden; box-shadow: var(--of-shadow); }
.of-factory-item img { display: block; width: 100%; height: 280px; object-fit: cover; transition: transform .3s; }
.of-factory-item:hover img { transform: scale(1.04); }

/* ============ CTA ============ */
.of-cta { background: linear-gradient(120deg, var(--of-primary) 0%, #1b4f86 100%); color: #fff; text-align: center; }
.of-cta h2 { color: #fff; font-size: 34px; }
.of-cta p { color: #cfe0f3; max-width: 620px; margin: 0 auto 28px; font-size: 17px; }

/* ============ 页面主体 ============ */
.of-page-header { background: var(--of-bg-soft); border-bottom: 1px solid var(--of-border); padding: 46px 0; }
.of-page-header h1 { font-size: 34px; margin: 0; }
.of-page-header .of-breadcrumb { font-size: 14px; color: var(--of-muted); margin-top: 8px; }
.of-breadcrumb a { color: var(--of-muted); }
.of-breadcrumb a:hover { color: var(--of-accent); }
.of-main { padding: 0 0 40px; }
.of-content { max-width: 900px; margin: 0 auto; }

/* ============ 产品详情（询盘导向） ============ */
.of-product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.of-product-detail .of-pd-gallery img { border-radius: var(--of-radius); width: 100%; }
.of-pd-model { display: inline-block; font-size: 14px; color: var(--of-accent); background: #eef4fc; border-radius: 4px; padding: 3px 10px; margin-bottom: 12px; }
.of-pd-info h1 { font-size: 30px; }
.of-pd-desc { color: var(--of-muted); font-size: 16.5px; }
.of-pd-trade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 22px; }
.of-pd-trade-item { background: var(--of-bg-soft); border: 1px solid var(--of-border); border-radius: 8px; padding: 12px 14px; }
.of-pd-trade-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--of-muted); margin-bottom: 3px; }
.of-pd-trade-value { display: block; font-size: 15px; font-weight: 700; color: var(--of-primary); }
.of-pd-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.btn-whatsapp { background: #25d366; color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.btn-whatsapp:hover { background: #1da851; color: #fff; }
.btn-whatsapp svg { width: 18px; height: 18px; }
.of-spec-table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; }
.of-spec-table th, .of-spec-table td { border: 1px solid var(--of-border); padding: 12px 14px; text-align: left; font-size: 15px; }
.of-spec-table th { background: var(--of-bg-soft); color: var(--of-primary); width: 30%; }
.of-related { margin-top: 56px; }

/* ============ 询盘/报价表单 ============ */
.of-inquiry-wrap { background: var(--of-bg-soft); border: 1px solid var(--of-border); border-radius: var(--of-radius); padding: 32px; }
.of-inquiry-wrap h3 { font-size: 24px; }
.of-quote-form h3 { font-size: 24px; }
.of-quote-sub { color: var(--of-muted); margin: -4px 0 18px; font-size: 15.5px; }
.of-inquiry-tip { color: var(--of-muted); font-size: 15px; margin: -6px 0 18px; }
.of-inquiry-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.of-inquiry-form .of-f-full { grid-column: 1 / -1; }
.of-inquiry-form label { display: block; font-size: 14px; font-weight: 600; color: var(--of-primary); margin-bottom: 6px; }
.of-inquiry-form input[type="text"], .of-inquiry-form input[type="email"], .of-inquiry-form input[type="tel"], .of-inquiry-form select, .of-inquiry-form textarea {
  width: 100%; padding: 12px 15px; border: 1px solid var(--of-border); border-radius: 6px;
  font-size: 15.5px; font-family: inherit; color: var(--of-text); background: #fff; transition: border .2s;
}
.of-inquiry-form input:focus, .of-inquiry-form select:focus, .of-inquiry-form textarea:focus { outline: none; border-color: var(--of-accent); }
.of-inquiry-form input::placeholder, .of-inquiry-form textarea::placeholder { color: #a5b5c5; }
.of-inquiry-form .of-f-submit { grid-column: 1 / -1; }
.of-inquiry-form .of-hp { display: none !important; }
.of-inquiry-msg { padding: 14px 18px; border-radius: 6px; margin-bottom: 20px; font-size: 15px; }
.of-inquiry-msg.ok { background: #e7f7ee; color: #177245; border: 1px solid #bfe8d0; }
.of-inquiry-msg.err { background: #fdecea; color: #b3382f; border: 1px solid #f5c6c2; }

/* ============ Get a Quote 弹窗 ============ */
.of-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.of-modal.open { display: flex; }
.of-modal-backdrop { position: absolute; inset: 0; background: rgba(10,30,50,.62); }
.of-modal-box {
  position: relative; background: #fff; border-radius: 14px; max-width: 520px; width: 100%;
  max-height: 92vh; overflow-y: auto; padding: 34px 34px 30px; box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
.of-modal-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--of-bg-soft); color: var(--of-muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.of-modal-close:hover { background: #fdecea; color: #b3382f; }
.of-modal-close svg { width: 17px; height: 17px; }
.of-quote-form .of-inquiry-form input, .of-quote-form .of-inquiry-form textarea { background: var(--of-bg-soft); }

/* ============ 联系我们（左信息 + 右表单） ============ */
.of-contact-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: start; }
.of-contact-heading { font-size: 26px; margin-bottom: 26px; }
.of-contact-list { list-style: none; margin: 0; padding: 0; }
.of-contact-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--of-border); align-items: flex-start; }
.of-contact-icon {
  width: 44px; height: 44px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: #eaf6ee; color: var(--of-accent);
}
.of-contact-icon svg { width: 21px; height: 21px; }
.of-contact-label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--of-muted); margin-bottom: 2px; }
.of-contact-value { display: block; font-size: 16px; font-weight: 600; color: var(--of-primary); word-break: break-word; }
.of-contact-value a { color: var(--of-primary); }
.of-contact-value a:hover { color: var(--of-accent); }
.of-contact-form-side .of-inquiry-wrap { background: #fff; border: 1px solid var(--of-border); box-shadow: var(--of-shadow); }
.of-contact-form-side .of-inquiry-wrap h3 { text-align: center; }
.of-contact-form-side .of-quote-sub { text-align: center; }

/* ============ News 列表 / 详情 ============ */
.of-news-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.of-news-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; background: #fff; border: 1px solid var(--of-border); border-radius: var(--of-radius); overflow: hidden; margin-bottom: 28px; box-shadow: var(--of-shadow); }
.of-news-feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.of-news-feature-body { padding: 28px 28px 26px 0; }
.of-news-date { font-size: 14px; color: var(--of-accent); font-weight: 600; }
.of-news-feature-body h2 { font-size: 23px; margin: 8px 0 10px; }
.of-news-feature-body h2 a { color: var(--of-primary); }
.of-news-excerpt { color: var(--of-muted); font-size: 15.5px; }
.of-news-list { display: flex; flex-direction: column; gap: 18px; }
.of-news-item { display: grid; grid-template-columns: 220px 1fr; gap: 20px; background: #fff; border: 1px solid var(--of-border); border-radius: var(--of-radius); overflow: hidden; }
.of-news-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.of-news-item-body { padding: 18px 20px 16px 0; }
.of-news-item-body h3 { font-size: 18px; margin: 6px 0 8px; }
.of-news-item-body h3 a { color: var(--of-primary); }
.of-news-item-body h3 a:hover { color: var(--of-accent); }
.of-news-readmore { font-size: 14.5px; font-weight: 600; }
.of-news-side { background: var(--of-bg-soft); border: 1px solid var(--of-border); border-radius: var(--of-radius); padding: 22px; position: sticky; top: 100px; }
.of-side-title { font-size: 18px; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 2px solid var(--of-accent); }
.of-hot-news { list-style: none; margin: 0; padding: 0; }
.of-hot-news li { padding: 13px 0; border-bottom: 1px dashed var(--of-border); }
.of-hot-news li:last-child { border-bottom: 0; }
.of-hot-news a { font-size: 15px; color: var(--of-text); font-weight: 500; line-height: 1.5; display: block; }
.of-hot-news a:hover { color: var(--of-accent); }
.of-hot-date { display: block; font-size: 13px; color: var(--of-muted); margin-top: 4px; }

/* News 详情 */
.of-article { background: #fff; border: 1px solid var(--of-border); border-radius: var(--of-radius); padding: 30px; }
.of-back-link { display: inline-block; font-size: 15px; color: var(--of-primary); font-weight: 600; margin-bottom: 14px; }
.of-back-link:hover { color: var(--of-accent); }
.of-article .of-post-meta { font-size: 14px; color: var(--of-accent); font-weight: 600; margin-bottom: 18px; }
.of-article .entry-content p { font-size: 16.5px; color: #44586c; margin-bottom: 1.2em; }
.of-post-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--of-bg-soft); border-radius: var(--of-radius); padding: 18px 22px; }
.of-post-nav-item { flex: 1; }
.of-post-nav-item.next { text-align: right; }
.of-post-nav-label { display: block; font-size: 13px; text-transform: uppercase; color: var(--of-muted); letter-spacing: .04em; margin-bottom: 2px; }
.of-post-nav-item a { font-size: 15px; color: var(--of-primary); font-weight: 600; line-height: 1.5; }
.of-post-nav-item a:hover { color: var(--of-accent); }
.of-post-nav-all { font-size: 15px; font-weight: 700; color: var(--of-accent); border: 2px solid var(--of-accent); border-radius: 6px; padding: 6px 16px; flex: none; }
.of-post-nav-all:hover { background: var(--of-accent); color: #fff; }
.of-rec-title { font-size: 26px; margin-bottom: 26px; }

/* ============ 右侧浮动联系条 ============ */
.of-floatbar {
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%);
  z-index: 998; display: flex; flex-direction: column; gap: 10px;
}
.of-fb-item {
  display: flex; align-items: center; gap: 8px;
  width: 46px; height: 46px; border-radius: 50%;
  color: #fff; background: var(--of-primary);
  text-decoration: none; transition: width .25s, background .2s;
  overflow: hidden; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(18, 58, 95, .25);
}
.of-fb-item:hover { width: 132px; color: #fff; border-radius: 24px; }
.of-fb-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none; }
.of-fb-icon svg { width: 21px; height: 21px; }
.of-fb-label { font-size: 13px; font-weight: 700; padding-right: 14px; }
.of-fb-mail { background: var(--of-accent); }
.of-fb-tel { background: #0e7a4e; }
.of-fb-wa { background: #25d366; }

/* ============ 页脚 ============ */
.of-footer { background: var(--of-primary-dark); color: #b9cbe0; font-size: 15px; }
.of-footer .of-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; padding: 56px 0 36px; }
.of-footer h4 { color: #fff; font-size: 17px; margin-bottom: 16px; }
.of-footer a { color: #b9cbe0; }
.of-footer a:hover { color: #fff; }
.of-footer ul { list-style: none; margin: 0; padding: 0; }
.of-footer ul li { padding: 5px 0; }
.of-footer .of-footer-about p { margin-bottom: 14px; }
.of-footer .of-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.of-footer .of-footer-brand .of-logo-icon { width: 38px; height: 38px; }
.of-footer .of-footer-brand .of-logo-icon svg { width: 22px; height: 22px; }
.of-footer .of-footer-brand .of-logo-name { color: #fff; font-size: 18px; }
.of-footer .of-footer-contact li { display: flex; gap: 8px; align-items: flex-start; }
.of-footer .of-footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: 5px; color: #7db4ff; }
.of-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; text-align: center; font-size: 13.5px; }

/* ============ 博客/默认模板 ============ */
.of-post-list article { border-bottom: 1px solid var(--of-border); padding: 26px 0; }
.of-post-list article h2 { font-size: 24px; }
.of-post-meta { font-size: 13px; color: var(--of-muted); margin-bottom: 10px; }
.wp-block-image img, .entry-content img { border-radius: 8px; }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .of-topbar .of-top-right { display: none; }
  .of-topbar .container { justify-content: center; }
  .of-news-layout { grid-template-columns: 1fr 260px; }
}
@media (max-width: 1024px) {
  .of-products-grid { grid-template-columns: repeat(3, 1fr); }
  .of-footer .of-footer-grid { grid-template-columns: 1fr 1fr; }
  .of-about-hero { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 900px) {
  .of-news-layout { grid-template-columns: 1fr; }
  .of-news-side { position: static; }
  .of-cat-layout { grid-template-columns: 1fr; gap: 22px; }
  .of-cat-sidebar { position: static; padding: 14px 0; }
  .of-cat-title { padding: 0 16px 10px; }
  .of-cat-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 14px; }
  .of-cat-list li a { padding: 8px 14px; border: 1px solid var(--of-border); border-radius: 999px; border-left: 1px solid var(--of-border); font-size: 14px; }
  .of-cat-list li.active a { background: var(--of-accent); color: #fff; border-color: var(--of-accent); }
}
@media (max-width: 768px) {
  body { padding-bottom: 58px; }
  .section { padding: 50px 0; }
  .section-title h2 { font-size: 26px; }
  .of-hero { min-height: 72vh; }
  .of-hero h1 { font-size: 34px; }
  .of-hero p.of-hero-sub { font-size: 16.5px; }
  .of-topbar .of-top-right { display: none; }
  .of-topbar .container { justify-content: center; }
  /* 移动端菜单 */
  .of-burger { display: block; }
  .of-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--of-border); display: none; box-shadow: 0 12px 24px rgba(18,58,95,.08); max-height: calc(100vh - 80px); overflow-y: auto; }
  .of-nav.open { display: block; padding: 10px 20px 20px; }
  .of-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .of-nav-item > a { padding: 14px 8px; border-bottom: 1px solid var(--of-bg-soft); border-radius: 0; font-size: 16.5px; }
  .of-nav-item.has-dropdown > a { display: flex; justify-content: space-between; align-items: center; }
  .of-dropdown { display: none; position: static; box-shadow: none; border: 0; border-left: 3px solid var(--of-accent); background: var(--of-bg-soft); border-radius: 0 8px 8px 0; margin: 0 0 6px 10px; padding: 4px 0; }
  .of-nav-item.has-dropdown:hover .of-dropdown { display: none; }
  .of-nav-item.has-dropdown.open .of-dropdown { display: block; }
  .of-nav-actions { display: flex; gap: 10px; padding: 14px 8px 4px; }
  .of-search-toggle { width: 44px; height: 44px; }
  .of-quote-btn { flex: 1; }
  .of-search-panel { top: 80px; }
  .of-products-grid, .of-products-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .of-adv-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .of-about-row { grid-template-columns: 1fr; gap: 28px; }
  .of-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .of-stat .of-stat-num { font-size: 32px; }
  .of-product-detail { grid-template-columns: 1fr; gap: 24px; }
  .of-pd-trade { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .of-pd-trade-item { padding: 10px 8px; }
  .of-pd-trade-value { font-size: 13px; }
  .of-contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .of-inquiry-form { grid-template-columns: 1fr; }
  .of-inquiry-form .of-f-full, .of-inquiry-form .of-f-submit { grid-column: 1; }
  .of-footer .of-footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 44px 0 26px; }
  .of-page-header { padding: 32px 0; }
  .of-page-header h1 { font-size: 27px; }
  .of-slider { height: 220px; }
  .of-slide-title { font-size: 22px; bottom: 36px; }
  .of-history-slide { grid-template-columns: 1fr; gap: 18px; }
  .of-history-img img { height: 200px; }
  .of-history-arrow.prev { left: 8px; }
  .of-history-arrow.next { right: 8px; }
  .of-factory-grid { grid-template-columns: 1fr; gap: 14px; }
  .of-factory-item img { height: 220px; }
  .of-news-feature { grid-template-columns: 1fr; }
  .of-news-feature-img img { height: 220px; }
  .of-news-feature-body { padding: 6px 20px 22px; }
  .of-news-item { grid-template-columns: 110px 1fr; gap: 12px; }
  .of-news-item-body { padding: 12px 12px 10px 0; }
  .of-news-item-body h3 { font-size: 15.5px; }
  .of-post-nav { flex-wrap: wrap; }
  /* 浮动联系条 → 底部横条 */
  .of-floatbar { right: 0; left: 0; top: auto; bottom: 0; transform: none; flex-direction: row; gap: 0; background: var(--of-primary-dark); padding: 6px 8px; }
  .of-fb-item { width: auto; flex: 1; height: 46px; border-radius: 8px; justify-content: center; box-shadow: none; }
  .of-fb-item:hover { width: auto; border-radius: 8px; }
  .of-fb-label { padding-right: 0; font-size: 12px; }
}
@media (max-width: 480px) {
  .of-products-grid, .of-products-grid-3 { grid-template-columns: 1fr; }
  .of-adv-grid { grid-template-columns: 1fr; }
  .of-contact-cards { grid-template-columns: 1fr; }
  .of-pd-trade { grid-template-columns: 1fr; }
  .of-hero h1 { font-size: 28px; }
  .of-hero .btn { width: 100%; text-align: center; }
  .of-logo-sub { display: none; }
  .of-logo-name { font-size: 19px; }
  .of-fb-icon { width: 40px; height: 40px; }
  .of-fb-item { height: 42px; }
  .of-modal-box { padding: 26px 22px 24px; }
  .of-slider { height: 180px; }
  .of-news-item { grid-template-columns: 1fr; }
  .of-news-item-img img { height: 180px; }
  .of-news-feature-img img { height: 190px; }
  .of-history-year { font-size: 36px; }
  .of-contact-list li { gap: 12px; }
}
