@charset "utf-8";
/* ==========================================================
   亮仓 LightWMS 官网样式
   配色：柯瑞德蓝 #006598 + 活力橙 #FF9933（马卡龙降饱和体系）
   ========================================================== */

:root {
    /* 品牌主色 */
    --brand: #006598;
    --brand-d: #004B72;
    --brand-l: #2A9FD9;

    /* 品牌辅色 */
    --orange: #F59331;
    --orange-d: #D97818;

    /* 马卡龙色阶 */
    --blue-50: #F0F7FB;
    --blue-100: #D9E8F0;
    --blue-200: #ADCEDE;
    --blue-300: #73AAC6;
    --orange-50: #FFF6ED;
    --orange-100: #FFE9D6;
    --orange-200: #FFD5B0;
    --purple: #B49AD6;
    --purple-bg: #F3EEFA;
    --mint: #7FC7B8;
    --mint-bg: #EBF7F4;
    --cream: #EFC177;
    --pink: #EDA3AC;

    /* 中性色 */
    --ink: #2C3E50;
    --ink-2: #5A6B7F;
    --ink-3: #8A99AB;
    --line: #E4EBF2;
    --bg: #F7F9FC;
    --card: #FFFFFF;

    --radius: 8px;
    --shadow: 0 2px 12px rgba(0, 80, 130, .06);
    --shadow-lg: 0 6px 28px rgba(0, 80, 130, .12);
    --maxw: 1200px;
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink);
    background: var(--bg);
}

a { color: var(--brand); text-decoration: none; transition: color .18s; }
a:hover { color: var(--orange-d); }
img { max-width: 100%; height: auto; border: 0; display: block; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
table { border-collapse: collapse; width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ==================== 顶部导航 ==================== */
.topbar {
    background: var(--brand-d);
    color: #B8D8EC;
    font-size: 13px;
}
.topbar .wrap {
    display: flex; align-items: center; justify-content: space-between;
    height: 34px; flex-wrap: wrap; gap: 8px;
}
.topbar a { color: #B8D8EC; }
.topbar a:hover { color: #fff; }
.topbar .tb-left span { margin-right: 18px; white-space: nowrap; }
.topbar .tb-right span { margin-left: 18px; }

.site-head {
    background: #fff;
    box-shadow: 0 1px 0 var(--line);
    position: relative;
    z-index: 100;
}
.site-head .wrap {
    display: flex; align-items: center; justify-content: space-between;
    height: 76px; gap: 20px;
}
.logo img { height: 44px; width: auto; }
.logo-text b { display: block; font-size: 20px; color: var(--brand-d); letter-spacing: .5px; }
.logo-text span { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: .8px; }

.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.main-nav > li { position: relative; }
.main-nav > li > a {
    display: block; padding: 0 16px; height: 76px; line-height: 76px;
    font-size: 15px; color: var(--ink); font-weight: 500;
    border-bottom: 3px solid transparent;
}
.main-nav > li > a:hover { color: var(--brand); background: var(--blue-50); }
.main-nav > li.active > a,
.main-nav > li.current > a {
    color: var(--brand); border-bottom-color: var(--orange);
}
.main-nav .sub {
    position: absolute; top: 100%; left: 0; min-width: 168px;
    background: #fff; box-shadow: var(--shadow-lg); border-radius: 0 0 var(--radius) var(--radius);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: all .2s; z-index: 50;
}
.main-nav > li:hover > .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub a {
    display: block; padding: 9px 16px; font-size: 14px; color: var(--ink-2);
    border-left: 3px solid transparent;
}
.main-nav .sub a:hover {
    color: var(--brand); background: var(--blue-50); border-left-color: var(--orange);
}

.btn-search {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
    background: #fff; cursor: pointer; color: var(--ink-2); font-size: 16px;
}
.btn-search:hover { border-color: var(--orange); color: var(--orange-d); }

.cta-btn {
    display: inline-block; padding: 0 20px; height: 40px; line-height: 40px;
    background: var(--orange); color: #fff; border-radius: 20px;
    font-size: 14.5px; font-weight: 600;
}
.cta-btn:hover { background: var(--orange-d); color: #fff; }

/* 移动端菜单开关 */
.nav-toggle { display: none; }

/* ==================== 首页幻灯片 ==================== */
.slider {
    position: relative; background: var(--blue-50);
    height: 460px; overflow: hidden;
}
/* 四张幻灯片用 position:absolute 完全重叠在同一位置。
   非活动张仅设 opacity:0 是不够的 —— 它依然会响应鼠标事件，
   而 DOM 里靠后的兄弟节点位于顶层，于是「无论点哪张的位置，
   实际触发的都是最后一张的按钮」（曾导致四张幻灯片点进去是同一篇）。
   必须同时关闭 pointer-events 并抬升活动张的层级。 */
.slide {
    position: absolute; inset: 0;
    opacity: 0;
    pointer-events: none;      /* 非活动张不响应点击 */
    visibility: hidden;        /* 同时移出可交互树，兼顾读屏与 Tab 焦点 */
    z-index: 1;
    transition: opacity .6s, visibility 0s linear .6s;
}
.slide.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    z-index: 2;
    transition: opacity .6s, visibility 0s;
}
.slide img.bg { width: 100%; height: 100%; object-fit: cover; }
.slide .mask {
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(0,40,70,.82) 0%, rgba(0,60,100,.55) 45%, rgba(0,60,100,.15) 100%);
}
.slide .txt {
    position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
}
.slide .txt .wrap { max-width: var(--maxw); margin: 0 auto; }
.slide h2 {
    font-size: 38px; color: #fff; font-weight: 700; line-height: 1.3;
    margin-bottom: 14px; text-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.slide p {
    font-size: 17px; color: #CFE6F5; max-width: 620px; margin-bottom: 24px;
    line-height: 1.8;
}
.slide .btns a {
    display: inline-block; padding: 0 26px; height: 44px; line-height: 44px;
    border-radius: 22px; font-size: 15px; font-weight: 600; margin-right: 12px;
}
.slide .btns .b1 { background: var(--orange); color: #fff; }
.slide .btns .b1:hover { background: #fff; color: var(--orange-d); }
.slide .btns .b2 { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.slide .btns .b2:hover { background: #fff; color: var(--brand-d); }

.slider-dots {
    position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; z-index: 10;
}
.slider-dots i {
    display: inline-block; width: 30px; height: 4px; border-radius: 2px;
    background: rgba(255,255,255,.4); margin: 0 4px; cursor: pointer;
    transition: background .2s;
}
.slider-dots i.on { background: var(--orange); }

/* ==================== 数据条 ==================== */
.kpi-bar { background: var(--brand-d); color: #fff; padding: 30px 0; }
.kpi-bar .wrap { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.kpi-bar .kpi { text-align: center; flex: 1; min-width: 130px; }
.kpi-bar .kpi b {
    display: block; font-size: 34px; font-weight: 700; line-height: 1.2;
    color: #fff; margin-bottom: 4px;
}
.kpi-bar .kpi b span { font-size: 18px; }
.kpi-bar .kpi span { font-size: 13.5px; color: #A8CCE6; }

/* ==================== 区块 ==================== */
.section { padding: 52px 0; }
.section.alt { background: #fff; }
.section-gray { background: var(--blue-50); }

.sec-head { text-align: center; margin-bottom: 34px; }
.sec-head h2 {
    font-size: 27px; color: var(--brand-d); font-weight: 700;
    position: relative; display: inline-block; padding-bottom: 12px;
}
.sec-head h2::after {
    content: ""; position: absolute; left: 50%; bottom: 0;
    transform: translateX(-50%); width: 46px; height: 3px;
    background: var(--orange); border-radius: 2px;
}
.sec-head p { color: var(--ink-2); font-size: 15px; margin-top: 12px; }

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

.card {
    background: var(--card); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: transform .22s, box-shadow .22s;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .thumb { height: 190px; overflow: hidden; background: var(--blue-50); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .thumb img { transform: scale(1.05); }
.card .body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.card .cat {
    font-size: 12px; color: var(--orange-d); background: var(--orange-50);
    padding: 2px 9px; border-radius: 10px; display: inline-block; margin-bottom: 9px;
    align-self: flex-start;
}
.card h3 { font-size: 16.5px; color: var(--ink); line-height: 1.5; margin-bottom: 9px; font-weight: 600; }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--brand); }
.card p {
    font-size: 13.5px; color: var(--ink-2); line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 12px;
}
.card .meta {
    margin-top: auto; font-size: 12px; color: var(--ink-3);
    display: flex; justify-content: space-between; align-items: center;
}

/* ==================== 列表页 ==================== */
.page-wrap { display: flex; gap: 26px; padding: 26px 0 50px; align-items: flex-start; }
.side { width: 232px; flex-shrink: 0; }
.main { flex: 1; min-width: 0; }

.side-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.side-box h3 {
    background: var(--brand); color: #fff; font-size: 15px;
    padding: 12px 16px; font-weight: 600;
}
.side-box ul li a {
    display: block; padding: 9px 16px; font-size: 14px; color: var(--ink-2);
    border-bottom: 1px solid var(--line);
}
.side-box ul li:last-child a { border-bottom: 0; }
.side-box ul li a:hover,
.side-box ul li a.on { color: var(--brand); background: var(--blue-50); }

.crumb { font-size: 13.5px; color: var(--ink-3); padding: 16px 0 6px; }
.crumb a { color: var(--ink-2); }
.crumb a:hover { color: var(--brand); }
.crumb span { margin: 0 7px; color: var(--line); }

.list-head { padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.list-head h1 { font-size: 25px; color: var(--brand-d); font-weight: 700; }
.list-head p { color: var(--ink-2); font-size: 14px; margin-top: 8px; line-height: 1.8; }
.list-head .count { color: var(--ink-3); font-size: 13px; margin-top: 6px; }

.list-items .item {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 22px 24px; margin-bottom: 16px; display: flex; gap: 22px;
    transition: box-shadow .2s;
}
.list-items .item:hover { box-shadow: var(--shadow-lg); }
.list-items .item .thumb {
    width: 208px; height: 138px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--blue-50);
}
.list-items .item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-items .item .info { flex: 1; min-width: 0; }
.list-items .item h3 { font-size: 18px; margin-bottom: 9px; font-weight: 600; line-height: 1.5; }
.list-items .item h3 a { color: var(--ink); }
.list-items .item h3 a:hover { color: var(--brand); }
.list-items .item .desc {
    font-size: 13.5px; color: var(--ink-2); line-height: 1.75; margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.list-items .item .meta { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 16px; flex-wrap: wrap; }
.list-items .item .meta .tag { color: var(--orange-d); background: var(--orange-50); padding: 1px 8px; border-radius: 9px; }

.empty { text-align: center; padding: 70px 20px; color: var(--ink-3); }
.empty .big { font-size: 46px; margin-bottom: 12px; opacity: .35; }

/* ==================== 文章详情 ==================== */
.article-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 40px 40px; }
.art-title { font-size: 27px; color: var(--brand-d); font-weight: 700; line-height: 1.45; margin-bottom: 14px; }
.art-meta {
    display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3);
    padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 26px;
}
.art-meta a { color: var(--ink-3); }
.art-meta a:hover { color: var(--brand); }
.art-meta .cat { color: var(--orange-d); background: var(--orange-50); padding: 1px 10px; border-radius: 10px; }

.art-content { font-size: 15px; line-height: 1.9; color: var(--ink); }
.art-content p { margin: 0 0 14px; }
.art-content img { margin: 8px auto; border-radius: 6px; }

/* 正文内的图片需要限制宽度，避免溢出 */
.art-content img { max-width: 100%; height: auto; }
.art-content > img { display: block; margin: 16px auto; }
.art-content a { color: var(--brand); text-decoration: underline; }

.art-nav { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.art-nav a {
    display: block; padding: 9px 0; font-size: 14px; color: var(--ink-2);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.art-nav a:hover { color: var(--brand); }
.art-nav .lbl { color: var(--ink-3); margin-right: 8px; }

.art-foot {
    margin-top: 26px; padding: 18px 20px; background: var(--blue-50);
    border-radius: 6px; font-size: 13.5px; color: var(--ink-2); line-height: 1.85;
}

/* 相关文章 */
.related { margin-top: 30px; }
.related h3 { font-size: 17px; color: var(--brand-d); margin-bottom: 14px; font-weight: 600; }
.related ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.related li { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related li::before { content: "›"; color: var(--orange); margin-right: 7px; font-weight: 700; }

/* ==================== 分页 ==================== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pagination .pg {
    min-width: 36px; height: 36px; line-height: 34px; text-align: center;
    background: #fff; border: 1px solid var(--line); border-radius: 5px;
    color: var(--ink-2); font-size: 14px; padding: 0 11px;
}
.pagination .pg:hover { border-color: var(--brand); color: var(--brand); }
.pagination .pg.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .pg.disabled { color: var(--line); pointer-events: none; }
.pagination .pg-dots { line-height: 34px; color: var(--ink-3); padding: 0 3px; }

/* ==================== 联系我们 ==================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: start; }

.info-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 30px; }
.info-card .it { display: flex; gap: 14px; margin-bottom: 22px; }
.info-card .it:last-child { margin-bottom: 0; }
.info-card .ico {
    width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
    background: var(--blue-50); color: var(--brand);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.info-card .it b { display: block; font-size: 14px; color: var(--ink-3); margin-bottom: 3px; font-weight: 500; }
.info-card .it p { font-size: 15.5px; color: var(--ink); line-height: 1.6; }
.info-card .it p.tel { font-size: 21px; color: var(--orange-d); font-weight: 700; }

.form-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 30px; }
.f-row { margin-bottom: 16px; }
.f-row label { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.f-row label em { color: #E15B5B; font-style: normal; }
.f-row input, .f-row textarea, .f-row select {
    width: 100%; padding: 10px 13px; border: 1px solid var(--line);
    border-radius: 5px; font-size: 14.5px; color: var(--ink); background: #fff;
    outline: none; transition: border-color .18s;
}
.f-row input:focus, .f-row textarea:focus, .f-row select:focus { border-color: var(--brand); }
.f-row textarea { resize: vertical; min-height: 108px; }
.f-row.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.f-submit {
    width: 100%; height: 44px; border: 0; border-radius: 5px;
    background: var(--orange); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
}
.f-submit:hover { background: var(--orange-d); }

.alert { padding: 12px 16px; border-radius: 6px; font-size: 14px; margin-bottom: 18px; line-height: 1.7; }
.alert-ok { background: var(--mint-bg); color: #2F6E62; border: 1px solid #BFE3DA; }
.alert-err { background: #FDEEEF; color: #A63E46; border: 1px solid #F5C9CD; }

/* ==================== 搜索 ==================== */
.search-form { display: flex; gap: 10px; margin: 18px 0 26px; }
.search-form input {
    flex: 1; padding: 11px 16px; border: 1px solid var(--line);
    border-radius: 5px; font-size: 15px; outline: none;
}
.search-form input:focus { border-color: var(--brand); }
.search-form button {
    padding: 0 30px; border: 0; border-radius: 5px;
    background: var(--brand); color: #fff; font-size: 15px; cursor: pointer;
}
.search-form button:hover { background: var(--brand-d); }

/* ==================== 页脚 ==================== */
.site-foot { background: var(--brand-d); color: #A8CCE6; margin-top: 56px; font-size: 13.5px; }
.foot-main { padding: 42px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 34px; }
.foot-grid h4 { color: #fff; font-size: 15.5px; margin-bottom: 16px; font-weight: 600; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: #A8CCE6; }
.foot-grid a:hover { color: #fff; }
.foot-grid p { line-height: 1.9; }
.foot-contact b { display: block; color: var(--orange); font-size: 22px; font-weight: 700; margin-bottom: 5px; }
.foot-contact .tel2 { color: #fff; font-size: 15px; }

.foot-logo {
    background: #fff; border-radius: 6px; padding: 10px 14px;
    display: inline-block; margin-bottom: 16px;
}
.foot-logo img { height: 40px; width: auto; }

.foot-bottom {
    border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0;
    text-align: center; font-size: 12.5px; color: #7FAECD;
}
.foot-bottom a { color: #7FAECD; }
.foot-links { margin-top: 7px; }
.foot-links a { margin: 0 8px; }

/* 移动端返回顶部 */
.backtop {
    position: fixed; right: 22px; bottom: 26px; width: 42px; height: 42px;
    background: var(--brand); color: #fff; border-radius: 50%; border: 0;
    cursor: pointer; font-size: 17px; opacity: 0; visibility: hidden;
    transition: all .25s; box-shadow: var(--shadow-lg); z-index: 200;
}
.backtop.show { opacity: 1; visibility: visible; }
.backtop:hover { background: var(--orange); }

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .foot-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .main-nav {
        position: fixed; inset: 0 0 0 auto; width: 260px; background: #fff;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 80px 0 30px; box-shadow: -4px 0 24px rgba(0,0,0,.12);
        transform: translateX(100%); transition: transform .28s; overflow-y: auto;
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav > li > a { height: auto; line-height: 1.6; padding: 13px 22px; border-bottom: 1px solid var(--line); }
    .main-nav .sub {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border-radius: 0; background: var(--blue-50);
    }
    .nav-toggle {
        display: block; width: 40px; height: 40px; border: 1px solid var(--line);
        background: #fff; border-radius: 5px; font-size: 18px; cursor: pointer;
    }
    .site-head .wrap { height: 64px; }
    .logo img { height: 36px; }
    .logo-text b { font-size: 17px; }
    .cta-btn { display: none; }
}

@media (max-width: 768px) {
    .slider { height: 360px; }
    .slide h2 { font-size: 26px; }
    .slide p { font-size: 15px; max-width: 90%; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .page-wrap { flex-direction: column; }
    .side { width: 100%; }
    .list-items .item { flex-direction: column; }
    .list-items .item .thumb { width: 100%; height: 180px; }
    .article-box { padding: 24px 20px 28px; }
    .art-title { font-size: 21px; }
    .related ul { grid-template-columns: 1fr; }
    .f-row.cols { grid-template-columns: 1fr; }
    .kpi-bar .kpi { min-width: 45%; }
    .foot-grid { grid-template-columns: 1fr; gap: 24px; }
    .section { padding: 34px 0; }
    .topbar .tb-left { display: none; }
    .topbar .wrap { justify-content: center; }
}
