/* ============================================================
   企业站前台样式 · 仿 jxgyp.com（深藏蓝 #263770 + 金色点缀）
   ============================================================ */

:root {
    --primary: #263770;
    --primary-dark: #1c2134;
    --gold: #c9a063;
    --bg-light: #f7f8f9;
    --text: #333;
    --muted: #7b7b7b;
    --border: #eee;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.7;
    font-size: 14px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.main { min-height: 60vh; }

/* ---------- 头部 ---------- */
.header { position: relative; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.06); z-index: 50; }
.header-inner { display: flex; align-items: center; height: 86px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 52px; }
.logo-text { font-size: 20px; font-weight: 700; color: var(--primary); letter-spacing: 1px; }

.nav { flex: 1; margin-left: 28px; }
.nav > ul { display: flex; }
.nav > ul > li { position: relative; }
.nav > ul > li > a {
    display: block; padding: 26px 18px; font-size: 18px; color: #1c2134;
    transition: color .2s;
}
.nav > ul > li:hover > a,
.nav > ul > li.active > a { color: var(--primary); }
.nav > ul > li.active > a { font-weight: 700; }

/* 下拉 */
.dropdown {
    display: none; position: absolute; left: 0; top: 100%;
    min-width: 560px; background: #fff; box-shadow: 0 8px 24px rgba(28,33,52,.15);
    padding: 18px 22px; border-top: 3px solid var(--gold);
    flex-wrap: wrap; gap: 8px 32px;
}
.has-sub:hover .dropdown { display: flex; }
.dd-col { min-width: 96px; }
.dd-col .dd-title {
    display: block; font-weight: 700; color: var(--primary); font-size: 14px;
    padding: 6px 0; border-bottom: 1px solid var(--border); margin-bottom: 4px;
}
.dd-col a { display: block; font-size: 13px; color: #555; padding: 3px 0; }
.dd-col a:hover { color: var(--gold); }

.header-tel { text-align: right; font-size: 13px; color: var(--muted); line-height: 1.4; }
.header-tel span { display: block; font-size: 20px; font-weight: 700; color: var(--primary); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--primary); transition: .3s; }

.mobile-nav { display: none; position: absolute; left: 0; right: 0; top: 86px; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 10px 24px rgba(0,0,0,.1); }
.mobile-nav ul { padding: 8px 16px 16px; }
.mobile-nav li > a { display: block; padding: 11px 4px; font-size: 16px; border-bottom: 1px dashed var(--border); }
.mobile-nav .m-sub { padding-left: 22px; font-size: 13px; color: #666; }

/* ---------- 首页轮播 ---------- */
.banner { position: relative; overflow: hidden; }
.banner-slider { position: relative; }
.banner-slide { display: none; }
.banner-slide.active { display: block; }
.banner-slide a { position: relative; display: block; }
.banner-slide img { width: 100%; height: 480px; object-fit: cover; }
.banner-text {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    text-align: center; color: #fff; width: 100%;
}
.banner-text h2 { font-size: 40px; letter-spacing: 4px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.banner-text p { margin-top: 12px; font-size: 18px; letter-spacing: 2px; opacity: .92; }
.banner-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.banner-dots span { width: 34px; height: 4px; background: rgba(255,255,255,.5); cursor: pointer; transition: .3s; }
.banner-dots span.active { background: var(--gold); }

/* ---------- 通用段落标题 ---------- */
.section { padding: 64px 0; }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head .en { font-size: 15px; letter-spacing: 6px; color: var(--gold); font-weight: 700; text-transform: uppercase; }
.sec-head h2 { font-size: 30px; color: var(--primary); margin-top: 4px; position: relative; display: inline-block; }
.sec-head h2::after {
    content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: -10px;
    width: 48px; height: 3px; background: var(--gold);
}
.sec-head.light .en { color: #e6c88f; }
.sec-head.light h2 { color: #fff; }

.more { text-align: center; margin-top: 36px; }
.btn-outline {
    display: inline-block; padding: 10px 34px; border: 1px solid var(--primary);
    color: var(--primary); border-radius: 30px; font-size: 14px; transition: .3s;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ---------- 公司实力 ---------- */
.strength { background: var(--primary); padding: 64px 0; }
.strength-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.strength-item { text-align: center; color: #fff; }
.strength-item .num { font-size: 42px; font-weight: 700; color: #e6c88f; }
.strength-item .label { font-size: 14px; margin-top: 6px; opacity: .85; }

/* ---------- 卡片 / 网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: .3s; }
.card:hover { box-shadow: 0 10px 28px rgba(38,55,112,.12); transform: translateY(-4px); }
.card-img { background: var(--bg-light); aspect-ratio: 1 / 1; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 14px 16px 18px; }
.card-body h3 { font-size: 15px; color: #1c2134; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-body p { font-size: 12px; color: var(--muted); margin-top: 6px; height: 40px; overflow: hidden; }

/* ---------- 产品 tab ---------- */
.tab-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.tab-nav button {
    border: 1px solid #dadada; background: #fff; color: #555; padding: 8px 22px;
    border-radius: 24px; font-size: 14px; cursor: pointer; transition: .3s;
}
.tab-nav button.active, .tab-nav button:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- 文创礼品 strip ---------- */
.gifts { background: var(--bg-light); }
.gift-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gift { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); transition: .3s; }
.gift:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.1); }
.gift img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.gift span { display: block; padding: 10px 14px; font-size: 14px; color: #1c2134; text-align: center; }

/* ---------- 案例 ---------- */
.case-card { position: relative; display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; }
.case-img { width: 100%; height: 100%; }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.case-card:hover .case-img img { transform: scale(1.08); }
.case-overlay {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 18px;
    color: #fff; background: linear-gradient(to top, rgba(28,33,52,.92), transparent);
}
.case-overlay h3 { font-size: 17px; }
.case-overlay p { font-size: 12px; opacity: .85; margin-top: 4px; }

/* ---------- 流程 ---------- */
.process { background: #fff; }
.steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.step { text-align: center; }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 50%; background: var(--primary);
    color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 12px;
}
.step p { font-size: 13px; color: #555; }

.dev { background: var(--bg-light); }
.dev-steps { display: flex; justify-content: space-between; position: relative; }
.dev-steps::before {
    content: ""; position: absolute; top: 14px; left: 4%; right: 4%; height: 2px; background: #d8dbe6;
}
.dev-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.dev-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); margin: 0 auto 10px; border: 4px solid #fff; box-shadow: 0 0 0 1px #d8dbe6; }
.dev-step p { font-size: 14px; color: var(--primary); font-weight: 600; }

/* ---------- 新闻 ---------- */
.news-list { max-width: 880px; margin: 0 auto; }
.news-item { display: flex; gap: 20px; padding: 18px 6px; border-bottom: 1px solid var(--border); transition: .2s; }
.news-item:hover { padding-left: 12px; }
.news-date { width: 74px; text-align: center; background: var(--bg-light); border-radius: 6px; padding: 10px 0; flex-shrink: 0; }
.news-date .d { display: block; font-size: 26px; font-weight: 700; color: var(--primary); line-height: 1; }
.news-date .m { font-size: 12px; color: var(--muted); }
.news-body h3 { font-size: 16px; color: #1c2134; }
.news-body p { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--primary-dark); color: #b9c0d8; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; padding: 52px 16px 40px; }
.f-name { font-size: 22px; font-weight: 700; color: #fff; }
.f-slogan { font-size: 13px; margin: 6px 0 16px; color: #8d96b5; }
.f-about p { font-size: 13px; margin: 4px 0; }
.f-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; position: relative; padding-bottom: 8px; }
.f-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; background: var(--gold); }
.f-col a { display: block; font-size: 13px; padding: 4px 0; }
.f-col a:hover { color: #fff; }
.f-qr { display: flex; flex-wrap: wrap; gap: 14px; }
.f-qr > div { text-align: center; width: 72px; }
.f-qr img { width: 72px; height: 72px; background: #fff; border-radius: 6px; padding: 5px; }
.f-qr span { font-size: 12px; display: block; margin-top: 6px; }
.copyright { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: 12px; color: #8d96b5; }
.copyright .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }

/* ---------- 内页横幅 ---------- */
.inner-banner { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 64px 0; text-align: center; color: #fff; }
.inner-banner h1 { font-size: 34px; letter-spacing: 3px; }
.inner-banner .en { font-size: 14px; letter-spacing: 5px; color: #e6c88f; margin-top: 6px; text-transform: uppercase; }
.crumb { background: var(--bg-light); border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.crumb .container { padding: 10px 16px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--primary); }
.crumb .cur { color: var(--primary); }

/* ---------- 列表页布局 ---------- */
.page-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding-top: 40px; padding-bottom: 64px; }
.page-single { padding-top: 40px; padding-bottom: 64px; }
.sidebar { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.sidebar-title { background: var(--primary); color: #fff; font-size: 16px; padding: 14px 18px; }
.side-nav { padding: 8px 0; }
.side-nav > li.top { border-bottom: 1px solid var(--border); }
.side-nav a { display: block; padding: 11px 18px; font-size: 14px; color: #555; transition: .2s; }
.side-nav > li > a { font-weight: 600; color: #1c2134; }
.side-nav li.active > a, .side-nav a:hover { color: var(--primary); }
.side-nav .sub { background: var(--bg-light); }
.side-nav .sub a { font-size: 13px; padding: 8px 18px 8px 30px; color: #777; }
.side-nav .sub li.active a { color: var(--gold); }

.page-content { min-width: 0; }

/* ---------- 详情页 ---------- */
.detail { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 32px; }
.detail-title { font-size: 24px; color: #1c2134; }
.detail-meta { display: flex; gap: 20px; font-size: 13px; color: var(--muted); padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.detail-img { margin-bottom: 24px; text-align: center; }
.detail-img img { max-width: 560px; margin: 0 auto; border-radius: 8px; }
.product-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; background: var(--bg-light); border-radius: 8px; padding: 20px 22px; margin: 20px 0 24px; }
.spec-item { display: flex; gap: 10px; font-size: 14px; line-height: 1.8; }
.spec-item .k { color: var(--muted); flex-shrink: 0; min-width: 72px; }
.spec-item .v { color: #1c2134; font-weight: 600; }

.detail-content { font-size: 15px; color: #444; line-height: 1.9; }
.detail-content p { margin-bottom: 14px; }
.detail-content img { max-width: 100%; border-radius: 6px; }
.detail-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; }
.detail-nav a { color: #555; }
.detail-nav a:hover { color: var(--primary); }
.related { margin-top: 40px; }
.related h3 { font-size: 20px; color: var(--primary); margin-bottom: 20px; padding-left: 12px; border-left: 4px solid var(--gold); }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; }
.contact-info, .contact-form { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 28px; }
.contact-info h3, .contact-form h3 { font-size: 20px; color: var(--primary); margin-bottom: 20px; padding-left: 12px; border-left: 4px solid var(--gold); }
.contact-info li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.contact-info li span { color: var(--muted); min-width: 72px; }
.contact-qr { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.contact-qr > div { text-align: center; }
.contact-qr img { width: 96px; height: 96px; background: var(--bg-light); border-radius: 6px; }
.contact-qr span { font-size: 12px; color: var(--muted); display: block; margin-top: 6px; }

.contact-form input, .contact-form textarea {
    width: 100%; border: 1px solid #dadada; border-radius: 6px; padding: 11px 14px;
    font-size: 14px; font-family: inherit; margin-bottom: 14px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.btn-primary {
    display: inline-block; background: var(--primary); color: #fff; border: 0;
    padding: 12px 34px; border-radius: 6px; font-size: 15px; cursor: pointer; transition: .3s;
}
.btn-primary:hover { background: var(--primary-dark); }

.alert { border-radius: 6px; padding: 12px 16px; font-size: 14px; margin-bottom: 16px; }
.alert.ok { background: #eaf6ec; color: #1e7b34; border: 1px solid #bfe3c6; }
.alert.err { background: #fdecec; color: #c0392b; border: 1px solid #f5c6c6; }

/* ---------- 常见问题 ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
    cursor: pointer; padding: 16px 20px; font-size: 15px; font-weight: 600; color: #1c2134;
    list-style: none; position: relative; padding-right: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    font-size: 22px; color: var(--gold); font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); color: var(--primary); }
.faq-answer { padding: 16px 20px; font-size: 14px; color: #555; line-height: 1.9; }

/* ---------- 搜索 ---------- */
.search-box { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 24px; margin-bottom: 28px; }
.search-box form { display: flex; gap: 12px; }
.search-box input { flex: 1; border: 1px solid #dadada; border-radius: 6px; padding: 12px 16px; font-size: 14px; }
.search-box input:focus { outline: none; border-color: var(--primary); }
.search-count { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.tag { display: inline-block; font-size: 11px; padding: 2px 10px; border-radius: 10px; background: var(--bg-light); color: var(--primary); margin-bottom: 6px; }

/* ---------- 分页 / 空 / 404 ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.pagination a {
    display: inline-block; min-width: 38px; height: 38px; line-height: 36px; text-align: center;
    border: 1px solid #dadada; border-radius: 6px; color: #555; font-size: 14px; padding: 0 8px;
}
.pagination a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }

.empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 15px; }

.notfound { text-align: center; padding: 60px 0; }
.notfound .code { font-size: 90px; font-weight: 700; color: var(--primary); line-height: 1; }
.notfound p { color: var(--muted); margin: 20px 0 30px; }

/* ---------- 二维码放大 ---------- */
.qr-zoom { cursor: zoom-in; }
.qr-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 1000; align-items: center; justify-content: center; cursor: zoom-out; }
.qr-overlay.show { display: flex; }
.qr-overlay-box { background: #fff; border-radius: 10px; padding: 26px 24px 20px; text-align: center; position: relative; max-width: 90vw; box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.qr-overlay-box img { width: 320px; max-width: 80vw; height: auto; border-radius: 6px; }
.qr-overlay-title { display: block; margin-top: 14px; font-size: 15px; color: #1c2134; }
.qr-overlay-close { position: absolute; top: 6px; right: 10px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: #888; padding: 4px; }
.qr-overlay-close:hover { color: #333; }

/* ---------- 返回顶部 ---------- */
.back-top {
    position: fixed; right: 24px; bottom: 60px; width: 46px; height: 46px; border-radius: 6px;
    background: var(--primary); color: #fff; border: 0; font-size: 20px; cursor: pointer;
    display: none; z-index: 40; box-shadow: 0 6px 16px rgba(38,55,112,.3);
}
.back-top.show { display: block; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .nav, .header-tel { display: none; }
    .nav-toggle { display: flex; margin-left: auto; }
    .header-inner { height: 64px; }
    .logo img { height: 40px; }
    .logo-text { font-size: 16px; }
    .mobile-nav.open { display: block; }
    .mobile-nav { top: 64px; }

    .banner-slide img { height: 320px; }
    .banner-text h2 { font-size: 26px; }
    .banner-text p { font-size: 14px; }

    .strength-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .grid-4, .gift-strip { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .page-wrap { grid-template-columns: 1fr; }
    .sidebar { margin-bottom: 8px; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .section { padding: 40px 0; }
    .sec-head h2 { font-size: 24px; }
    .strength-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .dev-steps { flex-wrap: wrap; gap: 16px; }
    .dev-steps::before { display: none; }
    .dev-step { flex: 0 0 33%; }
    .grid-3, .grid-4, .gift-strip { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .banner-slide img { height: 220px; }
    .detail { padding: 20px; }
    .detail-title { font-size: 20px; }
}
