/* ============================================================
   YP彩印刷智能制造 - 刮刮卡/可变数据印刷主题模板
   配色: 工业蓝 #14508e / 活力橙 #f5821f / 浅灰 #f5f7fa
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #26303e;
    background: #fff;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: all .3s; }
ul, li { list-style: none; }
.container { width: 92%; max-width: 1320px; margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.header {
    position: sticky; top: 0; z-index: 999;
    background: #fff; height: 76px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 4%;
    box-shadow: 0 2px 14px rgba(20,80,142,.08);
}
.logo { display: flex; align-items: center; }
.logo .mark {
    width: 46px; height: 46px; background: #14508e; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800; letter-spacing: 0; border-radius: 6px;
    position: relative; overflow: hidden;
}
.logo .mark::after {
    content: ""; position: absolute; right: -8px; bottom: -8px;
    width: 22px; height: 22px; background: #f5821f; transform: rotate(45deg);
}
.logo .name { margin-left: 12px; }
.logo .name b { display: block; font-size: 20px; color: #14508e; letter-spacing: 1px; }
.logo .name span { display: block; font-size: 11px; color: #8a94a3; letter-spacing: 2px; margin-top: 2px; }
.nav { display: flex; align-items: center; }
.nav a {
    font-size: 15px; color: #33404f; margin-left: 34px; padding: 8px 0;
    position: relative; letter-spacing: 1px; font-weight: 500;
}
.nav a::after {
    content: ""; position: absolute; left: 50%; bottom: 0;
    width: 0; height: 3px; background: #f5821f; transition: all .3s; border-radius: 2px;
}
.nav a:hover, .nav a.on { color: #14508e; }
.nav a:hover::after, .nav a.on::after { left: 0; width: 100%; }
.nav-toggle { display: none; cursor: pointer; width: 28px; }
.nav-toggle span { display: block; height: 3px; background: #14508e; margin: 6px 0; border-radius: 2px; transition: all .3s; }

/* ---------- Banner ---------- */
.banner { position: relative; }
.banner .swiper { width: 100%; }
.banner .swiper-slide img { width: 100%; height: auto; min-height: 300px; object-fit: cover; }
.banner .swiper-pagination-bullet {
    width: 30px; height: 4px; border-radius: 2px;
    background: rgba(255,255,255,.55); opacity: 1;
}
.banner .swiper-pagination-bullet-active { background: #f5821f; width: 48px; }

/* ---------- 四大能力条 ---------- */
.caps { background: #fff; position: relative; z-index: 5; }
.caps .row {
    display: grid; grid-template-columns: repeat(4, 1fr);
    margin-top: -46px; box-shadow: 0 14px 40px rgba(20,80,142,.12);
    border-radius: 10px; overflow: hidden; background: #fff;
}
.caps .cell {
    padding: 34px 28px 30px; position: relative; transition: all .4s;
    border-right: 1px solid #eef1f5;
}
.caps .cell:last-child { border-right: none; }
.caps .cell .no { font-size: 15px; font-weight: 800; color: #f5821f; font-family: Georgia, serif; }
.caps .cell h4 { font-size: 19px; color: #14508e; margin: 10px 0 4px; letter-spacing: 1px; }
.caps .cell .en { font-size: 11px; color: #a2abb8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.caps .cell p { font-size: 13px; line-height: 1.9; color: #66707e; }
.caps .cell:hover { background: #14508e; transform: translateY(-4px); }
.caps .cell:hover h4 { color: #fff; }
.caps .cell:hover p { color: rgba(255,255,255,.8); }
.caps .cell:hover .en { color: rgba(255,255,255,.45); }

/* ---------- 通用标题 ---------- */
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head h2 { font-size: 34px; color: #1d2836; letter-spacing: 3px; font-weight: 700; }
.sec-head h2 b { color: #14508e; }
.sec-head h2 em { font-style: normal; color: #f5821f; }
.sec-head .sub { font-size: 15px; color: #8a94a3; margin-top: 14px; letter-spacing: 1px; }
.sec-head .line { width: 60px; height: 4px; margin: 18px auto 0; border-radius: 2px;
    background: linear-gradient(90deg, #14508e 55%, #f5821f 55%); }
.sec-head.light h2 { color: #fff; }
.sec-head.light .sub { color: rgba(255,255,255,.6); }

/* ---------- 关于我们 ---------- */
.about { padding: 96px 0; background: #fff; }
.about .wrap { display: flex; gap: 60px; align-items: center; }
.about .lef { flex: 1.2; }
.about .lef .tag { font-size: 13px; letter-spacing: 4px; color: #f5821f; font-weight: 600; margin-bottom: 14px; }
.about .lef h2 { font-size: 32px; color: #1d2836; letter-spacing: 2px; margin-bottom: 8px; }
.about .lef h3 { font-size: 17px; color: #8a94a3; font-weight: 400; letter-spacing: 1px; margin-bottom: 26px; }
.about .lef p { font-size: 15px; line-height: 2.1; color: #4e5866; text-align: justify; margin-bottom: 14px; }
.about .rig { flex: 1; }
.about .rig .pic { border-radius: 10px; overflow: hidden; box-shadow: 0 18px 44px rgba(20,80,142,.16); }
.about .rig .pic img { width: 100%; transition: transform .6s; }
.about .rig .pic:hover img { transform: scale(1.04); }
.counters { display: flex; margin-top: 44px; border-top: 1px solid #eef1f5; padding-top: 34px; }
.counters .item { flex: 1; }
.counters .num { font-size: 36px; font-weight: 800; color: #14508e; font-family: Georgia, serif; }
.counters .num i { font-style: normal; font-size: 17px; color: #f5821f; margin-left: 2px; }
.counters .label { font-size: 13px; color: #8a94a3; margin-top: 6px; letter-spacing: 1px; }

/* ---------- 产品中心 ---------- */
.products { padding: 96px 0; background: #f5f7fa; }
.products .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.products .card {
    background: #fff; border-radius: 10px; overflow: hidden;
    transition: all .4s; border: 1px solid transparent;
}
.products .card:hover {
    transform: translateY(-8px); border-color: rgba(245,130,31,.6);
    box-shadow: 0 20px 46px rgba(20,80,142,.14);
}
.products .card .thumb { height: 250px; overflow: hidden; background: #f0f3f7; }
.products .card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.products .card:hover .thumb img { transform: scale(1.07); }
.products .card .body { padding: 24px 24px 28px; }
.products .card h3 { font-size: 19px; color: #1d2836; letter-spacing: 1px; margin-bottom: 10px; }
.products .card p { font-size: 13.5px; line-height: 1.9; color: #66707e; min-height: 52px; }
.products .card .go {
    margin-top: 16px; display: inline-flex; align-items: center;
    font-size: 13px; color: #14508e; font-weight: 600; letter-spacing: 1px;
}
.products .card .go::after { content: "→"; margin-left: 8px; transition: margin .3s; color: #f5821f; }
.products .card:hover .go::after { margin-left: 16px; }

/* ---------- 六大优势 ---------- */
.adv { padding: 96px 0; background: #fff; }
.adv .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.adv .box {
    position: relative; padding: 40px 32px 36px; border-radius: 10px;
    background: #f5f7fa; overflow: hidden; transition: all .4s;
}
.adv .box::before {
    content: attr(data-no); position: absolute; right: 18px; top: 6px;
    font-size: 74px; font-weight: 800; font-family: Georgia, serif;
    color: rgba(20,80,142,.07); line-height: 1;
}
.adv .box h4 { font-size: 20px; color: #14508e; letter-spacing: 1px; margin-bottom: 16px; position: relative; }
.adv .box h4::after {
    content: ""; display: block; width: 34px; height: 3px; background: #f5821f;
    margin-top: 12px; border-radius: 2px;
}
.adv .box p { font-size: 13.5px; line-height: 2; color: #5a6472; text-align: justify; }
.adv .box:hover { background: #14508e; transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20,80,142,.25); }
.adv .box:hover h4 { color: #fff; }
.adv .box:hover p { color: rgba(255,255,255,.82); }
.adv .box:hover::before { color: rgba(255,255,255,.08); }

/* ---------- 一物一码 ---------- */
.yiwuyima { padding: 96px 0; background: #0e3560; position: relative; overflow: hidden; }
.yiwuyima::before {
    content: ""; position: absolute; right: -140px; top: -140px;
    width: 460px; height: 460px; border-radius: 50%;
    background: radial-gradient(circle, rgba(245,130,31,.22), transparent 68%);
}
.yiwuyima .container { position: relative; z-index: 2; }
.yiwuyima .desc {
    max-width: 900px; margin: 0 auto 44px; text-align: center;
    font-size: 15px; line-height: 2.15; color: rgba(255,255,255,.78);
}
.yiwuyima .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.yiwuyima .chip {
    padding: 13px 26px; border: 1px solid rgba(255,255,255,.22); border-radius: 40px;
    color: #fff; font-size: 15px; letter-spacing: 2px; transition: all .35s;
    background: rgba(255,255,255,.05);
}
.yiwuyima .chip:hover { background: #f5821f; border-color: #f5821f; transform: translateY(-3px); }

/* ---------- 定制流程 ---------- */
.process { padding: 96px 0; background: #f5f7fa; }
.process .steps { display: flex; justify-content: space-between; position: relative; }
.process .steps::before {
    content: ""; position: absolute; left: 7%; right: 7%; top: 44px;
    border-top: 2px dashed #c8d3e0;
}
.process .step { position: relative; z-index: 2; text-align: center; flex: 1; }
.process .step .dot {
    width: 88px; height: 88px; margin: 0 auto; border-radius: 50%;
    background: #fff; border: 2px solid #14508e; color: #14508e;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: all .35s;
}
.process .step .dot b { font-size: 22px; font-family: Georgia, serif; }
.process .step .dot span { font-size: 11px; color: #8a94a3; margin-top: 2px; }
.process .step:hover .dot { background: #14508e; color: #fff; transform: scale(1.08); border-color: #14508e; }
.process .step:hover .dot span { color: rgba(255,255,255,.7); }
.process .step h5 { font-size: 17px; color: #1d2836; margin-top: 18px; letter-spacing: 1px; }
.process .step p { font-size: 12.5px; color: #8a94a3; margin-top: 8px; line-height: 1.7; }

/* ---------- 常见问题 ---------- */
.faq { padding: 96px 0; background: #fff; }
.faq .list { max-width: 920px; margin: 0 auto; }
.faq details {
    border: 1px solid #e6ebf1; border-radius: 8px; margin-bottom: 14px;
    overflow: hidden; transition: all .3s; background: #fff;
}
.faq details[open] { border-color: rgba(20,80,142,.45); box-shadow: 0 10px 28px rgba(20,80,142,.08); }
.faq summary {
    cursor: pointer; list-style: none; padding: 20px 24px;
    display: flex; align-items: center; font-size: 16px; font-weight: 600; color: #1d2836;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .no {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px; margin-right: 16px;
    background: #eef3f9; color: #14508e; font-family: Georgia, serif; font-weight: 800;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.faq details[open] summary .no { background: #f5821f; color: #fff; }
.faq summary .arr { margin-left: auto; color: #b3bcc8; transition: transform .3s; }
.faq details[open] summary .arr { transform: rotate(90deg); color: #f5821f; }
.faq .ans { padding: 0 24px 22px 74px; font-size: 14px; line-height: 2; color: #5a6472; }

/* ---------- 合作客户 ---------- */
.clients { padding: 90px 0; background: #f5f7fa; overflow: hidden; }
.clients .marquee { overflow: hidden; position: relative; }
.clients .track { display: flex; width: max-content; animation: scrollx 30s linear infinite; }
.clients .marquee:hover .track { animation-play-state: paused; }
.clients .logo-item {
    flex-shrink: 0; width: 190px; height: 110px; margin-right: 24px;
    background: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    padding: 18px; box-shadow: 0 6px 18px rgba(20,80,142,.06); transition: transform .3s;
}
.clients .logo-item:hover { transform: translateY(-4px); }
.clients .logo-item img { max-height: 100%; object-fit: contain; }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 新闻资讯 ---------- */
.news { padding: 96px 0 100px; background: #fff; }
.news .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; }
.news .item {
    display: flex; align-items: flex-start; padding: 22px 18px;
    border-bottom: 1px solid #eef1f5; border-radius: 8px; transition: all .3s;
}
.news .item:hover { background: #f5f7fa; transform: translateX(6px); }
.news .date {
    flex-shrink: 0; width: 66px; text-align: center; margin-right: 22px;
    border-right: 1px solid #e6ebf1; padding-right: 20px;
}
.news .date b { display: block; font-size: 26px; color: #14508e; font-family: Georgia, serif; }
.news .date span { font-size: 12px; color: #a2abb8; }
.news .txt h4 { font-size: 16px; color: #1d2836; line-height: 1.6; margin-bottom: 8px; transition: color .3s; }
.news .item:hover .txt h4 { color: #14508e; }
.news .txt p {
    font-size: 13px; line-height: 1.85; color: #8a94a3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 页脚 ---------- */
.footer { background: #0c2c50; color: rgba(255,255,255,.62); }
.footer .top { padding: 64px 0 46px; display: flex; justify-content: space-between; gap: 50px; flex-wrap: wrap; }
.footer .brand { max-width: 400px; }
.footer .brand .fname { font-size: 24px; color: #fff; font-weight: 700; letter-spacing: 2px; }
.footer .brand .fname em { font-style: normal; color: #f5821f; }
.footer .brand p { margin-top: 18px; font-size: 13.5px; line-height: 2.1; }
.footer .links h5, .footer .contact h5 {
    color: #fff; font-size: 16px; letter-spacing: 2px; margin-bottom: 20px;
}
.footer .links a { display: block; font-size: 13.5px; margin-bottom: 12px; color: rgba(255,255,255,.55); }
.footer .links a:hover { color: #f5821f; }
.footer .contact p { font-size: 13.5px; line-height: 2.2; }
.footer .copyright {
    border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0;
    font-size: 12.5px; text-align: center; color: rgba(255,255,255,.35); letter-spacing: 1px;
}

/* ---------- 返回顶部 ---------- */
#toTop {
    position: fixed; right: 26px; bottom: -60px; z-index: 900;
    width: 46px; height: 46px; border-radius: 8px;
    background: #14508e; color: #fff; font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: bottom .4s, background .3s; box-shadow: 0 8px 22px rgba(20,80,142,.35);
}
#toTop.show { bottom: 32px; }
#toTop:hover { background: #f5821f; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .caps .row { grid-template-columns: repeat(2, 1fr); }
    .caps .cell { border-bottom: 1px solid #eef1f5; }
    .products .grid, .adv .grid { grid-template-columns: repeat(2, 1fr); }
    .process .steps { flex-wrap: wrap; gap: 30px 0; }
    .process .step { flex: 1 1 33%; }
    .process .steps::before { display: none; }
    .news .grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .nav {
        position: fixed; top: 76px; right: -100%; width: 74%; height: calc(100vh - 76px);
        background: #fff; flex-direction: column; align-items: flex-start;
        padding: 34px 32px; transition: right .4s; box-shadow: -10px 0 30px rgba(0,0,0,.08);
    }
    .nav.open { right: 0; }
    .nav a { margin: 0 0 26px; font-size: 17px; }
    .nav-toggle { display: block; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    .about .wrap { flex-direction: column; }
    .counters { flex-wrap: wrap; }
    .counters .item { flex: 1 1 50%; margin-bottom: 22px; }
    .sec-head h2 { font-size: 26px; }
    .about, .products, .adv, .yiwuyima, .process, .faq, .clients, .news { padding: 64px 0; }
    .footer .top { flex-direction: column; gap: 36px; }
}
@media (max-width: 560px) {
    .caps .row { grid-template-columns: 1fr; margin-top: -20px; }
    .products .grid, .adv .grid { grid-template-columns: 1fr; }
    .process .step { flex: 1 1 50%; }
    .banner .swiper-slide img { min-height: 220px; }
}

/* ---------- 刮刮卡产品分类 ---------- */
.ggkzone { padding: 96px 0; background: #f5f7fa; }
.ggkzone .cats { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.ggkzone .cat {
    padding: 8px 22px; border-radius: 20px; font-size: 14px; cursor: pointer;
    background: #fff; color: #5a6472; border: 1px solid #e6ebf1; transition: all .3s;
}
.ggkzone .cat:hover { color: #14508e; border-color: rgba(20,80,142,.4); }
.ggkzone .cat.on {
    background: linear-gradient(135deg, #14508e, #1a6dc0); color: #fff; border-color: transparent;
    box-shadow: 0 6px 16px rgba(20,80,142,.3);
}
.ggkzone .wall { columns: 4 260px; column-gap: 20px; }
.ggkzone .g-item {
    break-inside: avoid; margin-bottom: 20px; border-radius: 10px; overflow: hidden;
    background: #fff; position: relative; box-shadow: 0 4px 14px rgba(20,80,142,.08);
    transition: all .4s; display: block;
}
.ggkzone .g-item.hide { display: none; }
.ggkzone .g-item:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(20,80,142,.18); }
.ggkzone .g-item img { width: 100%; display: block; transition: transform .5s; }
.ggkzone .g-item:hover img { transform: scale(1.04); }
.ggkzone .g-item .tag {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 26px 14px 12px; font-size: 13.5px; color: #fff; letter-spacing: 1px;
    background: linear-gradient(180deg, transparent, rgba(12,44,80,.85));
    display: flex; align-items: baseline; justify-content: space-between;
}
.ggkzone .g-item .tag em { font-style: normal; font-size: 11px; color: #f5b26b; }
.ggkzone .more-tip { text-align: center; margin-top: 26px; font-size: 13.5px; color: #8a94a3; letter-spacing: 1px; }
.ggkzone .more-tip b { color: #f5821f; }
@media (max-width: 820px) { .ggkzone { padding: 64px 0; } .ggkzone .wall { columns: 2 150px; column-gap: 12px; } .ggkzone .g-item { margin-bottom: 12px; } }
