/* ============================================================
   常熟晟阳包装材料有限公司 - 全站共享样式
   主题色：#1a4fa8 (企业蓝)
   ============================================================ */

:root {
    --primary: #1a4fa8;
    --primary-dark: #1640a0;
    --primary-light: #e8f0fb;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --border: #e2e8f4;
    --bg-soft: #f5f8fd;
    --max-width: 1200px;
}

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

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ============ 顶部条 ============ */
.top-bar { background: #f5f5f5; border-bottom: 1px solid #e8e8e8; padding: 6px 0; }
.top-bar .container { display: flex; justify-content: flex-end; }
.lang-switch { font-size: 12px; color: #999; border: 1px solid #ddd; padding: 2px 10px; border-radius: 3px; transition: .2s; }
.lang-switch:hover { color: var(--primary); border-color: var(--primary); }

/* ============ 主导航 ============ */
.header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }

.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-img { width: 58px; height: 58px; object-fit: contain; border-radius: 8px; }
.logo-text { display: flex; flex-direction: column; }
.logo-text .name-cn { font-size: 18px; font-weight: 700; color: var(--primary); line-height: 1.3; }
.logo-text .name-en { font-size: 9px; color: var(--text-muted); letter-spacing: .5px; }

.nav { display: flex; align-items: center; }
.nav-item { position: relative; }
.nav-item > a {
    display: flex; align-items: center; padding: 30px 16px; font-size: 14px; color: var(--text);
    transition: color .25s; white-space: nowrap; font-weight: 500;
}
.nav-item > a:hover, .nav-item.active > a { color: var(--primary); }
.nav-item.active > a { box-shadow: inset 0 -3px 0 var(--primary); }
.nav-item .arrow { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 4px solid currentColor; margin-left: 5px; margin-top: 2px; }

.sub-nav {
    display: none; position: absolute; top: 100%; left: 0; background: #fff;
    border: 1px solid #e8e8e8; box-shadow: 0 4px 16px rgba(0,0,0,.1); min-width: 190px; z-index: 200;
}
.nav-item:hover .sub-nav { display: block; }
.sub-nav a { display: block; padding: 11px 20px; font-size: 13px; color: #555; border-bottom: 1px solid #f0f0f0; transition: .2s; }
.sub-nav a:last-child { border-bottom: none; }
.sub-nav a:hover { background: var(--primary-light); color: var(--primary); }

/* ============ Banner ============ */
.banner { width: 100%; height: 360px; overflow: hidden; position: relative; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,79,168,.62), rgba(0,0,0,.32));
    display: flex; flex-direction: column; align-items: center; justify-content: center; }
.banner-title { font-size: 42px; font-weight: 700; color: #fff; letter-spacing: 4px; }
.banner-sub { font-size: 15px; color: rgba(255,255,255,.85); letter-spacing: 3px; margin-top: 8px; }

/* ============ 面包屑 ============ */
.breadcrumb { background: #f8f8f8; padding: 11px 0; border-bottom: 1px solid #eee; font-size: 13px; color: #999; }
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: var(--primary); }

/* ============ 页面布局（侧栏+主区） ============ */
.page-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 44px; max-width: var(--max-width); margin: 0 auto; padding: 50px 20px; }
.page-sidebar { align-self: start; position: sticky; top: 100px; }
.sidebar-title { font-size: 17px; font-weight: 700; color: #fff; background: var(--primary); padding: 14px 18px; border-radius: 6px 6px 0 0; }
.sidebar-nav { border: 1px solid var(--border); border-top: none; border-radius: 0 0 6px 6px; overflow: hidden; }
.sidebar-nav a { display: block; padding: 13px 18px; font-size: 14px; color: #555; border-bottom: 1px solid #f0f3f8; transition: .2s; }
.sidebar-nav a:last-child { border-bottom: none; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--primary-light); color: var(--primary); padding-left: 24px; }

.page-main { min-width: 0; }
.page-main h2.sec-h { font-size: 26px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.page-main .sec-en { font-size: 13px; color: #aaa; letter-spacing: 1px; margin-bottom: 26px; }
.page-main p { font-size: 15px; color: #555; line-height: 1.9; margin-bottom: 16px; }
.page-main h3.block-h { font-size: 19px; font-weight: 600; color: var(--text); margin: 30px 0 14px; padding-left: 12px; border-left: 4px solid var(--primary); }

/* ============ 首页 Hero ============ */
.hero { position: relative; height: 520px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero-mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,30,70,.82) 0%, rgba(10,30,70,.35) 60%, rgba(10,30,70,0) 100%); }
.hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.hero-content h1 { font-size: 46px; color: #fff; font-weight: 700; letter-spacing: 2px; margin-bottom: 14px; }
.hero-content p { font-size: 18px; color: rgba(255,255,255,.9); max-width: 620px; line-height: 1.8; }
.hero-btns { margin-top: 30px; display: flex; gap: 16px; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 13px 32px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 600; border-radius: 6px; transition: .3s; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,79,168,.35); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 13px 32px; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.5); font-size: 15px; font-weight: 500; border-radius: 6px; transition: .3s; }
.btn-ghost:hover { background: rgba(255,255,255,.22); }

/* 首页区块通用 */
.section { padding: 70px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head h2 { font-size: 32px; font-weight: 700; color: var(--text); }
.section-head h2 .accent { color: var(--primary); }
.section-head .en { font-size: 14px; color: #aaa; letter-spacing: 2px; margin-top: 6px; }
.section-head .line { width: 60px; height: 3px; background: var(--primary); margin: 16px auto 0; border-radius: 2px; }

/* 数据指标 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 32px 20px; text-align: center; transition: .3s; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(26,79,168,.12); }
.stat-num { font-size: 40px; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-num .unit { font-size: 18px; margin-left: 2px; }
.stat-label { font-size: 14px; color: var(--text-light); margin-top: 10px; }

/* 产品分类网格 */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cat-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: .3s; }
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(26,79,168,.15); }
.cat-card .cat-img { height: 180px; overflow: hidden; }
.cat-card .cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-card:hover .cat-img img { transform: scale(1.08); }
.cat-card .cat-body { padding: 22px; }
.cat-card .cat-body h3 { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.cat-card .cat-body p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px; }
.cat-card .cat-more { font-size: 13px; color: var(--primary); font-weight: 500; }
.cat-card:hover .cat-more { text-decoration: underline; }

/* 优势特性 */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { text-align: center; padding: 30px 20px; background: #fff; border-radius: 12px; border: 1px solid var(--border); transition: .3s; }
.feature-card:hover { background: var(--primary); color: #fff; }
.feature-card .f-icon { width: 60px; height: 60px; margin: 0 auto 18px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: .3s; }
.feature-card:hover .f-icon { background: rgba(255,255,255,.18); }
.feature-card .f-icon svg { width: 30px; height: 30px; fill: var(--primary); transition: .3s; }
.feature-card:hover .f-icon svg { fill: #fff; }
.feature-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.feature-card p { font-size: 13px; color: var(--text-light); line-height: 1.7; }
.feature-card:hover p { color: rgba(255,255,255,.9); }

/* 首页新闻预览 */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: .3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.news-card .news-img { height: 170px; overflow: hidden; }
.news-card .news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-img img { transform: scale(1.07); }
.news-card .news-body { padding: 20px; }
.news-card .news-date { font-size: 12px; color: var(--text-muted); }
.news-card .news-body h3 { font-size: 16px; font-weight: 600; color: var(--text); margin: 8px 0 10px; line-height: 1.5; }
.news-card .news-body p { font-size: 13px; color: var(--text-light); line-height: 1.7; }
.news-card .news-body .news-more { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--primary); }
.news-card:hover .news-more { text-decoration: underline; }

/* 内页产品网格（列表式） */
.pro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pro-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: .3s; }
.pro-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(26,79,168,.14); }
.pro-card .pro-img { height: 200px; overflow: hidden; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; }
.pro-card .pro-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pro-card:hover .pro-img img { transform: scale(1.06); }
.pro-card .pro-body { padding: 20px; }
.pro-card .pro-body h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.pro-card .pro-body p { font-size: 13px; color: var(--text-light); line-height: 1.7; }
.pro-tag { display: inline-block; font-size: 12px; color: var(--primary); background: var(--primary-light); padding: 3px 10px; border-radius: 4px; margin-bottom: 10px; }

/* 图文混排（公司简介等） */
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin: 36px 0; }
.media-row.reverse { direction: rtl; }
.media-row.reverse > * { direction: ltr; }
.media-row img { width: 100%; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.media-row .media-text h3 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.media-row .media-text p { font-size: 15px; color: var(--text-light); line-height: 1.9; }

/* 时间轴 */
.timeline { margin: 30px 0; padding-left: 26px; border-left: 2px solid var(--primary-light); }
.timeline-item { position: relative; padding: 0 0 30px 24px; }
.timeline-item::before { content: ''; position: absolute; left: -33px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--primary); }
.timeline-item .year { font-size: 16px; font-weight: 700; color: var(--primary); }
.timeline-item p { font-size: 14px; color: var(--text-light); margin-top: 6px; }

/* 荣誉/厂区 图片墙 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery .g-item { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; transition: .3s; }
.gallery .g-item:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.1); }
.gallery .g-item img { width: 100%; height: 220px; object-fit: cover; }
.gallery .g-item .g-cap { padding: 14px 16px; font-size: 14px; color: var(--text); font-weight: 500; }

/* 新闻列表（列表式） */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-list-item { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid #eee; }
.news-list-item:last-child { border-bottom: none; }
.news-list-item .nl-img { width: 200px; height: 130px; border-radius: 8px; overflow: hidden; }
.news-list-item .nl-img img { width: 100%; height: 100%; object-fit: cover; }
.news-list-item .nl-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.news-list-item .nl-meta .tag { color: var(--primary); margin-right: 10px; }
.news-list-item h3 { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 8px; transition: .2s; }
.news-list-item:hover h3 { color: var(--primary); }
.news-list-item p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* 服务支持页特殊区块 */
.service-block { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 36px; margin-bottom: 30px; }
.service-block h3 { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 14px; }
.service-block p { font-size: 15px; color: #555; line-height: 1.9; }
.hotline-box { background: linear-gradient(135deg, var(--primary), #2a63c8); color: #fff; border-radius: 12px; padding: 40px; text-align: center; }
.hotline-box h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.hotline-box .phone { font-size: 34px; font-weight: 800; letter-spacing: 2px; }
.hotline-box p { color: rgba(255,255,255,.85); margin-top: 10px; font-size: 14px; }

/* 数字名片 */
.card-wrap { max-width: 720px; margin: 50px auto; padding: 0 20px; }
.digital-card { background: linear-gradient(135deg, #1a4fa8, #2a63c8); border-radius: 18px; padding: 40px; color: #fff; box-shadow: 0 16px 40px rgba(26,79,168,.3); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.digital-card .dc-info h2 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.digital-card .dc-info .dc-en { font-size: 11px; color: rgba(255,255,255,.7); letter-spacing: 1px; margin-bottom: 22px; }
.dc-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.dc-row svg { width: 18px; height: 18px; fill: #fff; flex-shrink: 0; }
.dc-qr { width: 130px; height: 130px; background: #fff; border-radius: 12px; padding: 10px; }
.dc-qr img { width: 100%; height: 100%; object-fit: contain; }

/* CTA 横幅 */
.cta-band { background: var(--primary); color: #fff; padding: 50px 0; text-align: center; }
.cta-band h2 { font-size: 28px; font-weight: 700; margin-bottom: 14px; }
.cta-band p { font-size: 16px; color: rgba(255,255,255,.85); margin-bottom: 26px; }
.cta-band .btn-ghost { border-color: #fff; }

/* ============ 公司信息底部蓝条 ============ */
.company-bar { background: var(--primary); color: #fff; padding: 30px 0; }
.company-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.company-bar .cb-info h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.company-bar .cb-info p { font-size: 13px; color: rgba(255,255,255,.78); line-height: 1.9; }
.company-bar .cb-info a { color: rgba(255,255,255,.92); }
.company-bar .cb-info a:hover { color: #fff; text-decoration: underline; }
.digital-card-btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 22px; font-size: 13px; font-weight: 500; color: var(--primary); background: #fff; border-radius: 6px; transition: .3s; }
.digital-card-btn:hover { background: #f0f6ff; transform: translateY(-1px); }

/* ============ Footer ============ */
.footer { background: #2a2e35; color: #aaa; padding: 40px 0 26px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.footer-links a { color: #bbb; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-links .sep { color: #555; }
.footer-copy { text-align: center; font-size: 12px; color: #888; line-height: 1.9; }
.footer-copy a { color: #888; }
.footer-copy a:hover { color: #fff; }

/* ============ 响应式 ============ */
@media (max-width: 980px) {
    .header .container { flex-direction: column; height: auto; padding: 12px 20px; gap: 8px; }
    .nav { flex-wrap: wrap; justify-content: center; }
    .nav-item > a { padding: 10px 12px; }
    .sub-nav { position: static; box-shadow: none; border: none; background: #f5f8fd; }
    .cat-grid, .pro-grid, .news-grid, .gallery, .feature-grid, .stats { grid-template-columns: repeat(2, 1fr); }
    .page-wrap { grid-template-columns: 1fr; }
    .page-sidebar { position: static; }
    .media-row, .media-row.reverse { grid-template-columns: 1fr; direction: ltr; }
    .digital-card { grid-template-columns: 1fr; text-align: center; }
    .dc-row { justify-content: center; }
    .news-list-item { grid-template-columns: 1fr; }
    .news-list-item .nl-img { width: 100%; height: 180px; }
    .hero-content h1 { font-size: 34px; }
    .banner { height: 240px; }
    .banner-title { font-size: 30px; }
}
@media (max-width: 560px) {
    .cat-grid, .pro-grid, .news-grid, .gallery, .feature-grid, .stats { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 28px; }
    .hero-btns { flex-direction: column; }
    .section-head h2 { font-size: 26px; }
}
