/* SOK — clean front-end styles (self-written, reproduces sokelevator.com look) */

:root {
  --navy: #193569;
  --navy-dark: #0e3259;
  --red: #e81820;
  --gray: #545454;
  --gray-light: #f5f5f5;
  --footer-bg: #333333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Open Sans", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
  background: #fff;
}
a { color: var(--gray); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ===== 顶部信息条 ===== */
.topbar { background: var(--navy); color: #fff; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; }
.topbar .topbar-left { letter-spacing: .5px; }
.topbar .topbar-right span { margin-left: 18px; }

/* ===== 头部 ===== */
.site-header { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo img { height: 52px; }
.main-nav { display: flex; list-style: none; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: block; padding: 0 22px; line-height: 80px;
  font-size: 16px; font-weight: 700; color: var(--gray); white-space: nowrap;
}
.main-nav > li > a:hover, .main-nav > li > a.active { color: var(--navy); }
.main-nav > li.has-sub > a::after { content: "\25BE"; margin-left: 4px; font-size: 12px; }

/* 下拉 */
.main-nav ul.sub { position: absolute; top: 80px; left: 0; min-width: 220px; background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.12); border-top: 3px solid var(--navy); display: none; z-index: 200; }
.main-nav li:hover > ul.sub { display: block; }
.main-nav ul.sub li a { display: block; padding: 12px 20px; font-size: 15px; color: #333; }
.main-nav ul.sub li a:hover { background: #f8f9fa; color: var(--navy); }

/* 移动端菜单按钮 */
.nav-toggle { display: none; font-size: 26px; cursor: pointer; color: var(--navy); }

/* ===== 轮播 Hero ===== */
.hero { position: relative; overflow: hidden; }
.hero .slide { display: none; }
.hero .slide.active { display: block; }
.hero .slide img { width: 100%; height: 440px; object-fit: cover; }
.hero .hero-overlay {
  position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,50,89,.75), rgba(14,50,89,.25));
  display: flex; align-items: center;
}
.hero .hero-text { color: #fff; max-width: 640px; }
.hero .hero-text h1 { font-size: 40px; line-height: 1.25; margin-bottom: 16px; font-weight: 700; }
.hero .hero-text p { font-size: 17px; margin-bottom: 24px; opacity: .95; }
.hero .btn { display: inline-block; padding: 12px 30px; background: var(--red); color: #fff; font-weight: 700; border-radius: 2px; }
.hero .btn:hover { background: #c50f17; color: #fff; }
.hero .dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); }
.hero .dots i { display: inline-block; width: 10px; height: 10px; margin: 0 5px; background: rgba(255,255,255,.5); border-radius: 50%; cursor: pointer; }
.hero .dots i.active { background: #fff; }

/* ===== 通用区块 ===== */
.section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 42px; }
.section-title h2 { font-size: 32px; color: var(--navy); font-weight: 700; }
.section-title .sub { color: var(--red); font-weight: 700; margin-top: 4px; letter-spacing: 1px; }
.section-title p.desc { max-width: 760px; margin: 14px auto 0; }

/* ===== 产品分类卡片 ===== */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat-card { background: #fff; border: 1px solid #eee; text-align: center; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.cat-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,.1); transform: translateY(-4px); }
.cat-card img { width: 100%; height: 200px; object-fit: cover; }
.cat-card .cat-name { padding: 16px 8px; font-size: 17px; font-weight: 700; color: var(--navy); }

/* ===== 产品列表 ===== */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.prod-card { background: #fff; border: 1px solid #eee; transition: box-shadow .25s; }
.prod-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.prod-card img { width: 100%; height: 220px; object-fit: contain; padding: 12px; background: #fafafa; }
.prod-card .prod-name { padding: 14px; font-size: 15px; color: var(--gray); text-align: center; line-height: 1.4; }

/* ===== 关于 ===== */
.about { background: var(--gray-light); }
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img img { width: 100%; height: 380px; object-fit: cover; }
.about-text h2 { font-size: 30px; color: var(--navy); margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; text-align: justify; }
.about-text .btn { margin-top: 8px; }

/* ===== 页脚 ===== */
.site-footer { background: var(--footer-bg); color: #ccc; padding: 50px 0 0; }
.site-footer .foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 34px; }
.site-footer h4 { color: #fff; font-size: 17px; margin-bottom: 18px; font-weight: 700; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul li a { color: #ccc; font-size: 14px; }
.site-footer ul li a:hover { color: #fff; }
.site-footer .contact li { margin-bottom: 12px; }
.copyright { border-top: 1px solid #444; padding: 18px 0; text-align: center; font-size: 13px; color: #999; }

/* ===== 内页 ===== */
.page-banner { background-color: var(--navy); color: #fff; padding: 60px 0; }
.page-banner h1 { font-size: 32px; font-weight: 700; }
.page-content { padding-top: 48px; }
.sok-page h2 { font-size: 26px; color: var(--navy); margin: 0 0 18px; }
.sok-page h3 { font-size: 20px; color: var(--navy); margin: 22px 0 12px; }
.sok-page h4 { font-size: 17px; color: var(--gray); margin: 16px 0 8px; }
.sok-page p { margin-bottom: 14px; text-align: justify; }
.sok-page .content-img { margin: 18px auto; max-width: 100%; height: auto; border: 1px solid #eee; }
.sok-page ul, .sok-page ol { margin: 0 0 16px 22px; }
.sok-page li { margin-bottom: 6px; }

/* ===== 分类页 (product_category) ===== */
.cat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.cat-sidebar { position: sticky; top: 90px; }
.cat-tree { background: #fff; border: 1px solid #e5e5e5; }
.cat-tree-head { background: var(--navy); color: #fff; font-size: 17px; font-weight: 700; padding: 14px 18px; }
.cat-tree-list { list-style: none; }
.cat-tree-list .cat-item { display: block; padding: 11px 18px; color: #333; font-size: 14px; border-bottom: 1px solid #f0f0f0; position: relative; }
.cat-tree-list .cat-item:hover { color: var(--navy); background: #fafafa; }
.cat-tree-list .cat-item.current { color: var(--navy); background: #eef2f8; font-weight: 700; }
.cat-tree-list .cat-item .arrow { float: right; font-size: 11px; color: #999; }
.cat-tree-list .cat-sub { list-style: none; background: #fbfbfb; }
.cat-tree-list .cat-sub .cat-item { padding-left: 34px; font-size: 13px; }
.cat-tree-list .cat-sub .cat-item::before { content: "\2022"; margin-right: 6px; color: #bbb; }
.contact-box { margin-top: 20px; background: linear-gradient(rgba(14,50,89,.82), rgba(14,50,89,.82)); background-size: cover; color: #fff; }
.contact-box-head { font-size: 17px; font-weight: 700; padding: 16px 18px 8px; }
.contact-box ul { list-style: none; padding: 0 18px 18px; font-size: 13px; line-height: 1.9; }

.cat-main { min-width: 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { background: #fff; border: 1px solid #e8e8e8; transition: box-shadow .2s; }
.product-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.product-thumb { position: relative; background: linear-gradient(180deg, #e8f2fb, #dbeafe); }
.product-thumb img { width: 100%; height: 200px; object-fit: contain; padding: 10px; }
.badge-new { position: absolute; top: 8px; right: 8px; background: #27a745; color: #fff; font-size: 11px; padding: 2px 7px; }
.product-name { padding: 12px 12px 10px; font-size: 13.5px; color: #222; text-align: center; line-height: 1.45; }
.product-name a { color: #222; }
.product-name a:hover { color: var(--navy); }
.product-actions { display: flex; align-items: center; background: #f2f2f2; border-top: 1px solid #e5e5e5; }
.product-actions .inquire { flex: 1; text-align: center; color: #555; font-size: 13px; padding: 8px 0; }
.product-actions .inquire:hover { color: var(--navy); }
.product-actions .divider { width: 1px; height: 16px; background: #ddd; }
.product-actions .cart { width: 48px; text-align: center; color: #555; font-size: 15px; }
.product-actions .cart:hover { color: var(--navy); }
.pagination { margin-top: 28px; text-align: center; }
.pagination ul { display: inline-flex; gap: 6px; list-style: none; }
.pagination .page-numbers { display: inline-block; min-width: 34px; line-height: 34px; text-align: center; border: 1px solid #ddd; color: #666; background: #fff; }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.no-products { padding: 40px; text-align: center; color: #999; }

/* ===== 首页 ===== */
.home-hero { position: relative; height: 560px; background-size: cover; background-position: center; }
.home-hero .hero-inner { position: absolute; inset: 0; background: rgba(14,50,89,.25); }
.float-toolbar { position: fixed; right: 0; top: 45%; transform: translateY(-50%); z-index: 500; display: flex; flex-direction: column; }
.float-toolbar a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--navy); color: #fff; font-size: 19px; margin-bottom: 2px; }
.float-toolbar a:hover { background: #0e5a9a; }

.home-profile { padding: 56px 0; }
.home-profile .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.hp-imgs .hp-main { width: 100%; height: 300px; object-fit: cover; }
.hp-factory-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.hp-factory-row img { width: 100%; height: 110px; object-fit: cover; }
.hp-right h2 { font-size: 28px; color: #1a1a1a; margin-bottom: 20px; line-height: 1.3; }
.hp-right p { margin-bottom: 16px; text-align: justify; }
.hp-right .btn-navy { display: inline-block; padding: 12px 30px; background: var(--navy); color: #fff; font-weight: 700; margin-top: 8px; }

.home-cta { background-size: cover; background-position: center; position: relative; padding: 90px 0; }
.home-cta .overlay { position: absolute; inset: 0; background: rgba(10,20,30,.7); }
.home-cta .inner { position: relative; text-align: center; color: #fff; max-width: 820px; margin: 0 auto; }
.home-cta .inner h2 { font-size: 26px; line-height: 1.5; margin-bottom: 26px; font-weight: 400; }
.home-cta .btn-orange { display: inline-block; padding: 13px 34px; background: #f58220; color: #fff; font-weight: 700; }
.home-cta .btn-orange:hover { background: #dd6a0e; color: #fff; }

.home-team { padding: 56px 0; background: #fafafa; }
.home-team .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.home-team h2 { font-size: 28px; color: var(--navy); margin-bottom: 18px; }
.home-team p { margin-bottom: 14px; text-align: justify; }
.home-team img { width: 100%; height: 320px; object-fit: cover; }

/* ===== Products 页 ===== */
.prod-banner { height: 380px; background-size: cover; background-position: center; position: relative; }
.prod-banner .dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); }
.prod-banner .dots i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); margin: 0 4px; }
.prod-banner .dots i.active { background: #fff; }
.sec { padding: 52px 0; }
.sec-title { font-size: 28px; color: var(--navy); margin-bottom: 30px; }
.prod-page-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod-page-grid .pcard { border: 1px solid #e8e8e8; background: #fff; text-align: center; }
.prod-page-grid .pcard img { width: 100%; height: 200px; object-fit: contain; padding: 12px; background: #fafafa; }
.prod-page-grid .pname { padding: 12px 10px; font-size: 13px; color: #555; line-height: 1.4; }
.readmore-row { text-align: center; margin-top: 34px; }
.readmore-row .btn-navy { display: inline-block; padding: 11px 34px; background: var(--navy); color: #fff; font-weight: 700; }

.svc-banner { background-size: cover; background-position: center; position: relative; padding: 70px 0; }
.svc-banner .overlay { position: absolute; inset: 0; background: rgba(10,25,45,.65); }
.svc-banner .inner { position: relative; }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.svc-box { background: rgba(255,255,255,.92); padding: 24px; }
.svc-box h3 { color: var(--navy); font-size: 18px; margin-bottom: 10px; }
.svc-box p { font-size: 13px; color: #555; }
.news-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { border: 1px solid #e8e8e8; background: #fff; }
.news-card img { width: 100%; height: 170px; object-fit: cover; }
.news-card .nc-body { padding: 14px; }
.news-card .nc-body h4 { font-size: 14px; color: #222; margin-bottom: 8px; line-height: 1.4; }
.news-card .nc-date { font-size: 12px; color: #999; }

/* ===== About/News 列表页 ===== */
.news-list { padding: 50px 0; }
.news-item { display: grid; grid-template-columns: 130px 200px 1fr; gap: 26px; padding: 24px 0; border-bottom: 1px solid #eee; align-items: center; }
.news-date { text-align: center; }
.news-date .y { font-size: 30px; color: var(--navy); font-weight: 700; line-height: 1; }
.news-date .d-label { font-size: 11px; color: #999; letter-spacing: 2px; margin: 4px 0; }
.news-date .md { font-size: 22px; color: #333; font-weight: 700; }
.news-item img { width: 100%; height: 130px; object-fit: cover; }
.news-item .ni-title { font-size: 16px; color: #222; margin-bottom: 8px; line-height: 1.4; }
.news-item .ni-summary { font-size: 13px; color: #777; margin-bottom: 12px; }
.news-item .ni-more { display: inline-block; border: 1px solid var(--navy); color: var(--navy); padding: 6px 16px; font-size: 13px; }
.news-item.alt { background: var(--navy); color: #fff; }
.news-item.alt .ni-title, .news-item.alt .ni-summary { color: #fff; }
.news-item.alt .y, .news-item.alt .md { color: #fff; }

/* ===== Contact 页 ===== */
.contact-title { text-align: center; padding: 50px 0 20px; }
.contact-title h1 { font-size: 34px; color: #1a1a1a; }
.contact-title p { color: #888; margin-top: 10px; }
.contact-info-block { background: #f5f5f5; padding: 40px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.contact-info-block img { width: 100%; height: 300px; object-fit: cover; }
.ci-list { list-style: none; }
.ci-list li { display: flex; align-items: flex-start; margin-bottom: 16px; font-size: 14px; color: #444; }
.ci-list li b { color: #222; min-width: 80px; }
.ci-qr { display: flex; gap: 12px; margin-top: 18px; }
.ci-qr img { width: 90px; height: 90px; }
.form-section { padding: 50px 0; }
.form-section h2 { text-align: center; font-size: 28px; color: #1a1a1a; margin-bottom: 6px; }
.form-section .divider { width: 50px; height: 2px; background: var(--navy); margin: 0 auto 30px; }
.cform { max-width: 760px; margin: 0 auto; }
.cform .f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cform input, .cform textarea { width: 100%; padding: 12px 14px; border: 1px solid #ccc; font-size: 14px; box-sizing: border-box; }
.cform .f-field { margin-bottom: 18px; }
.cform label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; }
.cform label em { color: #e22; font-style: normal; }
.cform textarea { height: 120px; }
.cform .captcha { display: flex; align-items: center; gap: 14px; }
.cform .captcha img { height: 40px; }
.cform .submit-row { text-align: center; }
.cform .f-submit { display: inline-block; background: var(--navy); color: #fff; border: none; padding: 13px 46px; font-size: 16px; font-weight: 700; cursor: pointer; }

/* ===== 产品详情页 ===== */
.crumbs { font-size: 13px; color: #bcd; margin-top: 8px; }
.crumbs a { color: #bcd; }
.product-detail { padding-top: 36px; }
.pd-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.pd-main img { width: 100%; height: 380px; object-fit: contain; border: 1px solid #eee; }
.pd-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 12px; }
.pd-thumbs img { width: 100%; height: 70px; object-fit: cover; border: 1px solid #eee; cursor: pointer; }
.pd-thumbs img.active { border: 1px solid #e22; }
.pd-title { font-size: 20px; color: #111; margin-bottom: 16px; }
.pd-specs { list-style: none; margin-bottom: 18px; }
.pd-specs li { font-size: 14px; color: #555; padding: 5px 0; border-bottom: 1px dashed #eee; }
.pd-actions { display: flex; gap: 12px; }
.btn-inquire { display: inline-block; border: 1px solid var(--navy); color: var(--navy); padding: 10px 24px; font-size: 14px; }
.btn-inquire:hover { background: var(--navy); color: #fff; }
.pd-desc { margin-top: 44px; }
.pd-desc h3 { font-size: 20px; color: #111; margin-bottom: 16px; }
.pd-desc-body { font-size: 14px; color: #555; line-height: 1.8; }
.pd-desc-body p { margin-bottom: 14px; }
.pd-desc-body img { max-width: 100%; margin: 14px 0; }
.pd-desc-body h2, .pd-desc-body h3, .pd-desc-body h4 { color: #222; margin: 18px 0 10px; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .cat-grid, .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .about .container { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 80px; left: 0; right: 0; background: #fff;
    flex-direction: column; display: none; box-shadow: 0 10px 20px rgba(0,0,0,.1);
  }
  .main-nav.open { display: flex; }
  .main-nav > li > a { line-height: 50px; border-bottom: 1px solid #f2f2f2; }
  .main-nav ul.sub { position: static; box-shadow: none; border: none; }
  .hero .hero-text h1 { font-size: 28px; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-layout { grid-template-columns: 1fr; }
  .cat-sidebar { position: static; }
  .home-profile .container, .home-team .container { grid-template-columns: 1fr; }
  .contact-info-block { grid-template-columns: 1fr; }
  .prod-page-grid { grid-template-columns: repeat(2, 1fr); }
  .news-cards { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 90px 1fr; }
}
@media (max-width: 560px) {
  .cat-grid, .prod-grid { grid-template-columns: 1fr; }
  .topbar .topbar-left { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .hp-factory-row { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .cform .f-row { grid-template-columns: 1fr; }
  .prod-page-grid { grid-template-columns: 1fr; }
}