/* =====================================================
   物壹科技官网 主样式 —— 纯手写，无框架依赖
   ===================================================== */
:root {
  --primary: #0b2b5b;
  --primary-deep: #081f43;
  --accent: #1e6fff;
  --accent-light: #e8f1ff;
  --cyan: #00c2ff;
  --dark: #12233d;
  --text: #33415c;
  --text-light: #6b7a99;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --border: #e3e9f2;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(11, 43, 91, .08);
  --shadow-lg: 0 12px 40px rgba(11, 43, 91, .14);
  --wrap: 1200px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; vertical-align: middle; border: 0; }
ul, ol { list-style: none; }
.container { width: min(var(--wrap), 92%); margin: 0 auto; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ---------- 主导航 ---------- */
.header { background: #fff; box-shadow: 0 1px 0 var(--border); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 42px; }
.logo .logo-text { font-size: 20px; font-weight: 700; color: var(--primary); letter-spacing: 1px; white-space: nowrap; }
.logo .logo-text small { display: block; font-size: 11px; color: var(--text-light); font-weight: 400; letter-spacing: 2px; }
.nav { display: flex; }
.nav > li { position: relative; }
.nav > li > a { display: block; padding: 0 13px; line-height: 72px; font-size: 15px; color: var(--dark); font-weight: 500; position: relative; white-space: nowrap; }
.nav > li > a::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 3px; background: var(--accent); transition: all .25s; transform: translateX(-50%); border-radius: 2px; }
.nav > li:hover > a, .nav > li.active > a { color: var(--accent); }
.nav > li:hover > a::after, .nav > li.active > a::after { width: 60%; }
.dropdown { position: absolute; top: 72px; left: 50%; transform: translateX(-50%) translateY(8px); min-width: 160px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all .25s; padding: 8px 0; }
.nav > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown li a { display: block; padding: 9px 24px; font-size: 14px; color: var(--text); white-space: nowrap; }
.dropdown li a:hover { background: var(--accent-light); color: var(--accent); }
.menu-toggle { display: none; }

/* ---------- 首页 Banner ---------- */
.hero { position: relative; overflow: hidden; }
.carousel { position: relative; height: 520px; }
.carousel .slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .8s; background-size: cover; background-position: center; cursor: pointer; }
.carousel .slide.on { opacity: 1; pointer-events: auto; }
.carousel .dots { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; z-index: 5; }
.carousel .dots span { display: inline-block; width: 28px; height: 4px; background: rgba(255,255,255,.45); margin: 0 5px; border-radius: 2px; cursor: pointer; transition: background .3s; }
.carousel .dots span.on { background: var(--cyan); }
.carousel .arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; line-height: 46px; text-align: center; color: #fff; font-size: 22px; background: rgba(0,0,0,.18); border-radius: 50%; cursor: pointer; z-index: 5; user-select: none; transition: background .3s; }
.carousel .arrow:hover { background: var(--accent); }
.carousel .arrow.prev { left: 4%; }
.carousel .arrow.next { right: 4%; }

/* ---------- 通用板块 ---------- */
.section { padding: 76px 0; }
.section.soft { background: var(--bg-soft); }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head h2 { font-size: 30px; color: var(--dark); font-weight: 700; letter-spacing: 1px; }
.sec-head .bar { width: 44px; height: 4px; background: linear-gradient(90deg, var(--accent), var(--cyan)); margin: 14px auto 12px; border-radius: 2px; }
.sec-head p { color: var(--text-light); font-size: 15px; }

/* ---------- 卡片网格（业务/方案） ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fff; border-radius: var(--radius); padding: 34px 28px; box-shadow: var(--shadow); transition: all .3s; border: 1px solid var(--border); position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--accent), var(--cyan)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card:hover::before { transform: scaleX(1); }
.card .icon { width: 58px; height: 58px; border-radius: 14px; background: var(--accent-light); color: var(--accent); font-size: 26px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.card h3 { font-size: 19px; color: var(--dark); margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--text-light); margin-bottom: 14px; }
.card .more { font-size: 13px; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- 新闻 ---------- */
.news-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; }
.news-feature { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all .3s; }
.news-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-feature .thumb { height: 260px; background-size: cover; background-position: center; background-color: var(--bg-soft); }
.news-feature .info { padding: 24px 26px; }
.news-feature h3 { font-size: 19px; color: var(--dark); margin-bottom: 8px; line-height: 1.5; }
.news-feature .date { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }
.news-list-item { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px dashed var(--border); }
.news-list-item .t { font-size: 15px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list-item .t:hover { color: var(--accent); }
.news-list-item .d { font-size: 13px; color: var(--text-light); flex-shrink: 0; margin-left: 20px; }
.news-side { background: #fff; border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.news-side h3 { font-size: 18px; color: var(--dark); margin-bottom: 6px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); display: inline-block; }

/* ---------- 合作伙伴 ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.partner-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); height: 92px; display: flex; align-items: center; justify-content: center; padding: 14px; transition: all .3s; }
.partner-item:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.partner-item img { max-height: 100%; filter: grayscale(1); opacity: .75; transition: all .3s; }
.partner-item:hover img { filter: none; opacity: 1; }
.partner-item span { color: var(--text-light); font-weight: 500; }

/* ---------- 页脚（沿用旧站样式） ---------- */
.footer { width: 100%; background: #444; }
.footer .f-in { padding: 30px 0; }
.footer .f-in dl { width: 210px; float: left; color: #fff; margin: 0; }
.footer .f-in dl dt { font-weight: bold; font-size: 16px; }
.footer .f-in dl dt span { display: block; width: 30px; height: 3px; background: #fff; margin: 10px 0 6px; }
.footer .f-in dl dd { line-height: 24px; margin: 0; }
.footer .f-in dl a { color: #fff; font-size: 14px; }
.footer .f-in dl a:hover { color: #9db4d6; }
.footer .f-con { float: right; width: 359px; color: #fff; padding: 0 0 0 80px; box-sizing: border-box; font-size: 12px; line-height: 30px; }
.footer .f-con span { margin: 0 5px; display: inline-block; width: 20px; height: 20px; vertical-align: middle; }
.footer .f-con span img { display: block; width: 20px; height: 20px; object-fit: contain; }
.footer .clear { clear: both; }
.footer .f-bottom { background: #333; color: #fff; text-align: center; font-size: 14px; line-height: 50px; }
.footer .f-bottom a { color: #fff; }

/* ---------- 内页通用 ---------- */
.page-banner { height: 240px; background: #16386e url('/Uploads/mbpic/ban.jpg') center center / cover no-repeat; position: relative; display: flex; align-items: center; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,28,60,.62) 0%, rgba(9,28,60,.18) 60%, rgba(9,28,60,.35) 100%); }
.page-banner .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-banner .container { position: relative; z-index: 2; color: #fff; }
.page-banner h1 { font-size: 32px; letter-spacing: 2px; margin-bottom: 8px; }
.page-banner .sub { font-size: 14px; color: rgba(255,255,255,.65); letter-spacing: 3px; text-transform: uppercase; }

.crumbs-bar { background: #fff; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-light); }
.crumbs-bar .container { display: flex; justify-content: space-between; align-items: center; height: 46px; }
.crumbs-bar .crumbs a { color: var(--text-light); }
.crumbs-bar .crumbs a:hover { color: var(--accent); }
.crumbs-bar .crumbs .sep { margin: 0 8px; color: #c3cedf; }

/* 内页布局：侧栏 + 内容 */
.page-body { padding: 46px 0 70px; background: var(--bg-soft); min-height: 400px; }
.page-layout { display: grid; grid-template-columns: 230px 1fr; gap: 30px; align-items: start; }
.side-nav { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.side-nav .hd { background: var(--primary); color: #fff; padding: 16px 22px; font-size: 17px; font-weight: 600; }
.side-nav li a { display: block; padding: 12px 22px; color: var(--text); font-size: 15px; border-left: 3px solid transparent; transition: all .2s; }
.side-nav li a:hover { background: var(--bg-soft); color: var(--accent); }
.side-nav li a.active { border-left-color: var(--accent); background: var(--accent-light); color: var(--accent); font-weight: 600; }

.main-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 42px; min-height: 400px; }
.main-panel h1.panel-title { font-size: 26px; color: var(--dark); margin-bottom: 6px; }
.panel-meta { font-size: 13px; color: var(--text-light); padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 26px; display: flex; gap: 24px; flex-wrap: wrap; }
.rich { font-size: 15.5px; line-height: 2; color: #3c4a63; word-wrap: break-word; }
.rich img { height: auto !important; border-radius: 6px; margin: 8px 0; }
.rich p { margin-bottom: 12px; }
.rich table { border-collapse: collapse; width: 100%; margin: 14px 0; }
.rich table td, .rich table th { border: 1px solid var(--border); padding: 8px 12px; }
.rich h1,.rich h2,.rich h3,.rich h4 { color: var(--dark); margin: 18px 0 10px; }

/* 文章列表 */
.article-item { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.article-item:last-child { border-bottom: 0; }
.article-item .thumb { width: 210px; height: 130px; border-radius: 8px; background-size: cover; background-position: center; flex-shrink: 0; background-color: var(--bg-soft); }
.article-item h3 { font-size: 18px; color: var(--dark); margin-bottom: 8px; line-height: 1.5; }
.article-item h3:hover { color: var(--accent); }
.article-item .desc { font-size: 14px; color: var(--text-light); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-item .date { font-size: 13px; color: #9aa8c0; }
.article-item .no-thumb { padding-top: 4px; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-block; min-width: 36px; height: 36px; line-height: 36px; text-align: center; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border); color: var(--text); font-size: 14px; background: #fff; }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .disabled { color: #c3cedf; cursor: not-allowed; }

/* 上一条/下一条 */
.article-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; }
.article-nav a { color: var(--text-light); max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-nav a:hover { color: var(--accent); }

/* ---------- 留言表单 ---------- */
.contact-form { max-width: 640px; margin: 0 auto; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; color: var(--dark); margin-bottom: 6px; font-weight: 500; }
.form-row label .req { color: #e05b5b; margin-left: 2px; }
.form-row input, .form-row textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; outline: none; transition: border .2s, box-shadow .2s; background: #fbfcfe; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30,111,255,.12); background: #fff; }
.form-row textarea { min-height: 130px; resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 34px; background: var(--accent); color: #fff; border: 0; border-radius: 8px; font-size: 15px; cursor: pointer; transition: all .25s; font-family: inherit; }
.btn:hover { background: #0f5ce0; color: #fff; box-shadow: 0 6px 18px rgba(30,111,255,.35); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.form-tip { font-size: 13px; margin-top: 10px; min-height: 20px; }
.form-tip.ok { color: #18a058; }
.form-tip.err { color: #e05b5b; }

/* 搜索框（头部） */
.search-mini { display: flex; flex-shrink: 0; }
.search-mini input { width: 140px; height: 34px; border: 1px solid var(--border); border-right: 0; border-radius: 17px 0 0 17px; padding: 0 14px; font-size: 13px; outline: none; background: var(--bg-soft); }
.search-mini button { height: 34px; padding: 0 16px; border: 0; background: var(--accent); color: #fff; border-radius: 0 17px 17px 0; font-size: 13px; cursor: pointer; }

/* 空状态 */
.empty { text-align: center; padding: 70px 20px; color: var(--text-light); }
.empty .ico { font-size: 44px; margin-bottom: 14px; opacity: .5; }

/* ---------- 响应式 ---------- */
/* 中等宽度（<1280px）：导航项较多，整行放不下，切换为汉堡菜单避免挤压换行 */
@media (max-width: 1279.98px) {
  .menu-toggle { display: block; font-size: 24px; color: var(--primary); cursor: pointer; padding: 8px; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; box-shadow: var(--shadow-lg); flex-direction: column; max-height: 70vh; overflow-y: auto; }
  .nav.open { display: flex; }
  .nav > li > a { line-height: 1; padding: 15px 24px; border-top: 1px solid var(--border); white-space: normal; }
  .nav > li > a::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding: 0 0 8px; }
  .nav > li.open .dropdown { display: block; }
  .dropdown li a { padding: 9px 40px; font-size: 14px; }
}
@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .news-layout { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .footer .f-in { display: flex; flex-wrap: wrap; }
  .footer .f-in dl { width: 50%; margin-bottom: 22px; }
  .footer .f-con { width: 100%; padding-left: 0; }
  .page-layout { grid-template-columns: 1fr; }
  .side-nav { display: none; }
  .main-panel { padding: 26px 22px; }
  .carousel { height: 360px; }

  .search-mini { display: none; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .partner-grid { grid-template-columns: 1fr; }
  .footer .f-in dl { width: 100%; }
  .footer .f-bottom { line-height: 1.8; padding: 10px 0; }
  .section { padding: 48px 0; }
  .sec-head h2 { font-size: 24px; }
  .carousel { height: 260px; }
  .carousel .arrow { display: none; }
  .article-item { flex-direction: column; gap: 12px; }
  .article-item .thumb { width: 100%; height: 170px; }
}
