/* =========================================================
   陌上科技 官网 · 商务风格主题
   广西陌上网络科技有限责任公司
   ========================================================= */
:root {
    --ms-primary: #0d3b66;        /* 商务深蓝 */
    --ms-primary-dark: #092b4c;   /* 深蓝暗色 */
    --ms-primary-light: #1a5588;  /* 深蓝亮色 */
    --ms-accent: #e8a33d;         /* 商务金 */
    --ms-accent-dark: #cf8a22;
    --ms-bg: #f5f7fa;             /* 浅灰蓝底 */
    --ms-text: #333333;
    --ms-muted: #666666;
    --ms-line: #e5e9f0;
    --ms-radius: 8px;
    --ms-shadow: 0 6px 24px rgba(13, 59, 102, .08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ms-text);
    background: #ffffff;
}

a { color: var(--ms-primary-light); text-decoration: none; }
a:hover { color: var(--ms-accent-dark); }

img { max-width: 100%; display: block; }

.ms-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部信息条 ---------- */
.ms-topbar {
    background: var(--ms-primary-dark);
    color: #cfe0f0;
    font-size: 13px;
    line-height: 1;
}
.ms-topbar .ms-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 36px;
    flex-wrap: wrap;
}
.ms-topbar a { color: #cfe0f0; }
.ms-topbar a:hover { color: var(--ms-accent); }
.ms-topbar .ms-tb-tel { color: var(--ms-accent); font-weight: 600; }

/* ---------- 头部导航 ---------- */
.ms-header {
    background: #ffffff;
    border-bottom: 1px solid var(--ms-line);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(13, 59, 102, .05);
}
.ms-header .ms-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
    flex-wrap: wrap;
}
.ms-logo { display: flex; align-items: center; }
.ms-logo-mark {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--ms-primary), var(--ms-primary-light));
    border-radius: 10px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}
.ms-logo-name { font-size: 22px; font-weight: 700; color: var(--ms-primary); line-height: 1.2; }
.ms-logo-sub { font-size: 12px; color: var(--ms-muted); letter-spacing: 1px; }

/* 导航 */
.ms-nav-toggle { display: none; }
.ms-nav-btn {
    display: none;
    font-size: 26px;
    color: var(--ms-primary);
    cursor: pointer;
    user-select: none;
}
.ms-nav { display: flex; align-items: center; }
.ms-nav > li { list-style: none; position: relative; }
.ms-nav > li > a {
    display: block;
    padding: 10px 16px;
    color: var(--ms-text);
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
}
.ms-nav > li > a:hover, .ms-nav > li.ms-on > a { color: var(--ms-primary); background: #eef3f9; }
.ms-nav .ms-drop {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #fff;
    border: 1px solid var(--ms-line);
    border-radius: 8px;
    box-shadow: var(--ms-shadow);
    padding: 8px;
    display: none;
    z-index: 50;
}
.ms-nav li:hover .ms-drop { display: block; }
.ms-nav .ms-drop a {
    display: block;
    padding: 8px 12px;
    color: var(--ms-text);
    font-size: 14px;
    border-radius: 6px;
}
.ms-nav .ms-drop a:hover { background: #eef3f9; color: var(--ms-primary); }
.ms-nav .ms-nav-cta {
    background: var(--ms-primary);
    color: #fff !important;
    border-radius: 22px;
    padding: 8px 20px !important;
    margin-left: 10px;
}
.ms-nav .ms-nav-cta:hover { background: var(--ms-primary-light); color: #fff !important; }

/* ---------- Hero 横幅 ---------- */
.ms-hero {
    background: linear-gradient(135deg, #0b3052 0%, #14476b 55%, #1a5588 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 76px 0 70px;
}
.ms-hero::after {
    content: "";
    position: absolute;
    right: -140px;
    top: -140px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
}
.ms-hero::before {
    content: "";
    position: absolute;
    left: -90px;
    bottom: -160px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(232, 163, 61, .10);
}
.ms-hero .ms-container { position: relative; z-index: 2; }
.ms-hero-kicker {
    display: inline-block;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #f4d9a8;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 18px;
}
.ms-hero h1 {
    font-size: 40px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 14px;
}
.ms-hero h1 span { color: var(--ms-accent); }
.ms-hero p.ms-hero-desc {
    max-width: 720px;
    font-size: 16px;
    color: #d5e3f0;
    margin-bottom: 30px;
}
.ms-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 42px; }
.ms-btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 26px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .25s ease;
}
.ms-btn-gold { background: var(--ms-accent); color: #fff; }
.ms-btn-gold:hover { background: var(--ms-accent-dark); color: #fff; }
.ms-btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.ms-btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.ms-btn-primary { background: var(--ms-primary); color: #fff; }
.ms-btn-primary:hover { background: var(--ms-primary-light); color: #fff; }

.ms-hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.ms-stat b {
    display: block;
    font-size: 32px;
    color: var(--ms-accent);
    line-height: 1.2;
}
.ms-stat span { font-size: 13px; color: #cfe0f0; }

/* ---------- 重点推荐 ---------- */
.ms-feature { background: var(--ms-bg); }
.ms-feature-head { text-align: center; margin-bottom: 36px; }
.ms-feature-tag {
    display: inline-block;
    background: var(--ms-accent);
    color: #fff;
    font-size: 13px;
    letter-spacing: 2px;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.ms-feature-head h2 { font-size: 28px; color: var(--ms-primary); }
.ms-feature-head p { color: var(--ms-muted); margin-top: 8px; font-size: 14px; }
.ms-feature-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: center;
}
.ms-feature-list { list-style: none; }
.ms-feature-list li {
    background: #fff;
    border: 1px solid var(--ms-line);
    border-left: 4px solid var(--ms-accent);
    border-radius: var(--ms-radius);
    padding: 16px 20px;
    margin-bottom: 14px;
    font-size: 15px;
    color: var(--ms-muted);
}
.ms-feature-list li b { color: var(--ms-primary); }
.ms-feature-actions { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.ms-feature-side .ms-feature-qr {
    background: linear-gradient(160deg, var(--ms-primary) 0%, var(--ms-primary-light) 100%);
    border-radius: 12px;
    padding: 26px 20px 20px;
    text-align: center;
    color: #fff;
}
.ms-feature-qr img { width: 170px; margin: 0 auto 12px; border-radius: 8px; }
.ms-feature-qr p { font-size: 13px; color: #cfe0f0; }
.ms-feature-qr .ms-feature-tel { font-size: 22px; color: var(--ms-accent); font-weight: 700; margin-top: 6px; }
@media (max-width: 820px) {
    .ms-feature-grid { grid-template-columns: 1fr; }
    .ms-feature-side .ms-feature-qr { max-width: 340px; margin: 0 auto; }
}

/* ---------- 通用区块 ---------- */
.ms-section { padding: 64px 0; }
.ms-section.ms-bg { background: var(--ms-bg); }
.ms-title { text-align: center; margin-bottom: 40px; }
.ms-title h2 {
    font-size: 30px;
    color: var(--ms-primary);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.ms-title h2::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 2px;
    background: var(--ms-accent);
}
.ms-title p { color: var(--ms-muted); margin-top: 10px; font-size: 14px; }

.ms-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ms-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ms-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.ms-card {
    background: #fff;
    border: 1px solid var(--ms-line);
    border-radius: var(--ms-radius);
    padding: 26px 24px;
    box-shadow: 0 2px 10px rgba(13, 59, 102, .04);
    transition: transform .25s ease, box-shadow .25s ease;
}
.ms-card:hover { transform: translateY(-6px); box-shadow: var(--ms-shadow); border-color: #cdd9e6; }
.ms-card .ms-ico {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ms-primary), var(--ms-primary-light));
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.ms-card h3 { font-size: 18px; color: var(--ms-primary); margin-bottom: 8px; }
.ms-card p { font-size: 14px; color: var(--ms-muted); }

/* 编号卡片（产品方案） */
.ms-num-card {
    background: #fff;
    border: 1px solid var(--ms-line);
    border-radius: var(--ms-radius);
    padding: 22px 20px;
    display: block;
    color: var(--ms-text);
    box-shadow: 0 2px 10px rgba(13, 59, 102, .04);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
    overflow: hidden;
}
.ms-num-card:hover { transform: translateY(-5px); box-shadow: var(--ms-shadow); border-color: var(--ms-primary-light); color: var(--ms-text); }
.ms-num-card em {
    position: absolute;
    right: 8px;
    top: -6px;
    font-style: normal;
    font-size: 54px;
    font-weight: 800;
    color: rgba(13, 59, 102, .08);
    line-height: 1;
}
.ms-num-card h3 {
    font-size: 16px;
    color: var(--ms-primary);
    margin-bottom: 6px;
    padding-right: 30px;
    font-weight: 700;
}
.ms-num-card p { font-size: 13px; color: var(--ms-muted); }
.ms-num-card .ms-more { font-size: 13px; color: var(--ms-accent-dark); margin-top: 8px; display: block; font-weight: 600; }

/* 新闻列表 */
.ms-news-item {
    display: flex;
    align-items: baseline;
    padding: 14px 4px;
    border-bottom: 1px dashed var(--ms-line);
}
.ms-news-item:last-child { border-bottom: none; }
.ms-news-item .ms-news-cat {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--ms-primary);
    background: #eef3f9;
    border-radius: 4px;
    padding: 2px 8px;
    margin-right: 12px;
}
.ms-news-item a.ms-news-t {
    flex: 1;
    color: var(--ms-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}
.ms-news-item a.ms-news-t:hover { color: var(--ms-primary); }
.ms-news-item time { flex-shrink: 0; font-size: 13px; color: #999; margin-left: 12px; }

/* 联系区 */
.ms-contact-band { background: var(--ms-primary); color: #fff; }
.ms-contact-band .ms-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.ms-contact-band h3 { font-size: 24px; }
.ms-contact-band p { color: #cfe0f0; font-size: 14px; margin-top: 4px; }
.ms-contact-band .ms-phone { font-size: 28px; font-weight: 700; color: var(--ms-accent); }

/* ---------- 页脚 ---------- */
.ms-footer { background: var(--ms-primary-dark); color: #b9cadd; font-size: 14px; }
.ms-footer .ms-container { padding-top: 44px; padding-bottom: 20px; }
.ms-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.ms-footer h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}
.ms-footer h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--ms-accent);
}
.ms-footer p { margin-bottom: 8px; }
.ms-footer ul { list-style: none; }
.ms-footer li { margin-bottom: 8px; }
.ms-footer a { color: #b9cadd; }
.ms-footer a:hover { color: var(--ms-accent); }
.ms-footer .ms-f-tel { color: var(--ms-accent); font-size: 18px; font-weight: 700; }
.ms-copy {
    border-top: 1px solid rgba(255, 255, 255, .10);
    margin-top: 32px;
    padding: 16px 0 18px;
    font-size: 13px;
    color: #8fa3b8;
    text-align: center;
    line-height: 1.9;
}
.ms-copy a { color: #8fa3b8; }
.ms-copy a:hover { color: var(--ms-accent); }

/* ---------- 内页通用 ---------- */
.ms-page-head {
    background: linear-gradient(135deg, #0b3052, #1a5588);
    color: #fff;
    padding: 46px 0;
    text-align: center;
}
.ms-page-head h1 { font-size: 30px; margin-bottom: 6px; }
.ms-page-head p { color: #cfe0f0; font-size: 14px; }
.ms-crumbs { margin-top: 10px; font-size: 13px; color: #cfe0f0; }
.ms-crumbs a { color: #fff; }
.ms-crumbs a:hover { color: var(--ms-accent); }
.ms-crumbs span { margin: 0 6px; color: rgba(255,255,255,.4); }

/* 内容卡片（关于我们等） */
.ms-about-block { background: #fff; border: 1px solid var(--ms-line); border-radius: var(--ms-radius); padding: 30px; box-shadow: 0 2px 10px rgba(13,59,102,.04); }
.ms-about-block h3 { color: var(--ms-primary); font-size: 20px; margin-bottom: 14px; position: relative; padding-left: 14px; }
.ms-about-block h3::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: var(--ms-accent); }
.ms-about-block p { color: var(--ms-muted); margin-bottom: 12px; }

.ms-info-list { list-style: none; }
.ms-info-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--ms-line);
    font-size: 15px;
}
.ms-info-list li:last-child { border-bottom: none; }
.ms-info-list .ms-info-ico {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #eef3f9;
    color: var(--ms-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 14px;
    flex-shrink: 0;
}
.ms-info-list b { color: var(--ms-primary); margin-right: 6px; }
.ms-info-list span { color: var(--ms-text); }

/* 文章列表（新闻/搜索/分类） */
.ms-article-list { background: #fff; border: 1px solid var(--ms-line); border-radius: var(--ms-radius); padding: 10px 24px; box-shadow: 0 2px 10px rgba(13,59,102,.04); }
.ms-art-item {
    display: flex;
    padding: 22px 0;
    border-bottom: 1px dashed var(--ms-line);
    gap: 20px;
}
.ms-art-item:last-child { border-bottom: none; }
.ms-art-item .ms-art-img { width: 200px; height: 128px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #eef3f9; }
.ms-art-item .ms-art-img img { width: 100%; height: 100%; object-fit: cover; }
.ms-art-item h2 { font-size: 18px; margin-bottom: 8px; }
.ms-art-item h2 a { color: var(--ms-primary); }
.ms-art-item h2 a:hover { color: var(--ms-accent-dark); }
.ms-art-item .ms-art-desc { color: var(--ms-muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ms-art-item .ms-art-meta { margin-top: 10px; font-size: 13px; color: #999; }
.ms-art-item .ms-art-meta span { margin-right: 14px; }

/* 文章详情 */
.ms-article { background: #fff; border: 1px solid var(--ms-line); border-radius: var(--ms-radius); padding: 34px 34px 20px; box-shadow: 0 2px 10px rgba(13,59,102,.04); }
.ms-article h1 { font-size: 26px; color: var(--ms-primary); margin-bottom: 12px; line-height: 1.4; }
.ms-article .ms-art-meta { font-size: 13px; color: #999; padding-bottom: 14px; border-bottom: 1px solid var(--ms-line); margin-bottom: 20px; }
.ms-article .ms-art-meta span { margin-right: 16px; }
.ms-article .ms-art-content { color: #444; font-size: 15px; }
.ms-article .ms-art-content p { margin-bottom: 14px; }
.ms-article .ms-art-content img { margin: 8px auto; }
.ms-art-nav { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--ms-line); font-size: 14px; }

/* 侧栏 */
.ms-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.ms-side { position: sticky; top: 100px; }
.ms-sidebox { background: #fff; border: 1px solid var(--ms-line); border-radius: var(--ms-radius); padding: 18px; box-shadow: 0 2px 10px rgba(13,59,102,.04); margin-bottom: 20px; }
.ms-sidebox h3 { font-size: 16px; color: var(--ms-primary); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ms-accent); }
.ms-sidebox ul { list-style: none; }
.ms-sidebox li { margin-bottom: 8px; font-size: 14px; }
.ms-sidebox a { color: var(--ms-muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-sidebox a:hover { color: var(--ms-primary); }

/* 表格/响应式 */
@media (max-width: 992px) {
    .ms-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .ms-footer-grid { grid-template-columns: repeat(2, 1fr); }
    .ms-layout { grid-template-columns: 1fr; }
    .ms-side { position: static; }
}
@media (max-width: 768px) {
    .ms-topbar .ms-container { height: auto; padding: 6px 14px; gap: 2px; }
    .ms-header .ms-container { height: auto; padding: 10px 14px; }
    .ms-nav-btn { display: block; }
    .ms-nav-toggle:checked ~ .ms-nav { display: flex; }
    .ms-nav {
        display: none;
        position: absolute;
        left: 0; right: 0; top: 100%;
        background: #fff;
        border-top: 1px solid var(--ms-line);
        box-shadow: var(--ms-shadow);
        flex-direction: column;
        align-items: stretch;
        padding: 8px 12px 16px;
        z-index: 99;
    }
    .ms-nav > li > a { padding: 10px 12px; }
    .ms-nav .ms-drop { position: static; display: block; border: none; box-shadow: none; padding: 0 0 6px 20px; }
    .ms-nav .ms-nav-cta { margin: 10px 0 0; text-align: center; }
    .ms-hero { padding: 52px 0 46px; }
    .ms-hero h1 { font-size: 28px; }
    .ms-grid-2, .ms-grid-3 { grid-template-columns: 1fr; }
    .ms-section { padding: 44px 0; }
    .ms-title h2 { font-size: 24px; }
    .ms-art-item { flex-direction: column; }
    .ms-art-item .ms-art-img { width: 100%; height: 180px; }
    .ms-article { padding: 20px 16px; }
    .ms-contact-band h3 { font-size: 20px; }
    .ms-contact-band .ms-phone { font-size: 22px; }
}
